From 778b25d87fc7fd65540b1f71dd523033242c7fac Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 09:08:35 -0700 Subject: [PATCH 1/8] update base submodule, update CHANGELOG and include CHANGELOG from 11.0.0a1 --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ kubernetes/base | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1e119d3cb..5753f49008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,43 @@ +# v11.0.0b1 +**Bug Fix:** +- Fix a bug in kubeconfig loader where NoneType gets iterated [kubernetes-client/python-base#158](https://github.com/kubernetes-client/python-base/pull/158) +- Fix a bug in kubeconfig loader that False value gets treated as absence [kubernetes-client/python-base#161](https://github.com/kubernetes-client/python-base/pull/161) +- Fix a bug in kubeconfig loader where merging valid configs fails if fields are missing [kubernetes-client/python-base#163](https://github.com/kubernetes-client/python-base/pull/163) +- Fix azure refresh token apiserver id [kubernetes-client/python-base#170](https://github.com/kubernetes-client/python-base/pull/170) + +**New Feature:** +- Add returncode method to WSClient [kubernetes-client/python-base#160](https://github.com/kubernetes-client/python-base/pull/160) +- Add proxy support to WSClient [kubernetes-client/python-base#157](https://github.com/kubernetes-client/python-base/pull/157) + +# v11.0.0a1 +**New Feature:** +- Add dynamic client [kubernetes-client/python-base#56](https://github.com/kubernetes-client/python-base/pull/56) +- `create_from_yaml` supports creation from dict and namespace option [kubernetes-client/python#795](https://github.com/kubernetes-client/python/pull/795) + +**Breaking Change:** +- The Python client will be generated by openapi-generator, with the following breaking changes [kubernetes-client/gen#97](https://github.com/kubernetes-client/gen/pull/97) +- `kubernetes.client.apis` package is renamed to `kubernetes.client.api` +- `kubernetes` package code now uses absolute import instead of relative import +- The `swagger_types` attribute in all models is renamed to `openapi_types` +- Python3.4 is no longer supported [kubernetes-client/python#807](https://github.com/kubernetes-client/python/pull/807) + +**API Change:** +- Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795) +- Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147) +- Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491) +- Introduce parameter `allow_watch_bookmarks` in list options for requesting watch bookmarks from apiserver. The implementation in apiserver is hidden behind feature gate `WatchBookmark` (currently in Alpha stage) [kubernetes/kubernetes#74074](https://github.com/kubernetes/kubernetes/pull/74074) +- Add `V1DeleteOptions` parameters (`dry_run`, `grace_period_seconds`, `orphan_dependents`, `propagation_policy`) to delete collection APIs [kubernetes/kubernetes#77843](https://github.com/kubernetes/kubernetes/pull/77843) +- Add ListMeta.RemainingItemCount. When responding a LIST request, if the server has more data available, and if the request does not contain label selectors or field selectors, the server sets the ListOptions.RemainingItemCount to the number of remaining objects [kubernetes/kubernetes#75993](https://github.com/kubernetes/kubernetes/pull/75993) +- Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516) +- Introduce `preemption_policy` field to V1PriorityClass [kubernetes/kubernetes#74614](https://github.com/kubernetes/kubernetes/pull/74614) +- Add `port` configuration to service reference in Admission webhook configuration, AuditSink webhook configuration, CRD Conversion webhook configuration and kube-aggregator [kubernetes/kubernetes#74855](https://github.com/kubernetes/kubernetes/pull/74855) +- Introduce `inline_volume_spec` to `V1PersistentVolumeSpec` [kubernetes/kubernetes#77703](https://github.com/kubernetes/kubernetes/pull/77703) +- Add fields `x_kubernetes_embedded_resource`, `x_kubernetes_int_or_string`, `x_kubernetes_preserve_unknown_fields` to V1beta1JSONSchemaProps [kubernetes/kubernetes#77207](https://github.com/kubernetes/kubernetes/pull/77207) + +**Bug Fix:** +- Update `_load_azure_token` to handle str and int [kubernetes-client/python-base#141](https://github.com/kubernetes-client/python-base/pull/141) +- Correct regex to properly parse rfc3339 microseconds [kubernetes-client/python-base#150](https://github.com/kubernetes-client/python-base/pull/150) + # v10.0.0 **Bug Fix:** - Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79) diff --git a/kubernetes/base b/kubernetes/base index 6b65461312..a2d1024524 160000 --- a/kubernetes/base +++ b/kubernetes/base @@ -1 +1 @@ -Subproject commit 6b6546131217a2a9fdcf431a286c346619d2923a +Subproject commit a2d1024524de78b62e5f9aa72d34cb9ea9de2b97 From 6c015d1f9dbaf1af7865aafddd60e63c9b94ea82 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 09:09:55 -0700 Subject: [PATCH 2/8] update version constants for master branch --- scripts/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/constants.py b/scripts/constants.py index 31feb020e6..60f7f0e931 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -15,10 +15,10 @@ import sys # Kubernetes branch to get the OpenAPI spec from. -KUBERNETES_BRANCH = "release-1.14" +KUBERNETES_BRANCH = "release-1.15" # client version for packaging and releasing. -CLIENT_VERSION = "10.0.0-snapshot" +CLIENT_VERSION = "11.0.0-snapshot" # Name of the release package PACKAGE_NAME = "kubernetes" From 5cddbde0bfa2c8e10488978b0294f69c75fe0889 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 09:24:17 -0700 Subject: [PATCH 3/8] generated client change for 11.0.0-snapshot --- ...degen-ignore => .openapi-generator-ignore} | 0 kubernetes/.openapi-generator/COMMIT | 2 + kubernetes/.openapi-generator/VERSION | 1 + .../.openapi-generator/swagger.json.sha256 | 1 + kubernetes/README.md | 27 +- kubernetes/__init__.py | 2 +- kubernetes/client/__init__.py | 1349 +- kubernetes/client/api/__init__.py | 69 + .../client/api/admissionregistration_api.py | 121 + .../admissionregistration_v1beta1_api.py | 1591 +- kubernetes/client/api/apiextensions_api.py | 121 + .../apiextensions_v1beta1_api.py | 1141 +- kubernetes/client/api/apiregistration_api.py | 121 + .../{apis => api}/apiregistration_v1_api.py | 1141 +- .../apiregistration_v1beta1_api.py | 1141 +- kubernetes/client/api/apis_api.py | 121 + kubernetes/client/api/apps_api.py | 121 + .../client/{apis => api}/apps_v1_api.py | 6990 ++--- .../client/{apis => api}/apps_v1beta1_api.py | 4277 +-- .../client/{apis => api}/apps_v1beta2_api.py | 6990 ++--- .../client/api/auditregistration_api.py | 121 + .../auditregistration_v1alpha1_api.py | 841 +- kubernetes/client/api/authentication_api.py | 121 + .../{apis => api}/authentication_v1_api.py | 185 +- .../authentication_v1beta1_api.py | 185 +- kubernetes/client/api/authorization_api.py | 121 + .../{apis => api}/authorization_v1_api.py | 476 +- .../authorization_v1beta1_api.py | 476 +- kubernetes/client/api/autoscaling_api.py | 121 + .../{apis => api}/autoscaling_v1_api.py | 1340 +- .../{apis => api}/autoscaling_v2beta1_api.py | 1340 +- .../{apis => api}/autoscaling_v2beta2_api.py | 1340 +- kubernetes/client/api/batch_api.py | 121 + .../client/{apis => api}/batch_v1_api.py | 1340 +- .../client/{apis => api}/batch_v1beta1_api.py | 1340 +- .../{apis => api}/batch_v2alpha1_api.py | 1340 +- kubernetes/client/api/certificates_api.py | 121 + .../{apis => api}/certificates_v1beta1_api.py | 1244 +- kubernetes/client/api/coordination_api.py | 121 + .../{apis => api}/coordination_v1_api.py | 1013 +- .../{apis => api}/coordination_v1beta1_api.py | 1013 +- kubernetes/client/api/core_api.py | 121 + .../client/{apis => api}/core_v1_api.py | 21443 ++++++++-------- .../{apis => api}/custom_objects_api.py | 2995 ++- kubernetes/client/api/events_api.py | 121 + .../{apis => api}/events_v1beta1_api.py | 1013 +- kubernetes/client/api/extensions_api.py | 121 + .../{apis => api}/extensions_v1beta1_api.py | 7852 +++--- kubernetes/client/{apis => api}/logs_api.py | 149 +- kubernetes/client/api/networking_api.py | 121 + .../client/{apis => api}/networking_v1_api.py | 1013 +- .../{apis => api}/networking_v1beta1_api.py | 1340 +- kubernetes/client/api/node_api.py | 121 + .../client/{apis => api}/node_v1alpha1_api.py | 841 +- .../client/{apis => api}/node_v1beta1_api.py | 841 +- kubernetes/client/api/policy_api.py | 121 + .../{apis => api}/policy_v1beta1_api.py | 2090 +- .../client/api/rbac_authorization_api.py | 121 + .../rbac_authorization_v1_api.py | 3403 +-- .../rbac_authorization_v1alpha1_api.py | 3403 +-- .../rbac_authorization_v1beta1_api.py | 3403 +-- kubernetes/client/api/scheduling_api.py | 121 + .../client/{apis => api}/scheduling_v1_api.py | 841 +- .../{apis => api}/scheduling_v1alpha1_api.py | 841 +- .../{apis => api}/scheduling_v1beta1_api.py | 841 +- kubernetes/client/api/settings_api.py | 121 + .../{apis => api}/settings_v1alpha1_api.py | 1013 +- kubernetes/client/api/storage_api.py | 121 + .../client/{apis => api}/storage_v1_api.py | 1891 +- .../{apis => api}/storage_v1alpha1_api.py | 841 +- .../{apis => api}/storage_v1beta1_api.py | 3091 +-- kubernetes/client/api/version_api.py | 121 + kubernetes/client/api_client.py | 245 +- kubernetes/client/apis/__init__.py | 67 - .../client/apis/admissionregistration_api.py | 124 - kubernetes/client/apis/apiextensions_api.py | 124 - kubernetes/client/apis/apiregistration_api.py | 124 - kubernetes/client/apis/apis_api.py | 124 - kubernetes/client/apis/apps_api.py | 124 - .../client/apis/auditregistration_api.py | 124 - kubernetes/client/apis/authentication_api.py | 124 - kubernetes/client/apis/authorization_api.py | 124 - kubernetes/client/apis/autoscaling_api.py | 124 - kubernetes/client/apis/batch_api.py | 124 - kubernetes/client/apis/certificates_api.py | 124 - kubernetes/client/apis/coordination_api.py | 124 - kubernetes/client/apis/core_api.py | 124 - kubernetes/client/apis/events_api.py | 124 - kubernetes/client/apis/extensions_api.py | 124 - kubernetes/client/apis/networking_api.py | 124 - kubernetes/client/apis/node_api.py | 124 - kubernetes/client/apis/policy_api.py | 124 - .../client/apis/rbac_authorization_api.py | 124 - kubernetes/client/apis/scheduling_api.py | 124 - kubernetes/client/apis/settings_api.py | 124 - kubernetes/client/apis/storage_api.py | 124 - kubernetes/client/apis/version_api.py | 124 - kubernetes/client/configuration.py | 113 +- kubernetes/client/models/__init__.py | 1212 +- ...nregistration_v1beta1_service_reference.py | 138 +- ...istration_v1beta1_webhook_client_config.py | 110 +- ...apiextensions_v1beta1_service_reference.py | 138 +- ...xtensions_v1beta1_webhook_client_config.py | 110 +- ...iregistration_v1beta1_service_reference.py | 120 +- .../client/models/apps_v1beta1_deployment.py | 138 +- .../apps_v1beta1_deployment_condition.py | 162 +- .../models/apps_v1beta1_deployment_list.py | 124 +- .../apps_v1beta1_deployment_rollback.py | 142 +- .../models/apps_v1beta1_deployment_spec.py | 208 +- .../models/apps_v1beta1_deployment_status.py | 198 +- .../apps_v1beta1_deployment_strategy.py | 88 +- .../models/apps_v1beta1_rollback_config.py | 72 +- .../apps_v1beta1_rolling_update_deployment.py | 90 +- .../client/models/apps_v1beta1_scale.py | 138 +- .../client/models/apps_v1beta1_scale_spec.py | 72 +- .../models/apps_v1beta1_scale_status.py | 108 +- .../extensions_v1beta1_allowed_csi_driver.py | 72 +- .../extensions_v1beta1_allowed_flex_volume.py | 72 +- .../extensions_v1beta1_allowed_host_path.py | 90 +- .../models/extensions_v1beta1_deployment.py | 138 +- ...extensions_v1beta1_deployment_condition.py | 162 +- .../extensions_v1beta1_deployment_list.py | 124 +- .../extensions_v1beta1_deployment_rollback.py | 142 +- .../extensions_v1beta1_deployment_spec.py | 208 +- .../extensions_v1beta1_deployment_status.py | 198 +- .../extensions_v1beta1_deployment_strategy.py | 88 +- ...sions_v1beta1_fs_group_strategy_options.py | 90 +- .../extensions_v1beta1_host_port_range.py | 90 +- .../extensions_v1beta1_http_ingress_path.py | 88 +- ...ensions_v1beta1_http_ingress_rule_value.py | 72 +- .../models/extensions_v1beta1_id_range.py | 90 +- .../models/extensions_v1beta1_ingress.py | 138 +- .../extensions_v1beta1_ingress_backend.py | 90 +- .../models/extensions_v1beta1_ingress_list.py | 124 +- .../models/extensions_v1beta1_ingress_rule.py | 86 +- .../models/extensions_v1beta1_ingress_spec.py | 106 +- .../extensions_v1beta1_ingress_status.py | 70 +- .../models/extensions_v1beta1_ingress_tls.py | 90 +- .../extensions_v1beta1_pod_security_policy.py | 122 +- ...nsions_v1beta1_pod_security_policy_list.py | 124 +- ...nsions_v1beta1_pod_security_policy_spec.py | 484 +- .../extensions_v1beta1_rollback_config.py | 72 +- ...sions_v1beta1_rolling_update_deployment.py | 90 +- ...s_v1beta1_run_as_group_strategy_options.py | 90 +- ...ns_v1beta1_run_as_user_strategy_options.py | 90 +- ..._v1beta1_runtime_class_strategy_options.py | 143 + .../client/models/extensions_v1beta1_scale.py | 138 +- .../models/extensions_v1beta1_scale_spec.py | 72 +- .../models/extensions_v1beta1_scale_status.py | 108 +- ...sions_v1beta1_se_linux_strategy_options.py | 88 +- ...a1_supplemental_groups_strategy_options.py | 90 +- .../networking_v1beta1_http_ingress_path.py | 88 +- ...working_v1beta1_http_ingress_rule_value.py | 72 +- .../models/networking_v1beta1_ingress.py | 138 +- .../networking_v1beta1_ingress_backend.py | 90 +- .../models/networking_v1beta1_ingress_list.py | 124 +- .../models/networking_v1beta1_ingress_rule.py | 86 +- .../models/networking_v1beta1_ingress_spec.py | 106 +- .../networking_v1beta1_ingress_status.py | 70 +- .../models/networking_v1beta1_ingress_tls.py | 90 +- .../policy_v1beta1_allowed_csi_driver.py | 72 +- .../policy_v1beta1_allowed_flex_volume.py | 72 +- .../policy_v1beta1_allowed_host_path.py | 90 +- ...olicy_v1beta1_fs_group_strategy_options.py | 90 +- .../models/policy_v1beta1_host_port_range.py | 90 +- .../client/models/policy_v1beta1_id_range.py | 90 +- .../policy_v1beta1_pod_security_policy.py | 122 +- ...policy_v1beta1_pod_security_policy_list.py | 124 +- ...policy_v1beta1_pod_security_policy_spec.py | 484 +- ...y_v1beta1_run_as_group_strategy_options.py | 90 +- ...cy_v1beta1_run_as_user_strategy_options.py | 90 +- ..._v1beta1_runtime_class_strategy_options.py | 143 + ...olicy_v1beta1_se_linux_strategy_options.py | 88 +- ...a1_supplemental_groups_strategy_options.py | 90 +- .../client/models/runtime_raw_extension.py | 76 +- kubernetes/client/models/v1_affinity.py | 102 +- .../client/models/v1_aggregation_rule.py | 72 +- kubernetes/client/models/v1_api_group.py | 160 +- kubernetes/client/models/v1_api_group_list.py | 108 +- kubernetes/client/models/v1_api_resource.py | 234 +- .../client/models/v1_api_resource_list.py | 126 +- kubernetes/client/models/v1_api_service.py | 136 +- .../client/models/v1_api_service_condition.py | 144 +- .../client/models/v1_api_service_list.py | 118 +- .../client/models/v1_api_service_spec.py | 182 +- .../client/models/v1_api_service_status.py | 72 +- kubernetes/client/models/v1_api_versions.py | 126 +- .../client/models/v1_attached_volume.py | 90 +- ...1_aws_elastic_block_store_volume_source.py | 126 +- .../models/v1_azure_disk_volume_source.py | 162 +- .../v1_azure_file_persistent_volume_source.py | 126 +- .../models/v1_azure_file_volume_source.py | 108 +- kubernetes/client/models/v1_binding.py | 122 +- kubernetes/client/models/v1_capabilities.py | 90 +- .../v1_ceph_fs_persistent_volume_source.py | 160 +- .../client/models/v1_ceph_fs_volume_source.py | 160 +- .../v1_cinder_persistent_volume_source.py | 124 +- .../client/models/v1_cinder_volume_source.py | 124 +- .../client/models/v1_client_ip_config.py | 72 +- kubernetes/client/models/v1_cluster_role.py | 140 +- .../client/models/v1_cluster_role_binding.py | 140 +- .../models/v1_cluster_role_binding_list.py | 124 +- .../client/models/v1_cluster_role_list.py | 124 +- .../client/models/v1_component_condition.py | 126 +- .../client/models/v1_component_status.py | 124 +- .../client/models/v1_component_status_list.py | 124 +- kubernetes/client/models/v1_config_map.py | 142 +- .../client/models/v1_config_map_env_source.py | 90 +- .../models/v1_config_map_key_selector.py | 108 +- .../client/models/v1_config_map_list.py | 124 +- .../v1_config_map_node_config_source.py | 144 +- .../client/models/v1_config_map_projection.py | 108 +- .../models/v1_config_map_volume_source.py | 126 +- kubernetes/client/models/v1_container.py | 422 +- .../client/models/v1_container_image.py | 90 +- kubernetes/client/models/v1_container_port.py | 144 +- .../client/models/v1_container_state.py | 102 +- .../models/v1_container_state_running.py | 72 +- .../models/v1_container_state_terminated.py | 180 +- .../models/v1_container_state_waiting.py | 90 +- .../client/models/v1_container_status.py | 194 +- .../client/models/v1_controller_revision.py | 140 +- .../models/v1_controller_revision_list.py | 124 +- .../v1_cross_version_object_reference.py | 108 +- .../models/v1_csi_persistent_volume_source.py | 218 +- .../client/models/v1_csi_volume_source.py | 142 +- .../client/models/v1_daemon_endpoint.py | 72 +- kubernetes/client/models/v1_daemon_set.py | 138 +- .../client/models/v1_daemon_set_condition.py | 144 +- .../client/models/v1_daemon_set_list.py | 124 +- .../client/models/v1_daemon_set_spec.py | 138 +- .../client/models/v1_daemon_set_status.py | 234 +- .../models/v1_daemon_set_update_strategy.py | 88 +- kubernetes/client/models/v1_delete_options.py | 178 +- kubernetes/client/models/v1_deployment.py | 138 +- .../client/models/v1_deployment_condition.py | 162 +- .../client/models/v1_deployment_list.py | 124 +- .../client/models/v1_deployment_spec.py | 192 +- .../client/models/v1_deployment_status.py | 198 +- .../client/models/v1_deployment_strategy.py | 88 +- .../models/v1_downward_api_projection.py | 72 +- .../models/v1_downward_api_volume_file.py | 122 +- .../models/v1_downward_api_volume_source.py | 90 +- .../models/v1_empty_dir_volume_source.py | 90 +- .../client/models/v1_endpoint_address.py | 124 +- kubernetes/client/models/v1_endpoint_port.py | 108 +- .../client/models/v1_endpoint_subset.py | 108 +- kubernetes/client/models/v1_endpoints.py | 124 +- kubernetes/client/models/v1_endpoints_list.py | 124 +- .../client/models/v1_env_from_source.py | 104 +- kubernetes/client/models/v1_env_var.py | 106 +- kubernetes/client/models/v1_env_var_source.py | 118 +- kubernetes/client/models/v1_event.py | 350 +- kubernetes/client/models/v1_event_list.py | 124 +- kubernetes/client/models/v1_event_series.py | 108 +- kubernetes/client/models/v1_event_source.py | 90 +- kubernetes/client/models/v1_exec_action.py | 72 +- .../client/models/v1_fc_volume_source.py | 144 +- .../v1_flex_persistent_volume_source.py | 142 +- .../client/models/v1_flex_volume_source.py | 142 +- .../client/models/v1_flocker_volume_source.py | 90 +- .../v1_gce_persistent_disk_volume_source.py | 126 +- .../models/v1_git_repo_volume_source.py | 108 +- .../v1_glusterfs_persistent_volume_source.py | 126 +- .../models/v1_glusterfs_volume_source.py | 108 +- .../models/v1_group_version_for_discovery.py | 90 +- kubernetes/client/models/v1_handler.py | 102 +- .../models/v1_horizontal_pod_autoscaler.py | 138 +- .../v1_horizontal_pod_autoscaler_list.py | 124 +- .../v1_horizontal_pod_autoscaler_spec.py | 124 +- .../v1_horizontal_pod_autoscaler_status.py | 144 +- kubernetes/client/models/v1_host_alias.py | 90 +- .../models/v1_host_path_volume_source.py | 90 +- .../client/models/v1_http_get_action.py | 144 +- kubernetes/client/models/v1_http_header.py | 90 +- kubernetes/client/models/v1_initializer.py | 72 +- kubernetes/client/models/v1_initializers.py | 88 +- kubernetes/client/models/v1_ip_block.py | 90 +- .../v1_iscsi_persistent_volume_source.py | 250 +- .../client/models/v1_iscsi_volume_source.py | 250 +- kubernetes/client/models/v1_job.py | 138 +- kubernetes/client/models/v1_job_condition.py | 162 +- kubernetes/client/models/v1_job_list.py | 124 +- kubernetes/client/models/v1_job_spec.py | 194 +- kubernetes/client/models/v1_job_status.py | 162 +- kubernetes/client/models/v1_key_to_path.py | 108 +- kubernetes/client/models/v1_label_selector.py | 90 +- .../models/v1_label_selector_requirement.py | 108 +- kubernetes/client/models/v1_lease.py | 122 +- kubernetes/client/models/v1_lease_list.py | 124 +- kubernetes/client/models/v1_lease_spec.py | 144 +- kubernetes/client/models/v1_lifecycle.py | 86 +- kubernetes/client/models/v1_limit_range.py | 122 +- .../client/models/v1_limit_range_item.py | 162 +- .../client/models/v1_limit_range_list.py | 124 +- .../client/models/v1_limit_range_spec.py | 72 +- kubernetes/client/models/v1_list_meta.py | 136 +- .../client/models/v1_load_balancer_ingress.py | 90 +- .../client/models/v1_load_balancer_status.py | 72 +- .../models/v1_local_object_reference.py | 72 +- .../models/v1_local_subject_access_review.py | 136 +- .../client/models/v1_local_volume_source.py | 90 +- .../client/models/v1_managed_fields_entry.py | 144 +- kubernetes/client/models/v1_namespace.py | 138 +- kubernetes/client/models/v1_namespace_list.py | 124 +- kubernetes/client/models/v1_namespace_spec.py | 72 +- .../client/models/v1_namespace_status.py | 72 +- kubernetes/client/models/v1_network_policy.py | 122 +- .../models/v1_network_policy_egress_rule.py | 90 +- .../models/v1_network_policy_ingress_rule.py | 90 +- .../client/models/v1_network_policy_list.py | 124 +- .../client/models/v1_network_policy_peer.py | 102 +- .../client/models/v1_network_policy_port.py | 90 +- .../client/models/v1_network_policy_spec.py | 124 +- .../client/models/v1_nfs_volume_source.py | 108 +- kubernetes/client/models/v1_node.py | 138 +- kubernetes/client/models/v1_node_address.py | 90 +- kubernetes/client/models/v1_node_affinity.py | 88 +- kubernetes/client/models/v1_node_condition.py | 162 +- .../client/models/v1_node_config_source.py | 70 +- .../client/models/v1_node_config_status.py | 120 +- .../client/models/v1_node_daemon_endpoints.py | 70 +- kubernetes/client/models/v1_node_list.py | 124 +- kubernetes/client/models/v1_node_selector.py | 72 +- .../models/v1_node_selector_requirement.py | 108 +- .../client/models/v1_node_selector_term.py | 90 +- kubernetes/client/models/v1_node_spec.py | 160 +- kubernetes/client/models/v1_node_status.py | 246 +- .../client/models/v1_node_system_info.py | 234 +- .../models/v1_non_resource_attributes.py | 90 +- .../client/models/v1_non_resource_rule.py | 90 +- .../client/models/v1_object_field_selector.py | 90 +- kubernetes/client/models/v1_object_meta.py | 358 +- .../client/models/v1_object_reference.py | 180 +- .../client/models/v1_owner_reference.py | 162 +- .../client/models/v1_persistent_volume.py | 138 +- .../models/v1_persistent_volume_claim.py | 138 +- .../v1_persistent_volume_claim_condition.py | 154 +- .../models/v1_persistent_volume_claim_list.py | 124 +- .../models/v1_persistent_volume_claim_spec.py | 174 +- .../v1_persistent_volume_claim_status.py | 126 +- ...1_persistent_volume_claim_volume_source.py | 90 +- .../models/v1_persistent_volume_list.py | 124 +- .../models/v1_persistent_volume_spec.py | 546 +- .../models/v1_persistent_volume_status.py | 108 +- ...v1_photon_persistent_disk_volume_source.py | 90 +- kubernetes/client/models/v1_pod.py | 138 +- kubernetes/client/models/v1_pod_affinity.py | 90 +- .../client/models/v1_pod_affinity_term.py | 106 +- .../client/models/v1_pod_anti_affinity.py | 90 +- kubernetes/client/models/v1_pod_condition.py | 162 +- kubernetes/client/models/v1_pod_dns_config.py | 108 +- .../client/models/v1_pod_dns_config_option.py | 86 +- kubernetes/client/models/v1_pod_list.py | 124 +- .../client/models/v1_pod_readiness_gate.py | 72 +- .../client/models/v1_pod_security_context.py | 206 +- kubernetes/client/models/v1_pod_spec.py | 616 +- kubernetes/client/models/v1_pod_status.py | 252 +- kubernetes/client/models/v1_pod_template.py | 122 +- .../client/models/v1_pod_template_list.py | 124 +- .../client/models/v1_pod_template_spec.py | 86 +- kubernetes/client/models/v1_policy_rule.py | 144 +- .../models/v1_portworx_volume_source.py | 108 +- kubernetes/client/models/v1_preconditions.py | 90 +- .../models/v1_preferred_scheduling_term.py | 88 +- kubernetes/client/models/v1_priority_class.py | 188 +- .../client/models/v1_priority_class_list.py | 124 +- kubernetes/client/models/v1_probe.py | 192 +- .../models/v1_projected_volume_source.py | 90 +- .../client/models/v1_quobyte_volume_source.py | 162 +- .../models/v1_rbd_persistent_volume_source.py | 196 +- .../client/models/v1_rbd_volume_source.py | 196 +- kubernetes/client/models/v1_replica_set.py | 138 +- .../client/models/v1_replica_set_condition.py | 144 +- .../client/models/v1_replica_set_list.py | 124 +- .../client/models/v1_replica_set_spec.py | 122 +- .../client/models/v1_replica_set_status.py | 162 +- .../models/v1_replication_controller.py | 138 +- .../v1_replication_controller_condition.py | 144 +- .../models/v1_replication_controller_list.py | 124 +- .../models/v1_replication_controller_spec.py | 124 +- .../v1_replication_controller_status.py | 162 +- .../client/models/v1_resource_attributes.py | 180 +- .../models/v1_resource_field_selector.py | 108 +- kubernetes/client/models/v1_resource_quota.py | 138 +- .../client/models/v1_resource_quota_list.py | 124 +- .../client/models/v1_resource_quota_spec.py | 106 +- .../client/models/v1_resource_quota_status.py | 90 +- .../client/models/v1_resource_requirements.py | 90 +- kubernetes/client/models/v1_resource_rule.py | 126 +- kubernetes/client/models/v1_role.py | 124 +- kubernetes/client/models/v1_role_binding.py | 140 +- .../client/models/v1_role_binding_list.py | 124 +- kubernetes/client/models/v1_role_list.py | 124 +- kubernetes/client/models/v1_role_ref.py | 108 +- .../models/v1_rolling_update_daemon_set.py | 72 +- .../models/v1_rolling_update_deployment.py | 90 +- ...v1_rolling_update_stateful_set_strategy.py | 72 +- kubernetes/client/models/v1_scale.py | 138 +- .../v1_scale_io_persistent_volume_source.py | 232 +- .../models/v1_scale_io_volume_source.py | 232 +- kubernetes/client/models/v1_scale_spec.py | 72 +- kubernetes/client/models/v1_scale_status.py | 90 +- kubernetes/client/models/v1_scope_selector.py | 72 +- ...v1_scoped_resource_selector_requirement.py | 108 +- .../client/models/v1_se_linux_options.py | 126 +- kubernetes/client/models/v1_secret.py | 160 +- .../client/models/v1_secret_env_source.py | 90 +- .../client/models/v1_secret_key_selector.py | 108 +- kubernetes/client/models/v1_secret_list.py | 124 +- .../client/models/v1_secret_projection.py | 108 +- .../client/models/v1_secret_reference.py | 90 +- .../client/models/v1_secret_volume_source.py | 126 +- .../client/models/v1_security_context.py | 240 +- .../models/v1_self_subject_access_review.py | 136 +- .../v1_self_subject_access_review_spec.py | 86 +- .../models/v1_self_subject_rules_review.py | 136 +- .../v1_self_subject_rules_review_spec.py | 72 +- .../v1_server_address_by_client_cidr.py | 90 +- kubernetes/client/models/v1_service.py | 138 +- .../client/models/v1_service_account.py | 160 +- .../client/models/v1_service_account_list.py | 124 +- .../v1_service_account_token_projection.py | 108 +- kubernetes/client/models/v1_service_list.py | 124 +- kubernetes/client/models/v1_service_port.py | 144 +- .../client/models/v1_service_reference.py | 120 +- kubernetes/client/models/v1_service_spec.py | 286 +- kubernetes/client/models/v1_service_status.py | 70 +- .../models/v1_session_affinity_config.py | 70 +- kubernetes/client/models/v1_stateful_set.py | 136 +- .../models/v1_stateful_set_condition.py | 144 +- .../client/models/v1_stateful_set_list.py | 118 +- .../client/models/v1_stateful_set_spec.py | 192 +- .../client/models/v1_stateful_set_status.py | 216 +- .../models/v1_stateful_set_update_strategy.py | 88 +- kubernetes/client/models/v1_status.py | 194 +- kubernetes/client/models/v1_status_cause.py | 108 +- kubernetes/client/models/v1_status_details.py | 162 +- kubernetes/client/models/v1_storage_class.py | 232 +- .../client/models/v1_storage_class_list.py | 124 +- .../v1_storage_os_persistent_volume_source.py | 142 +- .../models/v1_storage_os_volume_source.py | 142 +- kubernetes/client/models/v1_subject.py | 126 +- .../client/models/v1_subject_access_review.py | 136 +- .../models/v1_subject_access_review_spec.py | 158 +- .../models/v1_subject_access_review_status.py | 126 +- .../models/v1_subject_rules_review_status.py | 126 +- kubernetes/client/models/v1_sysctl.py | 90 +- kubernetes/client/models/v1_taint.py | 126 +- .../client/models/v1_tcp_socket_action.py | 90 +- kubernetes/client/models/v1_token_review.py | 136 +- .../client/models/v1_token_review_spec.py | 90 +- .../client/models/v1_token_review_status.py | 124 +- kubernetes/client/models/v1_toleration.py | 144 +- .../v1_topology_selector_label_requirement.py | 90 +- .../models/v1_topology_selector_term.py | 72 +- .../models/v1_typed_local_object_reference.py | 108 +- kubernetes/client/models/v1_user_info.py | 126 +- kubernetes/client/models/v1_volume.py | 520 +- .../client/models/v1_volume_attachment.py | 138 +- .../models/v1_volume_attachment_list.py | 124 +- .../models/v1_volume_attachment_source.py | 98 +- .../models/v1_volume_attachment_spec.py | 106 +- .../models/v1_volume_attachment_status.py | 122 +- kubernetes/client/models/v1_volume_device.py | 90 +- kubernetes/client/models/v1_volume_error.py | 90 +- kubernetes/client/models/v1_volume_mount.py | 162 +- .../client/models/v1_volume_node_affinity.py | 70 +- .../client/models/v1_volume_projection.py | 118 +- .../v1_vsphere_virtual_disk_volume_source.py | 126 +- kubernetes/client/models/v1_watch_event.py | 84 +- .../models/v1_weighted_pod_affinity_term.py | 88 +- .../v1_windows_security_context_options.py | 142 + .../models/v1alpha1_aggregation_rule.py | 72 +- .../client/models/v1alpha1_audit_sink.py | 120 +- .../client/models/v1alpha1_audit_sink_list.py | 122 +- .../client/models/v1alpha1_audit_sink_spec.py | 86 +- .../client/models/v1alpha1_cluster_role.py | 140 +- .../models/v1alpha1_cluster_role_binding.py | 140 +- .../v1alpha1_cluster_role_binding_list.py | 124 +- .../models/v1alpha1_cluster_role_list.py | 124 +- .../client/models/v1alpha1_pod_preset.py | 118 +- .../client/models/v1alpha1_pod_preset_list.py | 124 +- .../client/models/v1alpha1_pod_preset_spec.py | 142 +- kubernetes/client/models/v1alpha1_policy.py | 90 +- .../client/models/v1alpha1_policy_rule.py | 144 +- .../client/models/v1alpha1_priority_class.py | 188 +- .../models/v1alpha1_priority_class_list.py | 124 +- kubernetes/client/models/v1alpha1_role.py | 124 +- .../client/models/v1alpha1_role_binding.py | 140 +- .../models/v1alpha1_role_binding_list.py | 124 +- .../client/models/v1alpha1_role_list.py | 124 +- kubernetes/client/models/v1alpha1_role_ref.py | 108 +- .../client/models/v1alpha1_runtime_class.py | 122 +- .../models/v1alpha1_runtime_class_list.py | 124 +- .../models/v1alpha1_runtime_class_spec.py | 72 +- .../models/v1alpha1_service_reference.py | 138 +- kubernetes/client/models/v1alpha1_subject.py | 126 +- .../models/v1alpha1_volume_attachment.py | 138 +- .../models/v1alpha1_volume_attachment_list.py | 124 +- .../v1alpha1_volume_attachment_source.py | 98 +- .../models/v1alpha1_volume_attachment_spec.py | 106 +- .../v1alpha1_volume_attachment_status.py | 122 +- .../client/models/v1alpha1_volume_error.py | 90 +- kubernetes/client/models/v1alpha1_webhook.py | 86 +- .../models/v1alpha1_webhook_client_config.py | 110 +- .../v1alpha1_webhook_throttle_config.py | 90 +- .../client/models/v1beta1_aggregation_rule.py | 72 +- .../client/models/v1beta1_api_service.py | 136 +- .../models/v1beta1_api_service_condition.py | 144 +- .../client/models/v1beta1_api_service_list.py | 118 +- .../client/models/v1beta1_api_service_spec.py | 182 +- .../models/v1beta1_api_service_status.py | 72 +- .../v1beta1_certificate_signing_request.py | 136 +- ...1_certificate_signing_request_condition.py | 126 +- ...1beta1_certificate_signing_request_list.py | 118 +- ...1beta1_certificate_signing_request_spec.py | 166 +- ...eta1_certificate_signing_request_status.py | 94 +- .../client/models/v1beta1_cluster_role.py | 140 +- .../models/v1beta1_cluster_role_binding.py | 140 +- .../v1beta1_cluster_role_binding_list.py | 124 +- .../models/v1beta1_cluster_role_list.py | 124 +- .../models/v1beta1_controller_revision.py | 140 +- .../v1beta1_controller_revision_list.py | 124 +- kubernetes/client/models/v1beta1_cron_job.py | 138 +- .../client/models/v1beta1_cron_job_list.py | 124 +- .../client/models/v1beta1_cron_job_spec.py | 178 +- .../client/models/v1beta1_cron_job_status.py | 90 +- .../client/models/v1beta1_csi_driver.py | 122 +- .../client/models/v1beta1_csi_driver_list.py | 124 +- .../client/models/v1beta1_csi_driver_spec.py | 90 +- kubernetes/client/models/v1beta1_csi_node.py | 122 +- .../client/models/v1beta1_csi_node_driver.py | 108 +- .../client/models/v1beta1_csi_node_list.py | 124 +- .../client/models/v1beta1_csi_node_spec.py | 72 +- ...beta1_custom_resource_column_definition.py | 162 +- .../v1beta1_custom_resource_conversion.py | 106 +- .../v1beta1_custom_resource_definition.py | 136 +- ...a1_custom_resource_definition_condition.py | 144 +- ...v1beta1_custom_resource_definition_list.py | 122 +- ...1beta1_custom_resource_definition_names.py | 162 +- ...v1beta1_custom_resource_definition_spec.py | 236 +- ...beta1_custom_resource_definition_status.py | 106 +- ...eta1_custom_resource_definition_version.py | 158 +- ...beta1_custom_resource_subresource_scale.py | 108 +- .../v1beta1_custom_resource_subresources.py | 88 +- .../v1beta1_custom_resource_validation.py | 70 +- .../client/models/v1beta1_daemon_set.py | 138 +- .../models/v1beta1_daemon_set_condition.py | 144 +- .../client/models/v1beta1_daemon_set_list.py | 124 +- .../client/models/v1beta1_daemon_set_spec.py | 156 +- .../models/v1beta1_daemon_set_status.py | 234 +- .../v1beta1_daemon_set_update_strategy.py | 88 +- kubernetes/client/models/v1beta1_event.py | 348 +- .../client/models/v1beta1_event_list.py | 124 +- .../client/models/v1beta1_event_series.py | 108 +- kubernetes/client/models/v1beta1_eviction.py | 122 +- .../models/v1beta1_external_documentation.py | 82 +- kubernetes/client/models/v1beta1_ip_block.py | 90 +- .../models/v1beta1_job_template_spec.py | 86 +- .../models/v1beta1_json_schema_props.py | 678 +- kubernetes/client/models/v1beta1_lease.py | 122 +- .../client/models/v1beta1_lease_list.py | 124 +- .../client/models/v1beta1_lease_spec.py | 144 +- .../v1beta1_local_subject_access_review.py | 136 +- .../client/models/v1beta1_mutating_webhook.py | 390 + .../v1beta1_mutating_webhook_configuration.py | 130 +- ...ta1_mutating_webhook_configuration_list.py | 124 +- .../client/models/v1beta1_network_policy.py | 122 +- .../v1beta1_network_policy_egress_rule.py | 90 +- .../v1beta1_network_policy_ingress_rule.py | 90 +- .../models/v1beta1_network_policy_list.py | 124 +- .../models/v1beta1_network_policy_peer.py | 102 +- .../models/v1beta1_network_policy_port.py | 90 +- .../models/v1beta1_network_policy_spec.py | 124 +- .../models/v1beta1_non_resource_attributes.py | 90 +- .../models/v1beta1_non_resource_rule.py | 90 +- .../models/v1beta1_pod_disruption_budget.py | 136 +- .../v1beta1_pod_disruption_budget_list.py | 118 +- .../v1beta1_pod_disruption_budget_spec.py | 106 +- .../v1beta1_pod_disruption_budget_status.py | 162 +- .../client/models/v1beta1_policy_rule.py | 144 +- .../client/models/v1beta1_priority_class.py | 188 +- .../models/v1beta1_priority_class_list.py | 124 +- .../client/models/v1beta1_replica_set.py | 138 +- .../models/v1beta1_replica_set_condition.py | 144 +- .../client/models/v1beta1_replica_set_list.py | 124 +- .../client/models/v1beta1_replica_set_spec.py | 122 +- .../models/v1beta1_replica_set_status.py | 162 +- .../models/v1beta1_resource_attributes.py | 180 +- .../client/models/v1beta1_resource_rule.py | 126 +- kubernetes/client/models/v1beta1_role.py | 124 +- .../client/models/v1beta1_role_binding.py | 140 +- .../models/v1beta1_role_binding_list.py | 124 +- kubernetes/client/models/v1beta1_role_list.py | 124 +- kubernetes/client/models/v1beta1_role_ref.py | 108 +- .../v1beta1_rolling_update_daemon_set.py | 72 +- ...a1_rolling_update_stateful_set_strategy.py | 72 +- .../models/v1beta1_rule_with_operations.py | 144 +- .../client/models/v1beta1_runtime_class.py | 124 +- .../models/v1beta1_runtime_class_list.py | 124 +- .../v1beta1_self_subject_access_review.py | 136 +- ...v1beta1_self_subject_access_review_spec.py | 86 +- .../v1beta1_self_subject_rules_review.py | 136 +- .../v1beta1_self_subject_rules_review_spec.py | 72 +- .../client/models/v1beta1_stateful_set.py | 136 +- .../models/v1beta1_stateful_set_condition.py | 144 +- .../models/v1beta1_stateful_set_list.py | 118 +- .../models/v1beta1_stateful_set_spec.py | 192 +- .../models/v1beta1_stateful_set_status.py | 216 +- .../v1beta1_stateful_set_update_strategy.py | 88 +- .../client/models/v1beta1_storage_class.py | 232 +- .../models/v1beta1_storage_class_list.py | 124 +- kubernetes/client/models/v1beta1_subject.py | 126 +- .../models/v1beta1_subject_access_review.py | 136 +- .../v1beta1_subject_access_review_spec.py | 158 +- .../v1beta1_subject_access_review_status.py | 126 +- .../v1beta1_subject_rules_review_status.py | 126 +- .../client/models/v1beta1_token_review.py | 136 +- .../models/v1beta1_token_review_spec.py | 90 +- .../models/v1beta1_token_review_status.py | 124 +- kubernetes/client/models/v1beta1_user_info.py | 126 +- ...bhook.py => v1beta1_validating_webhook.py} | 252 +- ...1beta1_validating_webhook_configuration.py | 130 +- ...1_validating_webhook_configuration_list.py | 124 +- .../models/v1beta1_volume_attachment.py | 138 +- .../models/v1beta1_volume_attachment_list.py | 124 +- .../v1beta1_volume_attachment_source.py | 98 +- .../models/v1beta1_volume_attachment_spec.py | 106 +- .../v1beta1_volume_attachment_status.py | 122 +- .../client/models/v1beta1_volume_error.py | 90 +- .../models/v1beta2_controller_revision.py | 140 +- .../v1beta2_controller_revision_list.py | 124 +- .../client/models/v1beta2_daemon_set.py | 138 +- .../models/v1beta2_daemon_set_condition.py | 144 +- .../client/models/v1beta2_daemon_set_list.py | 124 +- .../client/models/v1beta2_daemon_set_spec.py | 138 +- .../models/v1beta2_daemon_set_status.py | 234 +- .../v1beta2_daemon_set_update_strategy.py | 88 +- .../client/models/v1beta2_deployment.py | 138 +- .../models/v1beta2_deployment_condition.py | 162 +- .../client/models/v1beta2_deployment_list.py | 124 +- .../client/models/v1beta2_deployment_spec.py | 192 +- .../models/v1beta2_deployment_status.py | 198 +- .../models/v1beta2_deployment_strategy.py | 88 +- .../client/models/v1beta2_replica_set.py | 138 +- .../models/v1beta2_replica_set_condition.py | 144 +- .../client/models/v1beta2_replica_set_list.py | 124 +- .../client/models/v1beta2_replica_set_spec.py | 122 +- .../models/v1beta2_replica_set_status.py | 162 +- .../v1beta2_rolling_update_daemon_set.py | 72 +- .../v1beta2_rolling_update_deployment.py | 90 +- ...a2_rolling_update_stateful_set_strategy.py | 72 +- kubernetes/client/models/v1beta2_scale.py | 138 +- .../client/models/v1beta2_scale_spec.py | 72 +- .../client/models/v1beta2_scale_status.py | 108 +- .../client/models/v1beta2_stateful_set.py | 136 +- .../models/v1beta2_stateful_set_condition.py | 144 +- .../models/v1beta2_stateful_set_list.py | 118 +- .../models/v1beta2_stateful_set_spec.py | 192 +- .../models/v1beta2_stateful_set_status.py | 216 +- .../v1beta2_stateful_set_update_strategy.py | 88 +- kubernetes/client/models/v2alpha1_cron_job.py | 138 +- .../client/models/v2alpha1_cron_job_list.py | 124 +- .../client/models/v2alpha1_cron_job_spec.py | 178 +- .../client/models/v2alpha1_cron_job_status.py | 90 +- .../models/v2alpha1_job_template_spec.py | 86 +- .../v2beta1_cross_version_object_reference.py | 108 +- .../models/v2beta1_external_metric_source.py | 124 +- .../models/v2beta1_external_metric_status.py | 124 +- .../v2beta1_horizontal_pod_autoscaler.py | 138 +- ...ta1_horizontal_pod_autoscaler_condition.py | 144 +- .../v2beta1_horizontal_pod_autoscaler_list.py | 124 +- .../v2beta1_horizontal_pod_autoscaler_spec.py | 124 +- ...2beta1_horizontal_pod_autoscaler_status.py | 162 +- .../client/models/v2beta1_metric_spec.py | 136 +- .../client/models/v2beta1_metric_status.py | 136 +- .../models/v2beta1_object_metric_source.py | 140 +- .../models/v2beta1_object_metric_status.py | 140 +- .../models/v2beta1_pods_metric_source.py | 106 +- .../models/v2beta1_pods_metric_status.py | 106 +- .../models/v2beta1_resource_metric_source.py | 108 +- .../models/v2beta1_resource_metric_status.py | 108 +- .../v2beta2_cross_version_object_reference.py | 108 +- .../models/v2beta2_external_metric_source.py | 86 +- .../models/v2beta2_external_metric_status.py | 86 +- .../v2beta2_horizontal_pod_autoscaler.py | 138 +- ...ta2_horizontal_pod_autoscaler_condition.py | 144 +- .../v2beta2_horizontal_pod_autoscaler_list.py | 124 +- .../v2beta2_horizontal_pod_autoscaler_spec.py | 124 +- ...2beta2_horizontal_pod_autoscaler_status.py | 162 +- .../models/v2beta2_metric_identifier.py | 88 +- .../client/models/v2beta2_metric_spec.py | 136 +- .../client/models/v2beta2_metric_status.py | 136 +- .../client/models/v2beta2_metric_target.py | 126 +- .../models/v2beta2_metric_value_status.py | 108 +- .../models/v2beta2_object_metric_source.py | 100 +- .../models/v2beta2_object_metric_status.py | 100 +- .../models/v2beta2_pods_metric_source.py | 86 +- .../models/v2beta2_pods_metric_status.py | 86 +- .../models/v2beta2_resource_metric_source.py | 88 +- .../models/v2beta2_resource_metric_status.py | 88 +- kubernetes/client/models/version_info.py | 180 +- kubernetes/client/rest.py | 159 +- kubernetes/docs/AdmissionregistrationApi.md | 10 +- .../docs/AdmissionregistrationV1beta1Api.md | 210 +- ...sionregistrationV1beta1ServiceReference.md | 1 + ...nregistrationV1beta1WebhookClientConfig.md | 2 +- kubernetes/docs/ApiextensionsApi.md | 10 +- kubernetes/docs/ApiextensionsV1beta1Api.md | 138 +- .../ApiextensionsV1beta1ServiceReference.md | 1 + ...ApiextensionsV1beta1WebhookClientConfig.md | 2 +- kubernetes/docs/ApiregistrationApi.md | 10 +- kubernetes/docs/ApiregistrationV1Api.md | 138 +- kubernetes/docs/ApiregistrationV1beta1Api.md | 138 +- .../ApiregistrationV1beta1ServiceReference.md | 1 + kubernetes/docs/ApisApi.md | 10 +- kubernetes/docs/AppsApi.md | 10 +- kubernetes/docs/AppsV1Api.md | 786 +- kubernetes/docs/AppsV1beta1Api.md | 478 +- kubernetes/docs/AppsV1beta1Deployment.md | 6 +- kubernetes/docs/AppsV1beta1DeploymentList.md | 2 +- .../docs/AppsV1beta1DeploymentRollback.md | 2 +- kubernetes/docs/AppsV1beta1DeploymentSpec.md | 8 +- .../docs/AppsV1beta1DeploymentStrategy.md | 2 +- .../AppsV1beta1RollingUpdateDeployment.md | 4 +- kubernetes/docs/AppsV1beta1Scale.md | 6 +- kubernetes/docs/AppsV1beta2Api.md | 786 +- kubernetes/docs/AuditregistrationApi.md | 10 +- .../docs/AuditregistrationV1alpha1Api.md | 110 +- kubernetes/docs/AuthenticationApi.md | 10 +- kubernetes/docs/AuthenticationV1Api.md | 18 +- kubernetes/docs/AuthenticationV1beta1Api.md | 18 +- kubernetes/docs/AuthorizationApi.md | 10 +- kubernetes/docs/AuthorizationV1Api.md | 42 +- kubernetes/docs/AuthorizationV1beta1Api.md | 42 +- kubernetes/docs/AutoscalingApi.md | 10 +- kubernetes/docs/AutoscalingV1Api.md | 154 +- kubernetes/docs/AutoscalingV2beta1Api.md | 154 +- kubernetes/docs/AutoscalingV2beta2Api.md | 154 +- kubernetes/docs/BatchApi.md | 10 +- kubernetes/docs/BatchV1Api.md | 154 +- kubernetes/docs/BatchV1beta1Api.md | 154 +- kubernetes/docs/BatchV2alpha1Api.md | 154 +- kubernetes/docs/CertificatesApi.md | 10 +- kubernetes/docs/CertificatesV1beta1Api.md | 146 +- kubernetes/docs/CoordinationApi.md | 10 +- kubernetes/docs/CoordinationV1Api.md | 126 +- kubernetes/docs/CoordinationV1beta1Api.md | 126 +- kubernetes/docs/CoreApi.md | 10 +- kubernetes/docs/CoreV1Api.md | 2388 +- kubernetes/docs/CustomObjectsApi.md | 270 +- kubernetes/docs/EventsApi.md | 10 +- kubernetes/docs/EventsV1beta1Api.md | 126 +- kubernetes/docs/ExtensionsApi.md | 10 +- kubernetes/docs/ExtensionsV1beta1Api.md | 894 +- .../docs/ExtensionsV1beta1Deployment.md | 6 +- .../docs/ExtensionsV1beta1DeploymentList.md | 2 +- .../ExtensionsV1beta1DeploymentRollback.md | 2 +- .../docs/ExtensionsV1beta1DeploymentSpec.md | 8 +- .../ExtensionsV1beta1DeploymentStrategy.md | 2 +- .../docs/ExtensionsV1beta1HTTPIngressPath.md | 2 +- kubernetes/docs/ExtensionsV1beta1Ingress.md | 6 +- .../docs/ExtensionsV1beta1IngressBackend.md | 2 +- .../docs/ExtensionsV1beta1IngressList.md | 2 +- .../docs/ExtensionsV1beta1IngressSpec.md | 2 +- .../docs/ExtensionsV1beta1IngressStatus.md | 2 +- .../ExtensionsV1beta1PodSecurityPolicy.md | 4 +- .../ExtensionsV1beta1PodSecurityPolicyList.md | 2 +- .../ExtensionsV1beta1PodSecurityPolicySpec.md | 13 +- ...xtensionsV1beta1RollingUpdateDeployment.md | 4 +- ...sionsV1beta1RuntimeClassStrategyOptions.md | 11 + ...ExtensionsV1beta1SELinuxStrategyOptions.md | 2 +- kubernetes/docs/ExtensionsV1beta1Scale.md | 6 +- kubernetes/docs/LogsApi.md | 14 +- kubernetes/docs/NetworkingApi.md | 10 +- kubernetes/docs/NetworkingV1Api.md | 126 +- kubernetes/docs/NetworkingV1beta1Api.md | 154 +- .../docs/NetworkingV1beta1HTTPIngressPath.md | 2 +- kubernetes/docs/NetworkingV1beta1Ingress.md | 6 +- .../docs/NetworkingV1beta1IngressBackend.md | 2 +- .../docs/NetworkingV1beta1IngressList.md | 2 +- .../docs/NetworkingV1beta1IngressSpec.md | 2 +- .../docs/NetworkingV1beta1IngressStatus.md | 2 +- kubernetes/docs/NodeApi.md | 10 +- kubernetes/docs/NodeV1alpha1Api.md | 110 +- kubernetes/docs/NodeV1beta1Api.md | 110 +- kubernetes/docs/PolicyApi.md | 10 +- kubernetes/docs/PolicyV1beta1Api.md | 254 +- .../docs/PolicyV1beta1PodSecurityPolicy.md | 4 +- .../PolicyV1beta1PodSecurityPolicyList.md | 2 +- .../PolicyV1beta1PodSecurityPolicySpec.md | 13 +- ...olicyV1beta1RuntimeClassStrategyOptions.md | 11 + .../PolicyV1beta1SELinuxStrategyOptions.md | 2 +- kubernetes/docs/RbacAuthorizationApi.md | 10 +- kubernetes/docs/RbacAuthorizationV1Api.md | 426 +- .../docs/RbacAuthorizationV1alpha1Api.md | 426 +- .../docs/RbacAuthorizationV1beta1Api.md | 426 +- kubernetes/docs/SchedulingApi.md | 10 +- kubernetes/docs/SchedulingV1Api.md | 110 +- kubernetes/docs/SchedulingV1alpha1Api.md | 110 +- kubernetes/docs/SchedulingV1beta1Api.md | 110 +- kubernetes/docs/SettingsApi.md | 10 +- kubernetes/docs/SettingsV1alpha1Api.md | 126 +- kubernetes/docs/StorageApi.md | 10 +- kubernetes/docs/StorageV1Api.md | 238 +- kubernetes/docs/StorageV1alpha1Api.md | 110 +- kubernetes/docs/StorageV1beta1Api.md | 410 +- kubernetes/docs/V1APIGroup.md | 2 +- kubernetes/docs/V1APIService.md | 4 +- kubernetes/docs/V1APIServiceSpec.md | 2 +- kubernetes/docs/V1Affinity.md | 6 +- kubernetes/docs/V1Binding.md | 4 +- .../docs/V1CSIPersistentVolumeSource.md | 7 +- kubernetes/docs/V1CSIVolumeSource.md | 2 +- .../docs/V1CephFSPersistentVolumeSource.md | 2 +- kubernetes/docs/V1CephFSVolumeSource.md | 2 +- .../docs/V1CinderPersistentVolumeSource.md | 2 +- kubernetes/docs/V1CinderVolumeSource.md | 2 +- kubernetes/docs/V1ClusterRole.md | 4 +- kubernetes/docs/V1ClusterRoleBinding.md | 4 +- kubernetes/docs/V1ClusterRoleBindingList.md | 2 +- kubernetes/docs/V1ClusterRoleList.md | 2 +- kubernetes/docs/V1ComponentStatus.md | 2 +- kubernetes/docs/V1ComponentStatusList.md | 2 +- kubernetes/docs/V1ConfigMap.md | 2 +- kubernetes/docs/V1ConfigMapKeySelector.md | 2 +- kubernetes/docs/V1ConfigMapList.md | 2 +- kubernetes/docs/V1ConfigMapProjection.md | 2 +- kubernetes/docs/V1ConfigMapVolumeSource.md | 2 +- kubernetes/docs/V1Container.md | 10 +- kubernetes/docs/V1ContainerState.md | 6 +- kubernetes/docs/V1ContainerStatus.md | 4 +- kubernetes/docs/V1ControllerRevision.md | 4 +- kubernetes/docs/V1ControllerRevisionList.md | 2 +- kubernetes/docs/V1DaemonSet.md | 6 +- kubernetes/docs/V1DaemonSetList.md | 2 +- kubernetes/docs/V1DaemonSetSpec.md | 6 +- kubernetes/docs/V1DaemonSetUpdateStrategy.md | 2 +- kubernetes/docs/V1DeleteOptions.md | 2 +- kubernetes/docs/V1Deployment.md | 6 +- kubernetes/docs/V1DeploymentList.md | 2 +- kubernetes/docs/V1DeploymentSpec.md | 6 +- kubernetes/docs/V1DeploymentStrategy.md | 2 +- kubernetes/docs/V1DownwardAPIVolumeFile.md | 4 +- kubernetes/docs/V1EndpointAddress.md | 2 +- kubernetes/docs/V1Endpoints.md | 2 +- kubernetes/docs/V1EndpointsList.md | 2 +- kubernetes/docs/V1EnvFromSource.md | 4 +- kubernetes/docs/V1EnvVar.md | 2 +- kubernetes/docs/V1EnvVarSource.md | 8 +- kubernetes/docs/V1Event.md | 10 +- kubernetes/docs/V1EventList.md | 2 +- kubernetes/docs/V1EventSeries.md | 2 +- .../docs/V1FlexPersistentVolumeSource.md | 2 +- kubernetes/docs/V1FlexVolumeSource.md | 2 +- kubernetes/docs/V1HTTPGetAction.md | 2 +- kubernetes/docs/V1Handler.md | 6 +- kubernetes/docs/V1HorizontalPodAutoscaler.md | 6 +- .../docs/V1HorizontalPodAutoscalerList.md | 2 +- .../docs/V1HorizontalPodAutoscalerSpec.md | 2 +- .../docs/V1ISCSIPersistentVolumeSource.md | 2 +- kubernetes/docs/V1ISCSIVolumeSource.md | 2 +- kubernetes/docs/V1Initializers.md | 2 +- kubernetes/docs/V1Job.md | 6 +- kubernetes/docs/V1JobList.md | 2 +- kubernetes/docs/V1JobSpec.md | 4 +- kubernetes/docs/V1Lease.md | 4 +- kubernetes/docs/V1LeaseList.md | 2 +- kubernetes/docs/V1Lifecycle.md | 4 +- kubernetes/docs/V1LimitRange.md | 4 +- kubernetes/docs/V1LimitRangeList.md | 2 +- kubernetes/docs/V1ListMeta.md | 1 + kubernetes/docs/V1LocalSubjectAccessReview.md | 4 +- kubernetes/docs/V1ManagedFieldsEntry.md | 2 +- kubernetes/docs/V1Namespace.md | 6 +- kubernetes/docs/V1NamespaceList.md | 2 +- kubernetes/docs/V1NetworkPolicy.md | 4 +- kubernetes/docs/V1NetworkPolicyList.md | 2 +- kubernetes/docs/V1NetworkPolicyPeer.md | 6 +- kubernetes/docs/V1NetworkPolicyPort.md | 2 +- kubernetes/docs/V1NetworkPolicySpec.md | 2 +- kubernetes/docs/V1Node.md | 6 +- kubernetes/docs/V1NodeAffinity.md | 2 +- kubernetes/docs/V1NodeConfigSource.md | 2 +- kubernetes/docs/V1NodeConfigStatus.md | 6 +- kubernetes/docs/V1NodeDaemonEndpoints.md | 2 +- kubernetes/docs/V1NodeList.md | 2 +- kubernetes/docs/V1NodeSpec.md | 2 +- kubernetes/docs/V1NodeStatus.md | 6 +- kubernetes/docs/V1ObjectMeta.md | 2 +- kubernetes/docs/V1PersistentVolume.md | 6 +- kubernetes/docs/V1PersistentVolumeClaim.md | 6 +- .../docs/V1PersistentVolumeClaimList.md | 2 +- .../docs/V1PersistentVolumeClaimSpec.md | 6 +- kubernetes/docs/V1PersistentVolumeList.md | 2 +- kubernetes/docs/V1PersistentVolumeSpec.md | 48 +- kubernetes/docs/V1Pod.md | 6 +- kubernetes/docs/V1PodAffinityTerm.md | 2 +- kubernetes/docs/V1PodList.md | 2 +- kubernetes/docs/V1PodSecurityContext.md | 3 +- kubernetes/docs/V1PodSpec.md | 9 +- kubernetes/docs/V1PodTemplate.md | 4 +- kubernetes/docs/V1PodTemplateList.md | 2 +- kubernetes/docs/V1PodTemplateSpec.md | 4 +- kubernetes/docs/V1PreferredSchedulingTerm.md | 2 +- kubernetes/docs/V1PriorityClass.md | 3 +- kubernetes/docs/V1PriorityClassList.md | 2 +- kubernetes/docs/V1Probe.md | 6 +- .../docs/V1RBDPersistentVolumeSource.md | 2 +- kubernetes/docs/V1RBDVolumeSource.md | 2 +- kubernetes/docs/V1ReplicaSet.md | 6 +- kubernetes/docs/V1ReplicaSetList.md | 2 +- kubernetes/docs/V1ReplicaSetSpec.md | 4 +- kubernetes/docs/V1ReplicationController.md | 6 +- .../docs/V1ReplicationControllerList.md | 2 +- .../docs/V1ReplicationControllerSpec.md | 2 +- kubernetes/docs/V1ResourceQuota.md | 6 +- kubernetes/docs/V1ResourceQuotaList.md | 2 +- kubernetes/docs/V1ResourceQuotaSpec.md | 2 +- kubernetes/docs/V1Role.md | 2 +- kubernetes/docs/V1RoleBinding.md | 4 +- kubernetes/docs/V1RoleBindingList.md | 2 +- kubernetes/docs/V1RoleList.md | 2 +- kubernetes/docs/V1RollingUpdateDaemonSet.md | 2 +- kubernetes/docs/V1RollingUpdateDeployment.md | 4 +- kubernetes/docs/V1Scale.md | 6 +- .../docs/V1ScaleIOPersistentVolumeSource.md | 2 +- kubernetes/docs/V1ScaleIOVolumeSource.md | 2 +- kubernetes/docs/V1Secret.md | 2 +- kubernetes/docs/V1SecretKeySelector.md | 2 +- kubernetes/docs/V1SecretList.md | 2 +- kubernetes/docs/V1SecretVolumeSource.md | 2 +- kubernetes/docs/V1SecurityContext.md | 5 +- kubernetes/docs/V1SelfSubjectAccessReview.md | 4 +- .../docs/V1SelfSubjectAccessReviewSpec.md | 4 +- kubernetes/docs/V1SelfSubjectRulesReview.md | 4 +- kubernetes/docs/V1Service.md | 6 +- kubernetes/docs/V1ServiceAccount.md | 2 +- kubernetes/docs/V1ServiceAccountList.md | 2 +- kubernetes/docs/V1ServiceList.md | 2 +- kubernetes/docs/V1ServicePort.md | 2 +- kubernetes/docs/V1ServiceReference.md | 1 + kubernetes/docs/V1ServiceSpec.md | 2 +- kubernetes/docs/V1ServiceStatus.md | 2 +- kubernetes/docs/V1SessionAffinityConfig.md | 2 +- kubernetes/docs/V1StatefulSet.md | 4 +- kubernetes/docs/V1StatefulSetSpec.md | 6 +- .../docs/V1StatefulSetUpdateStrategy.md | 2 +- kubernetes/docs/V1Status.md | 4 +- kubernetes/docs/V1StorageClass.md | 2 +- kubernetes/docs/V1StorageClassList.md | 2 +- .../docs/V1StorageOSPersistentVolumeSource.md | 2 +- kubernetes/docs/V1StorageOSVolumeSource.md | 2 +- kubernetes/docs/V1SubjectAccessReview.md | 4 +- kubernetes/docs/V1SubjectAccessReviewSpec.md | 4 +- kubernetes/docs/V1TCPSocketAction.md | 2 +- kubernetes/docs/V1TokenReview.md | 4 +- kubernetes/docs/V1TokenReviewStatus.md | 2 +- kubernetes/docs/V1Volume.md | 56 +- kubernetes/docs/V1VolumeAttachment.md | 6 +- kubernetes/docs/V1VolumeAttachmentList.md | 2 +- kubernetes/docs/V1VolumeAttachmentSource.md | 1 + kubernetes/docs/V1VolumeAttachmentSpec.md | 2 +- kubernetes/docs/V1VolumeAttachmentStatus.md | 4 +- kubernetes/docs/V1VolumeMount.md | 2 +- kubernetes/docs/V1VolumeNodeAffinity.md | 2 +- kubernetes/docs/V1VolumeProjection.md | 8 +- kubernetes/docs/V1WatchEvent.md | 2 +- kubernetes/docs/V1WeightedPodAffinityTerm.md | 2 +- .../docs/V1WindowsSecurityContextOptions.md | 11 + kubernetes/docs/V1alpha1AuditSink.md | 2 +- kubernetes/docs/V1alpha1AuditSinkSpec.md | 4 +- kubernetes/docs/V1alpha1ClusterRole.md | 4 +- kubernetes/docs/V1alpha1ClusterRoleBinding.md | 4 +- .../docs/V1alpha1ClusterRoleBindingList.md | 2 +- kubernetes/docs/V1alpha1ClusterRoleList.md | 2 +- kubernetes/docs/V1alpha1PodPresetList.md | 2 +- kubernetes/docs/V1alpha1PodPresetSpec.md | 2 +- kubernetes/docs/V1alpha1PriorityClass.md | 3 +- kubernetes/docs/V1alpha1PriorityClassList.md | 2 +- kubernetes/docs/V1alpha1Role.md | 2 +- kubernetes/docs/V1alpha1RoleBinding.md | 4 +- kubernetes/docs/V1alpha1RoleBindingList.md | 2 +- kubernetes/docs/V1alpha1RoleList.md | 2 +- kubernetes/docs/V1alpha1RuntimeClass.md | 4 +- kubernetes/docs/V1alpha1RuntimeClassList.md | 2 +- kubernetes/docs/V1alpha1ServiceReference.md | 1 + kubernetes/docs/V1alpha1VolumeAttachment.md | 6 +- .../docs/V1alpha1VolumeAttachmentList.md | 2 +- .../docs/V1alpha1VolumeAttachmentSource.md | 1 + .../docs/V1alpha1VolumeAttachmentSpec.md | 2 +- .../docs/V1alpha1VolumeAttachmentStatus.md | 4 +- kubernetes/docs/V1alpha1Webhook.md | 4 +- .../docs/V1alpha1WebhookClientConfig.md | 2 +- kubernetes/docs/V1beta1APIService.md | 4 +- kubernetes/docs/V1beta1APIServiceSpec.md | 2 +- kubernetes/docs/V1beta1CSIDriver.md | 4 +- kubernetes/docs/V1beta1CSIDriverList.md | 2 +- kubernetes/docs/V1beta1CSINode.md | 4 +- kubernetes/docs/V1beta1CSINodeList.md | 2 +- .../docs/V1beta1CertificateSigningRequest.md | 4 +- kubernetes/docs/V1beta1ClusterRole.md | 4 +- kubernetes/docs/V1beta1ClusterRoleBinding.md | 4 +- .../docs/V1beta1ClusterRoleBindingList.md | 2 +- kubernetes/docs/V1beta1ClusterRoleList.md | 2 +- kubernetes/docs/V1beta1ControllerRevision.md | 4 +- .../docs/V1beta1ControllerRevisionList.md | 2 +- kubernetes/docs/V1beta1CronJob.md | 6 +- kubernetes/docs/V1beta1CronJobList.md | 2 +- kubernetes/docs/V1beta1CronJobSpec.md | 2 +- .../docs/V1beta1CustomResourceConversion.md | 4 +- .../docs/V1beta1CustomResourceDefinition.md | 4 +- ...1beta1CustomResourceDefinitionCondition.md | 2 +- .../V1beta1CustomResourceDefinitionSpec.md | 9 +- .../V1beta1CustomResourceDefinitionStatus.md | 2 +- .../V1beta1CustomResourceDefinitionVersion.md | 4 +- .../V1beta1CustomResourceSubresourceScale.md | 2 +- .../docs/V1beta1CustomResourceSubresources.md | 4 +- .../docs/V1beta1CustomResourceValidation.md | 2 +- kubernetes/docs/V1beta1DaemonSet.md | 6 +- kubernetes/docs/V1beta1DaemonSetList.md | 2 +- kubernetes/docs/V1beta1DaemonSetSpec.md | 6 +- .../docs/V1beta1DaemonSetUpdateStrategy.md | 2 +- kubernetes/docs/V1beta1Event.md | 8 +- kubernetes/docs/V1beta1EventList.md | 2 +- kubernetes/docs/V1beta1EventSeries.md | 2 +- kubernetes/docs/V1beta1Eviction.md | 4 +- kubernetes/docs/V1beta1JSONSchemaProps.md | 13 +- kubernetes/docs/V1beta1JobTemplateSpec.md | 4 +- kubernetes/docs/V1beta1Lease.md | 4 +- kubernetes/docs/V1beta1LeaseList.md | 2 +- .../docs/V1beta1LocalSubjectAccessReview.md | 4 +- kubernetes/docs/V1beta1MutatingWebhook.md | 20 + .../V1beta1MutatingWebhookConfiguration.md | 4 +- ...V1beta1MutatingWebhookConfigurationList.md | 2 +- kubernetes/docs/V1beta1NetworkPolicy.md | 4 +- kubernetes/docs/V1beta1NetworkPolicyList.md | 2 +- kubernetes/docs/V1beta1NetworkPolicyPeer.md | 6 +- kubernetes/docs/V1beta1NetworkPolicyPort.md | 2 +- kubernetes/docs/V1beta1NetworkPolicySpec.md | 2 +- kubernetes/docs/V1beta1PodDisruptionBudget.md | 4 +- .../docs/V1beta1PodDisruptionBudgetSpec.md | 6 +- kubernetes/docs/V1beta1PriorityClass.md | 3 +- kubernetes/docs/V1beta1PriorityClassList.md | 2 +- kubernetes/docs/V1beta1ReplicaSet.md | 6 +- kubernetes/docs/V1beta1ReplicaSetList.md | 2 +- kubernetes/docs/V1beta1ReplicaSetSpec.md | 4 +- kubernetes/docs/V1beta1Role.md | 2 +- kubernetes/docs/V1beta1RoleBinding.md | 4 +- kubernetes/docs/V1beta1RoleBindingList.md | 2 +- kubernetes/docs/V1beta1RoleList.md | 2 +- .../docs/V1beta1RollingUpdateDaemonSet.md | 2 +- kubernetes/docs/V1beta1RuntimeClass.md | 2 +- kubernetes/docs/V1beta1RuntimeClassList.md | 2 +- .../docs/V1beta1SelfSubjectAccessReview.md | 4 +- .../V1beta1SelfSubjectAccessReviewSpec.md | 4 +- .../docs/V1beta1SelfSubjectRulesReview.md | 4 +- kubernetes/docs/V1beta1StatefulSet.md | 4 +- kubernetes/docs/V1beta1StatefulSetSpec.md | 6 +- .../docs/V1beta1StatefulSetUpdateStrategy.md | 2 +- kubernetes/docs/V1beta1StorageClass.md | 2 +- kubernetes/docs/V1beta1StorageClassList.md | 2 +- kubernetes/docs/V1beta1SubjectAccessReview.md | 4 +- .../docs/V1beta1SubjectAccessReviewSpec.md | 4 +- kubernetes/docs/V1beta1TokenReview.md | 4 +- kubernetes/docs/V1beta1TokenReviewStatus.md | 2 +- ...Webhook.md => V1beta1ValidatingWebhook.md} | 8 +- .../V1beta1ValidatingWebhookConfiguration.md | 4 +- ...beta1ValidatingWebhookConfigurationList.md | 2 +- kubernetes/docs/V1beta1VolumeAttachment.md | 6 +- .../docs/V1beta1VolumeAttachmentList.md | 2 +- .../docs/V1beta1VolumeAttachmentSource.md | 1 + .../docs/V1beta1VolumeAttachmentSpec.md | 2 +- .../docs/V1beta1VolumeAttachmentStatus.md | 4 +- kubernetes/docs/V1beta2ControllerRevision.md | 4 +- .../docs/V1beta2ControllerRevisionList.md | 2 +- kubernetes/docs/V1beta2DaemonSet.md | 6 +- kubernetes/docs/V1beta2DaemonSetList.md | 2 +- kubernetes/docs/V1beta2DaemonSetSpec.md | 6 +- .../docs/V1beta2DaemonSetUpdateStrategy.md | 2 +- kubernetes/docs/V1beta2Deployment.md | 6 +- kubernetes/docs/V1beta2DeploymentList.md | 2 +- kubernetes/docs/V1beta2DeploymentSpec.md | 6 +- kubernetes/docs/V1beta2DeploymentStrategy.md | 2 +- kubernetes/docs/V1beta2ReplicaSet.md | 6 +- kubernetes/docs/V1beta2ReplicaSetList.md | 2 +- kubernetes/docs/V1beta2ReplicaSetSpec.md | 4 +- .../docs/V1beta2RollingUpdateDaemonSet.md | 2 +- .../docs/V1beta2RollingUpdateDeployment.md | 4 +- kubernetes/docs/V1beta2Scale.md | 6 +- kubernetes/docs/V1beta2StatefulSet.md | 4 +- kubernetes/docs/V1beta2StatefulSetSpec.md | 6 +- .../docs/V1beta2StatefulSetUpdateStrategy.md | 2 +- kubernetes/docs/V2alpha1CronJob.md | 6 +- kubernetes/docs/V2alpha1CronJobList.md | 2 +- kubernetes/docs/V2alpha1CronJobSpec.md | 2 +- kubernetes/docs/V2alpha1JobTemplateSpec.md | 4 +- .../docs/V2beta1ExternalMetricSource.md | 2 +- .../docs/V2beta1ExternalMetricStatus.md | 2 +- .../docs/V2beta1HorizontalPodAutoscaler.md | 6 +- .../V2beta1HorizontalPodAutoscalerList.md | 2 +- .../V2beta1HorizontalPodAutoscalerSpec.md | 2 +- kubernetes/docs/V2beta1MetricSpec.md | 8 +- kubernetes/docs/V2beta1MetricStatus.md | 8 +- kubernetes/docs/V2beta1ObjectMetricSource.md | 4 +- kubernetes/docs/V2beta1ObjectMetricStatus.md | 4 +- kubernetes/docs/V2beta1PodsMetricSource.md | 2 +- kubernetes/docs/V2beta1PodsMetricStatus.md | 2 +- .../docs/V2beta2ExternalMetricSource.md | 4 +- .../docs/V2beta2ExternalMetricStatus.md | 4 +- .../docs/V2beta2HorizontalPodAutoscaler.md | 6 +- .../V2beta2HorizontalPodAutoscalerList.md | 2 +- .../V2beta2HorizontalPodAutoscalerSpec.md | 2 +- kubernetes/docs/V2beta2MetricIdentifier.md | 2 +- kubernetes/docs/V2beta2MetricSpec.md | 8 +- kubernetes/docs/V2beta2MetricStatus.md | 8 +- kubernetes/docs/V2beta2ObjectMetricSource.md | 4 +- kubernetes/docs/V2beta2ObjectMetricStatus.md | 4 +- kubernetes/docs/V2beta2PodsMetricSource.md | 4 +- kubernetes/docs/V2beta2PodsMetricStatus.md | 4 +- .../docs/V2beta2ResourceMetricSource.md | 2 +- .../docs/V2beta2ResourceMetricStatus.md | 2 +- kubernetes/docs/VersionApi.md | 10 +- kubernetes/swagger.json.unprocessed | 6530 ++++- .../test/test_admissionregistration_api.py | 19 +- .../test_admissionregistration_v1beta1_api.py | 75 +- ...nregistration_v1beta1_service_reference.py | 19 +- ...istration_v1beta1_webhook_client_config.py | 19 +- kubernetes/test/test_apiextensions_api.py | 19 +- .../test/test_apiextensions_v1beta1_api.py | 59 +- ...apiextensions_v1beta1_service_reference.py | 19 +- ...xtensions_v1beta1_webhook_client_config.py | 19 +- kubernetes/test/test_apiregistration_api.py | 19 +- .../test/test_apiregistration_v1_api.py | 59 +- .../test/test_apiregistration_v1beta1_api.py | 59 +- ...iregistration_v1beta1_service_reference.py | 19 +- kubernetes/test/test_apis_api.py | 19 +- kubernetes/test/test_apps_api.py | 19 +- kubernetes/test/test_apps_v1_api.py | 263 +- kubernetes/test/test_apps_v1beta1_api.py | 167 +- .../test/test_apps_v1beta1_deployment.py | 19 +- .../test_apps_v1beta1_deployment_condition.py | 19 +- .../test/test_apps_v1beta1_deployment_list.py | 19 +- .../test_apps_v1beta1_deployment_rollback.py | 19 +- .../test/test_apps_v1beta1_deployment_spec.py | 19 +- .../test_apps_v1beta1_deployment_status.py | 19 +- .../test_apps_v1beta1_deployment_strategy.py | 19 +- .../test/test_apps_v1beta1_rollback_config.py | 19 +- ..._apps_v1beta1_rolling_update_deployment.py | 19 +- kubernetes/test/test_apps_v1beta1_scale.py | 19 +- .../test/test_apps_v1beta1_scale_spec.py | 19 +- .../test/test_apps_v1beta1_scale_status.py | 19 +- kubernetes/test/test_apps_v1beta2_api.py | 263 +- kubernetes/test/test_auditregistration_api.py | 19 +- .../test_auditregistration_v1alpha1_api.py | 47 +- kubernetes/test/test_authentication_api.py | 19 +- kubernetes/test/test_authentication_v1_api.py | 23 +- .../test/test_authentication_v1beta1_api.py | 23 +- kubernetes/test/test_authorization_api.py | 19 +- kubernetes/test/test_authorization_v1_api.py | 35 +- .../test/test_authorization_v1beta1_api.py | 35 +- kubernetes/test/test_autoscaling_api.py | 19 +- kubernetes/test/test_autoscaling_v1_api.py | 63 +- .../test/test_autoscaling_v2beta1_api.py | 63 +- .../test/test_autoscaling_v2beta2_api.py | 63 +- kubernetes/test/test_batch_api.py | 19 +- kubernetes/test/test_batch_v1_api.py | 63 +- kubernetes/test/test_batch_v1beta1_api.py | 63 +- kubernetes/test/test_batch_v2alpha1_api.py | 63 +- kubernetes/test/test_certificates_api.py | 19 +- .../test/test_certificates_v1beta1_api.py | 63 +- kubernetes/test/test_coordination_api.py | 19 +- kubernetes/test/test_coordination_v1_api.py | 51 +- .../test/test_coordination_v1beta1_api.py | 51 +- kubernetes/test/test_core_api.py | 19 +- kubernetes/test/test_core_v1_api.py | 807 +- kubernetes/test/test_custom_objects_api.py | 111 +- kubernetes/test/test_events_api.py | 19 +- kubernetes/test/test_events_v1beta1_api.py | 51 +- kubernetes/test/test_extensions_api.py | 19 +- ...t_extensions_v1beta1_allowed_csi_driver.py | 19 +- ..._extensions_v1beta1_allowed_flex_volume.py | 19 +- ...st_extensions_v1beta1_allowed_host_path.py | 19 +- .../test/test_extensions_v1beta1_api.py | 295 +- .../test_extensions_v1beta1_deployment.py | 19 +- ...extensions_v1beta1_deployment_condition.py | 19 +- ...test_extensions_v1beta1_deployment_list.py | 19 +- ..._extensions_v1beta1_deployment_rollback.py | 19 +- ...test_extensions_v1beta1_deployment_spec.py | 19 +- ...st_extensions_v1beta1_deployment_status.py | 19 +- ..._extensions_v1beta1_deployment_strategy.py | 19 +- ...sions_v1beta1_fs_group_strategy_options.py | 19 +- ...test_extensions_v1beta1_host_port_range.py | 19 +- ...st_extensions_v1beta1_http_ingress_path.py | 19 +- ...ensions_v1beta1_http_ingress_rule_value.py | 19 +- .../test/test_extensions_v1beta1_id_range.py | 19 +- .../test/test_extensions_v1beta1_ingress.py | 19 +- ...test_extensions_v1beta1_ingress_backend.py | 19 +- .../test_extensions_v1beta1_ingress_list.py | 19 +- .../test_extensions_v1beta1_ingress_rule.py | 19 +- .../test_extensions_v1beta1_ingress_spec.py | 19 +- .../test_extensions_v1beta1_ingress_status.py | 19 +- .../test_extensions_v1beta1_ingress_tls.py | 19 +- ..._extensions_v1beta1_pod_security_policy.py | 19 +- ...nsions_v1beta1_pod_security_policy_list.py | 19 +- ...nsions_v1beta1_pod_security_policy_spec.py | 19 +- ...test_extensions_v1beta1_rollback_config.py | 19 +- ...sions_v1beta1_rolling_update_deployment.py | 19 +- ...s_v1beta1_run_as_group_strategy_options.py | 19 +- ...ns_v1beta1_run_as_user_strategy_options.py | 19 +- ..._v1beta1_runtime_class_strategy_options.py | 39 + .../test/test_extensions_v1beta1_scale.py | 19 +- .../test_extensions_v1beta1_scale_spec.py | 19 +- .../test_extensions_v1beta1_scale_status.py | 19 +- ...sions_v1beta1_se_linux_strategy_options.py | 19 +- ...a1_supplemental_groups_strategy_options.py | 19 +- kubernetes/test/test_logs_api.py | 23 +- kubernetes/test/test_networking_api.py | 19 +- kubernetes/test/test_networking_v1_api.py | 51 +- .../test/test_networking_v1beta1_api.py | 63 +- ...st_networking_v1beta1_http_ingress_path.py | 19 +- ...working_v1beta1_http_ingress_rule_value.py | 19 +- .../test/test_networking_v1beta1_ingress.py | 19 +- ...test_networking_v1beta1_ingress_backend.py | 19 +- .../test_networking_v1beta1_ingress_list.py | 19 +- .../test_networking_v1beta1_ingress_rule.py | 19 +- .../test_networking_v1beta1_ingress_spec.py | 19 +- .../test_networking_v1beta1_ingress_status.py | 19 +- .../test_networking_v1beta1_ingress_tls.py | 19 +- kubernetes/test/test_node_api.py | 19 +- kubernetes/test/test_node_v1alpha1_api.py | 47 +- kubernetes/test/test_node_v1beta1_api.py | 47 +- kubernetes/test/test_policy_api.py | 19 +- .../test_policy_v1beta1_allowed_csi_driver.py | 19 +- ...test_policy_v1beta1_allowed_flex_volume.py | 19 +- .../test_policy_v1beta1_allowed_host_path.py | 19 +- kubernetes/test/test_policy_v1beta1_api.py | 91 +- ...olicy_v1beta1_fs_group_strategy_options.py | 19 +- .../test_policy_v1beta1_host_port_range.py | 19 +- .../test/test_policy_v1beta1_id_range.py | 19 +- ...test_policy_v1beta1_pod_security_policy.py | 19 +- ...policy_v1beta1_pod_security_policy_list.py | 19 +- ...policy_v1beta1_pod_security_policy_spec.py | 19 +- ...y_v1beta1_run_as_group_strategy_options.py | 19 +- ...cy_v1beta1_run_as_user_strategy_options.py | 19 +- ..._v1beta1_runtime_class_strategy_options.py | 39 + ...olicy_v1beta1_se_linux_strategy_options.py | 19 +- ...a1_supplemental_groups_strategy_options.py | 19 +- kubernetes/test/test_quantity.py | 112 - .../test/test_rbac_authorization_api.py | 19 +- .../test/test_rbac_authorization_v1_api.py | 139 +- .../test_rbac_authorization_v1alpha1_api.py | 139 +- .../test_rbac_authorization_v1beta1_api.py | 139 +- kubernetes/test/test_runtime_raw_extension.py | 19 +- kubernetes/test/test_scheduling_api.py | 19 +- kubernetes/test/test_scheduling_v1_api.py | 47 +- .../test/test_scheduling_v1alpha1_api.py | 47 +- .../test/test_scheduling_v1beta1_api.py | 47 +- kubernetes/test/test_settings_api.py | 19 +- kubernetes/test/test_settings_v1alpha1_api.py | 51 +- kubernetes/test/test_storage_api.py | 19 +- kubernetes/test/test_storage_v1_api.py | 87 +- kubernetes/test/test_storage_v1alpha1_api.py | 47 +- kubernetes/test/test_storage_v1beta1_api.py | 131 +- kubernetes/test/test_v1_affinity.py | 19 +- kubernetes/test/test_v1_aggregation_rule.py | 19 +- kubernetes/test/test_v1_api_group.py | 19 +- kubernetes/test/test_v1_api_group_list.py | 19 +- kubernetes/test/test_v1_api_resource.py | 19 +- kubernetes/test/test_v1_api_resource_list.py | 19 +- kubernetes/test/test_v1_api_service.py | 19 +- .../test/test_v1_api_service_condition.py | 19 +- kubernetes/test/test_v1_api_service_list.py | 19 +- kubernetes/test/test_v1_api_service_spec.py | 19 +- kubernetes/test/test_v1_api_service_status.py | 19 +- kubernetes/test/test_v1_api_versions.py | 19 +- kubernetes/test/test_v1_attached_volume.py | 19 +- ...1_aws_elastic_block_store_volume_source.py | 19 +- .../test/test_v1_azure_disk_volume_source.py | 19 +- ..._v1_azure_file_persistent_volume_source.py | 19 +- .../test/test_v1_azure_file_volume_source.py | 19 +- kubernetes/test/test_v1_binding.py | 19 +- kubernetes/test/test_v1_capabilities.py | 19 +- ...est_v1_ceph_fs_persistent_volume_source.py | 19 +- .../test/test_v1_ceph_fs_volume_source.py | 19 +- ...test_v1_cinder_persistent_volume_source.py | 19 +- .../test/test_v1_cinder_volume_source.py | 19 +- kubernetes/test/test_v1_client_ip_config.py | 19 +- kubernetes/test/test_v1_cluster_role.py | 19 +- .../test/test_v1_cluster_role_binding.py | 19 +- .../test/test_v1_cluster_role_binding_list.py | 19 +- kubernetes/test/test_v1_cluster_role_list.py | 19 +- .../test/test_v1_component_condition.py | 19 +- kubernetes/test/test_v1_component_status.py | 19 +- .../test/test_v1_component_status_list.py | 19 +- kubernetes/test/test_v1_config_map.py | 19 +- .../test/test_v1_config_map_env_source.py | 19 +- .../test/test_v1_config_map_key_selector.py | 19 +- kubernetes/test/test_v1_config_map_list.py | 19 +- .../test_v1_config_map_node_config_source.py | 19 +- .../test/test_v1_config_map_projection.py | 19 +- .../test/test_v1_config_map_volume_source.py | 19 +- kubernetes/test/test_v1_container.py | 19 +- kubernetes/test/test_v1_container_image.py | 19 +- kubernetes/test/test_v1_container_port.py | 19 +- kubernetes/test/test_v1_container_state.py | 19 +- .../test/test_v1_container_state_running.py | 19 +- .../test_v1_container_state_terminated.py | 19 +- .../test/test_v1_container_state_waiting.py | 19 +- kubernetes/test/test_v1_container_status.py | 19 +- .../test/test_v1_controller_revision.py | 19 +- .../test/test_v1_controller_revision_list.py | 19 +- .../test_v1_cross_version_object_reference.py | 19 +- .../test_v1_csi_persistent_volume_source.py | 19 +- kubernetes/test/test_v1_csi_volume_source.py | 19 +- kubernetes/test/test_v1_daemon_endpoint.py | 19 +- kubernetes/test/test_v1_daemon_set.py | 19 +- .../test/test_v1_daemon_set_condition.py | 19 +- kubernetes/test/test_v1_daemon_set_list.py | 19 +- kubernetes/test/test_v1_daemon_set_spec.py | 19 +- kubernetes/test/test_v1_daemon_set_status.py | 19 +- .../test_v1_daemon_set_update_strategy.py | 19 +- kubernetes/test/test_v1_delete_options.py | 19 +- kubernetes/test/test_v1_deployment.py | 19 +- .../test/test_v1_deployment_condition.py | 19 +- kubernetes/test/test_v1_deployment_list.py | 19 +- kubernetes/test/test_v1_deployment_spec.py | 19 +- kubernetes/test/test_v1_deployment_status.py | 19 +- .../test/test_v1_deployment_strategy.py | 19 +- .../test/test_v1_downward_api_projection.py | 19 +- .../test/test_v1_downward_api_volume_file.py | 19 +- .../test_v1_downward_api_volume_source.py | 19 +- .../test/test_v1_empty_dir_volume_source.py | 19 +- kubernetes/test/test_v1_endpoint_address.py | 19 +- kubernetes/test/test_v1_endpoint_port.py | 19 +- kubernetes/test/test_v1_endpoint_subset.py | 19 +- kubernetes/test/test_v1_endpoints.py | 19 +- kubernetes/test/test_v1_endpoints_list.py | 19 +- kubernetes/test/test_v1_env_from_source.py | 19 +- kubernetes/test/test_v1_env_var.py | 19 +- kubernetes/test/test_v1_env_var_source.py | 19 +- kubernetes/test/test_v1_event.py | 19 +- kubernetes/test/test_v1_event_list.py | 19 +- kubernetes/test/test_v1_event_series.py | 19 +- kubernetes/test/test_v1_event_source.py | 19 +- kubernetes/test/test_v1_exec_action.py | 19 +- kubernetes/test/test_v1_fc_volume_source.py | 19 +- .../test_v1_flex_persistent_volume_source.py | 19 +- kubernetes/test/test_v1_flex_volume_source.py | 19 +- .../test/test_v1_flocker_volume_source.py | 19 +- ...st_v1_gce_persistent_disk_volume_source.py | 19 +- .../test/test_v1_git_repo_volume_source.py | 19 +- ...t_v1_glusterfs_persistent_volume_source.py | 19 +- .../test/test_v1_glusterfs_volume_source.py | 19 +- .../test_v1_group_version_for_discovery.py | 19 +- kubernetes/test/test_v1_handler.py | 19 +- .../test/test_v1_horizontal_pod_autoscaler.py | 19 +- .../test_v1_horizontal_pod_autoscaler_list.py | 19 +- .../test_v1_horizontal_pod_autoscaler_spec.py | 19 +- ...est_v1_horizontal_pod_autoscaler_status.py | 19 +- kubernetes/test/test_v1_host_alias.py | 19 +- .../test/test_v1_host_path_volume_source.py | 19 +- kubernetes/test/test_v1_http_get_action.py | 19 +- kubernetes/test/test_v1_http_header.py | 19 +- kubernetes/test/test_v1_initializer.py | 19 +- kubernetes/test/test_v1_initializers.py | 19 +- kubernetes/test/test_v1_ip_block.py | 19 +- .../test_v1_iscsi_persistent_volume_source.py | 19 +- .../test/test_v1_iscsi_volume_source.py | 19 +- kubernetes/test/test_v1_job.py | 19 +- kubernetes/test/test_v1_job_condition.py | 19 +- kubernetes/test/test_v1_job_list.py | 19 +- kubernetes/test/test_v1_job_spec.py | 19 +- kubernetes/test/test_v1_job_status.py | 19 +- kubernetes/test/test_v1_key_to_path.py | 19 +- kubernetes/test/test_v1_label_selector.py | 19 +- .../test_v1_label_selector_requirement.py | 19 +- kubernetes/test/test_v1_lease.py | 19 +- kubernetes/test/test_v1_lease_list.py | 19 +- kubernetes/test/test_v1_lease_spec.py | 19 +- kubernetes/test/test_v1_lifecycle.py | 19 +- kubernetes/test/test_v1_limit_range.py | 19 +- kubernetes/test/test_v1_limit_range_item.py | 19 +- kubernetes/test/test_v1_limit_range_list.py | 19 +- kubernetes/test/test_v1_limit_range_spec.py | 19 +- kubernetes/test/test_v1_list_meta.py | 19 +- .../test/test_v1_load_balancer_ingress.py | 19 +- .../test/test_v1_load_balancer_status.py | 19 +- .../test/test_v1_local_object_reference.py | 19 +- .../test_v1_local_subject_access_review.py | 19 +- .../test/test_v1_local_volume_source.py | 19 +- .../test/test_v1_managed_fields_entry.py | 19 +- kubernetes/test/test_v1_namespace.py | 19 +- kubernetes/test/test_v1_namespace_list.py | 19 +- kubernetes/test/test_v1_namespace_spec.py | 19 +- kubernetes/test/test_v1_namespace_status.py | 19 +- kubernetes/test/test_v1_network_policy.py | 19 +- .../test_v1_network_policy_egress_rule.py | 19 +- .../test_v1_network_policy_ingress_rule.py | 19 +- .../test/test_v1_network_policy_list.py | 19 +- .../test/test_v1_network_policy_peer.py | 19 +- .../test/test_v1_network_policy_port.py | 19 +- .../test/test_v1_network_policy_spec.py | 19 +- kubernetes/test/test_v1_nfs_volume_source.py | 19 +- kubernetes/test/test_v1_node.py | 19 +- kubernetes/test/test_v1_node_address.py | 19 +- kubernetes/test/test_v1_node_affinity.py | 19 +- kubernetes/test/test_v1_node_condition.py | 19 +- kubernetes/test/test_v1_node_config_source.py | 19 +- kubernetes/test/test_v1_node_config_status.py | 19 +- .../test/test_v1_node_daemon_endpoints.py | 19 +- kubernetes/test/test_v1_node_list.py | 19 +- kubernetes/test/test_v1_node_selector.py | 19 +- .../test/test_v1_node_selector_requirement.py | 19 +- kubernetes/test/test_v1_node_selector_term.py | 19 +- kubernetes/test/test_v1_node_spec.py | 19 +- kubernetes/test/test_v1_node_status.py | 19 +- kubernetes/test/test_v1_node_system_info.py | 19 +- .../test/test_v1_non_resource_attributes.py | 19 +- kubernetes/test/test_v1_non_resource_rule.py | 19 +- .../test/test_v1_object_field_selector.py | 19 +- kubernetes/test/test_v1_object_meta.py | 19 +- kubernetes/test/test_v1_object_reference.py | 19 +- kubernetes/test/test_v1_owner_reference.py | 19 +- kubernetes/test/test_v1_persistent_volume.py | 19 +- .../test/test_v1_persistent_volume_claim.py | 19 +- ...st_v1_persistent_volume_claim_condition.py | 19 +- .../test_v1_persistent_volume_claim_list.py | 19 +- .../test_v1_persistent_volume_claim_spec.py | 19 +- .../test_v1_persistent_volume_claim_status.py | 19 +- ...1_persistent_volume_claim_volume_source.py | 19 +- .../test/test_v1_persistent_volume_list.py | 19 +- .../test/test_v1_persistent_volume_spec.py | 19 +- .../test/test_v1_persistent_volume_status.py | 19 +- ...v1_photon_persistent_disk_volume_source.py | 19 +- kubernetes/test/test_v1_pod.py | 19 +- kubernetes/test/test_v1_pod_affinity.py | 19 +- kubernetes/test/test_v1_pod_affinity_term.py | 19 +- kubernetes/test/test_v1_pod_anti_affinity.py | 19 +- kubernetes/test/test_v1_pod_condition.py | 19 +- kubernetes/test/test_v1_pod_dns_config.py | 19 +- .../test/test_v1_pod_dns_config_option.py | 19 +- kubernetes/test/test_v1_pod_list.py | 19 +- kubernetes/test/test_v1_pod_readiness_gate.py | 19 +- .../test/test_v1_pod_security_context.py | 19 +- kubernetes/test/test_v1_pod_spec.py | 19 +- kubernetes/test/test_v1_pod_status.py | 19 +- kubernetes/test/test_v1_pod_template.py | 19 +- kubernetes/test/test_v1_pod_template_list.py | 19 +- kubernetes/test/test_v1_pod_template_spec.py | 19 +- kubernetes/test/test_v1_policy_rule.py | 19 +- .../test/test_v1_portworx_volume_source.py | 19 +- kubernetes/test/test_v1_preconditions.py | 19 +- .../test/test_v1_preferred_scheduling_term.py | 19 +- kubernetes/test/test_v1_priority_class.py | 19 +- .../test/test_v1_priority_class_list.py | 19 +- kubernetes/test/test_v1_probe.py | 19 +- .../test/test_v1_projected_volume_source.py | 19 +- .../test/test_v1_quobyte_volume_source.py | 19 +- .../test_v1_rbd_persistent_volume_source.py | 19 +- kubernetes/test/test_v1_rbd_volume_source.py | 19 +- kubernetes/test/test_v1_replica_set.py | 19 +- .../test/test_v1_replica_set_condition.py | 19 +- kubernetes/test/test_v1_replica_set_list.py | 19 +- kubernetes/test/test_v1_replica_set_spec.py | 19 +- kubernetes/test/test_v1_replica_set_status.py | 19 +- .../test/test_v1_replication_controller.py | 19 +- ...est_v1_replication_controller_condition.py | 19 +- .../test_v1_replication_controller_list.py | 19 +- .../test_v1_replication_controller_spec.py | 19 +- .../test_v1_replication_controller_status.py | 19 +- .../test/test_v1_resource_attributes.py | 19 +- .../test/test_v1_resource_field_selector.py | 19 +- kubernetes/test/test_v1_resource_quota.py | 19 +- .../test/test_v1_resource_quota_list.py | 19 +- .../test/test_v1_resource_quota_spec.py | 19 +- .../test/test_v1_resource_quota_status.py | 19 +- .../test/test_v1_resource_requirements.py | 19 +- kubernetes/test/test_v1_resource_rule.py | 19 +- kubernetes/test/test_v1_role.py | 19 +- kubernetes/test/test_v1_role_binding.py | 19 +- kubernetes/test/test_v1_role_binding_list.py | 19 +- kubernetes/test/test_v1_role_list.py | 19 +- kubernetes/test/test_v1_role_ref.py | 19 +- .../test/test_v1_rolling_update_daemon_set.py | 19 +- .../test/test_v1_rolling_update_deployment.py | 19 +- ...v1_rolling_update_stateful_set_strategy.py | 19 +- kubernetes/test/test_v1_scale.py | 19 +- ...st_v1_scale_io_persistent_volume_source.py | 19 +- .../test/test_v1_scale_io_volume_source.py | 19 +- kubernetes/test/test_v1_scale_spec.py | 19 +- kubernetes/test/test_v1_scale_status.py | 19 +- kubernetes/test/test_v1_scope_selector.py | 19 +- ...v1_scoped_resource_selector_requirement.py | 19 +- kubernetes/test/test_v1_se_linux_options.py | 19 +- kubernetes/test/test_v1_secret.py | 19 +- kubernetes/test/test_v1_secret_env_source.py | 19 +- .../test/test_v1_secret_key_selector.py | 19 +- kubernetes/test/test_v1_secret_list.py | 19 +- kubernetes/test/test_v1_secret_projection.py | 19 +- kubernetes/test/test_v1_secret_reference.py | 19 +- .../test/test_v1_secret_volume_source.py | 19 +- kubernetes/test/test_v1_security_context.py | 19 +- .../test_v1_self_subject_access_review.py | 19 +- ...test_v1_self_subject_access_review_spec.py | 19 +- .../test/test_v1_self_subject_rules_review.py | 19 +- .../test_v1_self_subject_rules_review_spec.py | 19 +- .../test_v1_server_address_by_client_cidr.py | 19 +- kubernetes/test/test_v1_service.py | 19 +- kubernetes/test/test_v1_service_account.py | 19 +- .../test/test_v1_service_account_list.py | 19 +- ...est_v1_service_account_token_projection.py | 19 +- kubernetes/test/test_v1_service_list.py | 19 +- kubernetes/test/test_v1_service_port.py | 19 +- kubernetes/test/test_v1_service_reference.py | 19 +- kubernetes/test/test_v1_service_spec.py | 19 +- kubernetes/test/test_v1_service_status.py | 19 +- .../test/test_v1_session_affinity_config.py | 19 +- kubernetes/test/test_v1_stateful_set.py | 19 +- .../test/test_v1_stateful_set_condition.py | 19 +- kubernetes/test/test_v1_stateful_set_list.py | 19 +- kubernetes/test/test_v1_stateful_set_spec.py | 19 +- .../test/test_v1_stateful_set_status.py | 19 +- .../test_v1_stateful_set_update_strategy.py | 19 +- kubernetes/test/test_v1_status.py | 19 +- kubernetes/test/test_v1_status_cause.py | 19 +- kubernetes/test/test_v1_status_details.py | 19 +- kubernetes/test/test_v1_storage_class.py | 19 +- kubernetes/test/test_v1_storage_class_list.py | 19 +- ..._v1_storage_os_persistent_volume_source.py | 19 +- .../test/test_v1_storage_os_volume_source.py | 19 +- kubernetes/test/test_v1_subject.py | 19 +- .../test/test_v1_subject_access_review.py | 19 +- .../test_v1_subject_access_review_spec.py | 19 +- .../test_v1_subject_access_review_status.py | 19 +- .../test_v1_subject_rules_review_status.py | 19 +- kubernetes/test/test_v1_sysctl.py | 19 +- kubernetes/test/test_v1_taint.py | 19 +- kubernetes/test/test_v1_tcp_socket_action.py | 19 +- kubernetes/test/test_v1_token_review.py | 19 +- kubernetes/test/test_v1_token_review_spec.py | 19 +- .../test/test_v1_token_review_status.py | 19 +- kubernetes/test/test_v1_toleration.py | 19 +- ..._v1_topology_selector_label_requirement.py | 19 +- .../test/test_v1_topology_selector_term.py | 19 +- .../test_v1_typed_local_object_reference.py | 19 +- kubernetes/test/test_v1_user_info.py | 19 +- kubernetes/test/test_v1_volume.py | 19 +- kubernetes/test/test_v1_volume_attachment.py | 19 +- .../test/test_v1_volume_attachment_list.py | 19 +- .../test/test_v1_volume_attachment_source.py | 19 +- .../test/test_v1_volume_attachment_spec.py | 19 +- .../test/test_v1_volume_attachment_status.py | 19 +- kubernetes/test/test_v1_volume_device.py | 19 +- kubernetes/test/test_v1_volume_error.py | 19 +- kubernetes/test/test_v1_volume_mount.py | 19 +- .../test/test_v1_volume_node_affinity.py | 19 +- kubernetes/test/test_v1_volume_projection.py | 19 +- ...t_v1_vsphere_virtual_disk_volume_source.py | 19 +- kubernetes/test/test_v1_watch_event.py | 19 +- .../test_v1_weighted_pod_affinity_term.py | 19 +- ...est_v1_windows_security_context_options.py | 39 + .../test/test_v1alpha1_aggregation_rule.py | 19 +- kubernetes/test/test_v1alpha1_audit_sink.py | 19 +- .../test/test_v1alpha1_audit_sink_list.py | 19 +- .../test/test_v1alpha1_audit_sink_spec.py | 19 +- kubernetes/test/test_v1alpha1_cluster_role.py | 19 +- .../test_v1alpha1_cluster_role_binding.py | 19 +- ...test_v1alpha1_cluster_role_binding_list.py | 19 +- .../test/test_v1alpha1_cluster_role_list.py | 19 +- kubernetes/test/test_v1alpha1_pod_preset.py | 19 +- .../test/test_v1alpha1_pod_preset_list.py | 19 +- .../test/test_v1alpha1_pod_preset_spec.py | 19 +- kubernetes/test/test_v1alpha1_policy.py | 19 +- kubernetes/test/test_v1alpha1_policy_rule.py | 19 +- .../test/test_v1alpha1_priority_class.py | 19 +- .../test/test_v1alpha1_priority_class_list.py | 19 +- kubernetes/test/test_v1alpha1_role.py | 19 +- kubernetes/test/test_v1alpha1_role_binding.py | 19 +- .../test/test_v1alpha1_role_binding_list.py | 19 +- kubernetes/test/test_v1alpha1_role_list.py | 19 +- kubernetes/test/test_v1alpha1_role_ref.py | 19 +- .../test/test_v1alpha1_runtime_class.py | 19 +- .../test/test_v1alpha1_runtime_class_list.py | 19 +- .../test/test_v1alpha1_runtime_class_spec.py | 19 +- .../test/test_v1alpha1_service_reference.py | 19 +- kubernetes/test/test_v1alpha1_subject.py | 19 +- .../test/test_v1alpha1_volume_attachment.py | 19 +- .../test_v1alpha1_volume_attachment_list.py | 19 +- .../test_v1alpha1_volume_attachment_source.py | 19 +- .../test_v1alpha1_volume_attachment_spec.py | 19 +- .../test_v1alpha1_volume_attachment_status.py | 19 +- kubernetes/test/test_v1alpha1_volume_error.py | 19 +- kubernetes/test/test_v1alpha1_webhook.py | 19 +- .../test_v1alpha1_webhook_client_config.py | 19 +- .../test_v1alpha1_webhook_throttle_config.py | 19 +- .../test/test_v1beta1_aggregation_rule.py | 19 +- kubernetes/test/test_v1beta1_api_service.py | 19 +- .../test_v1beta1_api_service_condition.py | 19 +- .../test/test_v1beta1_api_service_list.py | 19 +- .../test/test_v1beta1_api_service_spec.py | 19 +- .../test/test_v1beta1_api_service_status.py | 19 +- ...est_v1beta1_certificate_signing_request.py | 19 +- ...1_certificate_signing_request_condition.py | 19 +- ...1beta1_certificate_signing_request_list.py | 19 +- ...1beta1_certificate_signing_request_spec.py | 19 +- ...eta1_certificate_signing_request_status.py | 19 +- kubernetes/test/test_v1beta1_cluster_role.py | 19 +- .../test/test_v1beta1_cluster_role_binding.py | 19 +- .../test_v1beta1_cluster_role_binding_list.py | 19 +- .../test/test_v1beta1_cluster_role_list.py | 19 +- .../test/test_v1beta1_controller_revision.py | 19 +- .../test_v1beta1_controller_revision_list.py | 19 +- kubernetes/test/test_v1beta1_cron_job.py | 19 +- kubernetes/test/test_v1beta1_cron_job_list.py | 19 +- kubernetes/test/test_v1beta1_cron_job_spec.py | 19 +- .../test/test_v1beta1_cron_job_status.py | 19 +- kubernetes/test/test_v1beta1_csi_driver.py | 19 +- .../test/test_v1beta1_csi_driver_list.py | 19 +- .../test/test_v1beta1_csi_driver_spec.py | 19 +- kubernetes/test/test_v1beta1_csi_node.py | 19 +- .../test/test_v1beta1_csi_node_driver.py | 19 +- kubernetes/test/test_v1beta1_csi_node_list.py | 19 +- kubernetes/test/test_v1beta1_csi_node_spec.py | 19 +- ...beta1_custom_resource_column_definition.py | 19 +- ...test_v1beta1_custom_resource_conversion.py | 19 +- ...test_v1beta1_custom_resource_definition.py | 19 +- ...a1_custom_resource_definition_condition.py | 19 +- ...v1beta1_custom_resource_definition_list.py | 19 +- ...1beta1_custom_resource_definition_names.py | 19 +- ...v1beta1_custom_resource_definition_spec.py | 19 +- ...beta1_custom_resource_definition_status.py | 19 +- ...eta1_custom_resource_definition_version.py | 19 +- ...beta1_custom_resource_subresource_scale.py | 19 +- ...st_v1beta1_custom_resource_subresources.py | 19 +- ...test_v1beta1_custom_resource_validation.py | 19 +- kubernetes/test/test_v1beta1_daemon_set.py | 19 +- .../test/test_v1beta1_daemon_set_condition.py | 19 +- .../test/test_v1beta1_daemon_set_list.py | 19 +- .../test/test_v1beta1_daemon_set_spec.py | 19 +- .../test/test_v1beta1_daemon_set_status.py | 19 +- ...test_v1beta1_daemon_set_update_strategy.py | 19 +- kubernetes/test/test_v1beta1_event.py | 19 +- kubernetes/test/test_v1beta1_event_list.py | 19 +- kubernetes/test/test_v1beta1_event_series.py | 19 +- kubernetes/test/test_v1beta1_eviction.py | 19 +- .../test_v1beta1_external_documentation.py | 19 +- kubernetes/test/test_v1beta1_ip_block.py | 19 +- .../test/test_v1beta1_job_template_spec.py | 19 +- .../test/test_v1beta1_json_schema_props.py | 19 +- kubernetes/test/test_v1beta1_lease.py | 19 +- kubernetes/test/test_v1beta1_lease_list.py | 19 +- kubernetes/test/test_v1beta1_lease_spec.py | 19 +- ...est_v1beta1_local_subject_access_review.py | 19 +- .../test/test_v1beta1_mutating_webhook.py | 39 + ..._v1beta1_mutating_webhook_configuration.py | 19 +- ...ta1_mutating_webhook_configuration_list.py | 19 +- .../test/test_v1beta1_network_policy.py | 19 +- ...test_v1beta1_network_policy_egress_rule.py | 19 +- ...est_v1beta1_network_policy_ingress_rule.py | 19 +- .../test/test_v1beta1_network_policy_list.py | 19 +- .../test/test_v1beta1_network_policy_peer.py | 19 +- .../test/test_v1beta1_network_policy_port.py | 19 +- .../test/test_v1beta1_network_policy_spec.py | 19 +- .../test_v1beta1_non_resource_attributes.py | 19 +- .../test/test_v1beta1_non_resource_rule.py | 19 +- .../test_v1beta1_pod_disruption_budget.py | 19 +- ...test_v1beta1_pod_disruption_budget_list.py | 19 +- ...test_v1beta1_pod_disruption_budget_spec.py | 19 +- ...st_v1beta1_pod_disruption_budget_status.py | 19 +- kubernetes/test/test_v1beta1_policy_rule.py | 19 +- .../test/test_v1beta1_priority_class.py | 19 +- .../test/test_v1beta1_priority_class_list.py | 19 +- kubernetes/test/test_v1beta1_replica_set.py | 19 +- .../test_v1beta1_replica_set_condition.py | 19 +- .../test/test_v1beta1_replica_set_list.py | 19 +- .../test/test_v1beta1_replica_set_spec.py | 19 +- .../test/test_v1beta1_replica_set_status.py | 19 +- .../test/test_v1beta1_resource_attributes.py | 19 +- kubernetes/test/test_v1beta1_resource_rule.py | 19 +- kubernetes/test/test_v1beta1_role.py | 19 +- kubernetes/test/test_v1beta1_role_binding.py | 19 +- .../test/test_v1beta1_role_binding_list.py | 19 +- kubernetes/test/test_v1beta1_role_list.py | 19 +- kubernetes/test/test_v1beta1_role_ref.py | 19 +- .../test_v1beta1_rolling_update_daemon_set.py | 19 +- ...a1_rolling_update_stateful_set_strategy.py | 19 +- .../test/test_v1beta1_rule_with_operations.py | 19 +- kubernetes/test/test_v1beta1_runtime_class.py | 19 +- .../test/test_v1beta1_runtime_class_list.py | 19 +- ...test_v1beta1_self_subject_access_review.py | 19 +- ...v1beta1_self_subject_access_review_spec.py | 19 +- .../test_v1beta1_self_subject_rules_review.py | 19 +- ..._v1beta1_self_subject_rules_review_spec.py | 19 +- kubernetes/test/test_v1beta1_stateful_set.py | 19 +- .../test_v1beta1_stateful_set_condition.py | 19 +- .../test/test_v1beta1_stateful_set_list.py | 19 +- .../test/test_v1beta1_stateful_set_spec.py | 19 +- .../test/test_v1beta1_stateful_set_status.py | 19 +- ...st_v1beta1_stateful_set_update_strategy.py | 19 +- kubernetes/test/test_v1beta1_storage_class.py | 19 +- .../test/test_v1beta1_storage_class_list.py | 19 +- kubernetes/test/test_v1beta1_subject.py | 19 +- .../test_v1beta1_subject_access_review.py | 19 +- ...test_v1beta1_subject_access_review_spec.py | 19 +- ...st_v1beta1_subject_access_review_status.py | 19 +- ...est_v1beta1_subject_rules_review_status.py | 19 +- kubernetes/test/test_v1beta1_token_review.py | 19 +- .../test/test_v1beta1_token_review_spec.py | 19 +- .../test/test_v1beta1_token_review_status.py | 19 +- kubernetes/test/test_v1beta1_user_info.py | 19 +- .../test/test_v1beta1_validating_webhook.py | 39 + ...1beta1_validating_webhook_configuration.py | 19 +- ...1_validating_webhook_configuration_list.py | 19 +- .../test/test_v1beta1_volume_attachment.py | 19 +- .../test_v1beta1_volume_attachment_list.py | 19 +- .../test_v1beta1_volume_attachment_source.py | 19 +- .../test_v1beta1_volume_attachment_spec.py | 19 +- .../test_v1beta1_volume_attachment_status.py | 19 +- kubernetes/test/test_v1beta1_volume_error.py | 19 +- kubernetes/test/test_v1beta1_webhook.py | 44 - .../test/test_v1beta2_controller_revision.py | 19 +- .../test_v1beta2_controller_revision_list.py | 19 +- kubernetes/test/test_v1beta2_daemon_set.py | 19 +- .../test/test_v1beta2_daemon_set_condition.py | 19 +- .../test/test_v1beta2_daemon_set_list.py | 19 +- .../test/test_v1beta2_daemon_set_spec.py | 19 +- .../test/test_v1beta2_daemon_set_status.py | 19 +- ...test_v1beta2_daemon_set_update_strategy.py | 19 +- kubernetes/test/test_v1beta2_deployment.py | 19 +- .../test/test_v1beta2_deployment_condition.py | 19 +- .../test/test_v1beta2_deployment_list.py | 19 +- .../test/test_v1beta2_deployment_spec.py | 19 +- .../test/test_v1beta2_deployment_status.py | 19 +- .../test/test_v1beta2_deployment_strategy.py | 19 +- kubernetes/test/test_v1beta2_replica_set.py | 19 +- .../test_v1beta2_replica_set_condition.py | 19 +- .../test/test_v1beta2_replica_set_list.py | 19 +- .../test/test_v1beta2_replica_set_spec.py | 19 +- .../test/test_v1beta2_replica_set_status.py | 19 +- .../test_v1beta2_rolling_update_daemon_set.py | 19 +- .../test_v1beta2_rolling_update_deployment.py | 19 +- ...a2_rolling_update_stateful_set_strategy.py | 19 +- kubernetes/test/test_v1beta2_scale.py | 19 +- kubernetes/test/test_v1beta2_scale_spec.py | 19 +- kubernetes/test/test_v1beta2_scale_status.py | 19 +- kubernetes/test/test_v1beta2_stateful_set.py | 19 +- .../test_v1beta2_stateful_set_condition.py | 19 +- .../test/test_v1beta2_stateful_set_list.py | 19 +- .../test/test_v1beta2_stateful_set_spec.py | 19 +- .../test/test_v1beta2_stateful_set_status.py | 19 +- ...st_v1beta2_stateful_set_update_strategy.py | 19 +- kubernetes/test/test_v2alpha1_cron_job.py | 19 +- .../test/test_v2alpha1_cron_job_list.py | 19 +- .../test/test_v2alpha1_cron_job_spec.py | 19 +- .../test/test_v2alpha1_cron_job_status.py | 19 +- .../test/test_v2alpha1_job_template_spec.py | 19 +- ..._v2beta1_cross_version_object_reference.py | 19 +- .../test_v2beta1_external_metric_source.py | 19 +- .../test_v2beta1_external_metric_status.py | 19 +- .../test_v2beta1_horizontal_pod_autoscaler.py | 19 +- ...ta1_horizontal_pod_autoscaler_condition.py | 19 +- ..._v2beta1_horizontal_pod_autoscaler_list.py | 19 +- ..._v2beta1_horizontal_pod_autoscaler_spec.py | 19 +- ...2beta1_horizontal_pod_autoscaler_status.py | 19 +- kubernetes/test/test_v2beta1_metric_spec.py | 19 +- kubernetes/test/test_v2beta1_metric_status.py | 19 +- .../test/test_v2beta1_object_metric_source.py | 19 +- .../test/test_v2beta1_object_metric_status.py | 19 +- .../test/test_v2beta1_pods_metric_source.py | 19 +- .../test/test_v2beta1_pods_metric_status.py | 19 +- .../test_v2beta1_resource_metric_source.py | 19 +- .../test_v2beta1_resource_metric_status.py | 19 +- ..._v2beta2_cross_version_object_reference.py | 19 +- .../test_v2beta2_external_metric_source.py | 19 +- .../test_v2beta2_external_metric_status.py | 19 +- .../test_v2beta2_horizontal_pod_autoscaler.py | 19 +- ...ta2_horizontal_pod_autoscaler_condition.py | 19 +- ..._v2beta2_horizontal_pod_autoscaler_list.py | 19 +- ..._v2beta2_horizontal_pod_autoscaler_spec.py | 19 +- ...2beta2_horizontal_pod_autoscaler_status.py | 19 +- .../test/test_v2beta2_metric_identifier.py | 19 +- kubernetes/test/test_v2beta2_metric_spec.py | 19 +- kubernetes/test/test_v2beta2_metric_status.py | 19 +- kubernetes/test/test_v2beta2_metric_target.py | 19 +- .../test/test_v2beta2_metric_value_status.py | 19 +- .../test/test_v2beta2_object_metric_source.py | 19 +- .../test/test_v2beta2_object_metric_status.py | 19 +- .../test/test_v2beta2_pods_metric_source.py | 19 +- .../test/test_v2beta2_pods_metric_status.py | 19 +- .../test_v2beta2_resource_metric_source.py | 19 +- .../test_v2beta2_resource_metric_status.py | 19 +- kubernetes/test/test_version_api.py | 19 +- kubernetes/test/test_version_info.py | 19 +- scripts/swagger.json | 7791 +++++- setup.py | 2 +- 1797 files changed, 116349 insertions(+), 110082 deletions(-) rename kubernetes/{.swagger-codegen-ignore => .openapi-generator-ignore} (100%) create mode 100644 kubernetes/.openapi-generator/COMMIT create mode 100644 kubernetes/.openapi-generator/VERSION create mode 100644 kubernetes/.openapi-generator/swagger.json.sha256 create mode 100644 kubernetes/client/api/__init__.py create mode 100644 kubernetes/client/api/admissionregistration_api.py rename kubernetes/client/{apis => api}/admissionregistration_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/apiextensions_api.py rename kubernetes/client/{apis => api}/apiextensions_v1beta1_api.py (59%) create mode 100644 kubernetes/client/api/apiregistration_api.py rename kubernetes/client/{apis => api}/apiregistration_v1_api.py (59%) rename kubernetes/client/{apis => api}/apiregistration_v1beta1_api.py (59%) create mode 100644 kubernetes/client/api/apis_api.py create mode 100644 kubernetes/client/api/apps_api.py rename kubernetes/client/{apis => api}/apps_v1_api.py (60%) rename kubernetes/client/{apis => api}/apps_v1beta1_api.py (60%) rename kubernetes/client/{apis => api}/apps_v1beta2_api.py (60%) create mode 100644 kubernetes/client/api/auditregistration_api.py rename kubernetes/client/{apis => api}/auditregistration_v1alpha1_api.py (59%) create mode 100644 kubernetes/client/api/authentication_api.py rename kubernetes/client/{apis => api}/authentication_v1_api.py (55%) rename kubernetes/client/{apis => api}/authentication_v1beta1_api.py (55%) create mode 100644 kubernetes/client/api/authorization_api.py rename kubernetes/client/{apis => api}/authorization_v1_api.py (59%) rename kubernetes/client/{apis => api}/authorization_v1beta1_api.py (59%) create mode 100644 kubernetes/client/api/autoscaling_api.py rename kubernetes/client/{apis => api}/autoscaling_v1_api.py (60%) rename kubernetes/client/{apis => api}/autoscaling_v2beta1_api.py (60%) rename kubernetes/client/{apis => api}/autoscaling_v2beta2_api.py (60%) create mode 100644 kubernetes/client/api/batch_api.py rename kubernetes/client/{apis => api}/batch_v1_api.py (60%) rename kubernetes/client/{apis => api}/batch_v1beta1_api.py (60%) rename kubernetes/client/{apis => api}/batch_v2alpha1_api.py (60%) create mode 100644 kubernetes/client/api/certificates_api.py rename kubernetes/client/{apis => api}/certificates_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/coordination_api.py rename kubernetes/client/{apis => api}/coordination_v1_api.py (61%) rename kubernetes/client/{apis => api}/coordination_v1beta1_api.py (61%) create mode 100644 kubernetes/client/api/core_api.py rename kubernetes/client/{apis => api}/core_v1_api.py (60%) rename kubernetes/client/{apis => api}/custom_objects_api.py (50%) create mode 100644 kubernetes/client/api/events_api.py rename kubernetes/client/{apis => api}/events_v1beta1_api.py (61%) create mode 100644 kubernetes/client/api/extensions_api.py rename kubernetes/client/{apis => api}/extensions_v1beta1_api.py (60%) rename kubernetes/client/{apis => api}/logs_api.py (55%) create mode 100644 kubernetes/client/api/networking_api.py rename kubernetes/client/{apis => api}/networking_v1_api.py (61%) rename kubernetes/client/{apis => api}/networking_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/node_api.py rename kubernetes/client/{apis => api}/node_v1alpha1_api.py (60%) rename kubernetes/client/{apis => api}/node_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/policy_api.py rename kubernetes/client/{apis => api}/policy_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/rbac_authorization_api.py rename kubernetes/client/{apis => api}/rbac_authorization_v1_api.py (60%) rename kubernetes/client/{apis => api}/rbac_authorization_v1alpha1_api.py (60%) rename kubernetes/client/{apis => api}/rbac_authorization_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/scheduling_api.py rename kubernetes/client/{apis => api}/scheduling_v1_api.py (59%) rename kubernetes/client/{apis => api}/scheduling_v1alpha1_api.py (59%) rename kubernetes/client/{apis => api}/scheduling_v1beta1_api.py (59%) create mode 100644 kubernetes/client/api/settings_api.py rename kubernetes/client/{apis => api}/settings_v1alpha1_api.py (61%) create mode 100644 kubernetes/client/api/storage_api.py rename kubernetes/client/{apis => api}/storage_v1_api.py (59%) rename kubernetes/client/{apis => api}/storage_v1alpha1_api.py (59%) rename kubernetes/client/{apis => api}/storage_v1beta1_api.py (60%) create mode 100644 kubernetes/client/api/version_api.py delete mode 100644 kubernetes/client/apis/__init__.py delete mode 100644 kubernetes/client/apis/admissionregistration_api.py delete mode 100644 kubernetes/client/apis/apiextensions_api.py delete mode 100644 kubernetes/client/apis/apiregistration_api.py delete mode 100644 kubernetes/client/apis/apis_api.py delete mode 100644 kubernetes/client/apis/apps_api.py delete mode 100644 kubernetes/client/apis/auditregistration_api.py delete mode 100644 kubernetes/client/apis/authentication_api.py delete mode 100644 kubernetes/client/apis/authorization_api.py delete mode 100644 kubernetes/client/apis/autoscaling_api.py delete mode 100644 kubernetes/client/apis/batch_api.py delete mode 100644 kubernetes/client/apis/certificates_api.py delete mode 100644 kubernetes/client/apis/coordination_api.py delete mode 100644 kubernetes/client/apis/core_api.py delete mode 100644 kubernetes/client/apis/events_api.py delete mode 100644 kubernetes/client/apis/extensions_api.py delete mode 100644 kubernetes/client/apis/networking_api.py delete mode 100644 kubernetes/client/apis/node_api.py delete mode 100644 kubernetes/client/apis/policy_api.py delete mode 100644 kubernetes/client/apis/rbac_authorization_api.py delete mode 100644 kubernetes/client/apis/scheduling_api.py delete mode 100644 kubernetes/client/apis/settings_api.py delete mode 100644 kubernetes/client/apis/storage_api.py delete mode 100644 kubernetes/client/apis/version_api.py create mode 100644 kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py create mode 100644 kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py create mode 100644 kubernetes/client/models/v1_windows_security_context_options.py create mode 100644 kubernetes/client/models/v1beta1_mutating_webhook.py rename kubernetes/client/models/{v1beta1_webhook.py => v1beta1_validating_webhook.py} (53%) create mode 100644 kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md create mode 100644 kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md create mode 100644 kubernetes/docs/V1WindowsSecurityContextOptions.md create mode 100644 kubernetes/docs/V1beta1MutatingWebhook.md rename kubernetes/docs/{V1beta1Webhook.md => V1beta1ValidatingWebhook.md} (65%) create mode 100644 kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py create mode 100644 kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py delete mode 100644 kubernetes/test/test_quantity.py create mode 100644 kubernetes/test/test_v1_windows_security_context_options.py create mode 100644 kubernetes/test/test_v1beta1_mutating_webhook.py create mode 100644 kubernetes/test/test_v1beta1_validating_webhook.py delete mode 100644 kubernetes/test/test_v1beta1_webhook.py diff --git a/kubernetes/.swagger-codegen-ignore b/kubernetes/.openapi-generator-ignore similarity index 100% rename from kubernetes/.swagger-codegen-ignore rename to kubernetes/.openapi-generator-ignore diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT new file mode 100644 index 0000000000..768730d965 --- /dev/null +++ b/kubernetes/.openapi-generator/COMMIT @@ -0,0 +1,2 @@ +Requested Commit: v3.3.4 +Actual Commit: 2353d71d4b02be6dbabe25aac1a9e56eb3b812a2 diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION new file mode 100644 index 0000000000..2c6109e5bb --- /dev/null +++ b/kubernetes/.openapi-generator/VERSION @@ -0,0 +1 @@ +3.3.4 \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 new file mode 100644 index 0000000000..a6c5462a57 --- /dev/null +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -0,0 +1 @@ +c7fcb583e32ecfaf5dc5b62974dac24d4a849bea6a6ebd917b440411a29193c7 \ No newline at end of file diff --git a/kubernetes/README.md b/kubernetes/README.md index e18ad5c1ac..7c8a890871 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -1,11 +1,11 @@ # kubernetes.client -No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.14.4 -- Package version: 10.0.0-snapshot -- Build package: io.swagger.codegen.languages.PythonClientCodegen +- API version: v1.15.6 +- Package version: 11.0.0-snapshot +- Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -52,11 +52,13 @@ from kubernetes.client.rest import ApiException from pprint import pprint # Configure API key authorization: BearerToken -kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' +configuration = kubernetes.client.Configuration() +configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# kubernetes.client.configuration.api_key_prefix['authorization'] = 'Bearer' +# configuration.api_key_prefix['authorization'] = 'Bearer' + # create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationApi() +api_instance = kubernetes.client.AdmissionregistrationApi(kubernetes.client.ApiClient(configuration)) try: api_response = api_instance.get_api_group() @@ -68,7 +70,7 @@ except ApiException as e: ## Documentation for API Endpoints -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -1019,6 +1021,7 @@ Class | Method | HTTP request | Description - [ExtensionsV1beta1RollingUpdateDeployment](docs/ExtensionsV1beta1RollingUpdateDeployment.md) - [ExtensionsV1beta1RunAsGroupStrategyOptions](docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md) - [ExtensionsV1beta1RunAsUserStrategyOptions](docs/ExtensionsV1beta1RunAsUserStrategyOptions.md) + - [ExtensionsV1beta1RuntimeClassStrategyOptions](docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md) - [ExtensionsV1beta1SELinuxStrategyOptions](docs/ExtensionsV1beta1SELinuxStrategyOptions.md) - [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md) - [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md) @@ -1044,6 +1047,7 @@ Class | Method | HTTP request | Description - [PolicyV1beta1PodSecurityPolicySpec](docs/PolicyV1beta1PodSecurityPolicySpec.md) - [PolicyV1beta1RunAsGroupStrategyOptions](docs/PolicyV1beta1RunAsGroupStrategyOptions.md) - [PolicyV1beta1RunAsUserStrategyOptions](docs/PolicyV1beta1RunAsUserStrategyOptions.md) + - [PolicyV1beta1RuntimeClassStrategyOptions](docs/PolicyV1beta1RuntimeClassStrategyOptions.md) - [PolicyV1beta1SELinuxStrategyOptions](docs/PolicyV1beta1SELinuxStrategyOptions.md) - [PolicyV1beta1SupplementalGroupsStrategyOptions](docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md) - [RuntimeRawExtension](docs/RuntimeRawExtension.md) @@ -1344,6 +1348,7 @@ Class | Method | HTTP request | Description - [V1VsphereVirtualDiskVolumeSource](docs/V1VsphereVirtualDiskVolumeSource.md) - [V1WatchEvent](docs/V1WatchEvent.md) - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) + - [V1WindowsSecurityContextOptions](docs/V1WindowsSecurityContextOptions.md) - [V1alpha1AggregationRule](docs/V1alpha1AggregationRule.md) - [V1alpha1AuditSink](docs/V1alpha1AuditSink.md) - [V1alpha1AuditSinkList](docs/V1alpha1AuditSinkList.md) @@ -1436,6 +1441,7 @@ Class | Method | HTTP request | Description - [V1beta1LeaseList](docs/V1beta1LeaseList.md) - [V1beta1LeaseSpec](docs/V1beta1LeaseSpec.md) - [V1beta1LocalSubjectAccessReview](docs/V1beta1LocalSubjectAccessReview.md) + - [V1beta1MutatingWebhook](docs/V1beta1MutatingWebhook.md) - [V1beta1MutatingWebhookConfiguration](docs/V1beta1MutatingWebhookConfiguration.md) - [V1beta1MutatingWebhookConfigurationList](docs/V1beta1MutatingWebhookConfigurationList.md) - [V1beta1NetworkPolicy](docs/V1beta1NetworkPolicy.md) @@ -1492,6 +1498,7 @@ Class | Method | HTTP request | Description - [V1beta1TokenReviewSpec](docs/V1beta1TokenReviewSpec.md) - [V1beta1TokenReviewStatus](docs/V1beta1TokenReviewStatus.md) - [V1beta1UserInfo](docs/V1beta1UserInfo.md) + - [V1beta1ValidatingWebhook](docs/V1beta1ValidatingWebhook.md) - [V1beta1ValidatingWebhookConfiguration](docs/V1beta1ValidatingWebhookConfiguration.md) - [V1beta1ValidatingWebhookConfigurationList](docs/V1beta1ValidatingWebhookConfigurationList.md) - [V1beta1VolumeAttachment](docs/V1beta1VolumeAttachment.md) @@ -1500,7 +1507,6 @@ Class | Method | HTTP request | Description - [V1beta1VolumeAttachmentSpec](docs/V1beta1VolumeAttachmentSpec.md) - [V1beta1VolumeAttachmentStatus](docs/V1beta1VolumeAttachmentStatus.md) - [V1beta1VolumeError](docs/V1beta1VolumeError.md) - - [V1beta1Webhook](docs/V1beta1Webhook.md) - [V1beta2ControllerRevision](docs/V1beta2ControllerRevision.md) - [V1beta2ControllerRevisionList](docs/V1beta2ControllerRevisionList.md) - [V1beta2DaemonSet](docs/V1beta2DaemonSet.md) @@ -1589,3 +1595,4 @@ Class | Method | HTTP request | Description + diff --git a/kubernetes/__init__.py b/kubernetes/__init__.py index 545657a6b2..501bf6e5df 100644 --- a/kubernetes/__init__.py +++ b/kubernetes/__init__.py @@ -14,7 +14,7 @@ __project__ = 'kubernetes' # The version is auto-updated. Please do not edit. -__version__ = "10.0.0-snapshot" +__version__ = "11.0.0-snapshot" import kubernetes.client import kubernetes.config diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index 9bceaefd4d..005aa528ec 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -1,687 +1,692 @@ # coding: utf-8 +# flake8: noqa + """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -# import models into sdk package -from .models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference -from .models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig -from .models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference -from .models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig -from .models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference -from .models.apps_v1beta1_deployment import AppsV1beta1Deployment -from .models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition -from .models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList -from .models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback -from .models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec -from .models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus -from .models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy -from .models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig -from .models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment -from .models.apps_v1beta1_scale import AppsV1beta1Scale -from .models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec -from .models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus -from .models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver -from .models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume -from .models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath -from .models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment -from .models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition -from .models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList -from .models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback -from .models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec -from .models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus -from .models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy -from .models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions -from .models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath -from .models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue -from .models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange -from .models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange -from .models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress -from .models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend -from .models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList -from .models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule -from .models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec -from .models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus -from .models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS -from .models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy -from .models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList -from .models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec -from .models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig -from .models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment -from .models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions -from .models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions -from .models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions -from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale -from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec -from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus -from .models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions -from .models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath -from .models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue -from .models.networking_v1beta1_ingress import NetworkingV1beta1Ingress -from .models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend -from .models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList -from .models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule -from .models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec -from .models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus -from .models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS -from .models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver -from .models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume -from .models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath -from .models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions -from .models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange -from .models.policy_v1beta1_id_range import PolicyV1beta1IDRange -from .models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy -from .models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList -from .models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec -from .models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions -from .models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions -from .models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions -from .models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions -from .models.runtime_raw_extension import RuntimeRawExtension -from .models.v1_api_group import V1APIGroup -from .models.v1_api_group_list import V1APIGroupList -from .models.v1_api_resource import V1APIResource -from .models.v1_api_resource_list import V1APIResourceList -from .models.v1_api_service import V1APIService -from .models.v1_api_service_condition import V1APIServiceCondition -from .models.v1_api_service_list import V1APIServiceList -from .models.v1_api_service_spec import V1APIServiceSpec -from .models.v1_api_service_status import V1APIServiceStatus -from .models.v1_api_versions import V1APIVersions -from .models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .models.v1_affinity import V1Affinity -from .models.v1_aggregation_rule import V1AggregationRule -from .models.v1_attached_volume import V1AttachedVolume -from .models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource -from .models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource -from .models.v1_azure_file_volume_source import V1AzureFileVolumeSource -from .models.v1_binding import V1Binding -from .models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource -from .models.v1_csi_volume_source import V1CSIVolumeSource -from .models.v1_capabilities import V1Capabilities -from .models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource -from .models.v1_ceph_fs_volume_source import V1CephFSVolumeSource -from .models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource -from .models.v1_cinder_volume_source import V1CinderVolumeSource -from .models.v1_client_ip_config import V1ClientIPConfig -from .models.v1_cluster_role import V1ClusterRole -from .models.v1_cluster_role_binding import V1ClusterRoleBinding -from .models.v1_cluster_role_binding_list import V1ClusterRoleBindingList -from .models.v1_cluster_role_list import V1ClusterRoleList -from .models.v1_component_condition import V1ComponentCondition -from .models.v1_component_status import V1ComponentStatus -from .models.v1_component_status_list import V1ComponentStatusList -from .models.v1_config_map import V1ConfigMap -from .models.v1_config_map_env_source import V1ConfigMapEnvSource -from .models.v1_config_map_key_selector import V1ConfigMapKeySelector -from .models.v1_config_map_list import V1ConfigMapList -from .models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource -from .models.v1_config_map_projection import V1ConfigMapProjection -from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource -from .models.v1_container import V1Container -from .models.v1_container_image import V1ContainerImage -from .models.v1_container_port import V1ContainerPort -from .models.v1_container_state import V1ContainerState -from .models.v1_container_state_running import V1ContainerStateRunning -from .models.v1_container_state_terminated import V1ContainerStateTerminated -from .models.v1_container_state_waiting import V1ContainerStateWaiting -from .models.v1_container_status import V1ContainerStatus -from .models.v1_controller_revision import V1ControllerRevision -from .models.v1_controller_revision_list import V1ControllerRevisionList -from .models.v1_cross_version_object_reference import V1CrossVersionObjectReference -from .models.v1_daemon_endpoint import V1DaemonEndpoint -from .models.v1_daemon_set import V1DaemonSet -from .models.v1_daemon_set_condition import V1DaemonSetCondition -from .models.v1_daemon_set_list import V1DaemonSetList -from .models.v1_daemon_set_spec import V1DaemonSetSpec -from .models.v1_daemon_set_status import V1DaemonSetStatus -from .models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy -from .models.v1_delete_options import V1DeleteOptions -from .models.v1_deployment import V1Deployment -from .models.v1_deployment_condition import V1DeploymentCondition -from .models.v1_deployment_list import V1DeploymentList -from .models.v1_deployment_spec import V1DeploymentSpec -from .models.v1_deployment_status import V1DeploymentStatus -from .models.v1_deployment_strategy import V1DeploymentStrategy -from .models.v1_downward_api_projection import V1DownwardAPIProjection -from .models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile -from .models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource -from .models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource -from .models.v1_endpoint_address import V1EndpointAddress -from .models.v1_endpoint_port import V1EndpointPort -from .models.v1_endpoint_subset import V1EndpointSubset -from .models.v1_endpoints import V1Endpoints -from .models.v1_endpoints_list import V1EndpointsList -from .models.v1_env_from_source import V1EnvFromSource -from .models.v1_env_var import V1EnvVar -from .models.v1_env_var_source import V1EnvVarSource -from .models.v1_event import V1Event -from .models.v1_event_list import V1EventList -from .models.v1_event_series import V1EventSeries -from .models.v1_event_source import V1EventSource -from .models.v1_exec_action import V1ExecAction -from .models.v1_fc_volume_source import V1FCVolumeSource -from .models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource -from .models.v1_flex_volume_source import V1FlexVolumeSource -from .models.v1_flocker_volume_source import V1FlockerVolumeSource -from .models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource -from .models.v1_git_repo_volume_source import V1GitRepoVolumeSource -from .models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource -from .models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .models.v1_group_version_for_discovery import V1GroupVersionForDiscovery -from .models.v1_http_get_action import V1HTTPGetAction -from .models.v1_http_header import V1HTTPHeader -from .models.v1_handler import V1Handler -from .models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler -from .models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList -from .models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec -from .models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus -from .models.v1_host_alias import V1HostAlias -from .models.v1_host_path_volume_source import V1HostPathVolumeSource -from .models.v1_ip_block import V1IPBlock -from .models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource -from .models.v1_iscsi_volume_source import V1ISCSIVolumeSource -from .models.v1_initializer import V1Initializer -from .models.v1_initializers import V1Initializers -from .models.v1_job import V1Job -from .models.v1_job_condition import V1JobCondition -from .models.v1_job_list import V1JobList -from .models.v1_job_spec import V1JobSpec -from .models.v1_job_status import V1JobStatus -from .models.v1_key_to_path import V1KeyToPath -from .models.v1_label_selector import V1LabelSelector -from .models.v1_label_selector_requirement import V1LabelSelectorRequirement -from .models.v1_lease import V1Lease -from .models.v1_lease_list import V1LeaseList -from .models.v1_lease_spec import V1LeaseSpec -from .models.v1_lifecycle import V1Lifecycle -from .models.v1_limit_range import V1LimitRange -from .models.v1_limit_range_item import V1LimitRangeItem -from .models.v1_limit_range_list import V1LimitRangeList -from .models.v1_limit_range_spec import V1LimitRangeSpec -from .models.v1_list_meta import V1ListMeta -from .models.v1_load_balancer_ingress import V1LoadBalancerIngress -from .models.v1_load_balancer_status import V1LoadBalancerStatus -from .models.v1_local_object_reference import V1LocalObjectReference -from .models.v1_local_subject_access_review import V1LocalSubjectAccessReview -from .models.v1_local_volume_source import V1LocalVolumeSource -from .models.v1_managed_fields_entry import V1ManagedFieldsEntry -from .models.v1_nfs_volume_source import V1NFSVolumeSource -from .models.v1_namespace import V1Namespace -from .models.v1_namespace_list import V1NamespaceList -from .models.v1_namespace_spec import V1NamespaceSpec -from .models.v1_namespace_status import V1NamespaceStatus -from .models.v1_network_policy import V1NetworkPolicy -from .models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule -from .models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule -from .models.v1_network_policy_list import V1NetworkPolicyList -from .models.v1_network_policy_peer import V1NetworkPolicyPeer -from .models.v1_network_policy_port import V1NetworkPolicyPort -from .models.v1_network_policy_spec import V1NetworkPolicySpec -from .models.v1_node import V1Node -from .models.v1_node_address import V1NodeAddress -from .models.v1_node_affinity import V1NodeAffinity -from .models.v1_node_condition import V1NodeCondition -from .models.v1_node_config_source import V1NodeConfigSource -from .models.v1_node_config_status import V1NodeConfigStatus -from .models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints -from .models.v1_node_list import V1NodeList -from .models.v1_node_selector import V1NodeSelector -from .models.v1_node_selector_requirement import V1NodeSelectorRequirement -from .models.v1_node_selector_term import V1NodeSelectorTerm -from .models.v1_node_spec import V1NodeSpec -from .models.v1_node_status import V1NodeStatus -from .models.v1_node_system_info import V1NodeSystemInfo -from .models.v1_non_resource_attributes import V1NonResourceAttributes -from .models.v1_non_resource_rule import V1NonResourceRule -from .models.v1_object_field_selector import V1ObjectFieldSelector -from .models.v1_object_meta import V1ObjectMeta -from .models.v1_object_reference import V1ObjectReference -from .models.v1_owner_reference import V1OwnerReference -from .models.v1_persistent_volume import V1PersistentVolume -from .models.v1_persistent_volume_claim import V1PersistentVolumeClaim -from .models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition -from .models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList -from .models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .models.v1_persistent_volume_list import V1PersistentVolumeList -from .models.v1_persistent_volume_spec import V1PersistentVolumeSpec -from .models.v1_persistent_volume_status import V1PersistentVolumeStatus -from .models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource -from .models.v1_pod import V1Pod -from .models.v1_pod_affinity import V1PodAffinity -from .models.v1_pod_affinity_term import V1PodAffinityTerm -from .models.v1_pod_anti_affinity import V1PodAntiAffinity -from .models.v1_pod_condition import V1PodCondition -from .models.v1_pod_dns_config import V1PodDNSConfig -from .models.v1_pod_dns_config_option import V1PodDNSConfigOption -from .models.v1_pod_list import V1PodList -from .models.v1_pod_readiness_gate import V1PodReadinessGate -from .models.v1_pod_security_context import V1PodSecurityContext -from .models.v1_pod_spec import V1PodSpec -from .models.v1_pod_status import V1PodStatus -from .models.v1_pod_template import V1PodTemplate -from .models.v1_pod_template_list import V1PodTemplateList -from .models.v1_pod_template_spec import V1PodTemplateSpec -from .models.v1_policy_rule import V1PolicyRule -from .models.v1_portworx_volume_source import V1PortworxVolumeSource -from .models.v1_preconditions import V1Preconditions -from .models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm -from .models.v1_priority_class import V1PriorityClass -from .models.v1_priority_class_list import V1PriorityClassList -from .models.v1_probe import V1Probe -from .models.v1_projected_volume_source import V1ProjectedVolumeSource -from .models.v1_quobyte_volume_source import V1QuobyteVolumeSource -from .models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource -from .models.v1_rbd_volume_source import V1RBDVolumeSource -from .models.v1_replica_set import V1ReplicaSet -from .models.v1_replica_set_condition import V1ReplicaSetCondition -from .models.v1_replica_set_list import V1ReplicaSetList -from .models.v1_replica_set_spec import V1ReplicaSetSpec -from .models.v1_replica_set_status import V1ReplicaSetStatus -from .models.v1_replication_controller import V1ReplicationController -from .models.v1_replication_controller_condition import V1ReplicationControllerCondition -from .models.v1_replication_controller_list import V1ReplicationControllerList -from .models.v1_replication_controller_spec import V1ReplicationControllerSpec -from .models.v1_replication_controller_status import V1ReplicationControllerStatus -from .models.v1_resource_attributes import V1ResourceAttributes -from .models.v1_resource_field_selector import V1ResourceFieldSelector -from .models.v1_resource_quota import V1ResourceQuota -from .models.v1_resource_quota_list import V1ResourceQuotaList -from .models.v1_resource_quota_spec import V1ResourceQuotaSpec -from .models.v1_resource_quota_status import V1ResourceQuotaStatus -from .models.v1_resource_requirements import V1ResourceRequirements -from .models.v1_resource_rule import V1ResourceRule -from .models.v1_role import V1Role -from .models.v1_role_binding import V1RoleBinding -from .models.v1_role_binding_list import V1RoleBindingList -from .models.v1_role_list import V1RoleList -from .models.v1_role_ref import V1RoleRef -from .models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet -from .models.v1_rolling_update_deployment import V1RollingUpdateDeployment -from .models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy -from .models.v1_se_linux_options import V1SELinuxOptions -from .models.v1_scale import V1Scale -from .models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource -from .models.v1_scale_io_volume_source import V1ScaleIOVolumeSource -from .models.v1_scale_spec import V1ScaleSpec -from .models.v1_scale_status import V1ScaleStatus -from .models.v1_scope_selector import V1ScopeSelector -from .models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement -from .models.v1_secret import V1Secret -from .models.v1_secret_env_source import V1SecretEnvSource -from .models.v1_secret_key_selector import V1SecretKeySelector -from .models.v1_secret_list import V1SecretList -from .models.v1_secret_projection import V1SecretProjection -from .models.v1_secret_reference import V1SecretReference -from .models.v1_secret_volume_source import V1SecretVolumeSource -from .models.v1_security_context import V1SecurityContext -from .models.v1_self_subject_access_review import V1SelfSubjectAccessReview -from .models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec -from .models.v1_self_subject_rules_review import V1SelfSubjectRulesReview -from .models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec -from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR -from .models.v1_service import V1Service -from .models.v1_service_account import V1ServiceAccount -from .models.v1_service_account_list import V1ServiceAccountList -from .models.v1_service_account_token_projection import V1ServiceAccountTokenProjection -from .models.v1_service_list import V1ServiceList -from .models.v1_service_port import V1ServicePort -from .models.v1_service_reference import V1ServiceReference -from .models.v1_service_spec import V1ServiceSpec -from .models.v1_service_status import V1ServiceStatus -from .models.v1_session_affinity_config import V1SessionAffinityConfig -from .models.v1_stateful_set import V1StatefulSet -from .models.v1_stateful_set_condition import V1StatefulSetCondition -from .models.v1_stateful_set_list import V1StatefulSetList -from .models.v1_stateful_set_spec import V1StatefulSetSpec -from .models.v1_stateful_set_status import V1StatefulSetStatus -from .models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy -from .models.v1_status import V1Status -from .models.v1_status_cause import V1StatusCause -from .models.v1_status_details import V1StatusDetails -from .models.v1_storage_class import V1StorageClass -from .models.v1_storage_class_list import V1StorageClassList -from .models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource -from .models.v1_storage_os_volume_source import V1StorageOSVolumeSource -from .models.v1_subject import V1Subject -from .models.v1_subject_access_review import V1SubjectAccessReview -from .models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec -from .models.v1_subject_access_review_status import V1SubjectAccessReviewStatus -from .models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus -from .models.v1_sysctl import V1Sysctl -from .models.v1_tcp_socket_action import V1TCPSocketAction -from .models.v1_taint import V1Taint -from .models.v1_token_review import V1TokenReview -from .models.v1_token_review_spec import V1TokenReviewSpec -from .models.v1_token_review_status import V1TokenReviewStatus -from .models.v1_toleration import V1Toleration -from .models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement -from .models.v1_topology_selector_term import V1TopologySelectorTerm -from .models.v1_typed_local_object_reference import V1TypedLocalObjectReference -from .models.v1_user_info import V1UserInfo -from .models.v1_volume import V1Volume -from .models.v1_volume_attachment import V1VolumeAttachment -from .models.v1_volume_attachment_list import V1VolumeAttachmentList -from .models.v1_volume_attachment_source import V1VolumeAttachmentSource -from .models.v1_volume_attachment_spec import V1VolumeAttachmentSpec -from .models.v1_volume_attachment_status import V1VolumeAttachmentStatus -from .models.v1_volume_device import V1VolumeDevice -from .models.v1_volume_error import V1VolumeError -from .models.v1_volume_mount import V1VolumeMount -from .models.v1_volume_node_affinity import V1VolumeNodeAffinity -from .models.v1_volume_projection import V1VolumeProjection -from .models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -from .models.v1_watch_event import V1WatchEvent -from .models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm -from .models.v1alpha1_aggregation_rule import V1alpha1AggregationRule -from .models.v1alpha1_audit_sink import V1alpha1AuditSink -from .models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList -from .models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec -from .models.v1alpha1_cluster_role import V1alpha1ClusterRole -from .models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding -from .models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList -from .models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList -from .models.v1alpha1_pod_preset import V1alpha1PodPreset -from .models.v1alpha1_pod_preset_list import V1alpha1PodPresetList -from .models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec -from .models.v1alpha1_policy import V1alpha1Policy -from .models.v1alpha1_policy_rule import V1alpha1PolicyRule -from .models.v1alpha1_priority_class import V1alpha1PriorityClass -from .models.v1alpha1_priority_class_list import V1alpha1PriorityClassList -from .models.v1alpha1_role import V1alpha1Role -from .models.v1alpha1_role_binding import V1alpha1RoleBinding -from .models.v1alpha1_role_binding_list import V1alpha1RoleBindingList -from .models.v1alpha1_role_list import V1alpha1RoleList -from .models.v1alpha1_role_ref import V1alpha1RoleRef -from .models.v1alpha1_runtime_class import V1alpha1RuntimeClass -from .models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList -from .models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec -from .models.v1alpha1_service_reference import V1alpha1ServiceReference -from .models.v1alpha1_subject import V1alpha1Subject -from .models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment -from .models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList -from .models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource -from .models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec -from .models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus -from .models.v1alpha1_volume_error import V1alpha1VolumeError -from .models.v1alpha1_webhook import V1alpha1Webhook -from .models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig -from .models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig -from .models.v1beta1_api_service import V1beta1APIService -from .models.v1beta1_api_service_condition import V1beta1APIServiceCondition -from .models.v1beta1_api_service_list import V1beta1APIServiceList -from .models.v1beta1_api_service_spec import V1beta1APIServiceSpec -from .models.v1beta1_api_service_status import V1beta1APIServiceStatus -from .models.v1beta1_aggregation_rule import V1beta1AggregationRule -from .models.v1beta1_csi_driver import V1beta1CSIDriver -from .models.v1beta1_csi_driver_list import V1beta1CSIDriverList -from .models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec -from .models.v1beta1_csi_node import V1beta1CSINode -from .models.v1beta1_csi_node_driver import V1beta1CSINodeDriver -from .models.v1beta1_csi_node_list import V1beta1CSINodeList -from .models.v1beta1_csi_node_spec import V1beta1CSINodeSpec -from .models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest -from .models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition -from .models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList -from .models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec -from .models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus -from .models.v1beta1_cluster_role import V1beta1ClusterRole -from .models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding -from .models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList -from .models.v1beta1_cluster_role_list import V1beta1ClusterRoleList -from .models.v1beta1_controller_revision import V1beta1ControllerRevision -from .models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList -from .models.v1beta1_cron_job import V1beta1CronJob -from .models.v1beta1_cron_job_list import V1beta1CronJobList -from .models.v1beta1_cron_job_spec import V1beta1CronJobSpec -from .models.v1beta1_cron_job_status import V1beta1CronJobStatus -from .models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition -from .models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion -from .models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition -from .models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition -from .models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList -from .models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames -from .models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec -from .models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus -from .models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion -from .models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale -from .models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources -from .models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation -from .models.v1beta1_daemon_set import V1beta1DaemonSet -from .models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition -from .models.v1beta1_daemon_set_list import V1beta1DaemonSetList -from .models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec -from .models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus -from .models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy -from .models.v1beta1_event import V1beta1Event -from .models.v1beta1_event_list import V1beta1EventList -from .models.v1beta1_event_series import V1beta1EventSeries -from .models.v1beta1_eviction import V1beta1Eviction -from .models.v1beta1_external_documentation import V1beta1ExternalDocumentation -from .models.v1beta1_ip_block import V1beta1IPBlock -from .models.v1beta1_json_schema_props import V1beta1JSONSchemaProps -from .models.v1beta1_job_template_spec import V1beta1JobTemplateSpec -from .models.v1beta1_lease import V1beta1Lease -from .models.v1beta1_lease_list import V1beta1LeaseList -from .models.v1beta1_lease_spec import V1beta1LeaseSpec -from .models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview -from .models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration -from .models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList -from .models.v1beta1_network_policy import V1beta1NetworkPolicy -from .models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule -from .models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule -from .models.v1beta1_network_policy_list import V1beta1NetworkPolicyList -from .models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer -from .models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort -from .models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec -from .models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes -from .models.v1beta1_non_resource_rule import V1beta1NonResourceRule -from .models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget -from .models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList -from .models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec -from .models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus -from .models.v1beta1_policy_rule import V1beta1PolicyRule -from .models.v1beta1_priority_class import V1beta1PriorityClass -from .models.v1beta1_priority_class_list import V1beta1PriorityClassList -from .models.v1beta1_replica_set import V1beta1ReplicaSet -from .models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition -from .models.v1beta1_replica_set_list import V1beta1ReplicaSetList -from .models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec -from .models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus -from .models.v1beta1_resource_attributes import V1beta1ResourceAttributes -from .models.v1beta1_resource_rule import V1beta1ResourceRule -from .models.v1beta1_role import V1beta1Role -from .models.v1beta1_role_binding import V1beta1RoleBinding -from .models.v1beta1_role_binding_list import V1beta1RoleBindingList -from .models.v1beta1_role_list import V1beta1RoleList -from .models.v1beta1_role_ref import V1beta1RoleRef -from .models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet -from .models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy -from .models.v1beta1_rule_with_operations import V1beta1RuleWithOperations -from .models.v1beta1_runtime_class import V1beta1RuntimeClass -from .models.v1beta1_runtime_class_list import V1beta1RuntimeClassList -from .models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview -from .models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec -from .models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview -from .models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec -from .models.v1beta1_stateful_set import V1beta1StatefulSet -from .models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition -from .models.v1beta1_stateful_set_list import V1beta1StatefulSetList -from .models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec -from .models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus -from .models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy -from .models.v1beta1_storage_class import V1beta1StorageClass -from .models.v1beta1_storage_class_list import V1beta1StorageClassList -from .models.v1beta1_subject import V1beta1Subject -from .models.v1beta1_subject_access_review import V1beta1SubjectAccessReview -from .models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec -from .models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus -from .models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus -from .models.v1beta1_token_review import V1beta1TokenReview -from .models.v1beta1_token_review_spec import V1beta1TokenReviewSpec -from .models.v1beta1_token_review_status import V1beta1TokenReviewStatus -from .models.v1beta1_user_info import V1beta1UserInfo -from .models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration -from .models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList -from .models.v1beta1_volume_attachment import V1beta1VolumeAttachment -from .models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList -from .models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource -from .models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec -from .models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus -from .models.v1beta1_volume_error import V1beta1VolumeError -from .models.v1beta1_webhook import V1beta1Webhook -from .models.v1beta2_controller_revision import V1beta2ControllerRevision -from .models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList -from .models.v1beta2_daemon_set import V1beta2DaemonSet -from .models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition -from .models.v1beta2_daemon_set_list import V1beta2DaemonSetList -from .models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec -from .models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus -from .models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy -from .models.v1beta2_deployment import V1beta2Deployment -from .models.v1beta2_deployment_condition import V1beta2DeploymentCondition -from .models.v1beta2_deployment_list import V1beta2DeploymentList -from .models.v1beta2_deployment_spec import V1beta2DeploymentSpec -from .models.v1beta2_deployment_status import V1beta2DeploymentStatus -from .models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy -from .models.v1beta2_replica_set import V1beta2ReplicaSet -from .models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition -from .models.v1beta2_replica_set_list import V1beta2ReplicaSetList -from .models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec -from .models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus -from .models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet -from .models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment -from .models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy -from .models.v1beta2_scale import V1beta2Scale -from .models.v1beta2_scale_spec import V1beta2ScaleSpec -from .models.v1beta2_scale_status import V1beta2ScaleStatus -from .models.v1beta2_stateful_set import V1beta2StatefulSet -from .models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition -from .models.v1beta2_stateful_set_list import V1beta2StatefulSetList -from .models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec -from .models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus -from .models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy -from .models.v2alpha1_cron_job import V2alpha1CronJob -from .models.v2alpha1_cron_job_list import V2alpha1CronJobList -from .models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec -from .models.v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec -from .models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference -from .models.v2beta1_external_metric_source import V2beta1ExternalMetricSource -from .models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus -from .models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler -from .models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition -from .models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList -from .models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec -from .models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus -from .models.v2beta1_metric_spec import V2beta1MetricSpec -from .models.v2beta1_metric_status import V2beta1MetricStatus -from .models.v2beta1_object_metric_source import V2beta1ObjectMetricSource -from .models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus -from .models.v2beta1_pods_metric_source import V2beta1PodsMetricSource -from .models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus -from .models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource -from .models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus -from .models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference -from .models.v2beta2_external_metric_source import V2beta2ExternalMetricSource -from .models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus -from .models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler -from .models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition -from .models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList -from .models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec -from .models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus -from .models.v2beta2_metric_identifier import V2beta2MetricIdentifier -from .models.v2beta2_metric_spec import V2beta2MetricSpec -from .models.v2beta2_metric_status import V2beta2MetricStatus -from .models.v2beta2_metric_target import V2beta2MetricTarget -from .models.v2beta2_metric_value_status import V2beta2MetricValueStatus -from .models.v2beta2_object_metric_source import V2beta2ObjectMetricSource -from .models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus -from .models.v2beta2_pods_metric_source import V2beta2PodsMetricSource -from .models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus -from .models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource -from .models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus -from .models.version_info import VersionInfo +__version__ = "11.0.0-snapshot" # import apis into sdk package -from .apis.admissionregistration_api import AdmissionregistrationApi -from .apis.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api -from .apis.apiextensions_api import ApiextensionsApi -from .apis.apiextensions_v1beta1_api import ApiextensionsV1beta1Api -from .apis.apiregistration_api import ApiregistrationApi -from .apis.apiregistration_v1_api import ApiregistrationV1Api -from .apis.apiregistration_v1beta1_api import ApiregistrationV1beta1Api -from .apis.apis_api import ApisApi -from .apis.apps_api import AppsApi -from .apis.apps_v1_api import AppsV1Api -from .apis.apps_v1beta1_api import AppsV1beta1Api -from .apis.apps_v1beta2_api import AppsV1beta2Api -from .apis.auditregistration_api import AuditregistrationApi -from .apis.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api -from .apis.authentication_api import AuthenticationApi -from .apis.authentication_v1_api import AuthenticationV1Api -from .apis.authentication_v1beta1_api import AuthenticationV1beta1Api -from .apis.authorization_api import AuthorizationApi -from .apis.authorization_v1_api import AuthorizationV1Api -from .apis.authorization_v1beta1_api import AuthorizationV1beta1Api -from .apis.autoscaling_api import AutoscalingApi -from .apis.autoscaling_v1_api import AutoscalingV1Api -from .apis.autoscaling_v2beta1_api import AutoscalingV2beta1Api -from .apis.autoscaling_v2beta2_api import AutoscalingV2beta2Api -from .apis.batch_api import BatchApi -from .apis.batch_v1_api import BatchV1Api -from .apis.batch_v1beta1_api import BatchV1beta1Api -from .apis.batch_v2alpha1_api import BatchV2alpha1Api -from .apis.certificates_api import CertificatesApi -from .apis.certificates_v1beta1_api import CertificatesV1beta1Api -from .apis.coordination_api import CoordinationApi -from .apis.coordination_v1_api import CoordinationV1Api -from .apis.coordination_v1beta1_api import CoordinationV1beta1Api -from .apis.core_api import CoreApi -from .apis.core_v1_api import CoreV1Api -from .apis.custom_objects_api import CustomObjectsApi -from .apis.events_api import EventsApi -from .apis.events_v1beta1_api import EventsV1beta1Api -from .apis.extensions_api import ExtensionsApi -from .apis.extensions_v1beta1_api import ExtensionsV1beta1Api -from .apis.logs_api import LogsApi -from .apis.networking_api import NetworkingApi -from .apis.networking_v1_api import NetworkingV1Api -from .apis.networking_v1beta1_api import NetworkingV1beta1Api -from .apis.node_api import NodeApi -from .apis.node_v1alpha1_api import NodeV1alpha1Api -from .apis.node_v1beta1_api import NodeV1beta1Api -from .apis.policy_api import PolicyApi -from .apis.policy_v1beta1_api import PolicyV1beta1Api -from .apis.rbac_authorization_api import RbacAuthorizationApi -from .apis.rbac_authorization_v1_api import RbacAuthorizationV1Api -from .apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api -from .apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api -from .apis.scheduling_api import SchedulingApi -from .apis.scheduling_v1_api import SchedulingV1Api -from .apis.scheduling_v1alpha1_api import SchedulingV1alpha1Api -from .apis.scheduling_v1beta1_api import SchedulingV1beta1Api -from .apis.settings_api import SettingsApi -from .apis.settings_v1alpha1_api import SettingsV1alpha1Api -from .apis.storage_api import StorageApi -from .apis.storage_v1_api import StorageV1Api -from .apis.storage_v1alpha1_api import StorageV1alpha1Api -from .apis.storage_v1beta1_api import StorageV1beta1Api -from .apis.version_api import VersionApi +from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi +from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api +from kubernetes.client.api.apiextensions_api import ApiextensionsApi +from kubernetes.client.api.apiextensions_v1beta1_api import ApiextensionsV1beta1Api +from kubernetes.client.api.apiregistration_api import ApiregistrationApi +from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api +from kubernetes.client.api.apiregistration_v1beta1_api import ApiregistrationV1beta1Api +from kubernetes.client.api.apis_api import ApisApi +from kubernetes.client.api.apps_api import AppsApi +from kubernetes.client.api.apps_v1_api import AppsV1Api +from kubernetes.client.api.apps_v1beta1_api import AppsV1beta1Api +from kubernetes.client.api.apps_v1beta2_api import AppsV1beta2Api +from kubernetes.client.api.auditregistration_api import AuditregistrationApi +from kubernetes.client.api.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api +from kubernetes.client.api.authentication_api import AuthenticationApi +from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api +from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api +from kubernetes.client.api.authorization_api import AuthorizationApi +from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api +from kubernetes.client.api.authorization_v1beta1_api import AuthorizationV1beta1Api +from kubernetes.client.api.autoscaling_api import AutoscalingApi +from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api +from kubernetes.client.api.autoscaling_v2beta1_api import AutoscalingV2beta1Api +from kubernetes.client.api.autoscaling_v2beta2_api import AutoscalingV2beta2Api +from kubernetes.client.api.batch_api import BatchApi +from kubernetes.client.api.batch_v1_api import BatchV1Api +from kubernetes.client.api.batch_v1beta1_api import BatchV1beta1Api +from kubernetes.client.api.batch_v2alpha1_api import BatchV2alpha1Api +from kubernetes.client.api.certificates_api import CertificatesApi +from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api +from kubernetes.client.api.coordination_api import CoordinationApi +from kubernetes.client.api.coordination_v1_api import CoordinationV1Api +from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api +from kubernetes.client.api.core_api import CoreApi +from kubernetes.client.api.core_v1_api import CoreV1Api +from kubernetes.client.api.custom_objects_api import CustomObjectsApi +from kubernetes.client.api.events_api import EventsApi +from kubernetes.client.api.events_v1beta1_api import EventsV1beta1Api +from kubernetes.client.api.extensions_api import ExtensionsApi +from kubernetes.client.api.extensions_v1beta1_api import ExtensionsV1beta1Api +from kubernetes.client.api.logs_api import LogsApi +from kubernetes.client.api.networking_api import NetworkingApi +from kubernetes.client.api.networking_v1_api import NetworkingV1Api +from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api +from kubernetes.client.api.node_api import NodeApi +from kubernetes.client.api.node_v1alpha1_api import NodeV1alpha1Api +from kubernetes.client.api.node_v1beta1_api import NodeV1beta1Api +from kubernetes.client.api.policy_api import PolicyApi +from kubernetes.client.api.policy_v1beta1_api import PolicyV1beta1Api +from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi +from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api +from kubernetes.client.api.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from kubernetes.client.api.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api +from kubernetes.client.api.scheduling_api import SchedulingApi +from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api +from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api +from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api +from kubernetes.client.api.settings_api import SettingsApi +from kubernetes.client.api.settings_v1alpha1_api import SettingsV1alpha1Api +from kubernetes.client.api.storage_api import StorageApi +from kubernetes.client.api.storage_v1_api import StorageV1Api +from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api +from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api +from kubernetes.client.api.version_api import VersionApi # import ApiClient -from .api_client import ApiClient - -from .configuration import Configuration +from kubernetes.client.api_client import ApiClient +from kubernetes.client.configuration import Configuration +# import models into sdk package +from kubernetes.client.models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference +from kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig +from kubernetes.client.models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference +from kubernetes.client.models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig +from kubernetes.client.models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference +from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment +from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition +from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList +from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback +from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec +from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus +from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy +from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig +from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment +from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale +from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec +from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus +from kubernetes.client.models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver +from kubernetes.client.models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume +from kubernetes.client.models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath +from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment +from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition +from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList +from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback +from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec +from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus +from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy +from kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions +from kubernetes.client.models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath +from kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue +from kubernetes.client.models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange +from kubernetes.client.models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange +from kubernetes.client.models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress +from kubernetes.client.models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend +from kubernetes.client.models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList +from kubernetes.client.models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule +from kubernetes.client.models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec +from kubernetes.client.models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus +from kubernetes.client.models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS +from kubernetes.client.models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec +from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig +from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment +from kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions +from kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions +from kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options import ExtensionsV1beta1RuntimeClassStrategyOptions +from kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions +from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale +from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec +from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus +from kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions +from kubernetes.client.models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath +from kubernetes.client.models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue +from kubernetes.client.models.networking_v1beta1_ingress import NetworkingV1beta1Ingress +from kubernetes.client.models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend +from kubernetes.client.models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList +from kubernetes.client.models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule +from kubernetes.client.models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec +from kubernetes.client.models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus +from kubernetes.client.models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS +from kubernetes.client.models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver +from kubernetes.client.models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume +from kubernetes.client.models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath +from kubernetes.client.models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions +from kubernetes.client.models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange +from kubernetes.client.models.policy_v1beta1_id_range import PolicyV1beta1IDRange +from kubernetes.client.models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy +from kubernetes.client.models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList +from kubernetes.client.models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec +from kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions +from kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions +from kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options import PolicyV1beta1RuntimeClassStrategyOptions +from kubernetes.client.models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions +from kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions +from kubernetes.client.models.runtime_raw_extension import RuntimeRawExtension +from kubernetes.client.models.v1_api_group import V1APIGroup +from kubernetes.client.models.v1_api_group_list import V1APIGroupList +from kubernetes.client.models.v1_api_resource import V1APIResource +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.models.v1_api_service import V1APIService +from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition +from kubernetes.client.models.v1_api_service_list import V1APIServiceList +from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec +from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus +from kubernetes.client.models.v1_api_versions import V1APIVersions +from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from kubernetes.client.models.v1_affinity import V1Affinity +from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule +from kubernetes.client.models.v1_attached_volume import V1AttachedVolume +from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource +from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource +from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource +from kubernetes.client.models.v1_binding import V1Binding +from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource +from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource +from kubernetes.client.models.v1_capabilities import V1Capabilities +from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource +from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource +from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource +from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource +from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig +from kubernetes.client.models.v1_cluster_role import V1ClusterRole +from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding +from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList +from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList +from kubernetes.client.models.v1_component_condition import V1ComponentCondition +from kubernetes.client.models.v1_component_status import V1ComponentStatus +from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList +from kubernetes.client.models.v1_config_map import V1ConfigMap +from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource +from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector +from kubernetes.client.models.v1_config_map_list import V1ConfigMapList +from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource +from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection +from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from kubernetes.client.models.v1_container import V1Container +from kubernetes.client.models.v1_container_image import V1ContainerImage +from kubernetes.client.models.v1_container_port import V1ContainerPort +from kubernetes.client.models.v1_container_state import V1ContainerState +from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning +from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated +from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting +from kubernetes.client.models.v1_container_status import V1ContainerStatus +from kubernetes.client.models.v1_controller_revision import V1ControllerRevision +from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList +from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference +from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint +from kubernetes.client.models.v1_daemon_set import V1DaemonSet +from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition +from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList +from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec +from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus +from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_deployment import V1Deployment +from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition +from kubernetes.client.models.v1_deployment_list import V1DeploymentList +from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec +from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus +from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy +from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection +from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile +from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource +from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress +from kubernetes.client.models.v1_endpoint_port import V1EndpointPort +from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset +from kubernetes.client.models.v1_endpoints import V1Endpoints +from kubernetes.client.models.v1_endpoints_list import V1EndpointsList +from kubernetes.client.models.v1_env_from_source import V1EnvFromSource +from kubernetes.client.models.v1_env_var import V1EnvVar +from kubernetes.client.models.v1_env_var_source import V1EnvVarSource +from kubernetes.client.models.v1_event import V1Event +from kubernetes.client.models.v1_event_list import V1EventList +from kubernetes.client.models.v1_event_series import V1EventSeries +from kubernetes.client.models.v1_event_source import V1EventSource +from kubernetes.client.models.v1_exec_action import V1ExecAction +from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource +from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource +from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource +from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource +from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource +from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource +from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery +from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction +from kubernetes.client.models.v1_http_header import V1HTTPHeader +from kubernetes.client.models.v1_handler import V1Handler +from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler +from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList +from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec +from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus +from kubernetes.client.models.v1_host_alias import V1HostAlias +from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource +from kubernetes.client.models.v1_ip_block import V1IPBlock +from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource +from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource +from kubernetes.client.models.v1_initializer import V1Initializer +from kubernetes.client.models.v1_initializers import V1Initializers +from kubernetes.client.models.v1_job import V1Job +from kubernetes.client.models.v1_job_condition import V1JobCondition +from kubernetes.client.models.v1_job_list import V1JobList +from kubernetes.client.models.v1_job_spec import V1JobSpec +from kubernetes.client.models.v1_job_status import V1JobStatus +from kubernetes.client.models.v1_key_to_path import V1KeyToPath +from kubernetes.client.models.v1_label_selector import V1LabelSelector +from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement +from kubernetes.client.models.v1_lease import V1Lease +from kubernetes.client.models.v1_lease_list import V1LeaseList +from kubernetes.client.models.v1_lease_spec import V1LeaseSpec +from kubernetes.client.models.v1_lifecycle import V1Lifecycle +from kubernetes.client.models.v1_limit_range import V1LimitRange +from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem +from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList +from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress +from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus +from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference +from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview +from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource +from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry +from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource +from kubernetes.client.models.v1_namespace import V1Namespace +from kubernetes.client.models.v1_namespace_list import V1NamespaceList +from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec +from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus +from kubernetes.client.models.v1_network_policy import V1NetworkPolicy +from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule +from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule +from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList +from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer +from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort +from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec +from kubernetes.client.models.v1_node import V1Node +from kubernetes.client.models.v1_node_address import V1NodeAddress +from kubernetes.client.models.v1_node_affinity import V1NodeAffinity +from kubernetes.client.models.v1_node_condition import V1NodeCondition +from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource +from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus +from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from kubernetes.client.models.v1_node_list import V1NodeList +from kubernetes.client.models.v1_node_selector import V1NodeSelector +from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement +from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm +from kubernetes.client.models.v1_node_spec import V1NodeSpec +from kubernetes.client.models.v1_node_status import V1NodeStatus +from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo +from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes +from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule +from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1_object_reference import V1ObjectReference +from kubernetes.client.models.v1_owner_reference import V1OwnerReference +from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume +from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition +from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList +from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec +from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus +from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource +from kubernetes.client.models.v1_pod import V1Pod +from kubernetes.client.models.v1_pod_affinity import V1PodAffinity +from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm +from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity +from kubernetes.client.models.v1_pod_condition import V1PodCondition +from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig +from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption +from kubernetes.client.models.v1_pod_list import V1PodList +from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate +from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext +from kubernetes.client.models.v1_pod_spec import V1PodSpec +from kubernetes.client.models.v1_pod_status import V1PodStatus +from kubernetes.client.models.v1_pod_template import V1PodTemplate +from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList +from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec +from kubernetes.client.models.v1_policy_rule import V1PolicyRule +from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource +from kubernetes.client.models.v1_preconditions import V1Preconditions +from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm +from kubernetes.client.models.v1_priority_class import V1PriorityClass +from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList +from kubernetes.client.models.v1_probe import V1Probe +from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource +from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource +from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource +from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource +from kubernetes.client.models.v1_replica_set import V1ReplicaSet +from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition +from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList +from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec +from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus +from kubernetes.client.models.v1_replication_controller import V1ReplicationController +from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition +from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList +from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec +from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus +from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes +from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector +from kubernetes.client.models.v1_resource_quota import V1ResourceQuota +from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList +from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec +from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus +from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements +from kubernetes.client.models.v1_resource_rule import V1ResourceRule +from kubernetes.client.models.v1_role import V1Role +from kubernetes.client.models.v1_role_binding import V1RoleBinding +from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList +from kubernetes.client.models.v1_role_list import V1RoleList +from kubernetes.client.models.v1_role_ref import V1RoleRef +from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet +from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment +from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions +from kubernetes.client.models.v1_scale import V1Scale +from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource +from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource +from kubernetes.client.models.v1_scale_spec import V1ScaleSpec +from kubernetes.client.models.v1_scale_status import V1ScaleStatus +from kubernetes.client.models.v1_scope_selector import V1ScopeSelector +from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement +from kubernetes.client.models.v1_secret import V1Secret +from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource +from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector +from kubernetes.client.models.v1_secret_list import V1SecretList +from kubernetes.client.models.v1_secret_projection import V1SecretProjection +from kubernetes.client.models.v1_secret_reference import V1SecretReference +from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource +from kubernetes.client.models.v1_security_context import V1SecurityContext +from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview +from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec +from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview +from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec +from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from kubernetes.client.models.v1_service import V1Service +from kubernetes.client.models.v1_service_account import V1ServiceAccount +from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList +from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection +from kubernetes.client.models.v1_service_list import V1ServiceList +from kubernetes.client.models.v1_service_port import V1ServicePort +from kubernetes.client.models.v1_service_reference import V1ServiceReference +from kubernetes.client.models.v1_service_spec import V1ServiceSpec +from kubernetes.client.models.v1_service_status import V1ServiceStatus +from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig +from kubernetes.client.models.v1_stateful_set import V1StatefulSet +from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition +from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList +from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec +from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus +from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.models.v1_status_cause import V1StatusCause +from kubernetes.client.models.v1_status_details import V1StatusDetails +from kubernetes.client.models.v1_storage_class import V1StorageClass +from kubernetes.client.models.v1_storage_class_list import V1StorageClassList +from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource +from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource +from kubernetes.client.models.v1_subject import V1Subject +from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview +from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec +from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus +from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus +from kubernetes.client.models.v1_sysctl import V1Sysctl +from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction +from kubernetes.client.models.v1_taint import V1Taint +from kubernetes.client.models.v1_token_review import V1TokenReview +from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec +from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus +from kubernetes.client.models.v1_toleration import V1Toleration +from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement +from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm +from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference +from kubernetes.client.models.v1_user_info import V1UserInfo +from kubernetes.client.models.v1_volume import V1Volume +from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment +from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList +from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource +from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec +from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus +from kubernetes.client.models.v1_volume_device import V1VolumeDevice +from kubernetes.client.models.v1_volume_error import V1VolumeError +from kubernetes.client.models.v1_volume_mount import V1VolumeMount +from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity +from kubernetes.client.models.v1_volume_projection import V1VolumeProjection +from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource +from kubernetes.client.models.v1_watch_event import V1WatchEvent +from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions +from kubernetes.client.models.v1alpha1_aggregation_rule import V1alpha1AggregationRule +from kubernetes.client.models.v1alpha1_audit_sink import V1alpha1AuditSink +from kubernetes.client.models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList +from kubernetes.client.models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec +from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole +from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding +from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList +from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList +from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset +from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList +from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec +from kubernetes.client.models.v1alpha1_policy import V1alpha1Policy +from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule +from kubernetes.client.models.v1alpha1_priority_class import V1alpha1PriorityClass +from kubernetes.client.models.v1alpha1_priority_class_list import V1alpha1PriorityClassList +from kubernetes.client.models.v1alpha1_role import V1alpha1Role +from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding +from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList +from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList +from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef +from kubernetes.client.models.v1alpha1_runtime_class import V1alpha1RuntimeClass +from kubernetes.client.models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList +from kubernetes.client.models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec +from kubernetes.client.models.v1alpha1_service_reference import V1alpha1ServiceReference +from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject +from kubernetes.client.models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment +from kubernetes.client.models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList +from kubernetes.client.models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource +from kubernetes.client.models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec +from kubernetes.client.models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus +from kubernetes.client.models.v1alpha1_volume_error import V1alpha1VolumeError +from kubernetes.client.models.v1alpha1_webhook import V1alpha1Webhook +from kubernetes.client.models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig +from kubernetes.client.models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig +from kubernetes.client.models.v1beta1_api_service import V1beta1APIService +from kubernetes.client.models.v1beta1_api_service_condition import V1beta1APIServiceCondition +from kubernetes.client.models.v1beta1_api_service_list import V1beta1APIServiceList +from kubernetes.client.models.v1beta1_api_service_spec import V1beta1APIServiceSpec +from kubernetes.client.models.v1beta1_api_service_status import V1beta1APIServiceStatus +from kubernetes.client.models.v1beta1_aggregation_rule import V1beta1AggregationRule +from kubernetes.client.models.v1beta1_csi_driver import V1beta1CSIDriver +from kubernetes.client.models.v1beta1_csi_driver_list import V1beta1CSIDriverList +from kubernetes.client.models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec +from kubernetes.client.models.v1beta1_csi_node import V1beta1CSINode +from kubernetes.client.models.v1beta1_csi_node_driver import V1beta1CSINodeDriver +from kubernetes.client.models.v1beta1_csi_node_list import V1beta1CSINodeList +from kubernetes.client.models.v1beta1_csi_node_spec import V1beta1CSINodeSpec +from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest +from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition +from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList +from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec +from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus +from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole +from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding +from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList +from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList +from kubernetes.client.models.v1beta1_controller_revision import V1beta1ControllerRevision +from kubernetes.client.models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList +from kubernetes.client.models.v1beta1_cron_job import V1beta1CronJob +from kubernetes.client.models.v1beta1_cron_job_list import V1beta1CronJobList +from kubernetes.client.models.v1beta1_cron_job_spec import V1beta1CronJobSpec +from kubernetes.client.models.v1beta1_cron_job_status import V1beta1CronJobStatus +from kubernetes.client.models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition +from kubernetes.client.models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion +from kubernetes.client.models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition +from kubernetes.client.models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition +from kubernetes.client.models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList +from kubernetes.client.models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames +from kubernetes.client.models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec +from kubernetes.client.models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus +from kubernetes.client.models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion +from kubernetes.client.models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale +from kubernetes.client.models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources +from kubernetes.client.models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation +from kubernetes.client.models.v1beta1_daemon_set import V1beta1DaemonSet +from kubernetes.client.models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition +from kubernetes.client.models.v1beta1_daemon_set_list import V1beta1DaemonSetList +from kubernetes.client.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec +from kubernetes.client.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus +from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy +from kubernetes.client.models.v1beta1_event import V1beta1Event +from kubernetes.client.models.v1beta1_event_list import V1beta1EventList +from kubernetes.client.models.v1beta1_event_series import V1beta1EventSeries +from kubernetes.client.models.v1beta1_eviction import V1beta1Eviction +from kubernetes.client.models.v1beta1_external_documentation import V1beta1ExternalDocumentation +from kubernetes.client.models.v1beta1_ip_block import V1beta1IPBlock +from kubernetes.client.models.v1beta1_json_schema_props import V1beta1JSONSchemaProps +from kubernetes.client.models.v1beta1_job_template_spec import V1beta1JobTemplateSpec +from kubernetes.client.models.v1beta1_lease import V1beta1Lease +from kubernetes.client.models.v1beta1_lease_list import V1beta1LeaseList +from kubernetes.client.models.v1beta1_lease_spec import V1beta1LeaseSpec +from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from kubernetes.client.models.v1beta1_mutating_webhook import V1beta1MutatingWebhook +from kubernetes.client.models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration +from kubernetes.client.models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList +from kubernetes.client.models.v1beta1_network_policy import V1beta1NetworkPolicy +from kubernetes.client.models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule +from kubernetes.client.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule +from kubernetes.client.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList +from kubernetes.client.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer +from kubernetes.client.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort +from kubernetes.client.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec +from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes +from kubernetes.client.models.v1beta1_non_resource_rule import V1beta1NonResourceRule +from kubernetes.client.models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget +from kubernetes.client.models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList +from kubernetes.client.models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec +from kubernetes.client.models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus +from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule +from kubernetes.client.models.v1beta1_priority_class import V1beta1PriorityClass +from kubernetes.client.models.v1beta1_priority_class_list import V1beta1PriorityClassList +from kubernetes.client.models.v1beta1_replica_set import V1beta1ReplicaSet +from kubernetes.client.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition +from kubernetes.client.models.v1beta1_replica_set_list import V1beta1ReplicaSetList +from kubernetes.client.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec +from kubernetes.client.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus +from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes +from kubernetes.client.models.v1beta1_resource_rule import V1beta1ResourceRule +from kubernetes.client.models.v1beta1_role import V1beta1Role +from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding +from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList +from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList +from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef +from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1beta1_rule_with_operations import V1beta1RuleWithOperations +from kubernetes.client.models.v1beta1_runtime_class import V1beta1RuntimeClass +from kubernetes.client.models.v1beta1_runtime_class_list import V1beta1RuntimeClassList +from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview +from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from kubernetes.client.models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview +from kubernetes.client.models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec +from kubernetes.client.models.v1beta1_stateful_set import V1beta1StatefulSet +from kubernetes.client.models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition +from kubernetes.client.models.v1beta1_stateful_set_list import V1beta1StatefulSetList +from kubernetes.client.models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec +from kubernetes.client.models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus +from kubernetes.client.models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy +from kubernetes.client.models.v1beta1_storage_class import V1beta1StorageClass +from kubernetes.client.models.v1beta1_storage_class_list import V1beta1StorageClassList +from kubernetes.client.models.v1beta1_subject import V1beta1Subject +from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview +from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec +from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from kubernetes.client.models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus +from kubernetes.client.models.v1beta1_token_review import V1beta1TokenReview +from kubernetes.client.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec +from kubernetes.client.models.v1beta1_token_review_status import V1beta1TokenReviewStatus +from kubernetes.client.models.v1beta1_user_info import V1beta1UserInfo +from kubernetes.client.models.v1beta1_validating_webhook import V1beta1ValidatingWebhook +from kubernetes.client.models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration +from kubernetes.client.models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList +from kubernetes.client.models.v1beta1_volume_attachment import V1beta1VolumeAttachment +from kubernetes.client.models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList +from kubernetes.client.models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource +from kubernetes.client.models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec +from kubernetes.client.models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus +from kubernetes.client.models.v1beta1_volume_error import V1beta1VolumeError +from kubernetes.client.models.v1beta2_controller_revision import V1beta2ControllerRevision +from kubernetes.client.models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList +from kubernetes.client.models.v1beta2_daemon_set import V1beta2DaemonSet +from kubernetes.client.models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition +from kubernetes.client.models.v1beta2_daemon_set_list import V1beta2DaemonSetList +from kubernetes.client.models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec +from kubernetes.client.models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus +from kubernetes.client.models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy +from kubernetes.client.models.v1beta2_deployment import V1beta2Deployment +from kubernetes.client.models.v1beta2_deployment_condition import V1beta2DeploymentCondition +from kubernetes.client.models.v1beta2_deployment_list import V1beta2DeploymentList +from kubernetes.client.models.v1beta2_deployment_spec import V1beta2DeploymentSpec +from kubernetes.client.models.v1beta2_deployment_status import V1beta2DeploymentStatus +from kubernetes.client.models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy +from kubernetes.client.models.v1beta2_replica_set import V1beta2ReplicaSet +from kubernetes.client.models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition +from kubernetes.client.models.v1beta2_replica_set_list import V1beta2ReplicaSetList +from kubernetes.client.models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec +from kubernetes.client.models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus +from kubernetes.client.models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet +from kubernetes.client.models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment +from kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1beta2_scale import V1beta2Scale +from kubernetes.client.models.v1beta2_scale_spec import V1beta2ScaleSpec +from kubernetes.client.models.v1beta2_scale_status import V1beta2ScaleStatus +from kubernetes.client.models.v1beta2_stateful_set import V1beta2StatefulSet +from kubernetes.client.models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition +from kubernetes.client.models.v1beta2_stateful_set_list import V1beta2StatefulSetList +from kubernetes.client.models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec +from kubernetes.client.models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus +from kubernetes.client.models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy +from kubernetes.client.models.v2alpha1_cron_job import V2alpha1CronJob +from kubernetes.client.models.v2alpha1_cron_job_list import V2alpha1CronJobList +from kubernetes.client.models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec +from kubernetes.client.models.v2alpha1_cron_job_status import V2alpha1CronJobStatus +from kubernetes.client.models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec +from kubernetes.client.models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference +from kubernetes.client.models.v2beta1_external_metric_source import V2beta1ExternalMetricSource +from kubernetes.client.models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus +from kubernetes.client.models.v2beta1_metric_spec import V2beta1MetricSpec +from kubernetes.client.models.v2beta1_metric_status import V2beta1MetricStatus +from kubernetes.client.models.v2beta1_object_metric_source import V2beta1ObjectMetricSource +from kubernetes.client.models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus +from kubernetes.client.models.v2beta1_pods_metric_source import V2beta1PodsMetricSource +from kubernetes.client.models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus +from kubernetes.client.models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource +from kubernetes.client.models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus +from kubernetes.client.models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference +from kubernetes.client.models.v2beta2_external_metric_source import V2beta2ExternalMetricSource +from kubernetes.client.models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus +from kubernetes.client.models.v2beta2_metric_identifier import V2beta2MetricIdentifier +from kubernetes.client.models.v2beta2_metric_spec import V2beta2MetricSpec +from kubernetes.client.models.v2beta2_metric_status import V2beta2MetricStatus +from kubernetes.client.models.v2beta2_metric_target import V2beta2MetricTarget +from kubernetes.client.models.v2beta2_metric_value_status import V2beta2MetricValueStatus +from kubernetes.client.models.v2beta2_object_metric_source import V2beta2ObjectMetricSource +from kubernetes.client.models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus +from kubernetes.client.models.v2beta2_pods_metric_source import V2beta2PodsMetricSource +from kubernetes.client.models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus +from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource +from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus +from kubernetes.client.models.version_info import VersionInfo diff --git a/kubernetes/client/api/__init__.py b/kubernetes/client/api/__init__.py new file mode 100644 index 0000000000..9d21fd4c0e --- /dev/null +++ b/kubernetes/client/api/__init__.py @@ -0,0 +1,69 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi +from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api +from kubernetes.client.api.apiextensions_api import ApiextensionsApi +from kubernetes.client.api.apiextensions_v1beta1_api import ApiextensionsV1beta1Api +from kubernetes.client.api.apiregistration_api import ApiregistrationApi +from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api +from kubernetes.client.api.apiregistration_v1beta1_api import ApiregistrationV1beta1Api +from kubernetes.client.api.apis_api import ApisApi +from kubernetes.client.api.apps_api import AppsApi +from kubernetes.client.api.apps_v1_api import AppsV1Api +from kubernetes.client.api.apps_v1beta1_api import AppsV1beta1Api +from kubernetes.client.api.apps_v1beta2_api import AppsV1beta2Api +from kubernetes.client.api.auditregistration_api import AuditregistrationApi +from kubernetes.client.api.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api +from kubernetes.client.api.authentication_api import AuthenticationApi +from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api +from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api +from kubernetes.client.api.authorization_api import AuthorizationApi +from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api +from kubernetes.client.api.authorization_v1beta1_api import AuthorizationV1beta1Api +from kubernetes.client.api.autoscaling_api import AutoscalingApi +from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api +from kubernetes.client.api.autoscaling_v2beta1_api import AutoscalingV2beta1Api +from kubernetes.client.api.autoscaling_v2beta2_api import AutoscalingV2beta2Api +from kubernetes.client.api.batch_api import BatchApi +from kubernetes.client.api.batch_v1_api import BatchV1Api +from kubernetes.client.api.batch_v1beta1_api import BatchV1beta1Api +from kubernetes.client.api.batch_v2alpha1_api import BatchV2alpha1Api +from kubernetes.client.api.certificates_api import CertificatesApi +from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api +from kubernetes.client.api.coordination_api import CoordinationApi +from kubernetes.client.api.coordination_v1_api import CoordinationV1Api +from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api +from kubernetes.client.api.core_api import CoreApi +from kubernetes.client.api.core_v1_api import CoreV1Api +from kubernetes.client.api.custom_objects_api import CustomObjectsApi +from kubernetes.client.api.events_api import EventsApi +from kubernetes.client.api.events_v1beta1_api import EventsV1beta1Api +from kubernetes.client.api.extensions_api import ExtensionsApi +from kubernetes.client.api.extensions_v1beta1_api import ExtensionsV1beta1Api +from kubernetes.client.api.logs_api import LogsApi +from kubernetes.client.api.networking_api import NetworkingApi +from kubernetes.client.api.networking_v1_api import NetworkingV1Api +from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api +from kubernetes.client.api.node_api import NodeApi +from kubernetes.client.api.node_v1alpha1_api import NodeV1alpha1Api +from kubernetes.client.api.node_v1beta1_api import NodeV1beta1Api +from kubernetes.client.api.policy_api import PolicyApi +from kubernetes.client.api.policy_v1beta1_api import PolicyV1beta1Api +from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi +from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api +from kubernetes.client.api.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api +from kubernetes.client.api.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api +from kubernetes.client.api.scheduling_api import SchedulingApi +from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api +from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api +from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api +from kubernetes.client.api.settings_api import SettingsApi +from kubernetes.client.api.settings_v1alpha1_api import SettingsV1alpha1Api +from kubernetes.client.api.storage_api import StorageApi +from kubernetes.client.api.storage_v1_api import StorageV1Api +from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api +from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api +from kubernetes.client.api.version_api import VersionApi diff --git a/kubernetes/client/api/admissionregistration_api.py b/kubernetes/client/api/admissionregistration_api.py new file mode 100644 index 0000000000..1d10bf546a --- /dev/null +++ b/kubernetes/client/api/admissionregistration_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AdmissionregistrationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/admissionregistration_v1beta1_api.py b/kubernetes/client/api/admissionregistration_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/admissionregistration_v1beta1_api.py rename to kubernetes/client/api/admissionregistration_v1beta1_api.py index 3d32bd3f6a..7c4d73fcba 100644 --- a/kubernetes/client/apis/admissionregistration_v1beta1_api.py +++ b/kubernetes/client/api/admissionregistration_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AdmissionregistrationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_mutating_webhook_configuration(self, body, **kwargs): - """ - create a MutatingWebhookConfiguration + def create_mutating_webhook_configuration(self, body, **kwargs): # noqa: E501 + """create_mutating_webhook_configuration # noqa: E501 + + create a MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_mutating_webhook_configuration(body, async_req=True) @@ -54,14 +52,15 @@ def create_mutating_webhook_configuration(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) + return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) + (data) = self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 return data - def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): - """ - create a MutatingWebhookConfiguration + def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 + """create_mutating_webhook_configuration # noqa: E501 + + create a MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_mutating_webhook_configuration_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1MutatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_validating_webhook_configuration(self, body, **kwargs): - """ - create a ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1MutatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_validating_webhook_configuration(self, body, **kwargs): # noqa: E501 + """create_validating_webhook_configuration # noqa: E501 + + create a ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_validating_webhook_configuration(body, async_req=True) @@ -162,14 +160,15 @@ def create_validating_webhook_configuration(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) + return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_validating_webhook_configuration_with_http_info(body, **kwargs) + (data) = self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 return data - def create_validating_webhook_configuration_with_http_info(self, body, **kwargs): - """ - create a ValidatingWebhookConfiguration + def create_validating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 + """create_validating_webhook_configuration # noqa: E501 + + create a ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_validating_webhook_configuration_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_validating_webhook_configuration_with_http_info(self, body, **kwargs) returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_validating_webhook_configuration_with_http_info(self, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_mutating_webhook_configuration(self, **kwargs): - """ - delete collection of MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ValidatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_mutating_webhook_configuration(self, **kwargs): # noqa: E501 + """delete_collection_mutating_webhook_configuration # noqa: E501 + + delete collection of MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_mutating_webhook_configuration(async_req=True) @@ -261,27 +259,34 @@ def delete_collection_mutating_webhook_configuration(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) + return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) + (data) = self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwargs): - """ - delete collection of MutatingWebhookConfiguration + def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_mutating_webhook_configuration # noqa: E501 + + delete collection of MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_mutating_webhook_configuration_with_http_info(async_req=True) @@ -289,56 +294,72 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -346,35 +367,35 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_validating_webhook_configuration(self, **kwargs): - """ - delete collection of ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_validating_webhook_configuration(self, **kwargs): # noqa: E501 + """delete_collection_validating_webhook_configuration # noqa: E501 + + delete collection of ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_validating_webhook_configuration(async_req=True) @@ -382,27 +403,34 @@ def delete_collection_validating_webhook_configuration(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) + return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) + (data) = self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_validating_webhook_configuration_with_http_info(self, **kwargs): - """ - delete collection of ValidatingWebhookConfiguration + def delete_collection_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_validating_webhook_configuration # noqa: E501 + + delete collection of ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_validating_webhook_configuration_with_http_info(async_req=True) @@ -410,56 +438,72 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -467,35 +511,35 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_mutating_webhook_configuration(self, name, **kwargs): - """ - delete a MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 + """delete_mutating_webhook_configuration # noqa: E501 + + delete a MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_mutating_webhook_configuration(name, async_req=True) @@ -504,25 +548,26 @@ def delete_mutating_webhook_configuration(self, name, **kwargs): :param async_req bool :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) + return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) + (data) = self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): - """ - delete a MutatingWebhookConfiguration + def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_mutating_webhook_configuration # noqa: E501 + + delete a MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_mutating_webhook_configuration_with_http_info(name, async_req=True) @@ -531,53 +576,54 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -585,37 +631,35 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_validating_webhook_configuration(self, name, **kwargs): - """ - delete a ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 + """delete_validating_webhook_configuration # noqa: E501 + + delete a ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_validating_webhook_configuration(name, async_req=True) @@ -624,25 +668,26 @@ def delete_validating_webhook_configuration(self, name, **kwargs): :param async_req bool :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) + return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) + (data) = self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs): - """ - delete a ValidatingWebhookConfiguration + def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_validating_webhook_configuration # noqa: E501 + + delete a ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_validating_webhook_configuration_with_http_info(name, async_req=True) @@ -651,53 +696,54 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) :param async_req bool :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -705,37 +751,35 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -748,14 +792,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -767,21 +812,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -796,34 +842,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_mutating_webhook_configuration(self, **kwargs): - """ - list or watch objects of kind MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_mutating_webhook_configuration(self, **kwargs): # noqa: E501 + """list_mutating_webhook_configuration # noqa: E501 + + list or watch objects of kind MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_mutating_webhook_configuration(async_req=True) @@ -831,6 +875,7 @@ def list_mutating_webhook_configuration(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -844,14 +889,15 @@ def list_mutating_webhook_configuration(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_mutating_webhook_configuration_with_http_info(**kwargs) + return self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_mutating_webhook_configuration_with_http_info(**kwargs) + (data) = self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 return data - def list_mutating_webhook_configuration_with_http_info(self, **kwargs): - """ - list or watch objects of kind MutatingWebhookConfiguration + def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 + """list_mutating_webhook_configuration # noqa: E501 + + list or watch objects of kind MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_mutating_webhook_configuration_with_http_info(async_req=True) @@ -859,6 +905,7 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -871,44 +918,46 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -917,34 +966,32 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1MutatingWebhookConfigurationList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_validating_webhook_configuration(self, **kwargs): - """ - list or watch objects of kind ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1MutatingWebhookConfigurationList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_validating_webhook_configuration(self, **kwargs): # noqa: E501 + """list_validating_webhook_configuration # noqa: E501 + + list or watch objects of kind ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_validating_webhook_configuration(async_req=True) @@ -952,6 +999,7 @@ def list_validating_webhook_configuration(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -965,14 +1013,15 @@ def list_validating_webhook_configuration(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_validating_webhook_configuration_with_http_info(**kwargs) + return self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_validating_webhook_configuration_with_http_info(**kwargs) + (data) = self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 return data - def list_validating_webhook_configuration_with_http_info(self, **kwargs): - """ - list or watch objects of kind ValidatingWebhookConfiguration + def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 + """list_validating_webhook_configuration # noqa: E501 + + list or watch objects of kind ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_validating_webhook_configuration_with_http_info(async_req=True) @@ -980,6 +1029,7 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -992,44 +1042,46 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1038,34 +1090,32 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingWebhookConfigurationList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_mutating_webhook_configuration(self, name, body, **kwargs): - """ - partially update the specified MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ValidatingWebhookConfigurationList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_webhook_configuration # noqa: E501 + + partially update the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_mutating_webhook_configuration(name, body, async_req=True) @@ -1073,7 +1123,7 @@ def patch_mutating_webhook_configuration(self, name, body, **kwargs): :param async_req bool :param str name: name of the MutatingWebhookConfiguration (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1084,14 +1134,15 @@ def patch_mutating_webhook_configuration(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) + return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) + (data) = self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): - """ - partially update the specified MutatingWebhookConfiguration + def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_mutating_webhook_configuration # noqa: E501 + + partially update the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_mutating_webhook_configuration_with_http_info(name, body, async_req=True) @@ -1099,7 +1150,7 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar :param async_req bool :param str name: name of the MutatingWebhookConfiguration (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1109,44 +1160,46 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1154,37 +1207,39 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1MutatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_validating_webhook_configuration(self, name, body, **kwargs): - """ - partially update the specified ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1MutatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_validating_webhook_configuration(self, name, body, **kwargs): # noqa: E501 + """patch_validating_webhook_configuration # noqa: E501 + + partially update the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_validating_webhook_configuration(name, body, async_req=True) @@ -1192,7 +1247,7 @@ def patch_validating_webhook_configuration(self, name, body, **kwargs): :param async_req bool :param str name: name of the ValidatingWebhookConfiguration (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1203,14 +1258,15 @@ def patch_validating_webhook_configuration(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) + return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) + (data) = self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ValidatingWebhookConfiguration + def patch_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_validating_webhook_configuration # noqa: E501 + + partially update the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_validating_webhook_configuration_with_http_info(name, body, async_req=True) @@ -1218,7 +1274,7 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw :param async_req bool :param str name: name of the ValidatingWebhookConfiguration (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1228,44 +1284,46 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1273,37 +1331,39 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_mutating_webhook_configuration(self, name, **kwargs): - """ - read the specified MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ValidatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 + """read_mutating_webhook_configuration # noqa: E501 + + read the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_mutating_webhook_configuration(name, async_req=True) @@ -1320,14 +1380,15 @@ def read_mutating_webhook_configuration(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) + return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) + (data) = self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 return data - def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): - """ - read the specified MutatingWebhookConfiguration + def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 + """read_mutating_webhook_configuration # noqa: E501 + + read the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_mutating_webhook_configuration_with_http_info(name, async_req=True) @@ -1343,39 +1404,40 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1384,34 +1446,32 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1MutatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_validating_webhook_configuration(self, name, **kwargs): - """ - read the specified ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1MutatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 + """read_validating_webhook_configuration # noqa: E501 + + read the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_validating_webhook_configuration(name, async_req=True) @@ -1428,14 +1488,15 @@ def read_validating_webhook_configuration(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) + return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_validating_webhook_configuration_with_http_info(name, **kwargs) + (data) = self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 return data - def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): - """ - read the specified ValidatingWebhookConfiguration + def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 + """read_validating_webhook_configuration # noqa: E501 + + read the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_validating_webhook_configuration_with_http_info(name, async_req=True) @@ -1451,39 +1512,40 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1492,34 +1554,32 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_mutating_webhook_configuration(self, name, body, **kwargs): - """ - replace the specified MutatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ValidatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_webhook_configuration # noqa: E501 + + replace the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_mutating_webhook_configuration(name, body, async_req=True) @@ -1537,14 +1597,15 @@ def replace_mutating_webhook_configuration(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) + return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) + (data) = self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): - """ - replace the specified MutatingWebhookConfiguration + def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_mutating_webhook_configuration # noqa: E501 + + replace the specified MutatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_mutating_webhook_configuration_with_http_info(name, body, async_req=True) @@ -1561,42 +1622,44 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_mutating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1604,37 +1667,35 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1MutatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_validating_webhook_configuration(self, name, body, **kwargs): - """ - replace the specified ValidatingWebhookConfiguration + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1MutatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_validating_webhook_configuration(self, name, body, **kwargs): # noqa: E501 + """replace_validating_webhook_configuration # noqa: E501 + + replace the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_validating_webhook_configuration(name, body, async_req=True) @@ -1652,14 +1713,15 @@ def replace_validating_webhook_configuration(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) + return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) + (data) = self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): - """ - replace the specified ValidatingWebhookConfiguration + def replace_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_validating_webhook_configuration # noqa: E501 + + replace the specified ValidatingWebhookConfiguration # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_validating_webhook_configuration_with_http_info(name, body, async_req=True) @@ -1676,42 +1738,44 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_validating_webhook_configuration" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1719,30 +1783,27 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ValidatingWebhookConfiguration', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ValidatingWebhookConfiguration', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/apiextensions_api.py b/kubernetes/client/api/apiextensions_api.py new file mode 100644 index 0000000000..abd74191fd --- /dev/null +++ b/kubernetes/client/api/apiextensions_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class ApiextensionsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apiextensions_v1beta1_api.py b/kubernetes/client/api/apiextensions_v1beta1_api.py similarity index 59% rename from kubernetes/client/apis/apiextensions_v1beta1_api.py rename to kubernetes/client/api/apiextensions_v1beta1_api.py index 7487730537..7840da9162 100644 --- a/kubernetes/client/apis/apiextensions_v1beta1_api.py +++ b/kubernetes/client/api/apiextensions_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class ApiextensionsV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_custom_resource_definition(self, body, **kwargs): - """ - create a CustomResourceDefinition + def create_custom_resource_definition(self, body, **kwargs): # noqa: E501 + """create_custom_resource_definition # noqa: E501 + + create a CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_custom_resource_definition(body, async_req=True) @@ -54,14 +52,15 @@ def create_custom_resource_definition(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_custom_resource_definition_with_http_info(body, **kwargs) + return self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_custom_resource_definition_with_http_info(body, **kwargs) + (data) = self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 return data - def create_custom_resource_definition_with_http_info(self, body, **kwargs): - """ - create a CustomResourceDefinition + def create_custom_resource_definition_with_http_info(self, body, **kwargs): # noqa: E501 + """create_custom_resource_definition # noqa: E501 + + create a CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_custom_resource_definition_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_custom_resource_definition_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_custom_resource_definition_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_custom_resource_definition(self, **kwargs): - """ - delete collection of CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_custom_resource_definition(self, **kwargs): # noqa: E501 + """delete_collection_custom_resource_definition # noqa: E501 + + delete collection of CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_custom_resource_definition(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_custom_resource_definition(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) + return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_custom_resource_definition_with_http_info(**kwargs) + (data) = self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): - """ - delete collection of CustomResourceDefinition + def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_custom_resource_definition # noqa: E501 + + delete collection of CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_custom_resource_definition_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_custom_resource_definition(self, name, **kwargs): - """ - delete a CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_custom_resource_definition(self, name, **kwargs): # noqa: E501 + """delete_custom_resource_definition # noqa: E501 + + delete a CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_custom_resource_definition(name, async_req=True) @@ -275,25 +296,26 @@ def delete_custom_resource_definition(self, name, **kwargs): :param async_req bool :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_custom_resource_definition_with_http_info(name, **kwargs) + return self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_custom_resource_definition_with_http_info(name, **kwargs) + (data) = self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_custom_resource_definition_with_http_info(self, name, **kwargs): - """ - delete a CustomResourceDefinition + def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_custom_resource_definition # noqa: E501 + + delete a CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_custom_resource_definition_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_custom_resource_definition(self, **kwargs): - """ - list or watch objects of kind CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_custom_resource_definition(self, **kwargs): # noqa: E501 + """list_custom_resource_definition # noqa: E501 + + list or watch objects of kind CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_custom_resource_definition(async_req=True) @@ -482,6 +503,7 @@ def list_custom_resource_definition(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_custom_resource_definition(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_custom_resource_definition_with_http_info(**kwargs) + return self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_custom_resource_definition_with_http_info(**kwargs) + (data) = self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 return data - def list_custom_resource_definition_with_http_info(self, **kwargs): - """ - list or watch objects of kind CustomResourceDefinition + def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 + """list_custom_resource_definition # noqa: E501 + + list or watch objects of kind CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_custom_resource_definition_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinitionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_custom_resource_definition(self, name, body, **kwargs): - """ - partially update the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinitionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_custom_resource_definition(self, name, body, **kwargs): # noqa: E501 + """patch_custom_resource_definition # noqa: E501 + + partially update the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_custom_resource_definition(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_custom_resource_definition(self, name, body, **kwargs): :param async_req bool :param str name: name of the CustomResourceDefinition (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_custom_resource_definition(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) + return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) + (data) = self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): - """ - partially update the specified CustomResourceDefinition + def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_custom_resource_definition # noqa: E501 + + partially update the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_custom_resource_definition_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the CustomResourceDefinition (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_custom_resource_definition_status(self, name, body, **kwargs): - """ - partially update status of the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_custom_resource_definition_status(self, name, body, **kwargs): # noqa: E501 + """patch_custom_resource_definition_status # noqa: E501 + + partially update status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_custom_resource_definition_status(name, body, async_req=True) @@ -722,7 +751,7 @@ def patch_custom_resource_definition_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the CustomResourceDefinition (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -733,14 +762,15 @@ def patch_custom_resource_definition_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) + return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) + (data) = self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified CustomResourceDefinition + def patch_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_custom_resource_definition_status # noqa: E501 + + partially update status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_custom_resource_definition_status_with_http_info(name, body, async_req=True) @@ -748,7 +778,7 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k :param async_req bool :param str name: name of the CustomResourceDefinition (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -758,44 +788,46 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -803,37 +835,39 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_custom_resource_definition(self, name, **kwargs): - """ - read the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_custom_resource_definition(self, name, **kwargs): # noqa: E501 + """read_custom_resource_definition # noqa: E501 + + read the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_custom_resource_definition(name, async_req=True) @@ -850,14 +884,15 @@ def read_custom_resource_definition(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_custom_resource_definition_with_http_info(name, **kwargs) + return self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_custom_resource_definition_with_http_info(name, **kwargs) + (data) = self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 return data - def read_custom_resource_definition_with_http_info(self, name, **kwargs): - """ - read the specified CustomResourceDefinition + def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 + """read_custom_resource_definition # noqa: E501 + + read the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_custom_resource_definition_with_http_info(name, async_req=True) @@ -873,39 +908,40 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -914,34 +950,32 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_custom_resource_definition_status(self, name, **kwargs): - """ - read status of the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_custom_resource_definition_status(self, name, **kwargs): # noqa: E501 + """read_custom_resource_definition_status # noqa: E501 + + read status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_custom_resource_definition_status(name, async_req=True) @@ -956,14 +990,15 @@ def read_custom_resource_definition_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) + return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_custom_resource_definition_status_with_http_info(name, **kwargs) + (data) = self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): - """ - read status of the specified CustomResourceDefinition + def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_custom_resource_definition_status # noqa: E501 + + read status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_custom_resource_definition_status_with_http_info(name, async_req=True) @@ -977,35 +1012,36 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1014,34 +1050,32 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_custom_resource_definition(self, name, body, **kwargs): - """ - replace the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_custom_resource_definition(self, name, body, **kwargs): # noqa: E501 + """replace_custom_resource_definition # noqa: E501 + + replace the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_custom_resource_definition(name, body, async_req=True) @@ -1059,14 +1093,15 @@ def replace_custom_resource_definition(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) + return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) + (data) = self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs): - """ - replace the specified CustomResourceDefinition + def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_custom_resource_definition # noqa: E501 + + replace the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_custom_resource_definition_with_http_info(name, body, async_req=True) @@ -1083,42 +1118,44 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1126,37 +1163,35 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_custom_resource_definition_status(self, name, body, **kwargs): - """ - replace status of the specified CustomResourceDefinition + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_custom_resource_definition_status(self, name, body, **kwargs): # noqa: E501 + """replace_custom_resource_definition_status # noqa: E501 + + replace status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_custom_resource_definition_status(name, body, async_req=True) @@ -1174,14 +1209,15 @@ def replace_custom_resource_definition_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) + return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) + (data) = self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified CustomResourceDefinition + def replace_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_custom_resource_definition_status # noqa: E501 + + replace status of the specified CustomResourceDefinition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_custom_resource_definition_status_with_http_info(name, body, async_req=True) @@ -1198,42 +1234,44 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1241,30 +1279,27 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CustomResourceDefinition', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CustomResourceDefinition', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/apiregistration_api.py b/kubernetes/client/api/apiregistration_api.py new file mode 100644 index 0000000000..2adea183f8 --- /dev/null +++ b/kubernetes/client/api/apiregistration_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class ApiregistrationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apiregistration_v1_api.py b/kubernetes/client/api/apiregistration_v1_api.py similarity index 59% rename from kubernetes/client/apis/apiregistration_v1_api.py rename to kubernetes/client/api/apiregistration_v1_api.py index 23fc39a4e5..0490eb2aae 100644 --- a/kubernetes/client/apis/apiregistration_v1_api.py +++ b/kubernetes/client/api/apiregistration_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class ApiregistrationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_api_service(self, body, **kwargs): - """ - create an APIService + def create_api_service(self, body, **kwargs): # noqa: E501 + """create_api_service # noqa: E501 + + create an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_api_service(body, async_req=True) @@ -54,14 +52,15 @@ def create_api_service(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_api_service_with_http_info(body, **kwargs) + return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_api_service_with_http_info(body, **kwargs) + (data) = self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 return data - def create_api_service_with_http_info(self, body, **kwargs): - """ - create an APIService + def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 + """create_api_service # noqa: E501 + + create an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_api_service_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_api_service_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_api_service_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_api_service(self, name, **kwargs): - """ - delete an APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_api_service(self, name, **kwargs): # noqa: E501 + """delete_api_service # noqa: E501 + + delete an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_api_service(name, async_req=True) @@ -154,25 +152,26 @@ def delete_api_service(self, name, **kwargs): :param async_req bool :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_api_service_with_http_info(name, **kwargs) + return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_api_service_with_http_info(name, **kwargs) + (data) = self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_api_service_with_http_info(self, name, **kwargs): - """ - delete an APIService + def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_api_service # noqa: E501 + + delete an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_api_service_with_http_info(name, async_req=True) @@ -181,53 +180,54 @@ def delete_api_service_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -235,37 +235,35 @@ def delete_api_service_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_api_service(self, **kwargs): - """ - delete collection of APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_api_service(self, **kwargs): # noqa: E501 + """delete_collection_api_service # noqa: E501 + + delete collection of APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_api_service(async_req=True) @@ -273,27 +271,34 @@ def delete_collection_api_service(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_api_service_with_http_info(**kwargs) + return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_api_service_with_http_info(**kwargs) + (data) = self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_api_service_with_http_info(self, **kwargs): - """ - delete collection of APIService + def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_api_service # noqa: E501 + + delete collection of APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_api_service_with_http_info(async_req=True) @@ -301,56 +306,72 @@ def delete_collection_api_service_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_api_service" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -358,35 +379,35 @@ def delete_collection_api_service_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_api_service(self, **kwargs): - """ - list or watch objects of kind APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_api_service(self, **kwargs): # noqa: E501 + """list_api_service # noqa: E501 + + list or watch objects of kind APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_api_service(async_req=True) @@ -482,6 +503,7 @@ def list_api_service(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_api_service(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_api_service_with_http_info(**kwargs) + return self.list_api_service_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_api_service_with_http_info(**kwargs) + (data) = self.list_api_service_with_http_info(**kwargs) # noqa: E501 return data - def list_api_service_with_http_info(self, **kwargs): - """ - list or watch objects of kind APIService + def list_api_service_with_http_info(self, **kwargs): # noqa: E501 + """list_api_service # noqa: E501 + + list or watch objects of kind APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_api_service_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_api_service_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_api_service_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_api_service" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_api_service_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIServiceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_api_service(self, name, body, **kwargs): - """ - partially update the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIServiceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_api_service(self, name, body, **kwargs): # noqa: E501 + """patch_api_service # noqa: E501 + + partially update the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_api_service(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_api_service(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_api_service_with_http_info(name, body, **kwargs) + return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_api_service_with_http_info(name, body, **kwargs) + (data) = self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_api_service_with_http_info(self, name, body, **kwargs): - """ - partially update the specified APIService + def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_api_service # noqa: E501 + + partially update the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_api_service_status(self, name, body, **kwargs): - """ - partially update status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_api_service_status(self, name, body, **kwargs): # noqa: E501 + """patch_api_service_status # noqa: E501 + + partially update status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_status(name, body, async_req=True) @@ -722,7 +751,7 @@ def patch_api_service_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -733,14 +762,15 @@ def patch_api_service_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_api_service_status_with_http_info(name, body, **kwargs) + return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) + (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_api_service_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified APIService + def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_api_service_status # noqa: E501 + + partially update status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_status_with_http_info(name, body, async_req=True) @@ -748,7 +778,7 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -758,44 +788,46 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -803,37 +835,39 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_api_service(self, name, **kwargs): - """ - read the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_api_service(self, name, **kwargs): # noqa: E501 + """read_api_service # noqa: E501 + + read the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service(name, async_req=True) @@ -850,14 +884,15 @@ def read_api_service(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_api_service_with_http_info(name, **kwargs) + return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_api_service_with_http_info(name, **kwargs) + (data) = self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 return data - def read_api_service_with_http_info(self, name, **kwargs): - """ - read the specified APIService + def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 + """read_api_service # noqa: E501 + + read the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_with_http_info(name, async_req=True) @@ -873,39 +908,40 @@ def read_api_service_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -914,34 +950,32 @@ def read_api_service_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_api_service_status(self, name, **kwargs): - """ - read status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_api_service_status(self, name, **kwargs): # noqa: E501 + """read_api_service_status # noqa: E501 + + read status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_status(name, async_req=True) @@ -956,14 +990,15 @@ def read_api_service_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_api_service_status_with_http_info(name, **kwargs) + return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_api_service_status_with_http_info(name, **kwargs) + (data) = self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_api_service_status_with_http_info(self, name, **kwargs): - """ - read status of the specified APIService + def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_api_service_status # noqa: E501 + + read status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_status_with_http_info(name, async_req=True) @@ -977,35 +1012,36 @@ def read_api_service_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1014,34 +1050,32 @@ def read_api_service_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_api_service(self, name, body, **kwargs): - """ - replace the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_api_service(self, name, body, **kwargs): # noqa: E501 + """replace_api_service # noqa: E501 + + replace the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service(name, body, async_req=True) @@ -1059,14 +1093,15 @@ def replace_api_service(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_api_service_with_http_info(name, body, **kwargs) + return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_api_service_with_http_info(name, body, **kwargs) + (data) = self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_api_service_with_http_info(self, name, body, **kwargs): - """ - replace the specified APIService + def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_api_service # noqa: E501 + + replace the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_with_http_info(name, body, async_req=True) @@ -1083,42 +1118,44 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1126,37 +1163,35 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_api_service_status(self, name, body, **kwargs): - """ - replace status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_api_service_status(self, name, body, **kwargs): # noqa: E501 + """replace_api_service_status # noqa: E501 + + replace status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_status(name, body, async_req=True) @@ -1174,14 +1209,15 @@ def replace_api_service_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_api_service_status_with_http_info(name, body, **kwargs) + return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) + (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_api_service_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified APIService + def replace_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_api_service_status # noqa: E501 + + replace status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_status_with_http_info(name, body, async_req=True) @@ -1198,42 +1234,44 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1241,30 +1279,27 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1/apiservices/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apiregistration_v1beta1_api.py b/kubernetes/client/api/apiregistration_v1beta1_api.py similarity index 59% rename from kubernetes/client/apis/apiregistration_v1beta1_api.py rename to kubernetes/client/api/apiregistration_v1beta1_api.py index 49e5f2f58d..72ce06f28b 100644 --- a/kubernetes/client/apis/apiregistration_v1beta1_api.py +++ b/kubernetes/client/api/apiregistration_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class ApiregistrationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_api_service(self, body, **kwargs): - """ - create an APIService + def create_api_service(self, body, **kwargs): # noqa: E501 + """create_api_service # noqa: E501 + + create an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_api_service(body, async_req=True) @@ -54,14 +52,15 @@ def create_api_service(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_api_service_with_http_info(body, **kwargs) + return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_api_service_with_http_info(body, **kwargs) + (data) = self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 return data - def create_api_service_with_http_info(self, body, **kwargs): - """ - create an APIService + def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 + """create_api_service # noqa: E501 + + create an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_api_service_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_api_service_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_api_service_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_api_service(self, name, **kwargs): - """ - delete an APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_api_service(self, name, **kwargs): # noqa: E501 + """delete_api_service # noqa: E501 + + delete an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_api_service(name, async_req=True) @@ -154,25 +152,26 @@ def delete_api_service(self, name, **kwargs): :param async_req bool :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_api_service_with_http_info(name, **kwargs) + return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_api_service_with_http_info(name, **kwargs) + (data) = self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_api_service_with_http_info(self, name, **kwargs): - """ - delete an APIService + def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_api_service # noqa: E501 + + delete an APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_api_service_with_http_info(name, async_req=True) @@ -181,53 +180,54 @@ def delete_api_service_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -235,37 +235,35 @@ def delete_api_service_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_api_service(self, **kwargs): - """ - delete collection of APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_api_service(self, **kwargs): # noqa: E501 + """delete_collection_api_service # noqa: E501 + + delete collection of APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_api_service(async_req=True) @@ -273,27 +271,34 @@ def delete_collection_api_service(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_api_service_with_http_info(**kwargs) + return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_api_service_with_http_info(**kwargs) + (data) = self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_api_service_with_http_info(self, **kwargs): - """ - delete collection of APIService + def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_api_service # noqa: E501 + + delete collection of APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_api_service_with_http_info(async_req=True) @@ -301,56 +306,72 @@ def delete_collection_api_service_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_api_service" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -358,35 +379,35 @@ def delete_collection_api_service_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_api_service(self, **kwargs): - """ - list or watch objects of kind APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_api_service(self, **kwargs): # noqa: E501 + """list_api_service # noqa: E501 + + list or watch objects of kind APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_api_service(async_req=True) @@ -482,6 +503,7 @@ def list_api_service(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_api_service(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_api_service_with_http_info(**kwargs) + return self.list_api_service_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_api_service_with_http_info(**kwargs) + (data) = self.list_api_service_with_http_info(**kwargs) # noqa: E501 return data - def list_api_service_with_http_info(self, **kwargs): - """ - list or watch objects of kind APIService + def list_api_service_with_http_info(self, **kwargs): # noqa: E501 + """list_api_service # noqa: E501 + + list or watch objects of kind APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_api_service_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_api_service_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_api_service_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_api_service" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_api_service_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIServiceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_api_service(self, name, body, **kwargs): - """ - partially update the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIServiceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_api_service(self, name, body, **kwargs): # noqa: E501 + """patch_api_service # noqa: E501 + + partially update the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_api_service(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_api_service(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_api_service_with_http_info(name, body, **kwargs) + return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_api_service_with_http_info(name, body, **kwargs) + (data) = self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_api_service_with_http_info(self, name, body, **kwargs): - """ - partially update the specified APIService + def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_api_service # noqa: E501 + + partially update the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_api_service_status(self, name, body, **kwargs): - """ - partially update status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_api_service_status(self, name, body, **kwargs): # noqa: E501 + """patch_api_service_status # noqa: E501 + + partially update status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_status(name, body, async_req=True) @@ -722,7 +751,7 @@ def patch_api_service_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -733,14 +762,15 @@ def patch_api_service_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_api_service_status_with_http_info(name, body, **kwargs) + return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) + (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_api_service_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified APIService + def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_api_service_status # noqa: E501 + + partially update status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_api_service_status_with_http_info(name, body, async_req=True) @@ -748,7 +778,7 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the APIService (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -758,44 +788,46 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -803,37 +835,39 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_api_service(self, name, **kwargs): - """ - read the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_api_service(self, name, **kwargs): # noqa: E501 + """read_api_service # noqa: E501 + + read the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service(name, async_req=True) @@ -850,14 +884,15 @@ def read_api_service(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_api_service_with_http_info(name, **kwargs) + return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_api_service_with_http_info(name, **kwargs) + (data) = self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 return data - def read_api_service_with_http_info(self, name, **kwargs): - """ - read the specified APIService + def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 + """read_api_service # noqa: E501 + + read the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_with_http_info(name, async_req=True) @@ -873,39 +908,40 @@ def read_api_service_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -914,34 +950,32 @@ def read_api_service_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_api_service_status(self, name, **kwargs): - """ - read status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_api_service_status(self, name, **kwargs): # noqa: E501 + """read_api_service_status # noqa: E501 + + read status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_status(name, async_req=True) @@ -956,14 +990,15 @@ def read_api_service_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_api_service_status_with_http_info(name, **kwargs) + return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_api_service_status_with_http_info(name, **kwargs) + (data) = self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_api_service_status_with_http_info(self, name, **kwargs): - """ - read status of the specified APIService + def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_api_service_status # noqa: E501 + + read status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_api_service_status_with_http_info(name, async_req=True) @@ -977,35 +1012,36 @@ def read_api_service_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1014,34 +1050,32 @@ def read_api_service_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_api_service(self, name, body, **kwargs): - """ - replace the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_api_service(self, name, body, **kwargs): # noqa: E501 + """replace_api_service # noqa: E501 + + replace the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service(name, body, async_req=True) @@ -1059,14 +1093,15 @@ def replace_api_service(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_api_service_with_http_info(name, body, **kwargs) + return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_api_service_with_http_info(name, body, **kwargs) + (data) = self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_api_service_with_http_info(self, name, body, **kwargs): - """ - replace the specified APIService + def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_api_service # noqa: E501 + + replace the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_with_http_info(name, body, async_req=True) @@ -1083,42 +1118,44 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1126,37 +1163,35 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_api_service_status(self, name, body, **kwargs): - """ - replace status of the specified APIService + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_api_service_status(self, name, body, **kwargs): # noqa: E501 + """replace_api_service_status # noqa: E501 + + replace status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_status(name, body, async_req=True) @@ -1174,14 +1209,15 @@ def replace_api_service_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_api_service_status_with_http_info(name, body, **kwargs) + return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) + (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_api_service_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified APIService + def replace_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_api_service_status # noqa: E501 + + replace status of the specified APIService # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_api_service_status_with_http_info(name, body, async_req=True) @@ -1198,42 +1234,44 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1241,30 +1279,27 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1APIService', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1APIService', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/apis_api.py b/kubernetes/client/api/apis_api.py new file mode 100644 index 0000000000..ebb7399b6d --- /dev/null +++ b/kubernetes/client/api/apis_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class ApisApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_versions(self, **kwargs): # noqa: E501 + """get_api_versions # noqa: E501 + + get available API versions # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_versions(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroupList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_versions_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 + """get_api_versions # noqa: E501 + + get available API versions # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_versions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroupList + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_versions" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroupList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/apps_api.py b/kubernetes/client/api/apps_api.py new file mode 100644 index 0000000000..3780b9dfbe --- /dev/null +++ b/kubernetes/client/api/apps_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AppsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apps_v1_api.py b/kubernetes/client/api/apps_v1_api.py similarity index 60% rename from kubernetes/client/apis/apps_v1_api.py rename to kubernetes/client/api/apps_v1_api.py index bde7903fe2..590a15b04d 100644 --- a/kubernetes/client/apis/apps_v1_api.py +++ b/kubernetes/client/api/apps_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AppsV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_controller_revision(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_daemon_set(self, namespace, body, **kwargs): - """ - create a DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) @@ -170,14 +169,15 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): - """ - create a DaemonSet + def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) @@ -194,42 +194,44 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -237,37 +239,35 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment(self, namespace, body, **kwargs): - """ - create a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) @@ -285,14 +285,15 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): - """ - create a Deployment + def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) @@ -309,42 +310,44 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -352,37 +355,35 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_replica_set(self, namespace, body, **kwargs): - """ - create a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) @@ -400,14 +401,15 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): - """ - create a ReplicaSet + def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) @@ -424,42 +426,44 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -467,37 +471,35 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_stateful_set(self, namespace, body, **kwargs): - """ - create a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) @@ -515,14 +517,15 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): - """ - create a StatefulSet + def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) @@ -539,42 +542,44 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -582,37 +587,35 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) @@ -621,27 +624,34 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -650,61 +660,78 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -712,35 +739,35 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): - """ - delete collection of DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) @@ -749,27 +776,34 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of DaemonSet + def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -778,61 +812,78 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -840,35 +891,35 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_deployment(self, namespace, **kwargs): - """ - delete collection of Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) @@ -877,27 +928,34 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - delete collection of Deployment + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -906,61 +964,78 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -968,35 +1043,35 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_replica_set(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) @@ -1005,27 +1080,34 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -1034,61 +1116,78 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1096,35 +1195,35 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): - """ - delete collection of StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) @@ -1133,27 +1232,34 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of StatefulSet + def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -1162,61 +1268,78 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1224,35 +1347,35 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) @@ -1262,25 +1385,26 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -1290,58 +1414,60 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1349,37 +1475,35 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - delete a DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) @@ -1389,25 +1513,26 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a DaemonSet + def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -1417,58 +1542,60 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1476,37 +1603,35 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_deployment(self, name, namespace, **kwargs): - """ - delete a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) @@ -1516,25 +1641,26 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - delete a Deployment + def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -1544,58 +1670,60 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1603,37 +1731,35 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_replica_set(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) @@ -1643,25 +1769,26 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -1671,58 +1798,60 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1730,37 +1859,35 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - delete a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) @@ -1770,25 +1897,26 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a StatefulSet + def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -1798,58 +1926,60 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1857,37 +1987,35 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1900,14 +2028,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1919,21 +2048,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1948,40 +2078,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_controller_revision_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1996,20 +2125,22 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2023,44 +2154,46 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2069,40 +2202,39 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_daemon_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2117,20 +2249,22 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2144,44 +2278,46 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2190,40 +2326,39 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_deployment_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2238,20 +2373,22 @@ def list_deployment_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Deployment + def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2265,44 +2402,46 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2311,34 +2450,32 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_controller_revision(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) @@ -2347,6 +2484,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2360,14 +2498,15 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -2376,6 +2515,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2388,49 +2528,52 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2439,34 +2582,32 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_daemon_set(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) @@ -2475,6 +2616,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2488,14 +2630,15 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -2504,6 +2647,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2516,49 +2660,52 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2567,34 +2714,32 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_deployment(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment(namespace, async_req=True) @@ -2603,6 +2748,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2616,14 +2762,15 @@ def list_namespaced_deployment(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -2632,6 +2779,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2644,49 +2792,52 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2695,34 +2846,32 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_replica_set(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) @@ -2731,6 +2880,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2744,14 +2894,15 @@ def list_namespaced_replica_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -2760,6 +2911,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2772,49 +2924,52 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2823,34 +2978,32 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_stateful_set(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) @@ -2859,6 +3012,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2872,14 +3026,15 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -2888,6 +3043,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2900,49 +3056,52 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2951,40 +3110,39 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_replica_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2999,20 +3157,22 @@ def list_replica_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3026,44 +3186,46 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3072,40 +3234,39 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_stateful_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3120,20 +3281,22 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3147,44 +3310,46 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3193,34 +3358,32 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -3229,7 +3392,7 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3240,14 +3403,15 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -3256,7 +3420,7 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3266,49 +3430,52 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3316,37 +3483,39 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -3355,7 +3524,7 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3366,14 +3535,15 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -3382,7 +3552,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3392,49 +3562,52 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3442,37 +3615,39 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -3481,7 +3656,7 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3492,14 +3667,15 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -3508,7 +3684,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3518,49 +3694,52 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3568,37 +3747,39 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) @@ -3607,7 +3788,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3618,14 +3799,15 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -3634,7 +3816,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3644,49 +3826,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3694,37 +3879,39 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -3733,7 +3920,7 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3744,14 +3931,15 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -3760,7 +3948,7 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3770,49 +3958,52 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3820,37 +4011,39 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -3859,7 +4052,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3870,14 +4063,15 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -3886,7 +4080,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3896,49 +4090,52 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3946,37 +4143,39 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) @@ -3985,7 +4184,7 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3996,14 +4195,15 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -4012,7 +4212,7 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4022,49 +4222,52 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4072,37 +4275,39 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -4111,7 +4316,7 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4122,14 +4327,15 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4138,7 +4344,7 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4148,49 +4354,52 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4198,37 +4407,39 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -4237,7 +4448,7 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4248,14 +4459,15 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -4264,7 +4476,7 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4274,49 +4486,52 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4324,37 +4539,39 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -4363,7 +4580,7 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4374,14 +4591,15 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -4390,7 +4608,7 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4400,49 +4618,52 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4450,37 +4671,39 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -4489,7 +4712,7 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4500,14 +4723,15 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4516,7 +4740,7 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4526,49 +4750,52 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4576,37 +4803,39 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -4615,7 +4844,7 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4626,14 +4855,15 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -4642,7 +4872,7 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4652,49 +4882,52 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4702,37 +4935,39 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) @@ -4750,14 +4985,15 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -4774,44 +5010,46 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -4820,34 +5058,32 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) @@ -4865,14 +5101,15 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -4889,44 +5126,46 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -4935,34 +5174,32 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) @@ -4978,14 +5215,15 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) @@ -5000,40 +5238,42 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5042,34 +5282,32 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment(self, name, namespace, **kwargs): - """ - read the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) @@ -5087,14 +5325,15 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Deployment + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -5111,44 +5350,46 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5157,34 +5398,32 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_scale(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) @@ -5200,14 +5439,15 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) @@ -5222,40 +5462,42 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5264,34 +5506,32 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_status(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) @@ -5307,14 +5547,15 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) @@ -5329,40 +5570,42 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5371,34 +5614,32 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) @@ -5416,14 +5657,15 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -5440,44 +5682,46 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5486,34 +5730,32 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) @@ -5529,14 +5771,15 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) @@ -5551,40 +5794,42 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5593,34 +5838,32 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_status(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) @@ -5636,14 +5879,15 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) @@ -5658,40 +5902,42 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5700,34 +5946,32 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) @@ -5745,14 +5989,15 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -5769,44 +6014,46 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5815,34 +6062,32 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) @@ -5858,14 +6103,15 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) @@ -5880,40 +6126,42 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5922,34 +6170,32 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) @@ -5965,14 +6211,15 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) @@ -5987,40 +6234,42 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6029,34 +6278,32 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -6075,14 +6322,15 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -6100,47 +6348,50 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6148,37 +6399,35 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -6197,14 +6446,15 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -6222,47 +6472,50 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6270,37 +6523,35 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -6319,14 +6570,15 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -6344,47 +6596,50 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6392,37 +6647,35 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) @@ -6441,14 +6694,15 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -6466,47 +6720,50 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6514,37 +6771,35 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -6563,14 +6818,15 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -6588,47 +6844,50 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6636,37 +6895,35 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -6685,14 +6942,15 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -6710,47 +6968,50 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6758,37 +7019,35 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) @@ -6807,14 +7066,15 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -6832,47 +7092,50 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6880,37 +7143,35 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -6929,14 +7190,15 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -6954,47 +7216,50 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7002,37 +7267,35 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -7051,14 +7314,15 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -7076,47 +7340,50 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7124,37 +7391,35 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -7173,14 +7438,15 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -7198,47 +7464,50 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7246,37 +7515,35 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -7295,14 +7562,15 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -7320,47 +7588,50 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7368,37 +7639,35 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -7417,14 +7686,15 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -7442,47 +7712,50 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7490,30 +7763,27 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apps_v1beta1_api.py b/kubernetes/client/api/apps_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/apps_v1beta1_api.py rename to kubernetes/client/api/apps_v1beta1_api.py index 00eab825b3..4dc2f51ade 100644 --- a/kubernetes/client/apis/apps_v1beta1_api.py +++ b/kubernetes/client/api/apps_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AppsV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_controller_revision(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment(self, namespace, body, **kwargs): - """ - create a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) @@ -170,14 +169,15 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): - """ - create a Deployment + def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) @@ -194,42 +194,44 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -237,37 +239,35 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs): - """ - create rollback of a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment_rollback # noqa: E501 + + create rollback of a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_rollback(name, namespace, body, async_req=True) @@ -286,14 +286,15 @@ def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): - """ - create rollback of a Deployment + def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment_rollback # noqa: E501 + + create rollback of a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, async_req=True) @@ -311,47 +312,50 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment_rollback" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -359,37 +363,35 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_stateful_set(self, namespace, body, **kwargs): - """ - create a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) @@ -407,14 +409,15 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): - """ - create a StatefulSet + def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) @@ -431,42 +434,44 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -474,37 +479,35 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) @@ -513,27 +516,34 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -542,61 +552,78 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -604,35 +631,35 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_deployment(self, namespace, **kwargs): - """ - delete collection of Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) @@ -641,27 +668,34 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - delete collection of Deployment + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -670,61 +704,78 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -732,35 +783,35 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): - """ - delete collection of StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) @@ -769,27 +820,34 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of StatefulSet + def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -798,61 +856,78 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -860,35 +935,35 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) @@ -898,25 +973,26 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -926,58 +1002,60 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -985,37 +1063,35 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_deployment(self, name, namespace, **kwargs): - """ - delete a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) @@ -1025,25 +1101,26 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - delete a Deployment + def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -1053,58 +1130,60 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1112,37 +1191,35 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - delete a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) @@ -1152,25 +1229,26 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a StatefulSet + def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -1180,58 +1258,60 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1239,37 +1319,35 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1282,14 +1360,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1301,21 +1380,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1330,40 +1410,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_controller_revision_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1378,20 +1457,22 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1405,44 +1486,46 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1451,40 +1534,39 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_deployment_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1499,20 +1581,22 @@ def list_deployment_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Deployment + def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1526,44 +1610,46 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1572,34 +1658,32 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_controller_revision(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) @@ -1608,6 +1692,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1621,14 +1706,15 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -1637,6 +1723,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1649,49 +1736,52 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1700,34 +1790,32 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_deployment(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment(namespace, async_req=True) @@ -1736,6 +1824,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1749,14 +1838,15 @@ def list_namespaced_deployment(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -1765,6 +1855,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1777,49 +1868,52 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1828,34 +1922,32 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_stateful_set(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) @@ -1864,6 +1956,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1877,14 +1970,15 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -1893,6 +1987,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1905,49 +2000,52 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1956,40 +2054,39 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_stateful_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2004,20 +2101,22 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2031,44 +2130,46 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2077,34 +2178,32 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -2113,7 +2212,7 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2124,14 +2223,15 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -2140,7 +2240,7 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2150,49 +2250,52 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2200,37 +2303,39 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) @@ -2239,7 +2344,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2250,14 +2355,15 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -2266,7 +2372,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2276,49 +2382,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2326,37 +2435,39 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -2365,7 +2476,7 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2376,14 +2487,15 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -2392,7 +2504,7 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2402,49 +2514,52 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2452,37 +2567,39 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -2491,7 +2608,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2502,14 +2619,15 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -2518,7 +2636,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2528,49 +2646,52 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2578,37 +2699,39 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -2617,7 +2740,7 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2628,14 +2751,15 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -2644,7 +2768,7 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2654,49 +2778,52 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2704,37 +2831,39 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -2743,7 +2872,7 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2754,14 +2883,15 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -2770,7 +2900,7 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2780,49 +2910,52 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2830,37 +2963,39 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -2869,7 +3004,7 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2880,14 +3015,15 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -2896,7 +3032,7 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2906,49 +3042,52 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2956,37 +3095,39 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) @@ -3004,14 +3145,15 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -3028,44 +3170,46 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3074,34 +3218,32 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment(self, name, namespace, **kwargs): - """ - read the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) @@ -3119,14 +3261,15 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Deployment + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -3143,44 +3286,46 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3189,34 +3334,32 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_scale(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) @@ -3232,14 +3375,15 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) @@ -3254,40 +3398,42 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3296,34 +3442,32 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_status(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) @@ -3339,14 +3483,15 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) @@ -3361,40 +3506,42 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3403,34 +3550,32 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) @@ -3448,14 +3593,15 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -3472,44 +3618,46 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3518,34 +3666,32 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) @@ -3561,14 +3707,15 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) @@ -3583,40 +3730,42 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3625,34 +3774,32 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) @@ -3668,14 +3815,15 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) @@ -3690,40 +3838,42 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3732,34 +3882,32 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -3778,14 +3926,15 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -3803,47 +3952,50 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3851,37 +4003,35 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) @@ -3900,14 +4050,15 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -3925,47 +4076,50 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3973,37 +4127,35 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -4022,14 +4174,15 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -4047,47 +4200,50 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4095,37 +4251,35 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -4144,14 +4298,15 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -4169,47 +4324,50 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4217,37 +4375,35 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -4266,14 +4422,15 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -4291,47 +4448,50 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4339,37 +4499,35 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -4388,14 +4546,15 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4413,47 +4572,50 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4461,37 +4623,35 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AppsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AppsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -4510,14 +4670,15 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -4535,47 +4696,50 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4583,30 +4747,27 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apps_v1beta2_api.py b/kubernetes/client/api/apps_v1beta2_api.py similarity index 60% rename from kubernetes/client/apis/apps_v1beta2_api.py rename to kubernetes/client/api/apps_v1beta2_api.py index 4e2946ddc5..bd87952e36 100644 --- a/kubernetes/client/apis/apps_v1beta2_api.py +++ b/kubernetes/client/api/apps_v1beta2_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AppsV1beta2Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_controller_revision(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): - """ - create a ControllerRevision + def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_controller_revision # noqa: E501 + + create a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_daemon_set(self, namespace, body, **kwargs): - """ - create a DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) @@ -170,14 +169,15 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): - """ - create a DaemonSet + def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) @@ -194,42 +194,44 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -237,37 +239,35 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment(self, namespace, body, **kwargs): - """ - create a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) @@ -285,14 +285,15 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): - """ - create a Deployment + def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) @@ -309,42 +310,44 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -352,37 +355,35 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_replica_set(self, namespace, body, **kwargs): - """ - create a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) @@ -400,14 +401,15 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): - """ - create a ReplicaSet + def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) @@ -424,42 +426,44 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -467,37 +471,35 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_stateful_set(self, namespace, body, **kwargs): - """ - create a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) @@ -515,14 +517,15 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): - """ - create a StatefulSet + def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_stateful_set # noqa: E501 + + create a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) @@ -539,42 +542,44 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -582,37 +587,35 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) @@ -621,27 +624,34 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - delete collection of ControllerRevision + def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_controller_revision # noqa: E501 + + delete collection of ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -650,61 +660,78 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -712,35 +739,35 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): - """ - delete collection of DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) @@ -749,27 +776,34 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of DaemonSet + def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -778,61 +812,78 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -840,35 +891,35 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_deployment(self, namespace, **kwargs): - """ - delete collection of Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) @@ -877,27 +928,34 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - delete collection of Deployment + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -906,61 +964,78 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -968,35 +1043,35 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_replica_set(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) @@ -1005,27 +1080,34 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -1034,61 +1116,78 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1096,35 +1195,35 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): - """ - delete collection of StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) @@ -1133,27 +1232,34 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of StatefulSet + def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_stateful_set # noqa: E501 + + delete collection of StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -1162,61 +1268,78 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1224,35 +1347,35 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) @@ -1262,25 +1385,26 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - delete a ControllerRevision + def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_controller_revision # noqa: E501 + + delete a ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -1290,58 +1414,60 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1349,37 +1475,35 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - delete a DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) @@ -1389,25 +1513,26 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a DaemonSet + def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -1417,58 +1542,60 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1476,37 +1603,35 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_deployment(self, name, namespace, **kwargs): - """ - delete a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) @@ -1516,25 +1641,26 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - delete a Deployment + def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -1544,58 +1670,60 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1603,37 +1731,35 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_replica_set(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) @@ -1643,25 +1769,26 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -1671,58 +1798,60 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1730,37 +1859,35 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - delete a StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) @@ -1770,25 +1897,26 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a StatefulSet + def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_stateful_set # noqa: E501 + + delete a StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -1798,58 +1926,60 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1857,37 +1987,35 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1900,14 +2028,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1919,21 +2048,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1948,40 +2078,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_controller_revision_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1996,20 +2125,22 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_controller_revision_for_all_namespaces # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2023,44 +2154,46 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2069,40 +2202,39 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_daemon_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2117,20 +2249,22 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2144,44 +2278,46 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2190,40 +2326,39 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_deployment_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2238,20 +2373,22 @@ def list_deployment_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Deployment + def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2265,44 +2402,46 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2311,34 +2450,32 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_controller_revision(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) @@ -2347,6 +2484,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2360,14 +2498,15 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ControllerRevision + def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_controller_revision # noqa: E501 + + list or watch objects of kind ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) @@ -2376,6 +2515,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2388,49 +2528,52 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2439,34 +2582,32 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevisionList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_daemon_set(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevisionList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) @@ -2475,6 +2616,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2488,14 +2630,15 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -2504,6 +2647,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2516,49 +2660,52 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2567,34 +2714,32 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_deployment(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment(namespace, async_req=True) @@ -2603,6 +2748,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2616,14 +2762,15 @@ def list_namespaced_deployment(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -2632,6 +2779,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2644,49 +2792,52 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2695,34 +2846,32 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_replica_set(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) @@ -2731,6 +2880,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2744,14 +2894,15 @@ def list_namespaced_replica_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -2760,6 +2911,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2772,49 +2924,52 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2823,34 +2978,32 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_stateful_set(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) @@ -2859,6 +3012,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2872,14 +3026,15 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_stateful_set # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) @@ -2888,6 +3043,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2900,49 +3056,52 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2951,40 +3110,39 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_replica_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2999,20 +3157,22 @@ def list_replica_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3026,44 +3186,46 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3072,40 +3234,39 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_stateful_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3120,20 +3281,22 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind StatefulSet + def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_stateful_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3147,44 +3310,46 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3193,34 +3358,32 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/statefulsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/statefulsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -3229,7 +3392,7 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3240,14 +3403,15 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ControllerRevision + def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_controller_revision # noqa: E501 + + partially update the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -3256,7 +3420,7 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3266,49 +3430,52 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3316,37 +3483,39 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -3355,7 +3524,7 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3366,14 +3535,15 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -3382,7 +3552,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3392,49 +3562,52 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3442,37 +3615,39 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -3481,7 +3656,7 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3492,14 +3667,15 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -3508,7 +3684,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3518,49 +3694,52 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3568,37 +3747,39 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) @@ -3607,7 +3788,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3618,14 +3799,15 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -3634,7 +3816,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3644,49 +3826,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3694,37 +3879,39 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -3733,7 +3920,7 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3744,14 +3931,15 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -3760,7 +3948,7 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3770,49 +3958,52 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3820,37 +4011,39 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -3859,7 +4052,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3870,14 +4063,15 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -3886,7 +4080,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3896,49 +4090,52 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3946,37 +4143,39 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) @@ -3985,7 +4184,7 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3996,14 +4195,15 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -4012,7 +4212,7 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4022,49 +4222,52 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4072,37 +4275,39 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -4111,7 +4316,7 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4122,14 +4327,15 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4138,7 +4344,7 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4148,49 +4354,52 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4198,37 +4407,39 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -4237,7 +4448,7 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4248,14 +4459,15 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -4264,7 +4476,7 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4274,49 +4486,52 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4324,37 +4539,39 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -4363,7 +4580,7 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4374,14 +4591,15 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified StatefulSet + def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set # noqa: E501 + + partially update the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -4390,7 +4608,7 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4400,49 +4618,52 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4450,37 +4671,39 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -4489,7 +4712,7 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4500,14 +4723,15 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified StatefulSet + def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_scale # noqa: E501 + + partially update scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4516,7 +4740,7 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4526,49 +4750,52 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4576,37 +4803,39 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -4615,7 +4844,7 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4626,14 +4855,15 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified StatefulSet + def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_stateful_set_status # noqa: E501 + + partially update status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -4642,7 +4872,7 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b :param async_req bool :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4652,49 +4882,52 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4702,37 +4935,39 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_controller_revision(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) @@ -4750,14 +4985,15 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ControllerRevision + def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_controller_revision # noqa: E501 + + read the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) @@ -4774,44 +5010,46 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -4820,34 +5058,32 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) @@ -4865,14 +5101,15 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -4889,44 +5126,46 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -4935,34 +5174,32 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) @@ -4978,14 +5215,15 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) @@ -5000,40 +5238,42 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5042,34 +5282,32 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment(self, name, namespace, **kwargs): - """ - read the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) @@ -5087,14 +5325,15 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Deployment + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -5111,44 +5350,46 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5157,34 +5398,32 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_scale(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) @@ -5200,14 +5439,15 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) @@ -5222,40 +5462,42 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5264,34 +5506,32 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_status(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) @@ -5307,14 +5547,15 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) @@ -5329,40 +5570,42 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5371,34 +5614,32 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) @@ -5416,14 +5657,15 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -5440,44 +5682,46 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5486,34 +5730,32 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) @@ -5529,14 +5771,15 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) @@ -5551,40 +5794,42 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5593,34 +5838,32 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_status(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) @@ -5636,14 +5879,15 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) @@ -5658,40 +5902,42 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5700,34 +5946,32 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) @@ -5745,14 +5989,15 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified StatefulSet + def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set # noqa: E501 + + read the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) @@ -5769,44 +6014,46 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5815,34 +6062,32 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) @@ -5858,14 +6103,15 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified StatefulSet + def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_scale # noqa: E501 + + read scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) @@ -5880,40 +6126,42 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5922,34 +6170,32 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) @@ -5965,14 +6211,15 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified StatefulSet + def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_stateful_set_status # noqa: E501 + + read status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) @@ -5987,40 +6234,42 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6029,34 +6278,32 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) @@ -6075,14 +6322,15 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ControllerRevision + def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_controller_revision # noqa: E501 + + replace the specified ControllerRevision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) @@ -6100,47 +6348,50 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6148,37 +6399,35 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ControllerRevision', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ControllerRevision', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -6197,14 +6446,15 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -6222,47 +6472,50 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6270,37 +6523,35 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -6319,14 +6570,15 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -6344,47 +6596,50 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6392,37 +6647,35 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) @@ -6441,14 +6694,15 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -6466,47 +6720,50 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6514,37 +6771,35 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -6563,14 +6818,15 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -6588,47 +6844,50 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6636,37 +6895,35 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -6685,14 +6942,15 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -6710,47 +6968,50 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6758,37 +7019,35 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) @@ -6807,14 +7066,15 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -6832,47 +7092,50 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6880,37 +7143,35 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -6929,14 +7190,15 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -6954,47 +7216,50 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7002,37 +7267,35 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -7051,14 +7314,15 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -7076,47 +7340,50 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7124,37 +7391,35 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) @@ -7173,14 +7438,15 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified StatefulSet + def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set # noqa: E501 + + replace the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) @@ -7198,47 +7464,50 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7246,37 +7515,35 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) @@ -7295,14 +7562,15 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified StatefulSet + def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_scale # noqa: E501 + + replace scale of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -7320,47 +7588,50 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7368,37 +7639,35 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) @@ -7417,14 +7686,15 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified StatefulSet + def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_stateful_set_status # noqa: E501 + + replace status of the specified StatefulSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) @@ -7442,47 +7712,50 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7490,30 +7763,27 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta2StatefulSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta2StatefulSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/auditregistration_api.py b/kubernetes/client/api/auditregistration_api.py new file mode 100644 index 0000000000..2810db624b --- /dev/null +++ b/kubernetes/client/api/auditregistration_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AuditregistrationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/auditregistration_v1alpha1_api.py b/kubernetes/client/api/auditregistration_v1alpha1_api.py similarity index 59% rename from kubernetes/client/apis/auditregistration_v1alpha1_api.py rename to kubernetes/client/api/auditregistration_v1alpha1_api.py index 1bdb5f31bf..23bd2455b4 100644 --- a/kubernetes/client/apis/auditregistration_v1alpha1_api.py +++ b/kubernetes/client/api/auditregistration_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AuditregistrationV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_audit_sink(self, body, **kwargs): - """ - create an AuditSink + def create_audit_sink(self, body, **kwargs): # noqa: E501 + """create_audit_sink # noqa: E501 + + create an AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_audit_sink(body, async_req=True) @@ -54,14 +52,15 @@ def create_audit_sink(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_audit_sink_with_http_info(body, **kwargs) + return self.create_audit_sink_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_audit_sink_with_http_info(body, **kwargs) + (data) = self.create_audit_sink_with_http_info(body, **kwargs) # noqa: E501 return data - def create_audit_sink_with_http_info(self, body, **kwargs): - """ - create an AuditSink + def create_audit_sink_with_http_info(self, body, **kwargs): # noqa: E501 + """create_audit_sink # noqa: E501 + + create an AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_audit_sink_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_audit_sink_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_audit_sink" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_audit_sink`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_audit_sink_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1AuditSink', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_audit_sink(self, name, **kwargs): - """ - delete an AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1AuditSink', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_audit_sink(self, name, **kwargs): # noqa: E501 + """delete_audit_sink # noqa: E501 + + delete an AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_audit_sink(name, async_req=True) @@ -154,25 +152,26 @@ def delete_audit_sink(self, name, **kwargs): :param async_req bool :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_audit_sink_with_http_info(name, **kwargs) + return self.delete_audit_sink_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_audit_sink_with_http_info(name, **kwargs) + (data) = self.delete_audit_sink_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_audit_sink_with_http_info(self, name, **kwargs): - """ - delete an AuditSink + def delete_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_audit_sink # noqa: E501 + + delete an AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_audit_sink_with_http_info(name, async_req=True) @@ -181,53 +180,54 @@ def delete_audit_sink_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_audit_sink" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_audit_sink`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -235,37 +235,35 @@ def delete_audit_sink_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_audit_sink(self, **kwargs): - """ - delete collection of AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_audit_sink(self, **kwargs): # noqa: E501 + """delete_collection_audit_sink # noqa: E501 + + delete collection of AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_audit_sink(async_req=True) @@ -273,27 +271,34 @@ def delete_collection_audit_sink(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_audit_sink_with_http_info(**kwargs) + return self.delete_collection_audit_sink_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_audit_sink_with_http_info(**kwargs) + (data) = self.delete_collection_audit_sink_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_audit_sink_with_http_info(self, **kwargs): - """ - delete collection of AuditSink + def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_audit_sink # noqa: E501 + + delete collection of AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_audit_sink_with_http_info(async_req=True) @@ -301,56 +306,72 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_audit_sink" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -358,35 +379,35 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_audit_sink(self, **kwargs): - """ - list or watch objects of kind AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_audit_sink(self, **kwargs): # noqa: E501 + """list_audit_sink # noqa: E501 + + list or watch objects of kind AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_audit_sink(async_req=True) @@ -482,6 +503,7 @@ def list_audit_sink(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_audit_sink(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_audit_sink_with_http_info(**kwargs) + return self.list_audit_sink_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_audit_sink_with_http_info(**kwargs) + (data) = self.list_audit_sink_with_http_info(**kwargs) # noqa: E501 return data - def list_audit_sink_with_http_info(self, **kwargs): - """ - list or watch objects of kind AuditSink + def list_audit_sink_with_http_info(self, **kwargs): # noqa: E501 + """list_audit_sink # noqa: E501 + + list or watch objects of kind AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_audit_sink_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_audit_sink_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_audit_sink_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_audit_sink" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_audit_sink_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1AuditSinkList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_audit_sink(self, name, body, **kwargs): - """ - partially update the specified AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1AuditSinkList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_audit_sink(self, name, body, **kwargs): # noqa: E501 + """patch_audit_sink # noqa: E501 + + partially update the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_audit_sink(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_audit_sink(self, name, body, **kwargs): :param async_req bool :param str name: name of the AuditSink (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_audit_sink(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_audit_sink_with_http_info(name, body, **kwargs) + return self.patch_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_audit_sink_with_http_info(name, body, **kwargs) + (data) = self.patch_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_audit_sink_with_http_info(self, name, body, **kwargs): - """ - partially update the specified AuditSink + def patch_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_audit_sink # noqa: E501 + + partially update the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_audit_sink_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_audit_sink_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the AuditSink (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_audit_sink_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_audit_sink" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_audit_sink`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_audit_sink`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_audit_sink`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_audit_sink_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1AuditSink', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_audit_sink(self, name, **kwargs): - """ - read the specified AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1AuditSink', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_audit_sink(self, name, **kwargs): # noqa: E501 + """read_audit_sink # noqa: E501 + + read the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_audit_sink(name, async_req=True) @@ -731,14 +760,15 @@ def read_audit_sink(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_audit_sink_with_http_info(name, **kwargs) + return self.read_audit_sink_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_audit_sink_with_http_info(name, **kwargs) + (data) = self.read_audit_sink_with_http_info(name, **kwargs) # noqa: E501 return data - def read_audit_sink_with_http_info(self, name, **kwargs): - """ - read the specified AuditSink + def read_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 + """read_audit_sink # noqa: E501 + + read the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_audit_sink_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_audit_sink_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_audit_sink" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_audit_sink`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_audit_sink_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1AuditSink', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_audit_sink(self, name, body, **kwargs): - """ - replace the specified AuditSink + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1AuditSink', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_audit_sink(self, name, body, **kwargs): # noqa: E501 + """replace_audit_sink # noqa: E501 + + replace the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_audit_sink(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_audit_sink(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_audit_sink_with_http_info(name, body, **kwargs) + return self.replace_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_audit_sink_with_http_info(name, body, **kwargs) + (data) = self.replace_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_audit_sink_with_http_info(self, name, body, **kwargs): - """ - replace the specified AuditSink + def replace_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_audit_sink # noqa: E501 + + replace the specified AuditSink # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_audit_sink_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_audit_sink_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_audit_sink" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_audit_sink`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_audit_sink`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_audit_sink`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_audit_sink_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1AuditSink', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1AuditSink', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/authentication_api.py b/kubernetes/client/api/authentication_api.py new file mode 100644 index 0000000000..fa868ea9bd --- /dev/null +++ b/kubernetes/client/api/authentication_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AuthenticationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authentication.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authentication_v1_api.py b/kubernetes/client/api/authentication_v1_api.py similarity index 55% rename from kubernetes/client/apis/authentication_v1_api.py rename to kubernetes/client/api/authentication_v1_api.py index e20e8dbf56..5e76aeb956 100644 --- a/kubernetes/client/apis/authentication_v1_api.py +++ b/kubernetes/client/api/authentication_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AuthenticationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_token_review(self, body, **kwargs): - """ - create a TokenReview + def create_token_review(self, body, **kwargs): # noqa: E501 + """create_token_review # noqa: E501 + + create a TokenReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_token_review(body, async_req=True) @@ -54,14 +52,15 @@ def create_token_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_token_review_with_http_info(body, **kwargs) + return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_token_review_with_http_info(body, **kwargs) + (data) = self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_token_review_with_http_info(self, body, **kwargs): - """ - create a TokenReview + def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_token_review # noqa: E501 + + create a TokenReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_token_review_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_token_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_token_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_token_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_token_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authentication.k8s.io/v1/tokenreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1TokenReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authentication.k8s.io/v1/tokenreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1TokenReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -158,14 +156,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -177,21 +176,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -206,27 +206,24 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authentication.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authentication.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authentication_v1beta1_api.py b/kubernetes/client/api/authentication_v1beta1_api.py similarity index 55% rename from kubernetes/client/apis/authentication_v1beta1_api.py rename to kubernetes/client/api/authentication_v1beta1_api.py index 434def177f..8b4c92ae03 100644 --- a/kubernetes/client/apis/authentication_v1beta1_api.py +++ b/kubernetes/client/api/authentication_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AuthenticationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_token_review(self, body, **kwargs): - """ - create a TokenReview + def create_token_review(self, body, **kwargs): # noqa: E501 + """create_token_review # noqa: E501 + + create a TokenReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_token_review(body, async_req=True) @@ -54,14 +52,15 @@ def create_token_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_token_review_with_http_info(body, **kwargs) + return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_token_review_with_http_info(body, **kwargs) + (data) = self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_token_review_with_http_info(self, body, **kwargs): - """ - create a TokenReview + def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_token_review # noqa: E501 + + create a TokenReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_token_review_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_token_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_token_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_token_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_token_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authentication.k8s.io/v1beta1/tokenreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1TokenReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authentication.k8s.io/v1beta1/tokenreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1TokenReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -158,14 +156,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -177,21 +176,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -206,27 +206,24 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authentication.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authentication.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/authorization_api.py b/kubernetes/client/api/authorization_api.py new file mode 100644 index 0000000000..bb8a8b1dac --- /dev/null +++ b/kubernetes/client/api/authorization_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AuthorizationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_v1_api.py b/kubernetes/client/api/authorization_v1_api.py similarity index 59% rename from kubernetes/client/apis/authorization_v1_api.py rename to kubernetes/client/api/authorization_v1_api.py index 93c4605296..970ce5527c 100644 --- a/kubernetes/client/apis/authorization_v1_api.py +++ b/kubernetes/client/api/authorization_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AuthorizationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview + def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_local_subject_access_review # noqa: E501 + + create a LocalSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_local_subject_access_review(self, namespace, body, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview + def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_local_subject_access_review # noqa: E501 + + create a LocalSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace returns the request thread. """ - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_local_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LocalSubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_access_review(self, body, **kwargs): - """ - create a SelfSubjectAccessReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LocalSubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_self_subject_access_review(self, body, **kwargs): # noqa: E501 + """create_self_subject_access_review # noqa: E501 + + create a SelfSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_access_review(body, async_req=True) @@ -169,14 +168,15 @@ def create_self_subject_access_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) + return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) + (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_self_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectAccessReview + def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_self_subject_access_review # noqa: E501 + + create a SelfSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True) @@ -192,37 +192,38 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -230,37 +231,35 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1/selfsubjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SelfSubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_rules_review(self, body, **kwargs): - """ - create a SelfSubjectRulesReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1/selfsubjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SelfSubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501 + """create_self_subject_rules_review # noqa: E501 + + create a SelfSubjectRulesReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_rules_review(body, async_req=True) @@ -277,14 +276,15 @@ def create_self_subject_rules_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_self_subject_rules_review_with_http_info(body, **kwargs) + return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) + (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_self_subject_rules_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectRulesReview + def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_self_subject_rules_review # noqa: E501 + + create a SelfSubjectRulesReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True) @@ -300,37 +300,38 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_rules_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -338,37 +339,35 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1/selfsubjectrulesreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SelfSubjectRulesReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_subject_access_review(self, body, **kwargs): - """ - create a SubjectAccessReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1/selfsubjectrulesreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SelfSubjectRulesReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_subject_access_review(self, body, **kwargs): # noqa: E501 + """create_subject_access_review # noqa: E501 + + create a SubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_subject_access_review(body, async_req=True) @@ -385,14 +384,15 @@ def create_subject_access_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_subject_access_review_with_http_info(body, **kwargs) + return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) + (data) = self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SubjectAccessReview + def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_subject_access_review # noqa: E501 + + create a SubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_subject_access_review_with_http_info(body, async_req=True) @@ -408,37 +408,38 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -446,37 +447,35 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1/subjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1/subjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -489,14 +488,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -508,21 +508,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -537,27 +538,24 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_v1beta1_api.py b/kubernetes/client/api/authorization_v1beta1_api.py similarity index 59% rename from kubernetes/client/apis/authorization_v1beta1_api.py rename to kubernetes/client/api/authorization_v1beta1_api.py index b88ad1defe..463ab2bb0d 100644 --- a/kubernetes/client/apis/authorization_v1beta1_api.py +++ b/kubernetes/client/api/authorization_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AuthorizationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview + def create_namespaced_local_subject_access_review(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_local_subject_access_review # noqa: E501 + + create a LocalSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_local_subject_access_review(self, namespace, body, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): - """ - create a LocalSubjectAccessReview + def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_local_subject_access_review # noqa: E501 + + create a LocalSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace returns the request thread. """ - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_local_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1LocalSubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_access_review(self, body, **kwargs): - """ - create a SelfSubjectAccessReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1LocalSubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_self_subject_access_review(self, body, **kwargs): # noqa: E501 + """create_self_subject_access_review # noqa: E501 + + create a SelfSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_access_review(body, async_req=True) @@ -169,14 +168,15 @@ def create_self_subject_access_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) + return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) + (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_self_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectAccessReview + def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_self_subject_access_review # noqa: E501 + + create a SelfSubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True) @@ -192,37 +192,38 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -230,37 +231,35 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1SelfSubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_self_subject_rules_review(self, body, **kwargs): - """ - create a SelfSubjectRulesReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1SelfSubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501 + """create_self_subject_rules_review # noqa: E501 + + create a SelfSubjectRulesReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_rules_review(body, async_req=True) @@ -277,14 +276,15 @@ def create_self_subject_rules_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_self_subject_rules_review_with_http_info(body, **kwargs) + return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) + (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_self_subject_rules_review_with_http_info(self, body, **kwargs): - """ - create a SelfSubjectRulesReview + def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_self_subject_rules_review # noqa: E501 + + create a SelfSubjectRulesReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True) @@ -300,37 +300,38 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_rules_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -338,37 +339,35 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1SelfSubjectRulesReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_subject_access_review(self, body, **kwargs): - """ - create a SubjectAccessReview + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1SelfSubjectRulesReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_subject_access_review(self, body, **kwargs): # noqa: E501 + """create_subject_access_review # noqa: E501 + + create a SubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_subject_access_review(body, async_req=True) @@ -385,14 +384,15 @@ def create_subject_access_review(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_subject_access_review_with_http_info(body, **kwargs) + return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) + (data) = self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 return data - def create_subject_access_review_with_http_info(self, body, **kwargs): - """ - create a SubjectAccessReview + def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 + """create_subject_access_review # noqa: E501 + + create a SubjectAccessReview # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_subject_access_review_with_http_info(body, async_req=True) @@ -408,37 +408,38 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_subject_access_review" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -446,37 +447,35 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1beta1/subjectaccessreviews', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1SubjectAccessReview', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1beta1/subjectaccessreviews', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1SubjectAccessReview', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -489,14 +488,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -508,21 +508,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -537,27 +538,24 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/authorization.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/autoscaling_api.py b/kubernetes/client/api/autoscaling_api.py new file mode 100644 index 0000000000..53fbab7e1a --- /dev/null +++ b/kubernetes/client/api/autoscaling_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class AutoscalingApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/autoscaling_v1_api.py b/kubernetes/client/api/autoscaling_v1_api.py similarity index 60% rename from kubernetes/client/apis/autoscaling_v1_api.py rename to kubernetes/client/api/autoscaling_v1_api.py index f64fe9bd50..8924788b4a 100644 --- a/kubernetes/client/apis/autoscaling_v1_api.py +++ b/kubernetes/client/api/autoscaling_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AutoscalingV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/autoscaling_v2beta1_api.py b/kubernetes/client/api/autoscaling_v2beta1_api.py similarity index 60% rename from kubernetes/client/apis/autoscaling_v2beta1_api.py rename to kubernetes/client/api/autoscaling_v2beta1_api.py index 137efbe22f..152c3bfadc 100644 --- a/kubernetes/client/apis/autoscaling_v2beta1_api.py +++ b/kubernetes/client/api/autoscaling_v2beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AutoscalingV2beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta1HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta1HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/autoscaling_v2beta2_api.py b/kubernetes/client/api/autoscaling_v2beta2_api.py similarity index 60% rename from kubernetes/client/apis/autoscaling_v2beta2_api.py rename to kubernetes/client/api/autoscaling_v2beta2_api.py index 5090f2277d..62f13cfa30 100644 --- a/kubernetes/client/apis/autoscaling_v2beta2_api.py +++ b/kubernetes/client/api/autoscaling_v2beta2_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class AutoscalingV2beta2Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): - """ - create a HorizontalPodAutoscaler + def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_horizontal_pod_autoscaler # noqa: E501 + + create a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - delete collection of HorizontalPodAutoscaler + def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete collection of HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - delete a HorizontalPodAutoscaler + def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 + + delete a HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind HorizontalPodAutoscaler + def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_horizontal_pod_autoscaler # noqa: E501 + + list or watch objects of kind HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscalerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscalerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 + + partially update the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified HorizontalPodAutoscaler + def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + partially update status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, :param async_req bool :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): - """ - read the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler # noqa: E501 + + read the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified HorizontalPodAutoscaler + def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + read status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 + + replace the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified HorizontalPodAutoscaler + def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 + + replace status of the specified HorizontalPodAutoscaler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2beta2HorizontalPodAutoscaler', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2beta2HorizontalPodAutoscaler', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/batch_api.py b/kubernetes/client/api/batch_api.py new file mode 100644 index 0000000000..ad7c54e372 --- /dev/null +++ b/kubernetes/client/api/batch_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class BatchApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_v1_api.py b/kubernetes/client/api/batch_v1_api.py similarity index 60% rename from kubernetes/client/apis/batch_v1_api.py rename to kubernetes/client/api/batch_v1_api.py index a1173956db..7a95818ffa 100644 --- a/kubernetes/client/apis/batch_v1_api.py +++ b/kubernetes/client/api/batch_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class BatchV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_job(self, namespace, body, **kwargs): - """ - create a Job + def create_namespaced_job(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_job # noqa: E501 + + create a Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_job(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_job(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): - """ - create a Job + def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_job # noqa: E501 + + create a Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_job_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_job(self, namespace, **kwargs): - """ - delete collection of Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_job(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_job # noqa: E501 + + delete collection of Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_job(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): - """ - delete collection of Job + def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_job # noqa: E501 + + delete collection of Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_job_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_job(self, name, namespace, **kwargs): - """ - delete a Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_job(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_job # noqa: E501 + + delete a Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_job(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_job(self, name, namespace, **kwargs): :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): - """ - delete a Job + def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_job # noqa: E501 + + delete a Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_job_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_job_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_job_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_job_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_job_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_job_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Job + def list_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_job_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/jobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1JobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_job(self, namespace, **kwargs): - """ - list or watch objects of kind Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/jobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1JobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_job(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_job # noqa: E501 + + list or watch objects of kind Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_job(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_job(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_job_with_http_info(namespace, **kwargs) + return self.list_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_job_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Job + def list_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_job # noqa: E501 + + list or watch objects of kind Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_job_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1JobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_job(self, name, namespace, body, **kwargs): - """ - partially update the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1JobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_job(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_job # noqa: E501 + + partially update the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Job + def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_job # noqa: E501 + + partially update the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_job_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_job_status # noqa: E501 + + partially update status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Job + def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_job_status # noqa: E501 + + partially update status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_job(self, name, namespace, **kwargs): - """ - read the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_job(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_job # noqa: E501 + + read the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_job(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Job + def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_job # noqa: E501 + + read the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_job_status(self, name, namespace, **kwargs): - """ - read status of the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_job_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_job_status # noqa: E501 + + read status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Job + def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_job_status # noqa: E501 + + read status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_job_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_job(self, name, namespace, body, **kwargs): - """ - replace the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_job(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_job # noqa: E501 + + replace the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Job + def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_job # noqa: E501 + + replace the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_job_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Job + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_job_status # noqa: E501 + + replace status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Job + def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_job_status # noqa: E501 + + replace status of the specified Job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Job', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Job', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_v1beta1_api.py b/kubernetes/client/api/batch_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/batch_v1beta1_api.py rename to kubernetes/client/api/batch_v1beta1_api.py index 87b90bb16a..3832776557 100644 --- a/kubernetes/client/apis/batch_v1beta1_api.py +++ b/kubernetes/client/api/batch_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class BatchV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_cron_job(self, namespace, body, **kwargs): - """ - create a CronJob + def create_namespaced_cron_job(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_cron_job # noqa: E501 + + create a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_cron_job(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): - """ - create a CronJob + def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_cron_job # noqa: E501 + + create a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_cron_job(self, namespace, **kwargs): - """ - delete collection of CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_cron_job # noqa: E501 + + delete collection of CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_cron_job(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): - """ - delete collection of CronJob + def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_cron_job # noqa: E501 + + delete collection of CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_cron_job(self, name, namespace, **kwargs): - """ - delete a CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_cron_job # noqa: E501 + + delete a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_cron_job(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - delete a CronJob + def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_cron_job # noqa: E501 + + delete a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cron_job_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_cron_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cron_job_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_cron_job_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind CronJob + def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_cron_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cron_job_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/cronjobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_cron_job(self, namespace, **kwargs): - """ - list or watch objects of kind CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/cronjobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_cron_job # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_cron_job(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_cron_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_cron_job(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind CronJob + def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_cron_job # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job # noqa: E501 + + partially update the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob + def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job # noqa: E501 + + partially update the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job_status # noqa: E501 + + partially update status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob + def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job_status # noqa: E501 + + partially update status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job(self, name, namespace, **kwargs): - """ - read the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job # noqa: E501 + + read the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_cron_job(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - read the specified CronJob + def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job # noqa: E501 + + read the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job_status(self, name, namespace, **kwargs): - """ - read status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job_status # noqa: E501 + + read status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_cron_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified CronJob + def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job_status # noqa: E501 + + read status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): - """ - replace the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job # noqa: E501 + + replace the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified CronJob + def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job # noqa: E501 + + replace the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job_status # noqa: E501 + + replace status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified CronJob + def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job_status # noqa: E501 + + replace status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_v2alpha1_api.py b/kubernetes/client/api/batch_v2alpha1_api.py similarity index 60% rename from kubernetes/client/apis/batch_v2alpha1_api.py rename to kubernetes/client/api/batch_v2alpha1_api.py index 7a6fa5627f..adbf3e2794 100644 --- a/kubernetes/client/apis/batch_v2alpha1_api.py +++ b/kubernetes/client/api/batch_v2alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class BatchV2alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_cron_job(self, namespace, body, **kwargs): - """ - create a CronJob + def create_namespaced_cron_job(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_cron_job # noqa: E501 + + create a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_cron_job(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): - """ - create a CronJob + def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_cron_job # noqa: E501 + + create a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_cron_job(self, namespace, **kwargs): - """ - delete collection of CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_cron_job # noqa: E501 + + delete collection of CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_cron_job(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): - """ - delete collection of CronJob + def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_cron_job # noqa: E501 + + delete collection of CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_cron_job(self, name, namespace, **kwargs): - """ - delete a CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_cron_job # noqa: E501 + + delete a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_cron_job(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - delete a CronJob + def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_cron_job # noqa: E501 + + delete a CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cron_job_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_cron_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cron_job_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_cron_job_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind CronJob + def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_cron_job_for_all_namespaces # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cron_job_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/cronjobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_cron_job(self, namespace, **kwargs): - """ - list or watch objects of kind CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/cronjobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_cron_job # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_cron_job(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_cron_job(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_cron_job(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind CronJob + def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_cron_job # noqa: E501 + + list or watch objects of kind CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJobList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJobList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job # noqa: E501 + + partially update the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified CronJob + def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job # noqa: E501 + + partially update the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job_status # noqa: E501 + + partially update status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified CronJob + def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_cron_job_status # noqa: E501 + + partially update status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job(self, name, namespace, **kwargs): - """ - read the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job # noqa: E501 + + read the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_cron_job(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): - """ - read the specified CronJob + def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job # noqa: E501 + + read the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_cron_job_status(self, name, namespace, **kwargs): - """ - read status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_cron_job_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job_status # noqa: E501 + + read status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_cron_job_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified CronJob + def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_cron_job_status # noqa: E501 + + read status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): - """ - replace the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job # noqa: E501 + + replace the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified CronJob + def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job # noqa: E501 + + replace the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified CronJob + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job_status # noqa: E501 + + replace status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified CronJob + def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_cron_job_status # noqa: E501 + + replace status of the specified CronJob # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2alpha1CronJob', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V2alpha1CronJob', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/certificates_api.py b/kubernetes/client/api/certificates_api.py new file mode 100644 index 0000000000..e6a87cafa3 --- /dev/null +++ b/kubernetes/client/api/certificates_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class CertificatesApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/certificates_v1beta1_api.py b/kubernetes/client/api/certificates_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/certificates_v1beta1_api.py rename to kubernetes/client/api/certificates_v1beta1_api.py index 7ea3f0c063..6ea6a7dc6c 100644 --- a/kubernetes/client/apis/certificates_v1beta1_api.py +++ b/kubernetes/client/api/certificates_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class CertificatesV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_certificate_signing_request(self, body, **kwargs): - """ - create a CertificateSigningRequest + def create_certificate_signing_request(self, body, **kwargs): # noqa: E501 + """create_certificate_signing_request # noqa: E501 + + create a CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_certificate_signing_request(body, async_req=True) @@ -54,14 +52,15 @@ def create_certificate_signing_request(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_certificate_signing_request_with_http_info(body, **kwargs) + return self.create_certificate_signing_request_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_certificate_signing_request_with_http_info(body, **kwargs) + (data) = self.create_certificate_signing_request_with_http_info(body, **kwargs) # noqa: E501 return data - def create_certificate_signing_request_with_http_info(self, body, **kwargs): - """ - create a CertificateSigningRequest + def create_certificate_signing_request_with_http_info(self, body, **kwargs): # noqa: E501 + """create_certificate_signing_request # noqa: E501 + + create a CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_certificate_signing_request_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_certificate_signing_request(self, name, **kwargs): - """ - delete a CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_certificate_signing_request(self, name, **kwargs): # noqa: E501 + """delete_certificate_signing_request # noqa: E501 + + delete a CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_certificate_signing_request(name, async_req=True) @@ -154,25 +152,26 @@ def delete_certificate_signing_request(self, name, **kwargs): :param async_req bool :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_certificate_signing_request_with_http_info(name, **kwargs) + return self.delete_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_certificate_signing_request_with_http_info(name, **kwargs) + (data) = self.delete_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_certificate_signing_request_with_http_info(self, name, **kwargs): - """ - delete a CertificateSigningRequest + def delete_certificate_signing_request_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_certificate_signing_request # noqa: E501 + + delete a CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_certificate_signing_request_with_http_info(name, async_req=True) @@ -181,53 +180,54 @@ def delete_certificate_signing_request_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -235,37 +235,35 @@ def delete_certificate_signing_request_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_certificate_signing_request(self, **kwargs): - """ - delete collection of CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_certificate_signing_request(self, **kwargs): # noqa: E501 + """delete_collection_certificate_signing_request # noqa: E501 + + delete collection of CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_certificate_signing_request(async_req=True) @@ -273,27 +271,34 @@ def delete_collection_certificate_signing_request(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) + return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_certificate_signing_request_with_http_info(**kwargs) + (data) = self.delete_collection_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_certificate_signing_request_with_http_info(self, **kwargs): - """ - delete collection of CertificateSigningRequest + def delete_collection_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_certificate_signing_request # noqa: E501 + + delete collection of CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_certificate_signing_request_with_http_info(async_req=True) @@ -301,56 +306,72 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -358,35 +379,35 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_certificate_signing_request(self, **kwargs): - """ - list or watch objects of kind CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_certificate_signing_request(self, **kwargs): # noqa: E501 + """list_certificate_signing_request # noqa: E501 + + list or watch objects of kind CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_certificate_signing_request(async_req=True) @@ -482,6 +503,7 @@ def list_certificate_signing_request(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_certificate_signing_request(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_certificate_signing_request_with_http_info(**kwargs) + return self.list_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_certificate_signing_request_with_http_info(**kwargs) + (data) = self.list_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 return data - def list_certificate_signing_request_with_http_info(self, **kwargs): - """ - list or watch objects of kind CertificateSigningRequest + def list_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E501 + """list_certificate_signing_request # noqa: E501 + + list or watch objects of kind CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_certificate_signing_request_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequestList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_certificate_signing_request(self, name, body, **kwargs): - """ - partially update the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequestList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_certificate_signing_request(self, name, body, **kwargs): # noqa: E501 + """patch_certificate_signing_request # noqa: E501 + + partially update the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_certificate_signing_request(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_certificate_signing_request(self, name, body, **kwargs): :param async_req bool :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_certificate_signing_request(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) + return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) + (data) = self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs): - """ - partially update the specified CertificateSigningRequest + def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_certificate_signing_request # noqa: E501 + + partially update the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_certificate_signing_request_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) :param async_req bool :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_certificate_signing_request_status(self, name, body, **kwargs): - """ - partially update status of the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_certificate_signing_request_status(self, name, body, **kwargs): # noqa: E501 + """patch_certificate_signing_request_status # noqa: E501 + + partially update status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_certificate_signing_request_status(name, body, async_req=True) @@ -722,7 +751,7 @@ def patch_certificate_signing_request_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -733,14 +762,15 @@ def patch_certificate_signing_request_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) + return self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) + (data) = self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified CertificateSigningRequest + def patch_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_certificate_signing_request_status # noqa: E501 + + partially update status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_certificate_signing_request_status_with_http_info(name, body, async_req=True) @@ -748,7 +778,7 @@ def patch_certificate_signing_request_status_with_http_info(self, name, body, ** :param async_req bool :param str name: name of the CertificateSigningRequest (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -758,44 +788,46 @@ def patch_certificate_signing_request_status_with_http_info(self, name, body, ** returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_certificate_signing_request_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -803,37 +835,39 @@ def patch_certificate_signing_request_status_with_http_info(self, name, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_certificate_signing_request(self, name, **kwargs): - """ - read the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_certificate_signing_request(self, name, **kwargs): # noqa: E501 + """read_certificate_signing_request # noqa: E501 + + read the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_certificate_signing_request(name, async_req=True) @@ -850,14 +884,15 @@ def read_certificate_signing_request(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_certificate_signing_request_with_http_info(name, **kwargs) + return self.read_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_certificate_signing_request_with_http_info(name, **kwargs) + (data) = self.read_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 return data - def read_certificate_signing_request_with_http_info(self, name, **kwargs): - """ - read the specified CertificateSigningRequest + def read_certificate_signing_request_with_http_info(self, name, **kwargs): # noqa: E501 + """read_certificate_signing_request # noqa: E501 + + read the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_certificate_signing_request_with_http_info(name, async_req=True) @@ -873,39 +908,40 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -914,34 +950,32 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_certificate_signing_request_status(self, name, **kwargs): - """ - read status of the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_certificate_signing_request_status(self, name, **kwargs): # noqa: E501 + """read_certificate_signing_request_status # noqa: E501 + + read status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_certificate_signing_request_status(name, async_req=True) @@ -956,14 +990,15 @@ def read_certificate_signing_request_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_certificate_signing_request_status_with_http_info(name, **kwargs) + return self.read_certificate_signing_request_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_certificate_signing_request_status_with_http_info(name, **kwargs) + (data) = self.read_certificate_signing_request_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_certificate_signing_request_status_with_http_info(self, name, **kwargs): - """ - read status of the specified CertificateSigningRequest + def read_certificate_signing_request_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_certificate_signing_request_status # noqa: E501 + + read status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_certificate_signing_request_status_with_http_info(name, async_req=True) @@ -977,35 +1012,36 @@ def read_certificate_signing_request_status_with_http_info(self, name, **kwargs) returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_certificate_signing_request_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1014,34 +1050,32 @@ def read_certificate_signing_request_status_with_http_info(self, name, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request(self, name, body, **kwargs): - """ - replace the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request # noqa: E501 + + replace the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request(name, body, async_req=True) @@ -1059,14 +1093,15 @@ def replace_certificate_signing_request(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) + return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) + (data) = self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_certificate_signing_request_with_http_info(self, name, body, **kwargs): - """ - replace the specified CertificateSigningRequest + def replace_certificate_signing_request_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request # noqa: E501 + + replace the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request_with_http_info(name, body, async_req=True) @@ -1083,42 +1118,44 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1126,37 +1163,35 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request_approval(self, name, body, **kwargs): - """ - replace approval of the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request_approval(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request_approval # noqa: E501 + + replace approval of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request_approval(name, body, async_req=True) @@ -1174,14 +1209,15 @@ def replace_certificate_signing_request_approval(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) + return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) + (data) = self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_certificate_signing_request_approval_with_http_info(self, name, body, **kwargs): - """ - replace approval of the specified CertificateSigningRequest + def replace_certificate_signing_request_approval_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request_approval # noqa: E501 + + replace approval of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request_approval_with_http_info(name, body, async_req=True) @@ -1198,42 +1234,44 @@ def replace_certificate_signing_request_approval_with_http_info(self, name, body returns the request thread. """ - all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request_approval" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1241,37 +1279,35 @@ def replace_certificate_signing_request_approval_with_http_info(self, name, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_certificate_signing_request_status(self, name, body, **kwargs): - """ - replace status of the specified CertificateSigningRequest + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_certificate_signing_request_status(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request_status # noqa: E501 + + replace status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request_status(name, body, async_req=True) @@ -1289,14 +1325,15 @@ def replace_certificate_signing_request_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) + return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) + (data) = self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified CertificateSigningRequest + def replace_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_certificate_signing_request_status # noqa: E501 + + replace status of the specified CertificateSigningRequest # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_certificate_signing_request_status_with_http_info(name, body, async_req=True) @@ -1313,42 +1350,44 @@ def replace_certificate_signing_request_status_with_http_info(self, name, body, returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1356,30 +1395,27 @@ def replace_certificate_signing_request_status_with_http_info(self, name, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CertificateSigningRequest', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CertificateSigningRequest', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/coordination_api.py b/kubernetes/client/api/coordination_api.py new file mode 100644 index 0000000000..204df1c23d --- /dev/null +++ b/kubernetes/client/api/coordination_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class CoordinationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/coordination_v1_api.py b/kubernetes/client/api/coordination_v1_api.py similarity index 61% rename from kubernetes/client/apis/coordination_v1_api.py rename to kubernetes/client/api/coordination_v1_api.py index 9571298ee0..2f42b79659 100644 --- a/kubernetes/client/apis/coordination_v1_api.py +++ b/kubernetes/client/api/coordination_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class CoordinationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_lease(self, namespace, body, **kwargs): - """ - create a Lease + def create_namespaced_lease(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_lease # noqa: E501 + + create a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_lease(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_lease(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): - """ - create a Lease + def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_lease # noqa: E501 + + create a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_lease_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_lease(self, namespace, **kwargs): - """ - delete collection of Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_lease # noqa: E501 + + delete collection of Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_lease(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): - """ - delete collection of Lease + def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_lease # noqa: E501 + + delete collection of Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_lease_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_lease(self, name, namespace, **kwargs): - """ - delete a Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_lease # noqa: E501 + + delete a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_lease(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): - """ - delete a Lease + def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_lease # noqa: E501 + + delete a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_lease_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_lease_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_lease_for_all_namespaces # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_lease_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_lease_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_lease_for_all_namespaces_with_http_info(**kwargs) + return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_lease_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Lease + def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_lease_for_all_namespaces # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_lease_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_lease_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/leases', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LeaseList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_lease(self, namespace, **kwargs): - """ - list or watch objects of kind Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/leases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LeaseList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_lease # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_lease(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_lease(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_lease(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_lease_with_http_info(namespace, **kwargs) + return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_lease_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Lease + def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_lease # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_lease_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LeaseList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_lease(self, name, namespace, body, **kwargs): - """ - partially update the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LeaseList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_lease # noqa: E501 + + partially update the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_lease(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Lease + def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_lease # noqa: E501 + + partially update the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_lease_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) :param async_req bool :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_lease(self, name, namespace, **kwargs): - """ - read the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_lease # noqa: E501 + + read the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_lease(name, namespace, async_req=True) @@ -888,14 +925,15 @@ def read_namespaced_lease(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Lease + def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_lease # noqa: E501 + + read the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_lease_with_http_info(name, namespace, async_req=True) @@ -912,44 +950,46 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -958,34 +998,32 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_lease(self, name, namespace, body, **kwargs): - """ - replace the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_lease # noqa: E501 + + replace the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_lease(name, namespace, body, async_req=True) @@ -1004,14 +1042,15 @@ def replace_namespaced_lease(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Lease + def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_lease # noqa: E501 + + replace the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_lease_with_http_info(name, namespace, body, async_req=True) @@ -1029,47 +1068,50 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1077,30 +1119,27 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/coordination_v1beta1_api.py b/kubernetes/client/api/coordination_v1beta1_api.py similarity index 61% rename from kubernetes/client/apis/coordination_v1beta1_api.py rename to kubernetes/client/api/coordination_v1beta1_api.py index 1661ff95f0..4244905cce 100644 --- a/kubernetes/client/apis/coordination_v1beta1_api.py +++ b/kubernetes/client/api/coordination_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class CoordinationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_lease(self, namespace, body, **kwargs): - """ - create a Lease + def create_namespaced_lease(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_lease # noqa: E501 + + create a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_lease(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_lease(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): - """ - create a Lease + def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_lease # noqa: E501 + + create a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_lease_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_lease(self, namespace, **kwargs): - """ - delete collection of Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_lease # noqa: E501 + + delete collection of Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_lease(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): - """ - delete collection of Lease + def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_lease # noqa: E501 + + delete collection of Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_lease_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_lease(self, name, namespace, **kwargs): - """ - delete a Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_lease # noqa: E501 + + delete a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_lease(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): - """ - delete a Lease + def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_lease # noqa: E501 + + delete a Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_lease_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_lease_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_lease_for_all_namespaces # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_lease_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_lease_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_lease_for_all_namespaces_with_http_info(**kwargs) + return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_lease_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Lease + def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_lease_for_all_namespaces # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_lease_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_lease_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/leases', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1LeaseList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_lease(self, namespace, **kwargs): - """ - list or watch objects of kind Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/leases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1LeaseList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_lease # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_lease(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_lease(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_lease(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_lease_with_http_info(namespace, **kwargs) + return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_lease_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Lease + def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_lease # noqa: E501 + + list or watch objects of kind Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_lease_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1LeaseList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_lease(self, name, namespace, body, **kwargs): - """ - partially update the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1LeaseList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_lease # noqa: E501 + + partially update the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_lease(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Lease + def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_lease # noqa: E501 + + partially update the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_lease_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) :param async_req bool :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_lease(self, name, namespace, **kwargs): - """ - read the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_lease # noqa: E501 + + read the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_lease(name, namespace, async_req=True) @@ -888,14 +925,15 @@ def read_namespaced_lease(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Lease + def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_lease # noqa: E501 + + read the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_lease_with_http_info(name, namespace, async_req=True) @@ -912,44 +950,46 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -958,34 +998,32 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_lease(self, name, namespace, body, **kwargs): - """ - replace the specified Lease + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_lease # noqa: E501 + + replace the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_lease(name, namespace, body, async_req=True) @@ -1004,14 +1042,15 @@ def replace_namespaced_lease(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Lease + def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_lease # noqa: E501 + + replace the specified Lease # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_lease_with_http_info(name, namespace, body, async_req=True) @@ -1029,47 +1068,50 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_lease" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1077,30 +1119,27 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Lease', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Lease', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/core_api.py b/kubernetes/client/api/core_api.py new file mode 100644 index 0000000000..2fec81fed1 --- /dev/null +++ b/kubernetes/client/api/core_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class CoreApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_versions(self, **kwargs): # noqa: E501 + """get_api_versions # noqa: E501 + + get available API versions # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_versions(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIVersions + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_versions_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 + """get_api_versions # noqa: E501 + + get available API versions # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_versions_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIVersions + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_versions" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIVersions', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/core_v1_api.py b/kubernetes/client/api/core_v1_api.py similarity index 60% rename from kubernetes/client/apis/core_v1_api.py rename to kubernetes/client/api/core_v1_api.py index 426a58b472..741beaddf0 100644 --- a/kubernetes/client/apis/core_v1_api.py +++ b/kubernetes/client/api/core_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class CoreV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def connect_delete_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect DELETE requests to proxy of Pod + def connect_delete_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_delete_namespaced_pod_proxy # noqa: E501 + + connect DELETE requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_pod_proxy(name, namespace, async_req=True) @@ -53,14 +51,15 @@ def connect_delete_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect DELETE requests to proxy of Pod + def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_delete_namespaced_pod_proxy # noqa: E501 + + connect DELETE requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -75,40 +74,42 @@ def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, ** returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -117,34 +118,32 @@ def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, ** body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_delete_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect DELETE requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_delete_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_delete_namespaced_pod_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -161,14 +160,15 @@ def connect_delete_namespaced_pod_proxy_with_path(self, name, namespace, path, * """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect DELETE requests to proxy of Pod + def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_delete_namespaced_pod_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -184,45 +184,48 @@ def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, nam returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -231,34 +234,32 @@ def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, nam body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_delete_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect DELETE requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_delete_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_delete_namespaced_service_proxy # noqa: E501 + + connect DELETE requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_service_proxy(name, namespace, async_req=True) @@ -274,14 +275,15 @@ def connect_delete_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect DELETE requests to proxy of Service + def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_delete_namespaced_service_proxy # noqa: E501 + + connect DELETE requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -296,40 +298,42 @@ def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -338,34 +342,32 @@ def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_delete_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect DELETE requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_delete_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_delete_namespaced_service_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -382,14 +384,15 @@ def connect_delete_namespaced_service_proxy_with_path(self, name, namespace, pat """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect DELETE requests to proxy of Service + def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_delete_namespaced_service_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -405,45 +408,48 @@ def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -452,34 +458,32 @@ def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_delete_node_proxy(self, name, **kwargs): - """ - connect DELETE requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_delete_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_delete_node_proxy # noqa: E501 + + connect DELETE requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_node_proxy(name, async_req=True) @@ -494,14 +498,15 @@ def connect_delete_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_node_proxy_with_http_info(name, **kwargs) + return self.connect_delete_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_delete_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_delete_node_proxy_with_http_info(self, name, **kwargs): - """ - connect DELETE requests to proxy of Node + def connect_delete_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_delete_node_proxy # noqa: E501 + + connect DELETE requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_node_proxy_with_http_info(name, async_req=True) @@ -515,35 +520,36 @@ def connect_delete_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -552,34 +558,32 @@ def connect_delete_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_delete_node_proxy_with_path(self, name, path, **kwargs): - """ - connect DELETE requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_delete_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_delete_node_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_node_proxy_with_path(name, path, async_req=True) @@ -595,14 +599,15 @@ def connect_delete_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect DELETE requests to proxy of Node + def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_delete_node_proxy_with_path # noqa: E501 + + connect DELETE requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_delete_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -617,40 +622,42 @@ def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwarg returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -659,34 +666,32 @@ def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_pod_attach(self, name, namespace, **kwargs): - """ - connect GET requests to attach of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_attach # noqa: E501 + + connect GET requests to attach of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_attach(name, namespace, async_req=True) @@ -706,14 +711,15 @@ def connect_get_namespaced_pod_attach(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + return self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + (data) = self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): - """ - connect GET requests to attach of Pod + def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_attach # noqa: E501 + + connect GET requests to attach of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_attach_with_http_info(name, namespace, async_req=True) @@ -732,48 +738,50 @@ def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_attach" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in params: - query_params.append(('container', params['container'])) - if 'stderr' in params: - query_params.append(('stderr', params['stderr'])) - if 'stdin' in params: - query_params.append(('stdin', params['stdin'])) - if 'stdout' in params: - query_params.append(('stdout', params['stdout'])) - if 'tty' in params: - query_params.append(('tty', params['tty'])) + if 'container' in local_var_params: + query_params.append(('container', local_var_params['container'])) # noqa: E501 + if 'stderr' in local_var_params: + query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 + if 'stdin' in local_var_params: + query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 + if 'stdout' in local_var_params: + query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 + if 'tty' in local_var_params: + query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -782,34 +790,32 @@ def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/attach', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_pod_exec(self, name, namespace, **kwargs): - """ - connect GET requests to exec of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/attach', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_exec # noqa: E501 + + connect GET requests to exec of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_exec(name, namespace, async_req=True) @@ -830,14 +836,15 @@ def connect_get_namespaced_pod_exec(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + return self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + (data) = self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): - """ - connect GET requests to exec of Pod + def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_exec # noqa: E501 + + connect GET requests to exec of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_exec_with_http_info(name, namespace, async_req=True) @@ -857,50 +864,52 @@ def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_exec" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'command' in params: - query_params.append(('command', params['command'])) - if 'container' in params: - query_params.append(('container', params['container'])) - if 'stderr' in params: - query_params.append(('stderr', params['stderr'])) - if 'stdin' in params: - query_params.append(('stdin', params['stdin'])) - if 'stdout' in params: - query_params.append(('stdout', params['stdout'])) - if 'tty' in params: - query_params.append(('tty', params['tty'])) + if 'command' in local_var_params: + query_params.append(('command', local_var_params['command'])) # noqa: E501 + if 'container' in local_var_params: + query_params.append(('container', local_var_params['container'])) # noqa: E501 + if 'stderr' in local_var_params: + query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 + if 'stdin' in local_var_params: + query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 + if 'stdout' in local_var_params: + query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 + if 'tty' in local_var_params: + query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -909,34 +918,32 @@ def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/exec', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): - """ - connect GET requests to portforward of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/exec', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_portforward # noqa: E501 + + connect GET requests to portforward of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_portforward(name, namespace, async_req=True) @@ -952,14 +959,15 @@ def connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + return self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + (data) = self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): - """ - connect GET requests to portforward of Pod + def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_portforward # noqa: E501 + + connect GET requests to portforward of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, async_req=True) @@ -974,40 +982,42 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'ports'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'ports'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_portforward" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'ports' in params: - query_params.append(('ports', params['ports'])) + if 'ports' in local_var_params: + query_params.append(('ports', local_var_params['ports'])) # noqa: E501 header_params = {} @@ -1016,34 +1026,32 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect GET requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_proxy # noqa: E501 + + connect GET requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_proxy(name, namespace, async_req=True) @@ -1059,14 +1067,15 @@ def connect_get_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect GET requests to proxy of Pod + def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_proxy # noqa: E501 + + connect GET requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -1081,40 +1090,42 @@ def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1123,34 +1134,32 @@ def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect GET requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -1167,14 +1176,15 @@ def connect_get_namespaced_pod_proxy_with_path(self, name, namespace, path, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect GET requests to proxy of Pod + def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_get_namespaced_pod_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -1190,45 +1200,48 @@ def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1237,34 +1250,32 @@ def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect GET requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_service_proxy # noqa: E501 + + connect GET requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_service_proxy(name, namespace, async_req=True) @@ -1280,14 +1291,15 @@ def connect_get_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect GET requests to proxy of Service + def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_get_namespaced_service_proxy # noqa: E501 + + connect GET requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -1302,40 +1314,42 @@ def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, * returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1344,34 +1358,32 @@ def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, * body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect GET requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_get_namespaced_service_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -1388,14 +1400,15 @@ def connect_get_namespaced_service_proxy_with_path(self, name, namespace, path, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect GET requests to proxy of Service + def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_get_namespaced_service_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -1411,45 +1424,48 @@ def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, na returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1458,34 +1474,32 @@ def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, na body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_node_proxy(self, name, **kwargs): - """ - connect GET requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_get_node_proxy # noqa: E501 + + connect GET requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_node_proxy(name, async_req=True) @@ -1500,14 +1514,15 @@ def connect_get_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_node_proxy_with_http_info(name, **kwargs) + return self.connect_get_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_get_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_get_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_get_node_proxy_with_http_info(self, name, **kwargs): - """ - connect GET requests to proxy of Node + def connect_get_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_get_node_proxy # noqa: E501 + + connect GET requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_node_proxy_with_http_info(name, async_req=True) @@ -1521,35 +1536,36 @@ def connect_get_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1558,34 +1574,32 @@ def connect_get_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_get_node_proxy_with_path(self, name, path, **kwargs): - """ - connect GET requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_get_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_get_node_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_node_proxy_with_path(name, path, async_req=True) @@ -1601,14 +1615,15 @@ def connect_get_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect GET requests to proxy of Node + def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_get_node_proxy_with_path # noqa: E501 + + connect GET requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_get_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -1623,40 +1638,42 @@ def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_get_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1665,34 +1682,32 @@ def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect HEAD requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_head_namespaced_pod_proxy # noqa: E501 + + connect HEAD requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_pod_proxy(name, namespace, async_req=True) @@ -1708,14 +1723,15 @@ def connect_head_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect HEAD requests to proxy of Pod + def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_head_namespaced_pod_proxy # noqa: E501 + + connect HEAD requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -1730,40 +1746,42 @@ def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1772,34 +1790,32 @@ def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect HEAD requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_head_namespaced_pod_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -1816,14 +1832,15 @@ def connect_head_namespaced_pod_proxy_with_path(self, name, namespace, path, **k """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect HEAD requests to proxy of Pod + def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_head_namespaced_pod_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -1839,45 +1856,48 @@ def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, names returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1886,34 +1906,32 @@ def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, names body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect HEAD requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_head_namespaced_service_proxy # noqa: E501 + + connect HEAD requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_service_proxy(name, namespace, async_req=True) @@ -1929,14 +1947,15 @@ def connect_head_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect HEAD requests to proxy of Service + def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_head_namespaced_service_proxy # noqa: E501 + + connect HEAD requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -1951,40 +1970,42 @@ def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1993,34 +2014,32 @@ def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect HEAD requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_head_namespaced_service_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -2037,14 +2056,15 @@ def connect_head_namespaced_service_proxy_with_path(self, name, namespace, path, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect HEAD requests to proxy of Service + def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_head_namespaced_service_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -2060,45 +2080,48 @@ def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, n returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2107,34 +2130,32 @@ def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, n body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_node_proxy(self, name, **kwargs): - """ - connect HEAD requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_head_node_proxy # noqa: E501 + + connect HEAD requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_node_proxy(name, async_req=True) @@ -2149,14 +2170,15 @@ def connect_head_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_node_proxy_with_http_info(name, **kwargs) + return self.connect_head_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_head_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_head_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_head_node_proxy_with_http_info(self, name, **kwargs): - """ - connect HEAD requests to proxy of Node + def connect_head_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_head_node_proxy # noqa: E501 + + connect HEAD requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_node_proxy_with_http_info(name, async_req=True) @@ -2170,35 +2192,36 @@ def connect_head_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2207,34 +2230,32 @@ def connect_head_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_head_node_proxy_with_path(self, name, path, **kwargs): - """ - connect HEAD requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_head_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_head_node_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_node_proxy_with_path(name, path, async_req=True) @@ -2250,14 +2271,15 @@ def connect_head_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect HEAD requests to proxy of Node + def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_head_node_proxy_with_path # noqa: E501 + + connect HEAD requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_head_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -2272,40 +2294,42 @@ def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs) returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_head_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2314,34 +2338,32 @@ def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect OPTIONS requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'HEAD', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_options_namespaced_pod_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_pod_proxy(name, namespace, async_req=True) @@ -2357,14 +2379,15 @@ def connect_options_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect OPTIONS requests to proxy of Pod + def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_options_namespaced_pod_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -2379,40 +2402,42 @@ def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, * returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2421,34 +2446,32 @@ def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, * body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect OPTIONS requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_options_namespaced_pod_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -2465,14 +2488,15 @@ def connect_options_namespaced_pod_proxy_with_path(self, name, namespace, path, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect OPTIONS requests to proxy of Pod + def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_options_namespaced_pod_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -2488,45 +2512,48 @@ def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, na returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2535,34 +2562,32 @@ def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, na body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect OPTIONS requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_options_namespaced_service_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_service_proxy(name, namespace, async_req=True) @@ -2578,14 +2603,15 @@ def connect_options_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_options_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect OPTIONS requests to proxy of Service + def connect_options_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_options_namespaced_service_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -2600,40 +2626,42 @@ def connect_options_namespaced_service_proxy_with_http_info(self, name, namespac returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2642,34 +2670,32 @@ def connect_options_namespaced_service_proxy_with_http_info(self, name, namespac body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect OPTIONS requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_options_namespaced_service_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -2686,14 +2712,15 @@ def connect_options_namespaced_service_proxy_with_path(self, name, namespace, pa """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect OPTIONS requests to proxy of Service + def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_options_namespaced_service_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -2709,45 +2736,48 @@ def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2756,34 +2786,32 @@ def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_node_proxy(self, name, **kwargs): - """ - connect OPTIONS requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_options_node_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_node_proxy(name, async_req=True) @@ -2798,14 +2826,15 @@ def connect_options_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_node_proxy_with_http_info(name, **kwargs) + return self.connect_options_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_options_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_options_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_options_node_proxy_with_http_info(self, name, **kwargs): - """ - connect OPTIONS requests to proxy of Node + def connect_options_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_options_node_proxy # noqa: E501 + + connect OPTIONS requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_node_proxy_with_http_info(name, async_req=True) @@ -2819,35 +2848,36 @@ def connect_options_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2856,34 +2886,32 @@ def connect_options_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_options_node_proxy_with_path(self, name, path, **kwargs): - """ - connect OPTIONS requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_options_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_options_node_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_node_proxy_with_path(name, path, async_req=True) @@ -2899,14 +2927,15 @@ def connect_options_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect OPTIONS requests to proxy of Node + def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_options_node_proxy_with_path # noqa: E501 + + connect OPTIONS requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_options_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -2921,40 +2950,42 @@ def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwar returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_options_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2963,34 +2994,32 @@ def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'OPTIONS', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect PATCH requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'OPTIONS', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_patch_namespaced_pod_proxy # noqa: E501 + + connect PATCH requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_pod_proxy(name, namespace, async_req=True) @@ -3006,14 +3035,15 @@ def connect_patch_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect PATCH requests to proxy of Pod + def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_patch_namespaced_pod_proxy # noqa: E501 + + connect PATCH requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -3028,40 +3058,42 @@ def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3070,34 +3102,32 @@ def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect PATCH requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_patch_namespaced_pod_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -3114,14 +3144,15 @@ def connect_patch_namespaced_pod_proxy_with_path(self, name, namespace, path, ** """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect PATCH requests to proxy of Pod + def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_patch_namespaced_pod_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -3137,45 +3168,48 @@ def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3184,34 +3218,32 @@ def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect PATCH requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_patch_namespaced_service_proxy # noqa: E501 + + connect PATCH requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_service_proxy(name, namespace, async_req=True) @@ -3227,14 +3259,15 @@ def connect_patch_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect PATCH requests to proxy of Service + def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_patch_namespaced_service_proxy # noqa: E501 + + connect PATCH requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -3249,40 +3282,42 @@ def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3291,34 +3326,32 @@ def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect PATCH requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_patch_namespaced_service_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -3335,14 +3368,15 @@ def connect_patch_namespaced_service_proxy_with_path(self, name, namespace, path """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect PATCH requests to proxy of Service + def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_patch_namespaced_service_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -3358,45 +3392,48 @@ def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3405,34 +3442,32 @@ def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_node_proxy(self, name, **kwargs): - """ - connect PATCH requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_patch_node_proxy # noqa: E501 + + connect PATCH requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_node_proxy(name, async_req=True) @@ -3447,14 +3482,15 @@ def connect_patch_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_node_proxy_with_http_info(name, **kwargs) + return self.connect_patch_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_patch_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_patch_node_proxy_with_http_info(self, name, **kwargs): - """ - connect PATCH requests to proxy of Node + def connect_patch_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_patch_node_proxy # noqa: E501 + + connect PATCH requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_node_proxy_with_http_info(name, async_req=True) @@ -3468,35 +3504,36 @@ def connect_patch_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3505,34 +3542,32 @@ def connect_patch_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_patch_node_proxy_with_path(self, name, path, **kwargs): - """ - connect PATCH requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_patch_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_patch_node_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_node_proxy_with_path(name, path, async_req=True) @@ -3548,14 +3583,15 @@ def connect_patch_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect PATCH requests to proxy of Node + def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_patch_node_proxy_with_path # noqa: E501 + + connect PATCH requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_patch_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -3570,40 +3606,42 @@ def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3612,34 +3650,32 @@ def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_pod_attach(self, name, namespace, **kwargs): - """ - connect POST requests to attach of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_attach # noqa: E501 + + connect POST requests to attach of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_attach(name, namespace, async_req=True) @@ -3659,14 +3695,15 @@ def connect_post_namespaced_pod_attach(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + return self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) + (data) = self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): - """ - connect POST requests to attach of Pod + def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_attach # noqa: E501 + + connect POST requests to attach of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_attach_with_http_info(name, namespace, async_req=True) @@ -3685,48 +3722,50 @@ def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_attach" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in params: - query_params.append(('container', params['container'])) - if 'stderr' in params: - query_params.append(('stderr', params['stderr'])) - if 'stdin' in params: - query_params.append(('stdin', params['stdin'])) - if 'stdout' in params: - query_params.append(('stdout', params['stdout'])) - if 'tty' in params: - query_params.append(('tty', params['tty'])) + if 'container' in local_var_params: + query_params.append(('container', local_var_params['container'])) # noqa: E501 + if 'stderr' in local_var_params: + query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 + if 'stdin' in local_var_params: + query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 + if 'stdout' in local_var_params: + query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 + if 'tty' in local_var_params: + query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -3735,34 +3774,32 @@ def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/attach', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_pod_exec(self, name, namespace, **kwargs): - """ - connect POST requests to exec of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/attach', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_exec # noqa: E501 + + connect POST requests to exec of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_exec(name, namespace, async_req=True) @@ -3783,14 +3820,15 @@ def connect_post_namespaced_pod_exec(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + return self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) + (data) = self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): - """ - connect POST requests to exec of Pod + def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_exec # noqa: E501 + + connect POST requests to exec of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_exec_with_http_info(name, namespace, async_req=True) @@ -3810,50 +3848,52 @@ def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_exec" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'command' in params: - query_params.append(('command', params['command'])) - if 'container' in params: - query_params.append(('container', params['container'])) - if 'stderr' in params: - query_params.append(('stderr', params['stderr'])) - if 'stdin' in params: - query_params.append(('stdin', params['stdin'])) - if 'stdout' in params: - query_params.append(('stdout', params['stdout'])) - if 'tty' in params: - query_params.append(('tty', params['tty'])) + if 'command' in local_var_params: + query_params.append(('command', local_var_params['command'])) # noqa: E501 + if 'container' in local_var_params: + query_params.append(('container', local_var_params['container'])) # noqa: E501 + if 'stderr' in local_var_params: + query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 + if 'stdin' in local_var_params: + query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 + if 'stdout' in local_var_params: + query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 + if 'tty' in local_var_params: + query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -3862,34 +3902,32 @@ def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/exec', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): - """ - connect POST requests to portforward of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/exec', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_portforward # noqa: E501 + + connect POST requests to portforward of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_portforward(name, namespace, async_req=True) @@ -3905,14 +3943,15 @@ def connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + return self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) + (data) = self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): - """ - connect POST requests to portforward of Pod + def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_portforward # noqa: E501 + + connect POST requests to portforward of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, async_req=True) @@ -3927,40 +3966,42 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace returns the request thread. """ - all_params = ['name', 'namespace', 'ports'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'ports'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_portforward" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'ports' in params: - query_params.append(('ports', params['ports'])) + if 'ports' in local_var_params: + query_params.append(('ports', local_var_params['ports'])) # noqa: E501 header_params = {} @@ -3969,34 +4010,32 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect POST requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/portforward', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_proxy # noqa: E501 + + connect POST requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_proxy(name, namespace, async_req=True) @@ -4012,14 +4051,15 @@ def connect_post_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect POST requests to proxy of Pod + def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_proxy # noqa: E501 + + connect POST requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -4034,40 +4074,42 @@ def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4076,34 +4118,32 @@ def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect POST requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -4120,14 +4160,15 @@ def connect_post_namespaced_pod_proxy_with_path(self, name, namespace, path, **k """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect POST requests to proxy of Pod + def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_post_namespaced_pod_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -4143,45 +4184,48 @@ def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, names returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4190,34 +4234,32 @@ def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, names body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect POST requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_service_proxy # noqa: E501 + + connect POST requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_service_proxy(name, namespace, async_req=True) @@ -4233,14 +4275,15 @@ def connect_post_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect POST requests to proxy of Service + def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_post_namespaced_service_proxy # noqa: E501 + + connect POST requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -4255,40 +4298,42 @@ def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4297,34 +4342,32 @@ def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect POST requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_post_namespaced_service_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -4341,14 +4384,15 @@ def connect_post_namespaced_service_proxy_with_path(self, name, namespace, path, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect POST requests to proxy of Service + def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_post_namespaced_service_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -4364,45 +4408,48 @@ def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, n returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4411,34 +4458,32 @@ def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, n body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_node_proxy(self, name, **kwargs): - """ - connect POST requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_post_node_proxy # noqa: E501 + + connect POST requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_node_proxy(name, async_req=True) @@ -4453,14 +4498,15 @@ def connect_post_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_node_proxy_with_http_info(name, **kwargs) + return self.connect_post_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_post_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_post_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_post_node_proxy_with_http_info(self, name, **kwargs): - """ - connect POST requests to proxy of Node + def connect_post_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_post_node_proxy # noqa: E501 + + connect POST requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_node_proxy_with_http_info(name, async_req=True) @@ -4474,35 +4520,36 @@ def connect_post_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4511,34 +4558,32 @@ def connect_post_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_post_node_proxy_with_path(self, name, path, **kwargs): - """ - connect POST requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_post_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_post_node_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_node_proxy_with_path(name, path, async_req=True) @@ -4554,14 +4599,15 @@ def connect_post_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect POST requests to proxy of Node + def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_post_node_proxy_with_path # noqa: E501 + + connect POST requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_post_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -4576,40 +4622,42 @@ def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs) returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_post_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4618,34 +4666,32 @@ def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_namespaced_pod_proxy(self, name, namespace, **kwargs): - """ - connect PUT requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_put_namespaced_pod_proxy # noqa: E501 + + connect PUT requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_pod_proxy(name, namespace, async_req=True) @@ -4661,14 +4707,15 @@ def connect_put_namespaced_pod_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect PUT requests to proxy of Pod + def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_put_namespaced_pod_proxy # noqa: E501 + + connect PUT requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) @@ -4683,40 +4730,42 @@ def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_pod_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4725,34 +4774,32 @@ def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect PUT requests to proxy of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_namespaced_pod_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_put_namespaced_pod_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) @@ -4769,14 +4816,15 @@ def connect_put_namespaced_pod_proxy_with_path(self, name, namespace, path, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect PUT requests to proxy of Pod + def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_put_namespaced_pod_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -4792,45 +4840,48 @@ def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_pod_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4839,34 +4890,32 @@ def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_namespaced_service_proxy(self, name, namespace, **kwargs): - """ - connect PUT requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 + """connect_put_namespaced_service_proxy # noqa: E501 + + connect PUT requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_service_proxy(name, namespace, async_req=True) @@ -4882,14 +4931,15 @@ def connect_put_namespaced_service_proxy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + return self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) + (data) = self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): - """ - connect PUT requests to proxy of Service + def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """connect_put_namespaced_service_proxy # noqa: E501 + + connect PUT requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) @@ -4904,40 +4954,42 @@ def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, * returns the request thread. """ - all_params = ['name', 'namespace', 'path'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_service_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4946,34 +4998,32 @@ def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, * body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): - """ - connect PUT requests to proxy of Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_namespaced_service_proxy_with_path(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_put_namespaced_service_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) @@ -4990,14 +5040,15 @@ def connect_put_namespaced_service_proxy_with_path(self, name, namespace, path, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + return self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 else: - (data) = self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) + (data) = self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 return data - def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): - """ - connect PUT requests to proxy of Service + def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 + """connect_put_namespaced_service_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) @@ -5013,45 +5064,48 @@ def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, na returns the request thread. """ - all_params = ['name', 'namespace', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_service_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_with_path`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -5060,34 +5114,32 @@ def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, na body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_node_proxy(self, name, **kwargs): - """ - connect PUT requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_node_proxy(self, name, **kwargs): # noqa: E501 + """connect_put_node_proxy # noqa: E501 + + connect PUT requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_node_proxy(name, async_req=True) @@ -5102,14 +5154,15 @@ def connect_put_node_proxy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_node_proxy_with_http_info(name, **kwargs) + return self.connect_put_node_proxy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.connect_put_node_proxy_with_http_info(name, **kwargs) + (data) = self.connect_put_node_proxy_with_http_info(name, **kwargs) # noqa: E501 return data - def connect_put_node_proxy_with_http_info(self, name, **kwargs): - """ - connect PUT requests to proxy of Node + def connect_put_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 + """connect_put_node_proxy # noqa: E501 + + connect PUT requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_node_proxy_with_http_info(name, async_req=True) @@ -5123,35 +5176,36 @@ def connect_put_node_proxy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'path'] + local_var_params = locals() + + all_params = ['name', 'path'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_node_proxy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in params: - query_params.append(('path', params['path'])) + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -5160,34 +5214,32 @@ def connect_put_node_proxy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 connect_put_node_proxy_with_path(self, name, path, **kwargs): - """ - connect PUT requests to proxy of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def connect_put_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 + """connect_put_node_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_node_proxy_with_path(name, path, async_req=True) @@ -5203,14 +5255,15 @@ def connect_put_node_proxy_with_path(self, name, path, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) + return self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 else: - (data) = self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) + (data) = self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 return data - def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): - """ - connect PUT requests to proxy of Node + def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 + """connect_put_node_proxy_with_path # noqa: E501 + + connect PUT requests to proxy of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.connect_put_node_proxy_with_path_with_http_info(name, path, async_req=True) @@ -5225,40 +5278,42 @@ def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): returns the request thread. """ - all_params = ['name', 'path', 'path2'] + local_var_params = locals() + + all_params = ['name', 'path', 'path2'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_node_proxy_with_path" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy_with_path`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in params) or (params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_node_proxy_with_path`") - + if ('path' not in local_var_params or + local_var_params['path'] is None): + raise ValueError("Missing the required parameter `path` when calling `connect_put_node_proxy_with_path`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'path' in params: - path_params['path'] = params['path'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'path' in local_var_params: + path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in params: - query_params.append(('path', params['path2'])) + if 'path2' in local_var_params: + query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -5267,34 +5322,32 @@ def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['*/*']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/proxy/{path}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespace(self, body, **kwargs): - """ - create a Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/proxy/{path}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespace(self, body, **kwargs): # noqa: E501 + """create_namespace # noqa: E501 + + create a Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespace(body, async_req=True) @@ -5311,14 +5364,15 @@ def create_namespace(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespace_with_http_info(body, **kwargs) + return self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_namespace_with_http_info(body, **kwargs) + (data) = self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 return data - def create_namespace_with_http_info(self, body, **kwargs): - """ - create a Namespace + def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 + """create_namespace # noqa: E501 + + create a Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespace_with_http_info(body, async_req=True) @@ -5334,37 +5388,38 @@ def create_namespace_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespace" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespace`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespace`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5372,37 +5427,35 @@ def create_namespace_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_binding(self, namespace, body, **kwargs): - """ - create a Binding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_binding(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_binding # noqa: E501 + + create a Binding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_binding(namespace, body, async_req=True) @@ -5420,14 +5473,15 @@ def create_namespaced_binding(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a Binding + def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_binding # noqa: E501 + + create a Binding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_binding_with_http_info(namespace, body, async_req=True) @@ -5444,42 +5498,44 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5487,37 +5543,35 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/bindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Binding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_config_map(self, namespace, body, **kwargs): - """ - create a ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/bindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Binding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_config_map(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_config_map # noqa: E501 + + create a ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_config_map(namespace, body, async_req=True) @@ -5535,14 +5589,15 @@ def create_namespaced_config_map(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): - """ - create a ConfigMap + def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_config_map # noqa: E501 + + create a ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_config_map_with_http_info(namespace, body, async_req=True) @@ -5559,42 +5614,44 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5602,37 +5659,35 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMap', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_endpoints(self, namespace, body, **kwargs): - """ - create Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_endpoints(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_endpoints # noqa: E501 + + create Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_endpoints(namespace, body, async_req=True) @@ -5650,14 +5705,15 @@ def create_namespaced_endpoints(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): - """ - create Endpoints + def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_endpoints # noqa: E501 + + create Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_endpoints_with_http_info(namespace, body, async_req=True) @@ -5674,42 +5730,44 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5717,37 +5775,35 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Endpoints', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_event(self, namespace, body, **kwargs): - """ - create an Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_event(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_event # noqa: E501 + + create an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_event(namespace, body, async_req=True) @@ -5765,14 +5821,15 @@ def create_namespaced_event(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): - """ - create an Event + def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_event # noqa: E501 + + create an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_event_with_http_info(namespace, body, async_req=True) @@ -5789,42 +5846,44 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5832,37 +5891,35 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_limit_range(self, namespace, body, **kwargs): - """ - create a LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_limit_range(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_limit_range # noqa: E501 + + create a LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_limit_range(namespace, body, async_req=True) @@ -5880,14 +5937,15 @@ def create_namespaced_limit_range(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): - """ - create a LimitRange + def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_limit_range # noqa: E501 + + create a LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_limit_range_with_http_info(namespace, body, async_req=True) @@ -5904,42 +5962,44 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5947,37 +6007,35 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRange', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): - """ - create a PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_persistent_volume_claim # noqa: E501 + + create a PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_persistent_volume_claim(namespace, body, async_req=True) @@ -5995,14 +6053,15 @@ def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): - """ - create a PersistentVolumeClaim + def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_persistent_volume_claim # noqa: E501 + + create a PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, async_req=True) @@ -6019,42 +6078,44 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6062,37 +6123,35 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_pod(self, namespace, body, **kwargs): - """ - create a Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod # noqa: E501 + + create a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod(namespace, body, async_req=True) @@ -6110,14 +6169,15 @@ def create_namespaced_pod(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): - """ - create a Pod + def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod # noqa: E501 + + create a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_with_http_info(namespace, body, async_req=True) @@ -6134,42 +6194,44 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6177,37 +6239,35 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_pod_binding(self, name, namespace, body, **kwargs): - """ - create binding of a Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_binding # noqa: E501 + + create binding of a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_binding(name, namespace, body, async_req=True) @@ -6226,14 +6286,15 @@ def create_namespaced_pod_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - create binding of a Pod + def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_binding # noqa: E501 + + create binding of a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_binding_with_http_info(name, namespace, body, async_req=True) @@ -6251,47 +6312,50 @@ def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6299,37 +6363,35 @@ def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/binding', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Binding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_pod_eviction(self, name, namespace, body, **kwargs): - """ - create eviction of a Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/binding', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Binding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_eviction(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_eviction # noqa: E501 + + create eviction of a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_eviction(name, namespace, body, async_req=True) @@ -6348,14 +6410,15 @@ def create_namespaced_pod_eviction(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, **kwargs): - """ - create eviction of a Pod + def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_eviction # noqa: E501 + + create eviction of a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_eviction_with_http_info(name, namespace, body, async_req=True) @@ -6373,47 +6436,50 @@ def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, * returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_eviction" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_eviction`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_eviction`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_eviction`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_eviction`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_eviction`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_eviction`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6421,37 +6487,35 @@ def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/eviction', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Eviction', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_pod_template(self, namespace, body, **kwargs): - """ - create a PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/eviction', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Eviction', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_pod_template(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_template # noqa: E501 + + create a PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_template(namespace, body, async_req=True) @@ -6469,14 +6533,15 @@ def create_namespaced_pod_template(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): - """ - create a PodTemplate + def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_template # noqa: E501 + + create a PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_template_with_http_info(namespace, body, async_req=True) @@ -6493,42 +6558,44 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6536,37 +6603,35 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplate', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_replication_controller(self, namespace, body, **kwargs): - """ - create a ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_replication_controller(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replication_controller # noqa: E501 + + create a ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replication_controller(namespace, body, async_req=True) @@ -6584,14 +6649,15 @@ def create_namespaced_replication_controller(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): - """ - create a ReplicationController + def create_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replication_controller # noqa: E501 + + create a ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replication_controller_with_http_info(namespace, body, async_req=True) @@ -6608,42 +6674,44 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6651,37 +6719,35 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_resource_quota(self, namespace, body, **kwargs): - """ - create a ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_resource_quota(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_quota # noqa: E501 + + create a ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_resource_quota(namespace, body, async_req=True) @@ -6699,14 +6765,15 @@ def create_namespaced_resource_quota(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): - """ - create a ResourceQuota + def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_resource_quota # noqa: E501 + + create a ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_resource_quota_with_http_info(namespace, body, async_req=True) @@ -6723,42 +6790,44 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6766,37 +6835,35 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_secret(self, namespace, body, **kwargs): - """ - create a Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_secret(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_secret # noqa: E501 + + create a Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_secret(namespace, body, async_req=True) @@ -6814,14 +6881,15 @@ def create_namespaced_secret(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): - """ - create a Secret + def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_secret # noqa: E501 + + create a Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_secret_with_http_info(namespace, body, async_req=True) @@ -6838,42 +6906,44 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6881,37 +6951,35 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Secret', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_service(self, namespace, body, **kwargs): - """ - create a Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_service(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_service # noqa: E501 + + create a Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_service(namespace, body, async_req=True) @@ -6929,14 +6997,15 @@ def create_namespaced_service(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): - """ - create a Service + def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_service # noqa: E501 + + create a Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_service_with_http_info(namespace, body, async_req=True) @@ -6953,42 +7022,44 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6996,37 +7067,35 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_service_account(self, namespace, body, **kwargs): - """ - create a ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_service_account(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_service_account # noqa: E501 + + create a ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_service_account(namespace, body, async_req=True) @@ -7044,14 +7113,15 @@ def create_namespaced_service_account(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): - """ - create a ServiceAccount + def create_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_service_account # noqa: E501 + + create a ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_service_account_with_http_info(namespace, body, async_req=True) @@ -7068,42 +7138,44 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7111,37 +7183,35 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccount', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_node(self, body, **kwargs): - """ - create a Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_node(self, body, **kwargs): # noqa: E501 + """create_node # noqa: E501 + + create a Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_node(body, async_req=True) @@ -7158,14 +7228,15 @@ def create_node(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_node_with_http_info(body, **kwargs) + return self.create_node_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_node_with_http_info(body, **kwargs) + (data) = self.create_node_with_http_info(body, **kwargs) # noqa: E501 return data - def create_node_with_http_info(self, body, **kwargs): - """ - create a Node + def create_node_with_http_info(self, body, **kwargs): # noqa: E501 + """create_node # noqa: E501 + + create a Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_node_with_http_info(body, async_req=True) @@ -7181,37 +7252,38 @@ def create_node_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_node`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7219,37 +7291,35 @@ def create_node_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_persistent_volume(self, body, **kwargs): - """ - create a PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_persistent_volume(self, body, **kwargs): # noqa: E501 + """create_persistent_volume # noqa: E501 + + create a PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_persistent_volume(body, async_req=True) @@ -7266,14 +7336,15 @@ def create_persistent_volume(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_persistent_volume_with_http_info(body, **kwargs) + return self.create_persistent_volume_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_persistent_volume_with_http_info(body, **kwargs) + (data) = self.create_persistent_volume_with_http_info(body, **kwargs) # noqa: E501 return data - def create_persistent_volume_with_http_info(self, body, **kwargs): - """ - create a PersistentVolume + def create_persistent_volume_with_http_info(self, body, **kwargs): # noqa: E501 + """create_persistent_volume # noqa: E501 + + create a PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_persistent_volume_with_http_info(body, async_req=True) @@ -7289,37 +7360,38 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_persistent_volume" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7327,37 +7399,35 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_config_map(self, namespace, **kwargs): - """ - delete collection of ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_config_map(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_config_map # noqa: E501 + + delete collection of ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_config_map(namespace, async_req=True) @@ -7366,27 +7436,34 @@ def delete_collection_namespaced_config_map(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): - """ - delete collection of ConfigMap + def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_config_map # noqa: E501 + + delete collection of ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_config_map_with_http_info(namespace, async_req=True) @@ -7395,61 +7472,78 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7457,35 +7551,35 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_endpoints(self, namespace, **kwargs): - """ - delete collection of Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_endpoints(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_endpoints # noqa: E501 + + delete collection of Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_endpoints(namespace, async_req=True) @@ -7494,27 +7588,34 @@ def delete_collection_namespaced_endpoints(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): - """ - delete collection of Endpoints + def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_endpoints # noqa: E501 + + delete collection of Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_endpoints_with_http_info(namespace, async_req=True) @@ -7523,61 +7624,78 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7585,35 +7703,35 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_event(self, namespace, **kwargs): - """ - delete collection of Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_event # noqa: E501 + + delete collection of Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_event(namespace, async_req=True) @@ -7622,27 +7740,34 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): - """ - delete collection of Event + def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_event # noqa: E501 + + delete collection of Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, async_req=True) @@ -7651,61 +7776,78 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7713,35 +7855,35 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_limit_range(self, namespace, **kwargs): - """ - delete collection of LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_limit_range(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_limit_range # noqa: E501 + + delete collection of LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_limit_range(namespace, async_req=True) @@ -7750,27 +7892,34 @@ def delete_collection_namespaced_limit_range(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): - """ - delete collection of LimitRange + def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_limit_range # noqa: E501 + + delete collection of LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_limit_range_with_http_info(namespace, async_req=True) @@ -7779,61 +7928,78 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7841,35 +8007,35 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwargs): - """ - delete collection of PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_persistent_volume_claim # noqa: E501 + + delete collection of PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_persistent_volume_claim(namespace, async_req=True) @@ -7878,27 +8044,34 @@ def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwar :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): - """ - delete collection of PersistentVolumeClaim + def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_persistent_volume_claim # noqa: E501 + + delete collection of PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, async_req=True) @@ -7907,61 +8080,78 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7969,35 +8159,35 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_pod(self, namespace, **kwargs): - """ - delete collection of Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod # noqa: E501 + + delete collection of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod(namespace, async_req=True) @@ -8006,27 +8196,34 @@ def delete_collection_namespaced_pod(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): - """ - delete collection of Pod + def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod # noqa: E501 + + delete collection of Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_with_http_info(namespace, async_req=True) @@ -8035,61 +8232,78 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8097,35 +8311,35 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_pod_template(self, namespace, **kwargs): - """ - delete collection of PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod_template(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_template # noqa: E501 + + delete collection of PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_template(namespace, async_req=True) @@ -8134,27 +8348,34 @@ def delete_collection_namespaced_pod_template(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): - """ - delete collection of PodTemplate + def delete_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_template # noqa: E501 + + delete collection of PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_template_with_http_info(namespace, async_req=True) @@ -8163,61 +8384,78 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8225,35 +8463,35 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_replication_controller(self, namespace, **kwargs): - """ - delete collection of ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_replication_controller(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replication_controller # noqa: E501 + + delete collection of ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replication_controller(namespace, async_req=True) @@ -8262,27 +8500,34 @@ def delete_collection_namespaced_replication_controller(self, namespace, **kwarg :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): - """ - delete collection of ReplicationController + def delete_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replication_controller # noqa: E501 + + delete collection of ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replication_controller_with_http_info(namespace, async_req=True) @@ -8291,61 +8536,78 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8353,35 +8615,35 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): - """ - delete collection of ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_quota # noqa: E501 + + delete collection of ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_resource_quota(namespace, async_req=True) @@ -8390,27 +8652,34 @@ def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): - """ - delete collection of ResourceQuota + def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_resource_quota # noqa: E501 + + delete collection of ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_resource_quota_with_http_info(namespace, async_req=True) @@ -8419,61 +8688,78 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8481,35 +8767,35 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_secret(self, namespace, **kwargs): - """ - delete collection of Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_secret(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_secret # noqa: E501 + + delete collection of Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_secret(namespace, async_req=True) @@ -8518,27 +8804,34 @@ def delete_collection_namespaced_secret(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): - """ - delete collection of Secret + def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_secret # noqa: E501 + + delete collection of Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_secret_with_http_info(namespace, async_req=True) @@ -8547,61 +8840,78 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8609,35 +8919,35 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_service_account(self, namespace, **kwargs): - """ - delete collection of ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_service_account(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_service_account # noqa: E501 + + delete collection of ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_service_account(namespace, async_req=True) @@ -8646,27 +8956,34 @@ def delete_collection_namespaced_service_account(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): - """ - delete collection of ServiceAccount + def delete_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_service_account # noqa: E501 + + delete collection of ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_service_account_with_http_info(namespace, async_req=True) @@ -8675,61 +8992,78 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8737,35 +9071,35 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_node(self, **kwargs): - """ - delete collection of Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_node(self, **kwargs): # noqa: E501 + """delete_collection_node # noqa: E501 + + delete collection of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_node(async_req=True) @@ -8773,27 +9107,34 @@ def delete_collection_node(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_node_with_http_info(**kwargs) + return self.delete_collection_node_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_node_with_http_info(**kwargs) + (data) = self.delete_collection_node_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_node_with_http_info(self, **kwargs): - """ - delete collection of Node + def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_node # noqa: E501 + + delete collection of Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_node_with_http_info(async_req=True) @@ -8801,56 +9142,72 @@ def delete_collection_node_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_node" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8858,35 +9215,35 @@ def delete_collection_node_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_persistent_volume(self, **kwargs): - """ - delete collection of PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_persistent_volume(self, **kwargs): # noqa: E501 + """delete_collection_persistent_volume # noqa: E501 + + delete collection of PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_persistent_volume(async_req=True) @@ -8894,27 +9251,34 @@ def delete_collection_persistent_volume(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_persistent_volume_with_http_info(**kwargs) + return self.delete_collection_persistent_volume_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_persistent_volume_with_http_info(**kwargs) + (data) = self.delete_collection_persistent_volume_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_persistent_volume_with_http_info(self, **kwargs): - """ - delete collection of PersistentVolume + def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_persistent_volume # noqa: E501 + + delete collection of PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_persistent_volume_with_http_info(async_req=True) @@ -8922,56 +9286,72 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_persistent_volume" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8979,35 +9359,35 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespace(self, name, **kwargs): - """ - delete a Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespace(self, name, **kwargs): # noqa: E501 + """delete_namespace # noqa: E501 + + delete a Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespace(name, async_req=True) @@ -9016,25 +9396,26 @@ def delete_namespace(self, name, **kwargs): :param async_req bool :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespace_with_http_info(name, **kwargs) + return self.delete_namespace_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_namespace_with_http_info(name, **kwargs) + (data) = self.delete_namespace_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_namespace_with_http_info(self, name, **kwargs): - """ - delete a Namespace + def delete_namespace_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_namespace # noqa: E501 + + delete a Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespace_with_http_info(name, async_req=True) @@ -9043,53 +9424,54 @@ def delete_namespace_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespace" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespace`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespace`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9097,37 +9479,35 @@ def delete_namespace_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_config_map(self, name, namespace, **kwargs): - """ - delete a ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_config_map # noqa: E501 + + delete a ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_config_map(name, namespace, async_req=True) @@ -9137,25 +9517,26 @@ def delete_namespaced_config_map(self, name, namespace, **kwargs): :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): - """ - delete a ConfigMap + def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_config_map # noqa: E501 + + delete a ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_config_map_with_http_info(name, namespace, async_req=True) @@ -9165,58 +9546,60 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs) :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9224,37 +9607,35 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_endpoints(self, name, namespace, **kwargs): - """ - delete Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_endpoints(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_endpoints # noqa: E501 + + delete Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_endpoints(name, namespace, async_req=True) @@ -9264,25 +9645,26 @@ def delete_namespaced_endpoints(self, name, namespace, **kwargs): :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): - """ - delete Endpoints + def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_endpoints # noqa: E501 + + delete Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_endpoints_with_http_info(name, namespace, async_req=True) @@ -9292,58 +9674,60 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9351,37 +9735,35 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_event(self, name, namespace, **kwargs): - """ - delete an Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_event # noqa: E501 + + delete an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_event(name, namespace, async_req=True) @@ -9391,25 +9773,26 @@ def delete_namespaced_event(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): - """ - delete an Event + def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_event # noqa: E501 + + delete an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, async_req=True) @@ -9419,58 +9802,60 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9478,37 +9863,35 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_limit_range(self, name, namespace, **kwargs): - """ - delete a LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_limit_range(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_limit_range # noqa: E501 + + delete a LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_limit_range(name, namespace, async_req=True) @@ -9518,25 +9901,26 @@ def delete_namespaced_limit_range(self, name, namespace, **kwargs): :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): - """ - delete a LimitRange + def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_limit_range # noqa: E501 + + delete a LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_limit_range_with_http_info(name, namespace, async_req=True) @@ -9546,58 +9930,60 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9605,37 +9991,35 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): - """ - delete a PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_persistent_volume_claim # noqa: E501 + + delete a PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_persistent_volume_claim(name, namespace, async_req=True) @@ -9645,25 +10029,26 @@ def delete_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): - """ - delete a PersistentVolumeClaim + def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_persistent_volume_claim # noqa: E501 + + delete a PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, async_req=True) @@ -9673,58 +10058,60 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9732,37 +10119,35 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_pod(self, name, namespace, **kwargs): - """ - delete a Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod # noqa: E501 + + delete a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod(name, namespace, async_req=True) @@ -9772,25 +10157,26 @@ def delete_namespaced_pod(self, name, namespace, **kwargs): :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): - """ - delete a Pod + def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod # noqa: E501 + + delete a Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_with_http_info(name, namespace, async_req=True) @@ -9800,58 +10186,60 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9859,37 +10247,35 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_pod_template(self, name, namespace, **kwargs): - """ - delete a PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_template(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_template # noqa: E501 + + delete a PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_template(name, namespace, async_req=True) @@ -9899,25 +10285,26 @@ def delete_namespaced_pod_template(self, name, namespace, **kwargs): :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): - """ - delete a PodTemplate + def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_template # noqa: E501 + + delete a PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_template_with_http_info(name, namespace, async_req=True) @@ -9927,58 +10314,60 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwarg :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9986,37 +10375,35 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_replication_controller(self, name, namespace, **kwargs): - """ - delete a ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replication_controller(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replication_controller # noqa: E501 + + delete a ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replication_controller(name, namespace, async_req=True) @@ -10026,25 +10413,26 @@ def delete_namespaced_replication_controller(self, name, namespace, **kwargs): :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): - """ - delete a ReplicationController + def delete_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replication_controller # noqa: E501 + + delete a ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replication_controller_with_http_info(name, namespace, async_req=True) @@ -10054,58 +10442,60 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10113,37 +10503,35 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_resource_quota(self, name, namespace, **kwargs): - """ - delete a ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_resource_quota(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_quota # noqa: E501 + + delete a ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_resource_quota(name, namespace, async_req=True) @@ -10153,25 +10541,26 @@ def delete_namespaced_resource_quota(self, name, namespace, **kwargs): :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): - """ - delete a ResourceQuota + def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_resource_quota # noqa: E501 + + delete a ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_resource_quota_with_http_info(name, namespace, async_req=True) @@ -10181,58 +10570,60 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwa :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10240,37 +10631,35 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_secret(self, name, namespace, **kwargs): - """ - delete a Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_secret(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_secret # noqa: E501 + + delete a Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_secret(name, namespace, async_req=True) @@ -10280,25 +10669,26 @@ def delete_namespaced_secret(self, name, namespace, **kwargs): :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): - """ - delete a Secret + def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_secret # noqa: E501 + + delete a Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_secret_with_http_info(name, namespace, async_req=True) @@ -10308,58 +10698,60 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10367,37 +10759,35 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_service(self, name, namespace, **kwargs): - """ - delete a Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_service(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_service # noqa: E501 + + delete a Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_service(name, namespace, async_req=True) @@ -10407,25 +10797,26 @@ def delete_namespaced_service(self, name, namespace, **kwargs): :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): - """ - delete a Service + def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_service # noqa: E501 + + delete a Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_service_with_http_info(name, namespace, async_req=True) @@ -10435,58 +10826,60 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10494,37 +10887,35 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_service_account(self, name, namespace, **kwargs): - """ - delete a ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_service_account(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_service_account # noqa: E501 + + delete a ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_service_account(name, namespace, async_req=True) @@ -10534,25 +10925,26 @@ def delete_namespaced_service_account(self, name, namespace, **kwargs): :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): - """ - delete a ServiceAccount + def delete_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_service_account # noqa: E501 + + delete a ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_service_account_with_http_info(name, namespace, async_req=True) @@ -10562,58 +10954,60 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, **kw :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10621,37 +11015,35 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_node(self, name, **kwargs): - """ - delete a Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_node(self, name, **kwargs): # noqa: E501 + """delete_node # noqa: E501 + + delete a Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_node(name, async_req=True) @@ -10660,25 +11052,26 @@ def delete_node(self, name, **kwargs): :param async_req bool :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_node_with_http_info(name, **kwargs) + return self.delete_node_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_node_with_http_info(name, **kwargs) + (data) = self.delete_node_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_node_with_http_info(self, name, **kwargs): - """ - delete a Node + def delete_node_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_node # noqa: E501 + + delete a Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_node_with_http_info(name, async_req=True) @@ -10687,53 +11080,54 @@ def delete_node_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_node`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10741,37 +11135,35 @@ def delete_node_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_persistent_volume(self, name, **kwargs): - """ - delete a PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_persistent_volume(self, name, **kwargs): # noqa: E501 + """delete_persistent_volume # noqa: E501 + + delete a PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_persistent_volume(name, async_req=True) @@ -10780,25 +11172,26 @@ def delete_persistent_volume(self, name, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_persistent_volume_with_http_info(name, **kwargs) + return self.delete_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_persistent_volume_with_http_info(name, **kwargs) + (data) = self.delete_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_persistent_volume_with_http_info(self, name, **kwargs): - """ - delete a PersistentVolume + def delete_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_persistent_volume # noqa: E501 + + delete a PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_persistent_volume_with_http_info(name, async_req=True) @@ -10807,53 +11200,54 @@ def delete_persistent_volume_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_persistent_volume" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10861,37 +11255,35 @@ def delete_persistent_volume_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -10904,14 +11296,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -10923,21 +11316,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -10952,40 +11346,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_component_status(self, **kwargs): - """ - list objects of kind ComponentStatus + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_component_status(self, **kwargs): # noqa: E501 + """list_component_status # noqa: E501 + + list objects of kind ComponentStatus # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_component_status(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11000,20 +11393,22 @@ def list_component_status(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_component_status_with_http_info(**kwargs) + return self.list_component_status_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_component_status_with_http_info(**kwargs) + (data) = self.list_component_status_with_http_info(**kwargs) # noqa: E501 return data - def list_component_status_with_http_info(self, **kwargs): - """ - list objects of kind ComponentStatus + def list_component_status_with_http_info(self, **kwargs): # noqa: E501 + """list_component_status # noqa: E501 + + list objects of kind ComponentStatus # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_component_status_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11027,44 +11422,46 @@ def list_component_status_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_component_status" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11073,40 +11470,39 @@ def list_component_status_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/componentstatuses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ComponentStatusList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_config_map_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/componentstatuses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ComponentStatusList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_config_map_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_config_map_for_all_namespaces # noqa: E501 + + list or watch objects of kind ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_config_map_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11121,20 +11517,22 @@ def list_config_map_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) + return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_config_map_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_config_map_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ConfigMap + def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_config_map_for_all_namespaces # noqa: E501 + + list or watch objects of kind ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_config_map_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11148,44 +11546,46 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_config_map_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11194,40 +11594,39 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/configmaps', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMapList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_endpoints_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/configmaps', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMapList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_endpoints_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_endpoints_for_all_namespaces # noqa: E501 + + list or watch objects of kind Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_endpoints_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11242,20 +11641,22 @@ def list_endpoints_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) + return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Endpoints + def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_endpoints_for_all_namespaces # noqa: E501 + + list or watch objects of kind Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_endpoints_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11269,44 +11670,46 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_endpoints_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11315,40 +11718,39 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/endpoints', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1EndpointsList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_event_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/endpoints', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EndpointsList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_event_for_all_namespaces # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_event_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11363,20 +11765,22 @@ def list_event_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_event_for_all_namespaces_with_http_info(**kwargs) + return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_event_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Event + def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_event_for_all_namespaces # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_event_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11390,44 +11794,46 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_event_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11436,40 +11842,39 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1EventList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_limit_range_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EventList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_limit_range_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_limit_range_for_all_namespaces # noqa: E501 + + list or watch objects of kind LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_limit_range_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11484,20 +11889,22 @@ def list_limit_range_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) + return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind LimitRange + def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_limit_range_for_all_namespaces # noqa: E501 + + list or watch objects of kind LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_limit_range_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11511,44 +11918,46 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_limit_range_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11557,34 +11966,32 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/limitranges', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRangeList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespace(self, **kwargs): - """ - list or watch objects of kind Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/limitranges', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRangeList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespace(self, **kwargs): # noqa: E501 + """list_namespace # noqa: E501 + + list or watch objects of kind Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespace(async_req=True) @@ -11592,6 +11999,7 @@ def list_namespace(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11605,14 +12013,15 @@ def list_namespace(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespace_with_http_info(**kwargs) + return self.list_namespace_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_namespace_with_http_info(**kwargs) + (data) = self.list_namespace_with_http_info(**kwargs) # noqa: E501 return data - def list_namespace_with_http_info(self, **kwargs): - """ - list or watch objects of kind Namespace + def list_namespace_with_http_info(self, **kwargs): # noqa: E501 + """list_namespace # noqa: E501 + + list or watch objects of kind Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespace_with_http_info(async_req=True) @@ -11620,6 +12029,7 @@ def list_namespace_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11632,44 +12042,46 @@ def list_namespace_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespace" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11678,34 +12090,32 @@ def list_namespace_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NamespaceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_config_map(self, namespace, **kwargs): - """ - list or watch objects of kind ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NamespaceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_config_map(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_config_map # noqa: E501 + + list or watch objects of kind ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_config_map(namespace, async_req=True) @@ -11714,6 +12124,7 @@ def list_namespaced_config_map(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11727,14 +12138,15 @@ def list_namespaced_config_map(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) + return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ConfigMap + def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_config_map # noqa: E501 + + list or watch objects of kind ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_config_map_with_http_info(namespace, async_req=True) @@ -11743,6 +12155,7 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11755,49 +12168,52 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11806,34 +12222,32 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMapList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_endpoints(self, namespace, **kwargs): - """ - list or watch objects of kind Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMapList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_endpoints(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_endpoints # noqa: E501 + + list or watch objects of kind Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_endpoints(namespace, async_req=True) @@ -11842,6 +12256,7 @@ def list_namespaced_endpoints(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11855,14 +12270,15 @@ def list_namespaced_endpoints(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) + return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Endpoints + def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_endpoints # noqa: E501 + + list or watch objects of kind Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_endpoints_with_http_info(namespace, async_req=True) @@ -11871,6 +12287,7 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11883,49 +12300,52 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11934,34 +12354,32 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1EndpointsList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_event(self, namespace, **kwargs): - """ - list or watch objects of kind Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EndpointsList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_event # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_event(namespace, async_req=True) @@ -11970,6 +12388,7 @@ def list_namespaced_event(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -11983,14 +12402,15 @@ def list_namespaced_event(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_event_with_http_info(namespace, **kwargs) + return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_event_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Event + def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_event # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_event_with_http_info(namespace, async_req=True) @@ -11999,6 +12419,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12011,49 +12432,52 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12062,34 +12486,32 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1EventList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_limit_range(self, namespace, **kwargs): - """ - list or watch objects of kind LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1EventList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_limit_range(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_limit_range # noqa: E501 + + list or watch objects of kind LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_limit_range(namespace, async_req=True) @@ -12098,6 +12520,7 @@ def list_namespaced_limit_range(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12111,14 +12534,15 @@ def list_namespaced_limit_range(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) + return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind LimitRange + def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_limit_range # noqa: E501 + + list or watch objects of kind LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_limit_range_with_http_info(namespace, async_req=True) @@ -12127,6 +12551,7 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12139,49 +12564,52 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12190,34 +12618,32 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRangeList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): - """ - list or watch objects of kind PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRangeList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_persistent_volume_claim # noqa: E501 + + list or watch objects of kind PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_persistent_volume_claim(namespace, async_req=True) @@ -12226,6 +12652,7 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12239,14 +12666,15 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind PersistentVolumeClaim + def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_persistent_volume_claim # noqa: E501 + + list or watch objects of kind PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_persistent_volume_claim_with_http_info(namespace, async_req=True) @@ -12255,6 +12683,7 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12267,49 +12696,52 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12318,34 +12750,32 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaimList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_pod(self, namespace, **kwargs): - """ - list or watch objects of kind Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaimList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod # noqa: E501 + + list or watch objects of kind Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod(namespace, async_req=True) @@ -12354,6 +12784,7 @@ def list_namespaced_pod(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12367,14 +12798,15 @@ def list_namespaced_pod(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_pod_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_pod_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Pod + def list_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod # noqa: E501 + + list or watch objects of kind Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_with_http_info(namespace, async_req=True) @@ -12383,6 +12815,7 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12395,49 +12828,52 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12446,34 +12882,32 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_pod_template(self, namespace, **kwargs): - """ - list or watch objects of kind PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod_template(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_template # noqa: E501 + + list or watch objects of kind PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_template(namespace, async_req=True) @@ -12482,6 +12916,7 @@ def list_namespaced_pod_template(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12495,14 +12930,15 @@ def list_namespaced_pod_template(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind PodTemplate + def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_template # noqa: E501 + + list or watch objects of kind PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_template_with_http_info(namespace, async_req=True) @@ -12511,6 +12947,7 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12523,49 +12960,52 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12574,34 +13014,32 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplateList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_replication_controller(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplateList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_replication_controller(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replication_controller # noqa: E501 + + list or watch objects of kind ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replication_controller(namespace, async_req=True) @@ -12610,6 +13048,7 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12623,14 +13062,15 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) + return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicationController + def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replication_controller # noqa: E501 + + list or watch objects of kind ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replication_controller_with_http_info(namespace, async_req=True) @@ -12639,6 +13079,7 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12651,49 +13092,52 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12702,34 +13146,32 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationControllerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_resource_quota(self, namespace, **kwargs): - """ - list or watch objects of kind ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationControllerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_resource_quota(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_quota # noqa: E501 + + list or watch objects of kind ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_resource_quota(namespace, async_req=True) @@ -12738,6 +13180,7 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12751,14 +13194,15 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) + return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ResourceQuota + def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_resource_quota # noqa: E501 + + list or watch objects of kind ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_resource_quota_with_http_info(namespace, async_req=True) @@ -12767,6 +13211,7 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12779,49 +13224,52 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12830,34 +13278,32 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuotaList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_secret(self, namespace, **kwargs): - """ - list or watch objects of kind Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuotaList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_secret(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_secret # noqa: E501 + + list or watch objects of kind Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_secret(namespace, async_req=True) @@ -12866,6 +13312,7 @@ def list_namespaced_secret(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12879,14 +13326,15 @@ def list_namespaced_secret(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_secret_with_http_info(namespace, **kwargs) + return self.list_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_secret_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Secret + def list_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_secret # noqa: E501 + + list or watch objects of kind Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_secret_with_http_info(namespace, async_req=True) @@ -12895,6 +13343,7 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -12907,49 +13356,52 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12958,34 +13410,32 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SecretList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_service(self, namespace, **kwargs): - """ - list or watch objects of kind Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecretList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_service(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_service # noqa: E501 + + list or watch objects of kind Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_service(namespace, async_req=True) @@ -12994,6 +13444,7 @@ def list_namespaced_service(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13007,14 +13458,15 @@ def list_namespaced_service(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_service_with_http_info(namespace, **kwargs) + return self.list_namespaced_service_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_service_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_service_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_service_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Service + def list_namespaced_service_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_service # noqa: E501 + + list or watch objects of kind Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_service_with_http_info(namespace, async_req=True) @@ -13023,6 +13475,7 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13035,49 +13488,52 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13086,34 +13542,32 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_service_account(self, namespace, **kwargs): - """ - list or watch objects of kind ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_service_account(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_service_account # noqa: E501 + + list or watch objects of kind ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_service_account(namespace, async_req=True) @@ -13122,6 +13576,7 @@ def list_namespaced_service_account(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13135,14 +13590,15 @@ def list_namespaced_service_account(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) + return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_service_account_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ServiceAccount + def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_service_account # noqa: E501 + + list or watch objects of kind ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_service_account_with_http_info(namespace, async_req=True) @@ -13151,6 +13607,7 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13163,49 +13620,52 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13214,34 +13674,32 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccountList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_node(self, **kwargs): - """ - list or watch objects of kind Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccountList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_node(self, **kwargs): # noqa: E501 + """list_node # noqa: E501 + + list or watch objects of kind Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_node(async_req=True) @@ -13249,6 +13707,7 @@ def list_node(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13262,14 +13721,15 @@ def list_node(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_node_with_http_info(**kwargs) + return self.list_node_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_node_with_http_info(**kwargs) + (data) = self.list_node_with_http_info(**kwargs) # noqa: E501 return data - def list_node_with_http_info(self, **kwargs): - """ - list or watch objects of kind Node + def list_node_with_http_info(self, **kwargs): # noqa: E501 + """list_node # noqa: E501 + + list or watch objects of kind Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_node_with_http_info(async_req=True) @@ -13277,6 +13737,7 @@ def list_node_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13289,44 +13750,46 @@ def list_node_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_node" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13335,34 +13798,32 @@ def list_node_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NodeList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_persistent_volume(self, **kwargs): - """ - list or watch objects of kind PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NodeList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_persistent_volume(self, **kwargs): # noqa: E501 + """list_persistent_volume # noqa: E501 + + list or watch objects of kind PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_persistent_volume(async_req=True) @@ -13370,6 +13831,7 @@ def list_persistent_volume(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13383,14 +13845,15 @@ def list_persistent_volume(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_persistent_volume_with_http_info(**kwargs) + return self.list_persistent_volume_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_persistent_volume_with_http_info(**kwargs) + (data) = self.list_persistent_volume_with_http_info(**kwargs) # noqa: E501 return data - def list_persistent_volume_with_http_info(self, **kwargs): - """ - list or watch objects of kind PersistentVolume + def list_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 + """list_persistent_volume # noqa: E501 + + list or watch objects of kind PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_persistent_volume_with_http_info(async_req=True) @@ -13398,6 +13861,7 @@ def list_persistent_volume_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13410,44 +13874,46 @@ def list_persistent_volume_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_persistent_volume" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13456,40 +13922,39 @@ def list_persistent_volume_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_persistent_volume_claim_for_all_namespaces # noqa: E501 + + list or watch objects of kind PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_persistent_volume_claim_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13504,20 +13969,22 @@ def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind PersistentVolumeClaim + def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_persistent_volume_claim_for_all_namespaces # noqa: E501 + + list or watch objects of kind PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_persistent_volume_claim_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13531,44 +13998,46 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_persistent_volume_claim_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13577,40 +14046,39 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumeclaims', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaimList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumeclaims', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaimList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_pod_for_all_namespaces # noqa: E501 + + list or watch objects of kind Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13625,20 +14093,22 @@ def list_pod_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Pod + def list_pod_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_for_all_namespaces # noqa: E501 + + list or watch objects of kind Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13652,44 +14122,46 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13698,40 +14170,39 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/pods', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_template_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/pods', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_template_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_pod_template_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_template_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13746,20 +14217,22 @@ def list_pod_template_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodTemplate + def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_template_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_template_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13773,44 +14246,46 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_template_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13819,40 +14294,39 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/podtemplates', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplateList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_replication_controller_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/podtemplates', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplateList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_replication_controller_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_replication_controller_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replication_controller_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13867,20 +14341,22 @@ def list_replication_controller_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) + return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ReplicationController + def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_replication_controller_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replication_controller_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13894,44 +14370,46 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_replication_controller_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13940,40 +14418,39 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/replicationcontrollers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationControllerList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_resource_quota_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/replicationcontrollers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationControllerList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_resource_quota_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_resource_quota_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_resource_quota_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -13988,20 +14465,22 @@ def list_resource_quota_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) + return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ResourceQuota + def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_resource_quota_for_all_namespaces # noqa: E501 + + list or watch objects of kind ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_resource_quota_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14015,44 +14494,46 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_resource_quota_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14061,40 +14542,39 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/resourcequotas', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuotaList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_secret_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/resourcequotas', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuotaList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_secret_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_secret_for_all_namespaces # noqa: E501 + + list or watch objects of kind Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_secret_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14109,20 +14589,22 @@ def list_secret_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_secret_for_all_namespaces_with_http_info(**kwargs) + return self.list_secret_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_secret_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_secret_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_secret_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Secret + def list_secret_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_secret_for_all_namespaces # noqa: E501 + + list or watch objects of kind Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_secret_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14136,44 +14618,46 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_secret_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14182,40 +14666,39 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/secrets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1SecretList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_service_account_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/secrets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SecretList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_service_account_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_service_account_for_all_namespaces # noqa: E501 + + list or watch objects of kind ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_service_account_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14230,20 +14713,22 @@ def list_service_account_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) + return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_service_account_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_service_account_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ServiceAccount + def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_service_account_for_all_namespaces # noqa: E501 + + list or watch objects of kind ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_service_account_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14257,44 +14742,46 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_service_account_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14303,40 +14790,39 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/serviceaccounts', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccountList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_service_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/serviceaccounts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccountList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_service_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_service_for_all_namespaces # noqa: E501 + + list or watch objects of kind Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_service_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14351,20 +14837,22 @@ def list_service_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_service_for_all_namespaces_with_http_info(**kwargs) + return self.list_service_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_service_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_service_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_service_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Service + def list_service_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_service_for_all_namespaces # noqa: E501 + + list or watch objects of kind Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_service_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -14378,44 +14866,46 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_service_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14424,34 +14914,32 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/services', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespace(self, name, body, **kwargs): - """ - partially update the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/services', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespace(self, name, body, **kwargs): # noqa: E501 + """patch_namespace # noqa: E501 + + partially update the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespace(name, body, async_req=True) @@ -14459,7 +14947,7 @@ def patch_namespace(self, name, body, **kwargs): :param async_req bool :param str name: name of the Namespace (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14470,14 +14958,15 @@ def patch_namespace(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespace_with_http_info(name, body, **kwargs) + return self.patch_namespace_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespace_with_http_info(name, body, **kwargs) + (data) = self.patch_namespace_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_namespace_with_http_info(self, name, body, **kwargs): - """ - partially update the specified Namespace + def patch_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_namespace # noqa: E501 + + partially update the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespace_with_http_info(name, body, async_req=True) @@ -14485,7 +14974,7 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the Namespace (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14495,44 +14984,46 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespace" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespace`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespace`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -14540,37 +15031,39 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespace_status(self, name, body, **kwargs): - """ - partially update status of the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespace_status(self, name, body, **kwargs): # noqa: E501 + """patch_namespace_status # noqa: E501 + + partially update status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespace_status(name, body, async_req=True) @@ -14578,7 +15071,7 @@ def patch_namespace_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the Namespace (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14589,14 +15082,15 @@ def patch_namespace_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespace_status_with_http_info(name, body, **kwargs) + return self.patch_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespace_status_with_http_info(name, body, **kwargs) + (data) = self.patch_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_namespace_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified Namespace + def patch_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_namespace_status # noqa: E501 + + partially update status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespace_status_with_http_info(name, body, async_req=True) @@ -14604,7 +15098,7 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the Namespace (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14614,44 +15108,46 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespace_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespace_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespace_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -14659,37 +15155,39 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_config_map(self, name, namespace, body, **kwargs): - """ - partially update the specified ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_config_map(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_config_map # noqa: E501 + + partially update the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_config_map(name, namespace, body, async_req=True) @@ -14698,7 +15196,7 @@ def patch_namespaced_config_map(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14709,14 +15207,15 @@ def patch_namespaced_config_map(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ConfigMap + def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_config_map # noqa: E501 + + partially update the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_config_map_with_http_info(name, namespace, body, async_req=True) @@ -14725,7 +15224,7 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14735,49 +15234,52 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -14785,37 +15287,39 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMap', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): - """ - partially update the specified Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_endpoints # noqa: E501 + + partially update the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_endpoints(name, namespace, body, async_req=True) @@ -14824,7 +15328,7 @@ def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14835,14 +15339,15 @@ def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Endpoints + def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_endpoints # noqa: E501 + + partially update the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_endpoints_with_http_info(name, namespace, body, async_req=True) @@ -14851,7 +15356,7 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa :param async_req bool :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14861,49 +15366,52 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -14911,37 +15419,39 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Endpoints', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_event(self, name, namespace, body, **kwargs): - """ - partially update the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_event # noqa: E501 + + partially update the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_event(name, namespace, body, async_req=True) @@ -14950,7 +15460,7 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14961,14 +15471,15 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Event + def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_event # noqa: E501 + + partially update the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, async_req=True) @@ -14977,7 +15488,7 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) :param async_req bool :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -14987,49 +15498,52 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15037,37 +15551,39 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): - """ - partially update the specified LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_limit_range # noqa: E501 + + partially update the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_limit_range(name, namespace, body, async_req=True) @@ -15076,7 +15592,7 @@ def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15087,14 +15603,15 @@ def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified LimitRange + def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_limit_range # noqa: E501 + + partially update the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_limit_range_with_http_info(name, namespace, body, async_req=True) @@ -15103,7 +15620,7 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k :param async_req bool :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15113,49 +15630,52 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15163,37 +15683,39 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRange', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): - """ - partially update the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_persistent_volume_claim # noqa: E501 + + partially update the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_persistent_volume_claim(name, namespace, body, async_req=True) @@ -15202,7 +15724,7 @@ def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwar :param async_req bool :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15213,14 +15735,15 @@ def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified PersistentVolumeClaim + def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_persistent_volume_claim # noqa: E501 + + partially update the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, async_req=True) @@ -15229,7 +15752,7 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac :param async_req bool :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15239,49 +15762,52 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15289,37 +15815,39 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_persistent_volume_claim_status # noqa: E501 + + partially update status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_persistent_volume_claim_status(name, namespace, body, async_req=True) @@ -15328,7 +15856,7 @@ def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, :param async_req bool :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15339,14 +15867,15 @@ def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified PersistentVolumeClaim + def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_persistent_volume_claim_status # noqa: E501 + + partially update status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, async_req=True) @@ -15355,7 +15884,7 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n :param async_req bool :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15365,49 +15894,52 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_persistent_volume_claim_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15415,37 +15947,39 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod(self, name, namespace, body, **kwargs): - """ - partially update the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod # noqa: E501 + + partially update the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod(name, namespace, body, async_req=True) @@ -15454,7 +15988,7 @@ def patch_namespaced_pod(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15465,14 +15999,15 @@ def patch_namespaced_pod(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Pod + def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod # noqa: E501 + + partially update the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_with_http_info(name, namespace, body, async_req=True) @@ -15481,7 +16016,7 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15491,49 +16026,52 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15541,37 +16079,39 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_status # noqa: E501 + + partially update status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_status(name, namespace, body, async_req=True) @@ -15580,7 +16120,7 @@ def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15591,14 +16131,15 @@ def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Pod + def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_status # noqa: E501 + + partially update status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_status_with_http_info(name, namespace, body, async_req=True) @@ -15607,7 +16148,7 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15617,49 +16158,52 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15667,37 +16211,39 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): - """ - partially update the specified PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_template # noqa: E501 + + partially update the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_template(name, namespace, body, async_req=True) @@ -15706,7 +16252,7 @@ def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15717,14 +16263,15 @@ def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified PodTemplate + def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_template # noqa: E501 + + partially update the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_template_with_http_info(name, namespace, body, async_req=True) @@ -15733,7 +16280,7 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15743,49 +16290,52 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15793,37 +16343,39 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplate', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replication_controller(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replication_controller(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller # noqa: E501 + + partially update the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller(name, namespace, body, async_req=True) @@ -15832,7 +16384,7 @@ def patch_namespaced_replication_controller(self, name, namespace, body, **kwarg :param async_req bool :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15843,14 +16395,15 @@ def patch_namespaced_replication_controller(self, name, namespace, body, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicationController + def patch_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller # noqa: E501 + + partially update the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_with_http_info(name, namespace, body, async_req=True) @@ -15859,7 +16412,7 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace :param async_req bool :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15869,49 +16422,52 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15919,37 +16475,39 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replication_controller_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replication_controller_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_scale # noqa: E501 + + partially update scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_scale(name, namespace, body, async_req=True) @@ -15958,7 +16516,7 @@ def patch_namespaced_replication_controller_scale(self, name, namespace, body, * :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15969,14 +16527,15 @@ def patch_namespaced_replication_controller_scale(self, name, namespace, body, * """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicationController + def patch_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_scale # noqa: E501 + + partially update scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, async_req=True) @@ -15985,7 +16544,7 @@ def patch_namespaced_replication_controller_scale_with_http_info(self, name, nam :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -15995,49 +16554,52 @@ def patch_namespaced_replication_controller_scale_with_http_info(self, name, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16045,37 +16607,39 @@ def patch_namespaced_replication_controller_scale_with_http_info(self, name, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_status # noqa: E501 + + partially update status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_status(name, namespace, body, async_req=True) @@ -16084,7 +16648,7 @@ def patch_namespaced_replication_controller_status(self, name, namespace, body, :param async_req bool :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16095,14 +16659,15 @@ def patch_namespaced_replication_controller_status(self, name, namespace, body, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicationController + def patch_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_status # noqa: E501 + + partially update status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, async_req=True) @@ -16111,7 +16676,7 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na :param async_req bool :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16121,49 +16686,52 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16171,37 +16739,39 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): - """ - partially update the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_quota # noqa: E501 + + partially update the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_resource_quota(name, namespace, body, async_req=True) @@ -16210,7 +16780,7 @@ def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16221,14 +16791,15 @@ def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ResourceQuota + def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_quota # noqa: E501 + + partially update the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_resource_quota_with_http_info(name, namespace, body, async_req=True) @@ -16237,7 +16808,7 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16247,49 +16818,52 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16297,37 +16871,39 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_quota_status # noqa: E501 + + partially update status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_resource_quota_status(name, namespace, body, async_req=True) @@ -16336,7 +16912,7 @@ def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs :param async_req bool :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16347,14 +16923,15 @@ def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ResourceQuota + def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_resource_quota_status # noqa: E501 + + partially update status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, async_req=True) @@ -16363,7 +16940,7 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, :param async_req bool :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16373,49 +16950,52 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_resource_quota_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16423,37 +17003,39 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_secret(self, name, namespace, body, **kwargs): - """ - partially update the specified Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_secret(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_secret # noqa: E501 + + partially update the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_secret(name, namespace, body, async_req=True) @@ -16462,7 +17044,7 @@ def patch_namespaced_secret(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16473,14 +17055,15 @@ def patch_namespaced_secret(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Secret + def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_secret # noqa: E501 + + partially update the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_secret_with_http_info(name, namespace, body, async_req=True) @@ -16489,7 +17072,7 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs :param async_req bool :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16499,49 +17082,52 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16549,37 +17135,39 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Secret', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_service(self, name, namespace, body, **kwargs): - """ - partially update the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_service(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service # noqa: E501 + + partially update the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service(name, namespace, body, async_req=True) @@ -16588,7 +17176,7 @@ def patch_namespaced_service(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16599,14 +17187,15 @@ def patch_namespaced_service(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Service + def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service # noqa: E501 + + partially update the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service_with_http_info(name, namespace, body, async_req=True) @@ -16615,7 +17204,7 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg :param async_req bool :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16625,49 +17214,52 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16675,37 +17267,39 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_service_account(self, name, namespace, body, **kwargs): - """ - partially update the specified ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_service_account(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service_account # noqa: E501 + + partially update the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service_account(name, namespace, body, async_req=True) @@ -16714,7 +17308,7 @@ def patch_namespaced_service_account(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16725,14 +17319,15 @@ def patch_namespaced_service_account(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ServiceAccount + def patch_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service_account # noqa: E501 + + partially update the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service_account_with_http_info(name, namespace, body, async_req=True) @@ -16741,7 +17336,7 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16751,49 +17346,52 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16801,37 +17399,39 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccount', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_service_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_service_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service_status # noqa: E501 + + partially update status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service_status(name, namespace, body, async_req=True) @@ -16840,7 +17440,7 @@ def patch_namespaced_service_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16851,14 +17451,15 @@ def patch_namespaced_service_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Service + def patch_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_service_status # noqa: E501 + + partially update status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_service_status_with_http_info(name, namespace, body, async_req=True) @@ -16867,7 +17468,7 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16877,49 +17478,52 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16927,37 +17531,39 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_node(self, name, body, **kwargs): - """ - partially update the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_node(self, name, body, **kwargs): # noqa: E501 + """patch_node # noqa: E501 + + partially update the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_node(name, body, async_req=True) @@ -16965,7 +17571,7 @@ def patch_node(self, name, body, **kwargs): :param async_req bool :param str name: name of the Node (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -16976,14 +17582,15 @@ def patch_node(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_node_with_http_info(name, body, **kwargs) + return self.patch_node_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_node_with_http_info(name, body, **kwargs) + (data) = self.patch_node_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_node_with_http_info(self, name, body, **kwargs): - """ - partially update the specified Node + def patch_node_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_node # noqa: E501 + + partially update the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_node_with_http_info(name, body, async_req=True) @@ -16991,7 +17598,7 @@ def patch_node_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the Node (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17001,44 +17608,46 @@ def patch_node_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17046,37 +17655,39 @@ def patch_node_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_node_status(self, name, body, **kwargs): - """ - partially update status of the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_node_status(self, name, body, **kwargs): # noqa: E501 + """patch_node_status # noqa: E501 + + partially update status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_node_status(name, body, async_req=True) @@ -17084,7 +17695,7 @@ def patch_node_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the Node (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17095,14 +17706,15 @@ def patch_node_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_node_status_with_http_info(name, body, **kwargs) + return self.patch_node_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_node_status_with_http_info(name, body, **kwargs) + (data) = self.patch_node_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_node_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified Node + def patch_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_node_status # noqa: E501 + + partially update status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_node_status_with_http_info(name, body, async_req=True) @@ -17110,7 +17722,7 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the Node (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17120,44 +17732,46 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_node_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_node_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_node_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17165,37 +17779,39 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_persistent_volume(self, name, body, **kwargs): - """ - partially update the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_persistent_volume(self, name, body, **kwargs): # noqa: E501 + """patch_persistent_volume # noqa: E501 + + partially update the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_persistent_volume(name, body, async_req=True) @@ -17203,7 +17819,7 @@ def patch_persistent_volume(self, name, body, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17214,14 +17830,15 @@ def patch_persistent_volume(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_persistent_volume_with_http_info(name, body, **kwargs) + return self.patch_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_persistent_volume_with_http_info(name, body, **kwargs) + (data) = self.patch_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_persistent_volume_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PersistentVolume + def patch_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_persistent_volume # noqa: E501 + + partially update the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_persistent_volume_with_http_info(name, body, async_req=True) @@ -17229,7 +17846,7 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17239,44 +17856,46 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_persistent_volume" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17284,37 +17903,39 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_persistent_volume_status(self, name, body, **kwargs): - """ - partially update status of the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_persistent_volume_status(self, name, body, **kwargs): # noqa: E501 + """patch_persistent_volume_status # noqa: E501 + + partially update status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_persistent_volume_status(name, body, async_req=True) @@ -17322,7 +17943,7 @@ def patch_persistent_volume_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17333,14 +17954,15 @@ def patch_persistent_volume_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) + return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) + (data) = self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified PersistentVolume + def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_persistent_volume_status # noqa: E501 + + partially update status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_persistent_volume_status_with_http_info(name, body, async_req=True) @@ -17348,7 +17970,7 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PersistentVolume (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -17358,44 +17980,46 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_persistent_volume_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17403,37 +18027,39 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_component_status(self, name, **kwargs): - """ - read the specified ComponentStatus + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_component_status(self, name, **kwargs): # noqa: E501 + """read_component_status # noqa: E501 + + read the specified ComponentStatus # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_component_status(name, async_req=True) @@ -17448,14 +18074,15 @@ def read_component_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_component_status_with_http_info(name, **kwargs) + return self.read_component_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_component_status_with_http_info(name, **kwargs) + (data) = self.read_component_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_component_status_with_http_info(self, name, **kwargs): - """ - read the specified ComponentStatus + def read_component_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_component_status # noqa: E501 + + read the specified ComponentStatus # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_component_status_with_http_info(name, async_req=True) @@ -17469,35 +18096,36 @@ def read_component_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_component_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_component_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_component_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -17506,34 +18134,32 @@ def read_component_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/componentstatuses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ComponentStatus', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespace(self, name, **kwargs): - """ - read the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/componentstatuses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ComponentStatus', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespace(self, name, **kwargs): # noqa: E501 + """read_namespace # noqa: E501 + + read the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespace(name, async_req=True) @@ -17550,14 +18176,15 @@ def read_namespace(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespace_with_http_info(name, **kwargs) + return self.read_namespace_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_namespace_with_http_info(name, **kwargs) + (data) = self.read_namespace_with_http_info(name, **kwargs) # noqa: E501 return data - def read_namespace_with_http_info(self, name, **kwargs): - """ - read the specified Namespace + def read_namespace_with_http_info(self, name, **kwargs): # noqa: E501 + """read_namespace # noqa: E501 + + read the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespace_with_http_info(name, async_req=True) @@ -17573,39 +18200,40 @@ def read_namespace_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespace" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespace`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespace`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -17614,34 +18242,32 @@ def read_namespace_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespace_status(self, name, **kwargs): - """ - read status of the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespace_status(self, name, **kwargs): # noqa: E501 + """read_namespace_status # noqa: E501 + + read status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespace_status(name, async_req=True) @@ -17656,14 +18282,15 @@ def read_namespace_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespace_status_with_http_info(name, **kwargs) + return self.read_namespace_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_namespace_status_with_http_info(name, **kwargs) + (data) = self.read_namespace_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_namespace_status_with_http_info(self, name, **kwargs): - """ - read status of the specified Namespace + def read_namespace_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_namespace_status # noqa: E501 + + read status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespace_status_with_http_info(name, async_req=True) @@ -17677,35 +18304,36 @@ def read_namespace_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespace_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespace_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespace_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -17714,34 +18342,32 @@ def read_namespace_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_config_map(self, name, namespace, **kwargs): - """ - read the specified ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_config_map # noqa: E501 + + read the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_config_map(name, namespace, async_req=True) @@ -17759,14 +18385,15 @@ def read_namespaced_config_map(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ConfigMap + def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_config_map # noqa: E501 + + read the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_config_map_with_http_info(name, namespace, async_req=True) @@ -17783,44 +18410,46 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -17829,34 +18458,32 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMap', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_endpoints(self, name, namespace, **kwargs): - """ - read the specified Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_endpoints(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_endpoints # noqa: E501 + + read the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_endpoints(name, namespace, async_req=True) @@ -17874,14 +18501,15 @@ def read_namespaced_endpoints(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Endpoints + def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_endpoints # noqa: E501 + + read the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_endpoints_with_http_info(name, namespace, async_req=True) @@ -17898,44 +18526,46 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -17944,34 +18574,32 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Endpoints', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_event(self, name, namespace, **kwargs): - """ - read the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_event # noqa: E501 + + read the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_event(name, namespace, async_req=True) @@ -17989,14 +18617,15 @@ def read_namespaced_event(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Event + def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_event # noqa: E501 + + read the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_event_with_http_info(name, namespace, async_req=True) @@ -18013,44 +18642,46 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18059,34 +18690,32 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_limit_range(self, name, namespace, **kwargs): - """ - read the specified LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_limit_range(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_limit_range # noqa: E501 + + read the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_limit_range(name, namespace, async_req=True) @@ -18104,14 +18733,15 @@ def read_namespaced_limit_range(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): - """ - read the specified LimitRange + def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_limit_range # noqa: E501 + + read the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_limit_range_with_http_info(name, namespace, async_req=True) @@ -18128,44 +18758,46 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18174,34 +18806,32 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRange', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): - """ - read the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_persistent_volume_claim # noqa: E501 + + read the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_persistent_volume_claim(name, namespace, async_req=True) @@ -18219,14 +18849,15 @@ def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): - """ - read the specified PersistentVolumeClaim + def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_persistent_volume_claim # noqa: E501 + + read the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, async_req=True) @@ -18243,44 +18874,46 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18289,34 +18922,32 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_persistent_volume_claim_status(self, name, namespace, **kwargs): - """ - read status of the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_persistent_volume_claim_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_persistent_volume_claim_status # noqa: E501 + + read status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_persistent_volume_claim_status(name, namespace, async_req=True) @@ -18332,14 +18963,15 @@ def read_namespaced_persistent_volume_claim_status(self, name, namespace, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified PersistentVolumeClaim + def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_persistent_volume_claim_status # noqa: E501 + + read status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, async_req=True) @@ -18354,40 +18986,42 @@ def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, na returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_persistent_volume_claim_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -18396,34 +19030,32 @@ def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, na body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod(self, name, namespace, **kwargs): - """ - read the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod # noqa: E501 + + read the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod(name, namespace, async_req=True) @@ -18441,14 +19073,15 @@ def read_namespaced_pod(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Pod + def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod # noqa: E501 + + read the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_with_http_info(name, namespace, async_req=True) @@ -18465,44 +19098,46 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18511,34 +19146,32 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_log(self, name, namespace, **kwargs): - """ - read log of the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_log(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_log # noqa: E501 + + read log of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_log(name, namespace, async_req=True) @@ -18561,14 +19194,15 @@ def read_namespaced_pod_log(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): - """ - read log of the specified Pod + def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_log # noqa: E501 + + read log of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_log_with_http_info(name, namespace, async_req=True) @@ -18590,54 +19224,56 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'tail_lines', 'timestamps'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'tail_lines', 'timestamps'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_log" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in params: - query_params.append(('container', params['container'])) - if 'follow' in params: - query_params.append(('follow', params['follow'])) - if 'limit_bytes' in params: - query_params.append(('limitBytes', params['limit_bytes'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'previous' in params: - query_params.append(('previous', params['previous'])) - if 'since_seconds' in params: - query_params.append(('sinceSeconds', params['since_seconds'])) - if 'tail_lines' in params: - query_params.append(('tailLines', params['tail_lines'])) - if 'timestamps' in params: - query_params.append(('timestamps', params['timestamps'])) + if 'container' in local_var_params: + query_params.append(('container', local_var_params['container'])) # noqa: E501 + if 'follow' in local_var_params: + query_params.append(('follow', local_var_params['follow'])) # noqa: E501 + if 'limit_bytes' in local_var_params: + query_params.append(('limitBytes', local_var_params['limit_bytes'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'previous' in local_var_params: + query_params.append(('previous', local_var_params['previous'])) # noqa: E501 + if 'since_seconds' in local_var_params: + query_params.append(('sinceSeconds', local_var_params['since_seconds'])) # noqa: E501 + if 'tail_lines' in local_var_params: + query_params.append(('tailLines', local_var_params['tail_lines'])) # noqa: E501 + if 'timestamps' in local_var_params: + query_params.append(('timestamps', local_var_params['timestamps'])) # noqa: E501 header_params = {} @@ -18646,34 +19282,32 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['text/plain', 'application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/log', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_status(self, name, namespace, **kwargs): - """ - read status of the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/log', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_status # noqa: E501 + + read status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_status(name, namespace, async_req=True) @@ -18689,14 +19323,15 @@ def read_namespaced_pod_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Pod + def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_status # noqa: E501 + + read status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_status_with_http_info(name, namespace, async_req=True) @@ -18711,40 +19346,42 @@ def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -18753,34 +19390,32 @@ def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_template(self, name, namespace, **kwargs): - """ - read the specified PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_template(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_template # noqa: E501 + + read the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_template(name, namespace, async_req=True) @@ -18798,14 +19433,15 @@ def read_namespaced_pod_template(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): - """ - read the specified PodTemplate + def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_template # noqa: E501 + + read the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_template_with_http_info(name, namespace, async_req=True) @@ -18822,44 +19458,46 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18868,34 +19506,32 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplate', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replication_controller(self, name, namespace, **kwargs): - """ - read the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replication_controller(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller # noqa: E501 + + read the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller(name, namespace, async_req=True) @@ -18913,14 +19549,15 @@ def read_namespaced_replication_controller(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ReplicationController + def read_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller # noqa: E501 + + read the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_with_http_info(name, namespace, async_req=True) @@ -18937,44 +19574,46 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18983,34 +19622,32 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replication_controller_scale(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replication_controller_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_scale # noqa: E501 + + read scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_scale(name, namespace, async_req=True) @@ -19026,14 +19663,15 @@ def read_namespaced_replication_controller_scale(self, name, namespace, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replication_controller_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicationController + def read_namespaced_replication_controller_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_scale # noqa: E501 + + read scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_scale_with_http_info(name, namespace, async_req=True) @@ -19048,40 +19686,42 @@ def read_namespaced_replication_controller_scale_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19090,34 +19730,32 @@ def read_namespaced_replication_controller_scale_with_http_info(self, name, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replication_controller_status(self, name, namespace, **kwargs): - """ - read status of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replication_controller_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_status # noqa: E501 + + read status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_status(name, namespace, async_req=True) @@ -19133,14 +19771,15 @@ def read_namespaced_replication_controller_status(self, name, namespace, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replication_controller_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified ReplicationController + def read_namespaced_replication_controller_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_status # noqa: E501 + + read status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_status_with_http_info(name, namespace, async_req=True) @@ -19155,40 +19794,42 @@ def read_namespaced_replication_controller_status_with_http_info(self, name, nam returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19197,34 +19838,32 @@ def read_namespaced_replication_controller_status_with_http_info(self, name, nam body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_resource_quota(self, name, namespace, **kwargs): - """ - read the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_resource_quota(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_quota # noqa: E501 + + read the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_resource_quota(name, namespace, async_req=True) @@ -19242,14 +19881,15 @@ def read_namespaced_resource_quota(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ResourceQuota + def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_quota # noqa: E501 + + read the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_resource_quota_with_http_info(name, namespace, async_req=True) @@ -19266,44 +19906,46 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19312,34 +19954,32 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_resource_quota_status(self, name, namespace, **kwargs): - """ - read status of the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_resource_quota_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_quota_status # noqa: E501 + + read status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_resource_quota_status(name, namespace, async_req=True) @@ -19355,14 +19995,15 @@ def read_namespaced_resource_quota_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified ResourceQuota + def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_resource_quota_status # noqa: E501 + + read status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_resource_quota_status_with_http_info(name, namespace, async_req=True) @@ -19377,40 +20018,42 @@ def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_resource_quota_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19419,34 +20062,32 @@ def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_secret(self, name, namespace, **kwargs): - """ - read the specified Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_secret(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_secret # noqa: E501 + + read the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_secret(name, namespace, async_req=True) @@ -19464,14 +20105,15 @@ def read_namespaced_secret(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Secret + def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_secret # noqa: E501 + + read the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_secret_with_http_info(name, namespace, async_req=True) @@ -19488,44 +20130,46 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19534,34 +20178,32 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Secret', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_service(self, name, namespace, **kwargs): - """ - read the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_service(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service # noqa: E501 + + read the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service(name, namespace, async_req=True) @@ -19579,14 +20221,15 @@ def read_namespaced_service(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_service_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_service_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Service + def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service # noqa: E501 + + read the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service_with_http_info(name, namespace, async_req=True) @@ -19603,44 +20246,46 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19649,34 +20294,32 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_service_account(self, name, namespace, **kwargs): - """ - read the specified ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_service_account(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service_account # noqa: E501 + + read the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service_account(name, namespace, async_req=True) @@ -19694,14 +20337,15 @@ def read_namespaced_service_account(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ServiceAccount + def read_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service_account # noqa: E501 + + read the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service_account_with_http_info(name, namespace, async_req=True) @@ -19718,44 +20362,46 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19764,34 +20410,32 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccount', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_service_status(self, name, namespace, **kwargs): - """ - read status of the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_service_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service_status # noqa: E501 + + read status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service_status(name, namespace, async_req=True) @@ -19807,14 +20451,15 @@ def read_namespaced_service_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_service_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Service + def read_namespaced_service_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_service_status # noqa: E501 + + read status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_service_status_with_http_info(name, namespace, async_req=True) @@ -19829,40 +20474,42 @@ def read_namespaced_service_status_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19871,34 +20518,32 @@ def read_namespaced_service_status_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_node(self, name, **kwargs): - """ - read the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_node(self, name, **kwargs): # noqa: E501 + """read_node # noqa: E501 + + read the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_node(name, async_req=True) @@ -19915,14 +20560,15 @@ def read_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_node_with_http_info(name, **kwargs) + return self.read_node_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_node_with_http_info(name, **kwargs) + (data) = self.read_node_with_http_info(name, **kwargs) # noqa: E501 return data - def read_node_with_http_info(self, name, **kwargs): - """ - read the specified Node + def read_node_with_http_info(self, name, **kwargs): # noqa: E501 + """read_node # noqa: E501 + + read the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_node_with_http_info(name, async_req=True) @@ -19938,39 +20584,40 @@ def read_node_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_node`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19979,34 +20626,32 @@ def read_node_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_node_status(self, name, **kwargs): - """ - read status of the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_node_status(self, name, **kwargs): # noqa: E501 + """read_node_status # noqa: E501 + + read status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_node_status(name, async_req=True) @@ -20021,14 +20666,15 @@ def read_node_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_node_status_with_http_info(name, **kwargs) + return self.read_node_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_node_status_with_http_info(name, **kwargs) + (data) = self.read_node_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_node_status_with_http_info(self, name, **kwargs): - """ - read status of the specified Node + def read_node_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_node_status # noqa: E501 + + read status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_node_status_with_http_info(name, async_req=True) @@ -20042,35 +20688,36 @@ def read_node_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_node_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_node_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_node_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20079,34 +20726,32 @@ def read_node_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_persistent_volume(self, name, **kwargs): - """ - read the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_persistent_volume(self, name, **kwargs): # noqa: E501 + """read_persistent_volume # noqa: E501 + + read the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_persistent_volume(name, async_req=True) @@ -20123,14 +20768,15 @@ def read_persistent_volume(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_persistent_volume_with_http_info(name, **kwargs) + return self.read_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_persistent_volume_with_http_info(name, **kwargs) + (data) = self.read_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 return data - def read_persistent_volume_with_http_info(self, name, **kwargs): - """ - read the specified PersistentVolume + def read_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 + """read_persistent_volume # noqa: E501 + + read the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_persistent_volume_with_http_info(name, async_req=True) @@ -20146,39 +20792,40 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_persistent_volume" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20187,34 +20834,32 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_persistent_volume_status(self, name, **kwargs): - """ - read status of the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_persistent_volume_status(self, name, **kwargs): # noqa: E501 + """read_persistent_volume_status # noqa: E501 + + read status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_persistent_volume_status(name, async_req=True) @@ -20229,14 +20874,15 @@ def read_persistent_volume_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_persistent_volume_status_with_http_info(name, **kwargs) + return self.read_persistent_volume_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_persistent_volume_status_with_http_info(name, **kwargs) + (data) = self.read_persistent_volume_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_persistent_volume_status_with_http_info(self, name, **kwargs): - """ - read status of the specified PersistentVolume + def read_persistent_volume_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_persistent_volume_status # noqa: E501 + + read status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_persistent_volume_status_with_http_info(name, async_req=True) @@ -20250,35 +20896,36 @@ def read_persistent_volume_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_persistent_volume_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20287,34 +20934,32 @@ def read_persistent_volume_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespace(self, name, body, **kwargs): - """ - replace the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespace(self, name, body, **kwargs): # noqa: E501 + """replace_namespace # noqa: E501 + + replace the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace(name, body, async_req=True) @@ -20332,14 +20977,15 @@ def replace_namespace(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespace_with_http_info(name, body, **kwargs) + return self.replace_namespace_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespace_with_http_info(name, body, **kwargs) + (data) = self.replace_namespace_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_namespace_with_http_info(self, name, body, **kwargs): - """ - replace the specified Namespace + def replace_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_namespace # noqa: E501 + + replace the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace_with_http_info(name, body, async_req=True) @@ -20356,42 +21002,44 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespace`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespace`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -20399,37 +21047,35 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespace_finalize(self, name, body, **kwargs): - """ - replace finalize of the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespace_finalize(self, name, body, **kwargs): # noqa: E501 + """replace_namespace_finalize # noqa: E501 + + replace finalize of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace_finalize(name, body, async_req=True) @@ -20447,14 +21093,15 @@ def replace_namespace_finalize(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) + return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespace_finalize_with_http_info(name, body, **kwargs) + (data) = self.replace_namespace_finalize_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): - """ - replace finalize of the specified Namespace + def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_namespace_finalize # noqa: E501 + + replace finalize of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace_finalize_with_http_info(name, body, async_req=True) @@ -20471,42 +21118,44 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace_finalize" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace_finalize`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespace_finalize`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20514,37 +21163,35 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}/finalize', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespace_status(self, name, body, **kwargs): - """ - replace status of the specified Namespace + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}/finalize', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespace_status(self, name, body, **kwargs): # noqa: E501 + """replace_namespace_status # noqa: E501 + + replace status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace_status(name, body, async_req=True) @@ -20562,14 +21209,15 @@ def replace_namespace_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespace_status_with_http_info(name, body, **kwargs) + return self.replace_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespace_status_with_http_info(name, body, **kwargs) + (data) = self.replace_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_namespace_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified Namespace + def replace_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_namespace_status # noqa: E501 + + replace status of the specified Namespace # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespace_status_with_http_info(name, body, async_req=True) @@ -20586,42 +21234,44 @@ def replace_namespace_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespace_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespace_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -20629,37 +21279,35 @@ def replace_namespace_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Namespace', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_config_map(self, name, namespace, body, **kwargs): - """ - replace the specified ConfigMap + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_config_map(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_config_map # noqa: E501 + + replace the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_config_map(name, namespace, body, async_req=True) @@ -20678,14 +21326,15 @@ def replace_namespaced_config_map(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ConfigMap + def replace_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_config_map # noqa: E501 + + replace the specified ConfigMap # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_config_map_with_http_info(name, namespace, body, async_req=True) @@ -20703,47 +21352,50 @@ def replace_namespaced_config_map_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_config_map" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -20751,37 +21403,35 @@ def replace_namespaced_config_map_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/configmaps/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ConfigMap', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_endpoints(self, name, namespace, body, **kwargs): - """ - replace the specified Endpoints + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/configmaps/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ConfigMap', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_endpoints(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_endpoints # noqa: E501 + + replace the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_endpoints(name, namespace, body, async_req=True) @@ -20800,14 +21450,15 @@ def replace_namespaced_endpoints(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Endpoints + def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_endpoints # noqa: E501 + + replace the specified Endpoints # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_endpoints_with_http_info(name, namespace, body, async_req=True) @@ -20825,47 +21476,50 @@ def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **k returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_endpoints" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -20873,37 +21527,35 @@ def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/endpoints/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Endpoints', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_event(self, name, namespace, body, **kwargs): - """ - replace the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/endpoints/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Endpoints', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_event # noqa: E501 + + replace the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_event(name, namespace, body, async_req=True) @@ -20922,14 +21574,15 @@ def replace_namespaced_event(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Event + def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_event # noqa: E501 + + replace the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_event_with_http_info(name, namespace, body, async_req=True) @@ -20947,47 +21600,50 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -20995,37 +21651,35 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/events/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_limit_range(self, name, namespace, body, **kwargs): - """ - replace the specified LimitRange + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/events/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_limit_range(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_limit_range # noqa: E501 + + replace the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_limit_range(name, namespace, body, async_req=True) @@ -21044,14 +21698,15 @@ def replace_namespaced_limit_range(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified LimitRange + def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_limit_range # noqa: E501 + + replace the specified LimitRange # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_limit_range_with_http_info(name, namespace, body, async_req=True) @@ -21069,47 +21724,50 @@ def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, * returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_limit_range" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21117,37 +21775,35 @@ def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/limitranges/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1LimitRange', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): - """ - replace the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/limitranges/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LimitRange', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_persistent_volume_claim(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_persistent_volume_claim # noqa: E501 + + replace the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_persistent_volume_claim(name, namespace, body, async_req=True) @@ -21166,14 +21822,15 @@ def replace_namespaced_persistent_volume_claim(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified PersistentVolumeClaim + def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_persistent_volume_claim # noqa: E501 + + replace the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, async_req=True) @@ -21191,47 +21848,50 @@ def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namesp returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_persistent_volume_claim" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21239,37 +21899,35 @@ def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified PersistentVolumeClaim + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_persistent_volume_claim_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_persistent_volume_claim_status # noqa: E501 + + replace status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_persistent_volume_claim_status(name, namespace, body, async_req=True) @@ -21288,14 +21946,15 @@ def replace_namespaced_persistent_volume_claim_status(self, name, namespace, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified PersistentVolumeClaim + def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_persistent_volume_claim_status # noqa: E501 + + replace status of the specified PersistentVolumeClaim # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, async_req=True) @@ -21313,47 +21972,50 @@ def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_persistent_volume_claim_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21361,37 +22023,35 @@ def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolumeClaim', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod(self, name, namespace, body, **kwargs): - """ - replace the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolumeClaim', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod # noqa: E501 + + replace the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod(name, namespace, body, async_req=True) @@ -21410,14 +22070,15 @@ def replace_namespaced_pod(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Pod + def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod # noqa: E501 + + replace the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_with_http_info(name, namespace, body, async_req=True) @@ -21435,47 +22096,50 @@ def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21483,37 +22147,35 @@ def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Pod + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_status # noqa: E501 + + replace status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_status(name, namespace, body, async_req=True) @@ -21532,14 +22194,15 @@ def replace_namespaced_pod_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Pod + def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_status # noqa: E501 + + replace status of the specified Pod # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_status_with_http_info(name, namespace, body, async_req=True) @@ -21557,47 +22220,50 @@ def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21605,37 +22271,35 @@ def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/pods/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Pod', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_template(self, name, namespace, body, **kwargs): - """ - replace the specified PodTemplate + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/pods/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Pod', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_template(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_template # noqa: E501 + + replace the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_template(name, namespace, body, async_req=True) @@ -21654,14 +22318,15 @@ def replace_namespaced_pod_template(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified PodTemplate + def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_template # noqa: E501 + + replace the specified PodTemplate # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_template_with_http_info(name, namespace, body, async_req=True) @@ -21679,47 +22344,50 @@ def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_template" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21727,37 +22395,35 @@ def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PodTemplate', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replication_controller(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/podtemplates/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PodTemplate', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replication_controller(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller # noqa: E501 + + replace the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller(name, namespace, body, async_req=True) @@ -21776,14 +22442,15 @@ def replace_namespaced_replication_controller(self, name, namespace, body, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicationController + def replace_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller # noqa: E501 + + replace the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_with_http_info(name, namespace, body, async_req=True) @@ -21801,47 +22468,50 @@ def replace_namespaced_replication_controller_with_http_info(self, name, namespa returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21849,37 +22519,35 @@ def replace_namespaced_replication_controller_with_http_info(self, name, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replication_controller_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replication_controller_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_scale # noqa: E501 + + replace scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_scale(name, namespace, body, async_req=True) @@ -21898,14 +22566,15 @@ def replace_namespaced_replication_controller_scale(self, name, namespace, body, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicationController + def replace_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_scale # noqa: E501 + + replace scale of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, async_req=True) @@ -21923,47 +22592,50 @@ def replace_namespaced_replication_controller_scale_with_http_info(self, name, n returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21971,37 +22643,35 @@ def replace_namespaced_replication_controller_scale_with_http_info(self, name, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicationController + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replication_controller_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_status # noqa: E501 + + replace status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_status(name, namespace, body, async_req=True) @@ -22020,14 +22690,15 @@ def replace_namespaced_replication_controller_status(self, name, namespace, body """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicationController + def replace_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_status # noqa: E501 + + replace status of the specified ReplicationController # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, async_req=True) @@ -22045,47 +22716,50 @@ def replace_namespaced_replication_controller_status_with_http_info(self, name, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22093,37 +22767,35 @@ def replace_namespaced_replication_controller_status_with_http_info(self, name, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ReplicationController', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_resource_quota(self, name, namespace, body, **kwargs): - """ - replace the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ReplicationController', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_resource_quota(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_quota # noqa: E501 + + replace the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_resource_quota(name, namespace, body, async_req=True) @@ -22142,14 +22814,15 @@ def replace_namespaced_resource_quota(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ResourceQuota + def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_quota # noqa: E501 + + replace the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_resource_quota_with_http_info(name, namespace, body, async_req=True) @@ -22167,47 +22840,50 @@ def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_resource_quota" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22215,37 +22891,35 @@ def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified ResourceQuota + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_resource_quota_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_quota_status # noqa: E501 + + replace status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_resource_quota_status(name, namespace, body, async_req=True) @@ -22264,14 +22938,15 @@ def replace_namespaced_resource_quota_status(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified ResourceQuota + def replace_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_resource_quota_status # noqa: E501 + + replace status of the specified ResourceQuota # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, async_req=True) @@ -22289,47 +22964,50 @@ def replace_namespaced_resource_quota_status_with_http_info(self, name, namespac returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_resource_quota_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22337,37 +23015,35 @@ def replace_namespaced_resource_quota_status_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ResourceQuota', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_secret(self, name, namespace, body, **kwargs): - """ - replace the specified Secret + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ResourceQuota', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_secret(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_secret # noqa: E501 + + replace the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_secret(name, namespace, body, async_req=True) @@ -22386,14 +23062,15 @@ def replace_namespaced_secret(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Secret + def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_secret # noqa: E501 + + replace the specified Secret # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_secret_with_http_info(name, namespace, body, async_req=True) @@ -22411,47 +23088,50 @@ def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwar returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_secret" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22459,37 +23139,35 @@ def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwar local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/secrets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Secret', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_service(self, name, namespace, body, **kwargs): - """ - replace the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/secrets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Secret', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_service(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service # noqa: E501 + + replace the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service(name, namespace, body, async_req=True) @@ -22508,14 +23186,15 @@ def replace_namespaced_service(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Service + def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service # noqa: E501 + + replace the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_with_http_info(name, namespace, body, async_req=True) @@ -22533,47 +23212,50 @@ def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22581,37 +23263,35 @@ def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_service_account(self, name, namespace, body, **kwargs): - """ - replace the specified ServiceAccount + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_service_account(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service_account # noqa: E501 + + replace the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_account(name, namespace, body, async_req=True) @@ -22630,14 +23310,15 @@ def replace_namespaced_service_account(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ServiceAccount + def replace_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service_account # noqa: E501 + + replace the specified ServiceAccount # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_account_with_http_info(name, namespace, body, async_req=True) @@ -22655,47 +23336,50 @@ def replace_namespaced_service_account_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service_account" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22703,37 +23387,35 @@ def replace_namespaced_service_account_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ServiceAccount', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_service_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Service + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/serviceaccounts/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ServiceAccount', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_service_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service_status # noqa: E501 + + replace status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_status(name, namespace, body, async_req=True) @@ -22752,14 +23434,15 @@ def replace_namespaced_service_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Service + def replace_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_service_status # noqa: E501 + + replace status of the specified Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_service_status_with_http_info(name, namespace, body, async_req=True) @@ -22777,47 +23460,50 @@ def replace_namespaced_service_status_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22825,37 +23511,35 @@ def replace_namespaced_service_status_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/namespaces/{namespace}/services/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Service', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_node(self, name, body, **kwargs): - """ - replace the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/namespaces/{namespace}/services/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Service', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_node(self, name, body, **kwargs): # noqa: E501 + """replace_node # noqa: E501 + + replace the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_node(name, body, async_req=True) @@ -22873,14 +23557,15 @@ def replace_node(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_node_with_http_info(name, body, **kwargs) + return self.replace_node_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_node_with_http_info(name, body, **kwargs) + (data) = self.replace_node_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_node_with_http_info(self, name, body, **kwargs): - """ - replace the specified Node + def replace_node_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_node # noqa: E501 + + replace the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_node_with_http_info(name, body, async_req=True) @@ -22897,42 +23582,44 @@ def replace_node_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_node`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22940,37 +23627,35 @@ def replace_node_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_node_status(self, name, body, **kwargs): - """ - replace status of the specified Node + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_node_status(self, name, body, **kwargs): # noqa: E501 + """replace_node_status # noqa: E501 + + replace status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_node_status(name, body, async_req=True) @@ -22988,14 +23673,15 @@ def replace_node_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_node_status_with_http_info(name, body, **kwargs) + return self.replace_node_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_node_status_with_http_info(name, body, **kwargs) + (data) = self.replace_node_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_node_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified Node + def replace_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_node_status # noqa: E501 + + replace status of the specified Node # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_node_status_with_http_info(name, body, async_req=True) @@ -23012,42 +23698,44 @@ def replace_node_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_node_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_node_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_node_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_node_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_node_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23055,37 +23743,35 @@ def replace_node_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/nodes/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Node', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_persistent_volume(self, name, body, **kwargs): - """ - replace the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/nodes/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Node', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_persistent_volume(self, name, body, **kwargs): # noqa: E501 + """replace_persistent_volume # noqa: E501 + + replace the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_persistent_volume(name, body, async_req=True) @@ -23103,14 +23789,15 @@ def replace_persistent_volume(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_persistent_volume_with_http_info(name, body, **kwargs) + return self.replace_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_persistent_volume_with_http_info(name, body, **kwargs) + (data) = self.replace_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_persistent_volume_with_http_info(self, name, body, **kwargs): - """ - replace the specified PersistentVolume + def replace_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_persistent_volume # noqa: E501 + + replace the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_persistent_volume_with_http_info(name, body, async_req=True) @@ -23127,42 +23814,44 @@ def replace_persistent_volume_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_persistent_volume" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23170,37 +23859,35 @@ def replace_persistent_volume_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_persistent_volume_status(self, name, body, **kwargs): - """ - replace status of the specified PersistentVolume + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_persistent_volume_status(self, name, body, **kwargs): # noqa: E501 + """replace_persistent_volume_status # noqa: E501 + + replace status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_persistent_volume_status(name, body, async_req=True) @@ -23218,14 +23905,15 @@ def replace_persistent_volume_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) + return self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) + (data) = self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified PersistentVolume + def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_persistent_volume_status # noqa: E501 + + replace status of the specified PersistentVolume # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_persistent_volume_status_with_http_info(name, body, async_req=True) @@ -23242,42 +23930,44 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_persistent_volume_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23285,30 +23975,27 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/v1/persistentvolumes/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PersistentVolume', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/persistentvolumes/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PersistentVolume', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py similarity index 50% rename from kubernetes/client/apis/custom_objects_api.py rename to kubernetes/client/api/custom_objects_api.py index 35b576f06a..948f89c540 100644 --- a/kubernetes/client/apis/custom_objects_api.py +++ b/kubernetes/client/api/custom_objects_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class CustomObjectsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_cluster_custom_object(self, group, version, plural, body, **kwargs): - """ - Creates a cluster scoped Custom object + def create_cluster_custom_object(self, group, version, plural, body, **kwargs): # noqa: E501 + """create_cluster_custom_object # noqa: E501 + + Creates a cluster scoped Custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_custom_object(group, version, plural, body, async_req=True) @@ -47,7 +45,7 @@ def create_cluster_custom_object(self, group, version, plural, body, **kwargs): :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param object body: The JSON schema of the Resource to create. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, @@ -55,14 +53,15 @@ def create_cluster_custom_object(self, group, version, plural, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) + return self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) + (data) = self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) # noqa: E501 return data - def create_cluster_custom_object_with_http_info(self, group, version, plural, body, **kwargs): - """ - Creates a cluster scoped Custom object + def create_cluster_custom_object_with_http_info(self, group, version, plural, body, **kwargs): # noqa: E501 + """create_cluster_custom_object # noqa: E501 + + Creates a cluster scoped Custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_custom_object_with_http_info(group, version, plural, body, async_req=True) @@ -72,55 +71,59 @@ def create_cluster_custom_object_with_http_info(self, group, version, plural, bo :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param object body: The JSON schema of the Resource to create. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'body', 'pretty'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'body', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `create_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `create_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `create_cluster_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -128,33 +131,35 @@ def create_cluster_custom_object_with_http_info(self, group, version, plural, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_custom_object(self, group, version, namespace, plural, body, **kwargs): - """ - Creates a namespace scoped Custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_custom_object(self, group, version, namespace, plural, body, **kwargs): # noqa: E501 + """create_namespaced_custom_object # noqa: E501 + + Creates a namespace scoped Custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_custom_object(group, version, namespace, plural, body, async_req=True) @@ -165,7 +170,7 @@ def create_namespaced_custom_object(self, group, version, namespace, plural, bod :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param object body: The JSON schema of the Resource to create. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, @@ -173,14 +178,15 @@ def create_namespaced_custom_object(self, group, version, namespace, plural, bod """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) + return self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) + (data) = self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) # noqa: E501 return data - def create_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, body, **kwargs): - """ - Creates a namespace scoped Custom object + def create_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, body, **kwargs): # noqa: E501 + """create_namespaced_custom_object # noqa: E501 + + Creates a namespace scoped Custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, async_req=True) @@ -191,60 +197,65 @@ def create_namespaced_custom_object_with_http_info(self, group, version, namespa :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param object body: The JSON schema of the Resource to create. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'body', 'pretty'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'body', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `create_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `create_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `create_namespaced_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -252,33 +263,35 @@ def create_namespaced_custom_object_with_http_info(self, group, version, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_custom_object(self, group, version, plural, name, body, **kwargs): - """ - Deletes the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_custom_object(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """delete_cluster_custom_object # noqa: E501 + + Deletes the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_custom_object(group, version, plural, name, body, async_req=True) @@ -299,14 +312,15 @@ def delete_cluster_custom_object(self, group, version, plural, name, body, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + return self.delete_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.delete_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def delete_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - Deletes the specified cluster scoped custom object + def delete_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """delete_cluster_custom_object # noqa: E501 + + Deletes the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_custom_object_with_http_info(group, version, plural, name, body, async_req=True) @@ -326,57 +340,62 @@ def delete_cluster_custom_object_with_http_info(self, group, version, plural, na returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_cluster_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_cluster_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -384,37 +403,35 @@ def delete_cluster_custom_object_with_http_info(self, group, version, plural, na local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): - """ - Deletes the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """delete_namespaced_custom_object # noqa: E501 + + Deletes the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_custom_object(group, version, namespace, plural, name, body, async_req=True) @@ -436,14 +453,15 @@ def delete_namespaced_custom_object(self, group, version, namespace, plural, nam """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def delete_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - Deletes the specified namespace scoped custom object + def delete_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """delete_namespaced_custom_object # noqa: E501 + + Deletes the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -464,62 +482,68 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_namespaced_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -527,37 +551,35 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_cluster_custom_object(self, group, version, plural, name, **kwargs): - """ - Returns a cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cluster_custom_object(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object # noqa: E501 + + Returns a cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object(group, version, plural, name, async_req=True) @@ -574,14 +596,15 @@ def get_cluster_custom_object(self, group, version, plural, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) + return self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) + (data) = self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 return data - def get_cluster_custom_object_with_http_info(self, group, version, plural, name, **kwargs): - """ - Returns a cluster scoped custom object + def get_cluster_custom_object_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object # noqa: E501 + + Returns a cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_with_http_info(group, version, plural, name, async_req=True) @@ -597,46 +620,50 @@ def get_cluster_custom_object_with_http_info(self, group, version, plural, name, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -647,34 +674,32 @@ def get_cluster_custom_object_with_http_info(self, group, version, plural, name, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_cluster_custom_object_scale(self, group, version, plural, name, **kwargs): - """ - read scale of the specified custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cluster_custom_object_scale(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object_scale # noqa: E501 + + read scale of the specified custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_scale(group, version, plural, name, async_req=True) @@ -691,14 +716,15 @@ def get_cluster_custom_object_scale(self, group, version, plural, name, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) + return self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) + (data) = self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 return data - def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, **kwargs): - """ - read scale of the specified custom object + def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object_scale # noqa: E501 + + read scale of the specified custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, async_req=True) @@ -714,46 +740,50 @@ def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_scale`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -764,34 +794,32 @@ def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_cluster_custom_object_status(self, group, version, plural, name, **kwargs): - """ - read status of the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_cluster_custom_object_status(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object_status # noqa: E501 + + read status of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_status(group, version, plural, name, async_req=True) @@ -808,14 +836,15 @@ def get_cluster_custom_object_status(self, group, version, plural, name, **kwarg """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) + return self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) + (data) = self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 return data - def get_cluster_custom_object_status_with_http_info(self, group, version, plural, name, **kwargs): - """ - read status of the specified cluster scoped custom object + def get_cluster_custom_object_status_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 + """get_cluster_custom_object_status # noqa: E501 + + read status of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_cluster_custom_object_status_with_http_info(group, version, plural, name, async_req=True) @@ -831,46 +860,50 @@ def get_cluster_custom_object_status_with_http_info(self, group, version, plural returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -881,34 +914,32 @@ def get_cluster_custom_object_status_with_http_info(self, group, version, plural body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_namespaced_custom_object(self, group, version, namespace, plural, name, **kwargs): - """ - Returns a namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_namespaced_custom_object(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object # noqa: E501 + + Returns a namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object(group, version, namespace, plural, name, async_req=True) @@ -926,14 +957,15 @@ def get_namespaced_custom_object(self, group, version, namespace, plural, name, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) + return self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) + (data) = self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 return data - def get_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, **kwargs): - """ - Returns a namespace scoped custom object + def get_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object # noqa: E501 + + Returns a namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, async_req=True) @@ -950,51 +982,56 @@ def get_namespaced_custom_object_with_http_info(self, group, version, namespace, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1005,34 +1042,32 @@ def get_namespaced_custom_object_with_http_info(self, group, version, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_namespaced_custom_object_scale(self, group, version, namespace, plural, name, **kwargs): - """ - read scale of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_namespaced_custom_object_scale(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object_scale # noqa: E501 + + read scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object_scale(group, version, namespace, plural, name, async_req=True) @@ -1050,14 +1085,15 @@ def get_namespaced_custom_object_scale(self, group, version, namespace, plural, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) + return self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) + (data) = self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 return data - def get_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, **kwargs): - """ - read scale of the specified namespace scoped custom object + def get_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object_scale # noqa: E501 + + read scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, async_req=True) @@ -1074,51 +1110,56 @@ def get_namespaced_custom_object_scale_with_http_info(self, group, version, name returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_scale`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1129,34 +1170,32 @@ def get_namespaced_custom_object_scale_with_http_info(self, group, version, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_namespaced_custom_object_status(self, group, version, namespace, plural, name, **kwargs): - """ - read status of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_namespaced_custom_object_status(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object_status # noqa: E501 + + read status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object_status(group, version, namespace, plural, name, async_req=True) @@ -1174,14 +1213,15 @@ def get_namespaced_custom_object_status(self, group, version, namespace, plural, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) + return self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 else: - (data) = self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) + (data) = self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 return data - def get_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, **kwargs): - """ - read status of the specified namespace scoped custom object + def get_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """get_namespaced_custom_object_status # noqa: E501 + + read status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, async_req=True) @@ -1198,51 +1238,56 @@ def get_namespaced_custom_object_status_with_http_info(self, group, version, nam returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1253,34 +1298,32 @@ def get_namespaced_custom_object_status_with_http_info(self, group, version, nam body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_custom_object(self, group, version, plural, **kwargs): - """ - list or watch cluster scoped custom objects + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_custom_object(self, group, version, plural, **kwargs): # noqa: E501 + """list_cluster_custom_object # noqa: E501 + + list or watch cluster scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_custom_object(group, version, plural, async_req=True) @@ -1291,8 +1334,10 @@ def list_cluster_custom_object(self, group, version, plural, **kwargs): :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. @@ -1302,14 +1347,15 @@ def list_cluster_custom_object(self, group, version, plural, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) + return self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 else: - (data) = self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) + (data) = self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 return data - def list_cluster_custom_object_with_http_info(self, group, version, plural, **kwargs): - """ - list or watch cluster scoped custom objects + def list_cluster_custom_object_with_http_info(self, group, version, plural, **kwargs): # noqa: E501 + """list_cluster_custom_object # noqa: E501 + + list or watch cluster scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_custom_object_with_http_info(group, version, plural, async_req=True) @@ -1320,8 +1366,10 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. @@ -1330,55 +1378,62 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw returns the request thread. """ - all_params = ['group', 'version', 'plural', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `list_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `list_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `list_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `list_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `list_cluster_custom_object`") - + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `list_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1387,34 +1442,32 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/json;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/json;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_custom_object(self, group, version, namespace, plural, **kwargs): - """ - list or watch namespace scoped custom objects + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_custom_object(self, group, version, namespace, plural, **kwargs): # noqa: E501 + """list_namespaced_custom_object # noqa: E501 + + list or watch namespace scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_custom_object(group, version, namespace, plural, async_req=True) @@ -1426,8 +1479,10 @@ def list_namespaced_custom_object(self, group, version, namespace, plural, **kwa :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. @@ -1437,14 +1492,15 @@ def list_namespaced_custom_object(self, group, version, namespace, plural, **kwa """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) + return self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) + (data) = self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 return data - def list_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, **kwargs): - """ - list or watch namespace scoped custom objects + def list_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, **kwargs): # noqa: E501 + """list_namespaced_custom_object # noqa: E501 + + list or watch namespace scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, async_req=True) @@ -1456,8 +1512,10 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str pretty: If 'true', then the output is pretty printed. + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. @@ -1466,60 +1524,68 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `list_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `list_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `list_namespaced_custom_object`") - + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `list_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1528,34 +1594,32 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/json;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/json;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_custom_object(self, group, version, plural, name, body, **kwargs): - """ - patch the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_custom_object(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object # noqa: E501 + + patch the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object(group, version, plural, name, body, async_req=True) @@ -1566,21 +1630,22 @@ def patch_cluster_custom_object(self, group, version, plural, name, body, **kwar :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to patch. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + return self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def patch_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - patch the specified cluster scoped custom object + def patch_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object # noqa: E501 + + patch the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, async_req=True) @@ -1591,55 +1656,60 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to patch. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1649,37 +1719,39 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_custom_object_scale(self, group, version, plural, name, body, **kwargs): - """ - partially update scale of the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_custom_object_scale(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object_scale # noqa: E501 + + partially update scale of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object_scale(group, version, plural, name, body, async_req=True) @@ -1690,21 +1762,22 @@ def patch_cluster_custom_object_scale(self, group, version, plural, name, body, :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) + return self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def patch_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - partially update scale of the specified cluster scoped custom object + def patch_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object_scale # noqa: E501 + + partially update scale of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, async_req=True) @@ -1715,55 +1788,60 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1773,37 +1851,39 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_custom_object_status(self, group, version, plural, name, body, **kwargs): - """ - partially update status of the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_custom_object_status(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object_status # noqa: E501 + + partially update status of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object_status(group, version, plural, name, body, async_req=True) @@ -1814,21 +1894,22 @@ def patch_cluster_custom_object_status(self, group, version, plural, name, body, :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) + return self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def patch_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - partially update status of the specified cluster scoped custom object + def patch_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """patch_cluster_custom_object_status # noqa: E501 + + partially update status of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, async_req=True) @@ -1839,55 +1920,60 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -1897,37 +1983,39 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): - """ - patch the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object # noqa: E501 + + patch the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object(group, version, namespace, plural, name, body, async_req=True) @@ -1939,21 +2027,22 @@ def patch_namespaced_custom_object(self, group, version, namespace, plural, name :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to patch. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def patch_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - patch the specified namespace scoped custom object + def patch_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object # noqa: E501 + + patch the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -1965,60 +2054,66 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to patch. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2028,37 +2123,39 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_custom_object_scale(self, group, version, namespace, plural, name, body, **kwargs): - """ - partially update scale of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_custom_object_scale(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object_scale # noqa: E501 + + partially update scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body, async_req=True) @@ -2070,21 +2167,22 @@ def patch_namespaced_custom_object_scale(self, group, version, namespace, plural :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def patch_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - partially update scale of the specified namespace scoped custom object + def patch_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object_scale # noqa: E501 + + partially update scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -2096,60 +2194,66 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2159,37 +2263,39 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_custom_object_status(self, group, version, namespace, plural, name, body, **kwargs): - """ - partially update status of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_custom_object_status(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object_status # noqa: E501 + + partially update status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object_status(group, version, namespace, plural, name, body, async_req=True) @@ -2201,21 +2307,22 @@ def patch_namespaced_custom_object_status(self, group, version, namespace, plura :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def patch_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - partially update status of the specified namespace scoped custom object + def patch_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """patch_namespaced_custom_object_status # noqa: E501 + + partially update status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -2227,60 +2334,66 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2290,37 +2403,39 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_custom_object(self, group, version, plural, name, body, **kwargs): - """ - replace the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_custom_object(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object # noqa: E501 + + replace the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object(group, version, plural, name, body, async_req=True) @@ -2331,21 +2446,22 @@ def replace_cluster_custom_object(self, group, version, plural, name, body, **kw :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to replace. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + return self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def replace_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - replace the specified cluster scoped custom object + def replace_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object # noqa: E501 + + replace the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, async_req=True) @@ -2356,55 +2472,60 @@ def replace_cluster_custom_object_with_http_info(self, group, version, plural, n :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to replace. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2414,37 +2535,35 @@ def replace_cluster_custom_object_with_http_info(self, group, version, plural, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_custom_object_scale(self, group, version, plural, name, body, **kwargs): - """ - replace scale of the specified cluster scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_custom_object_scale(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object_scale # noqa: E501 + + replace scale of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_scale(group, version, plural, name, body, async_req=True) @@ -2455,21 +2574,22 @@ def replace_cluster_custom_object_scale(self, group, version, plural, name, body :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) + return self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def replace_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - replace scale of the specified cluster scoped custom object + def replace_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object_scale # noqa: E501 + + replace scale of the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, async_req=True) @@ -2480,55 +2600,60 @@ def replace_cluster_custom_object_scale_with_http_info(self, group, version, plu :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2538,37 +2663,35 @@ def replace_cluster_custom_object_scale_with_http_info(self, group, version, plu local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_custom_object_status(self, group, version, plural, name, body, **kwargs): - """ - replace status of the cluster scoped specified custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_custom_object_status(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object_status # noqa: E501 + + replace status of the cluster scoped specified custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_status(group, version, plural, name, body, async_req=True) @@ -2579,21 +2702,22 @@ def replace_cluster_custom_object_status(self, group, version, plural, name, bod :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) + return self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) + (data) = self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 return data - def replace_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): - """ - replace status of the cluster scoped specified custom object + def replace_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 + """replace_cluster_custom_object_status # noqa: E501 + + replace status of the cluster scoped specified custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, async_req=True) @@ -2604,55 +2728,60 @@ def replace_cluster_custom_object_status_with_http_info(self, group, version, pl :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2662,37 +2791,35 @@ def replace_cluster_custom_object_status_with_http_info(self, group, version, pl local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/{plural}/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/{plural}/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_custom_object(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object # noqa: E501 + + replace the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object(group, version, namespace, plural, name, body, async_req=True) @@ -2704,21 +2831,22 @@ def replace_namespaced_custom_object(self, group, version, namespace, plural, na :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to replace. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def replace_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace the specified namespace scoped custom object + def replace_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object # noqa: E501 + + replace the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -2730,60 +2858,66 @@ def replace_namespaced_custom_object_with_http_info(self, group, version, namesp :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: The JSON schema of the Resource to replace. (required) + :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2793,37 +2927,35 @@ def replace_namespaced_custom_object_with_http_info(self, group, version, namesp local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_custom_object_scale(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace scale of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_custom_object_scale(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object_scale # noqa: E501 + + replace scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body, async_req=True) @@ -2835,21 +2967,22 @@ def replace_namespaced_custom_object_scale(self, group, version, namespace, plur :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def replace_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace scale of the specified namespace scoped custom object + def replace_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object_scale # noqa: E501 + + replace scale of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -2861,60 +2994,66 @@ def replace_namespaced_custom_object_scale_with_http_info(self, group, version, :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_scale`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_scale`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_scale`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -2924,37 +3063,35 @@ def replace_namespaced_custom_object_scale_with_http_info(self, group, version, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_custom_object_status(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace status of the specified namespace scoped custom object + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_custom_object_status(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object_status # noqa: E501 + + replace status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object_status(group, version, namespace, plural, name, body, async_req=True) @@ -2966,21 +3103,22 @@ def replace_namespaced_custom_object_status(self, group, version, namespace, plu :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) + return self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) + (data) = self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 return data - def replace_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): - """ - replace status of the specified namespace scoped custom object + def replace_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 + """replace_namespaced_custom_object_status # noqa: E501 + + replace status of the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, async_req=True) @@ -2992,60 +3130,66 @@ def replace_namespaced_custom_object_status_with_http_info(self, group, version, :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] + local_var_params = locals() + + all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_status`") + if ('group' not in local_var_params or + local_var_params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_status`") + if ('version' not in local_var_params or + local_var_params['version'] is None): + raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in params) or (params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_status`") + if ('plural' not in local_var_params or + local_var_params['plural'] is None): + raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'group' in params: - path_params['group'] = params['group'] - if 'version' in params: - path_params['version'] = params['version'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] - if 'plural' in params: - path_params['plural'] = params['plural'] - if 'name' in params: - path_params['name'] = params['name'] + if 'group' in local_var_params: + path_params['group'] = local_var_params['group'] # noqa: E501 + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 + if 'plural' in local_var_params: + path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] @@ -3055,30 +3199,27 @@ def replace_namespaced_custom_object_status_with_http_info(self, group, version, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/events_api.py b/kubernetes/client/api/events_api.py new file mode 100644 index 0000000000..7abbbc9886 --- /dev/null +++ b/kubernetes/client/api/events_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class EventsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/events_v1beta1_api.py b/kubernetes/client/api/events_v1beta1_api.py similarity index 61% rename from kubernetes/client/apis/events_v1beta1_api.py rename to kubernetes/client/api/events_v1beta1_api.py index 1c9b545538..e155b5be7f 100644 --- a/kubernetes/client/apis/events_v1beta1_api.py +++ b/kubernetes/client/api/events_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class EventsV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_event(self, namespace, body, **kwargs): - """ - create an Event + def create_namespaced_event(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_event # noqa: E501 + + create an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_event(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_event(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): - """ - create an Event + def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_event # noqa: E501 + + create an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_event_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_event(self, namespace, **kwargs): - """ - delete collection of Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_event # noqa: E501 + + delete collection of Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_event(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): - """ - delete collection of Event + def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_event # noqa: E501 + + delete collection of Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_event(self, name, namespace, **kwargs): - """ - delete an Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_event # noqa: E501 + + delete an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_event(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_event(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): - """ - delete an Event + def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_event # noqa: E501 + + delete an Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_event_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_event_for_all_namespaces # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_event_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_event_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_event_for_all_namespaces_with_http_info(**kwargs) + return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_event_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Event + def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_event_for_all_namespaces # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_event_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_event_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1EventList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_event(self, namespace, **kwargs): - """ - list or watch objects of kind Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1EventList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_event # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_event(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_event(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_event(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_event_with_http_info(namespace, **kwargs) + return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_event_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Event + def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_event # noqa: E501 + + list or watch objects of kind Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_event_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1EventList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_event(self, name, namespace, body, **kwargs): - """ - partially update the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1EventList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_event # noqa: E501 + + partially update the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_event(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Event + def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_event # noqa: E501 + + partially update the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) :param async_req bool :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_event(self, name, namespace, **kwargs): - """ - read the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_event # noqa: E501 + + read the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_event(name, namespace, async_req=True) @@ -888,14 +925,15 @@ def read_namespaced_event(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Event + def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_event # noqa: E501 + + read the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_event_with_http_info(name, namespace, async_req=True) @@ -912,44 +950,46 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -958,34 +998,32 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_event(self, name, namespace, body, **kwargs): - """ - replace the specified Event + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_event # noqa: E501 + + replace the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_event(name, namespace, body, async_req=True) @@ -1004,14 +1042,15 @@ def replace_namespaced_event(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Event + def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_event # noqa: E501 + + replace the specified Event # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_event_with_http_info(name, namespace, body, async_req=True) @@ -1029,47 +1068,50 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_event" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1077,30 +1119,27 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Event', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Event', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/extensions_api.py b/kubernetes/client/api/extensions_api.py new file mode 100644 index 0000000000..f8ab7858eb --- /dev/null +++ b/kubernetes/client/api/extensions_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class ExtensionsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/extensions_v1beta1_api.py b/kubernetes/client/api/extensions_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/extensions_v1beta1_api.py rename to kubernetes/client/api/extensions_v1beta1_api.py index 55eea5d479..65950176e7 100644 --- a/kubernetes/client/apis/extensions_v1beta1_api.py +++ b/kubernetes/client/api/extensions_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class ExtensionsV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_daemon_set(self, namespace, body, **kwargs): - """ - create a DaemonSet + def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): - """ - create a DaemonSet + def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_daemon_set # noqa: E501 + + create a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment(self, namespace, body, **kwargs): - """ - create a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) @@ -170,14 +169,15 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): - """ - create a Deployment + def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment # noqa: E501 + + create a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) @@ -194,42 +194,44 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -237,37 +239,35 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs): - """ - create rollback of a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment_rollback # noqa: E501 + + create rollback of a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_rollback(name, namespace, body, async_req=True) @@ -286,14 +286,15 @@ def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) + return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) + (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): - """ - create rollback of a Deployment + def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_deployment_rollback # noqa: E501 + + create rollback of a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, async_req=True) @@ -311,47 +312,50 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment_rollback" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -359,37 +363,35 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_ingress(self, namespace, body, **kwargs): - """ - create an Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_ingress(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_ingress # noqa: E501 + + create an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_ingress(namespace, body, async_req=True) @@ -407,14 +409,15 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): - """ - create an Ingress + def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_ingress # noqa: E501 + + create an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, async_req=True) @@ -431,42 +434,44 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -474,37 +479,35 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_network_policy(self, namespace, body, **kwargs): - """ - create a NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_network_policy(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_network_policy # noqa: E501 + + create a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_network_policy(namespace, body, async_req=True) @@ -522,14 +525,15 @@ def create_namespaced_network_policy(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): - """ - create a NetworkPolicy + def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_network_policy # noqa: E501 + + create a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, async_req=True) @@ -546,42 +550,44 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -589,37 +595,35 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_replica_set(self, namespace, body, **kwargs): - """ - create a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) @@ -637,14 +641,15 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): - """ - create a ReplicaSet + def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_replica_set # noqa: E501 + + create a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) @@ -661,42 +666,44 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -704,37 +711,35 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_pod_security_policy(self, body, **kwargs): - """ - create a PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pod_security_policy(self, body, **kwargs): # noqa: E501 + """create_pod_security_policy # noqa: E501 + + create a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_pod_security_policy(body, async_req=True) @@ -751,14 +756,15 @@ def create_pod_security_policy(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_pod_security_policy_with_http_info(body, **kwargs) + return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) + (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 return data - def create_pod_security_policy_with_http_info(self, body, **kwargs): - """ - create a PodSecurityPolicy + def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E501 + """create_pod_security_policy # noqa: E501 + + create a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_pod_security_policy_with_http_info(body, async_req=True) @@ -774,37 +780,38 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -812,37 +819,35 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): - """ - delete collection of DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) @@ -851,27 +856,34 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of DaemonSet + def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_daemon_set # noqa: E501 + + delete collection of DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -880,61 +892,78 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -942,35 +971,35 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_deployment(self, namespace, **kwargs): - """ - delete collection of Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) @@ -979,27 +1008,34 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - delete collection of Deployment + def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_deployment # noqa: E501 + + delete collection of Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -1008,61 +1044,78 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1070,35 +1123,35 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_ingress(self, namespace, **kwargs): - """ - delete collection of Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_ingress # noqa: E501 + + delete collection of Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_ingress(namespace, async_req=True) @@ -1107,27 +1160,34 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): - """ - delete collection of Ingress + def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_ingress # noqa: E501 + + delete collection of Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, async_req=True) @@ -1136,61 +1196,78 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1198,35 +1275,35 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_network_policy(self, namespace, **kwargs): - """ - delete collection of NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_network_policy # noqa: E501 + + delete collection of NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_network_policy(namespace, async_req=True) @@ -1235,27 +1312,34 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): - """ - delete collection of NetworkPolicy + def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_network_policy # noqa: E501 + + delete collection of NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, async_req=True) @@ -1264,61 +1348,78 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1326,35 +1427,35 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_replica_set(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) @@ -1363,27 +1464,34 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - delete collection of ReplicaSet + def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_replica_set # noqa: E501 + + delete collection of ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -1392,61 +1500,78 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1454,35 +1579,35 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_pod_security_policy(self, **kwargs): - """ - delete collection of PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 + """delete_collection_pod_security_policy # noqa: E501 + + delete collection of PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_pod_security_policy(async_req=True) @@ -1490,27 +1615,34 @@ def delete_collection_pod_security_policy(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_pod_security_policy_with_http_info(**kwargs) + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) + (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_pod_security_policy_with_http_info(self, **kwargs): - """ - delete collection of PodSecurityPolicy + def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_pod_security_policy # noqa: E501 + + delete collection of PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_pod_security_policy_with_http_info(async_req=True) @@ -1518,56 +1650,72 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1575,35 +1723,35 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - delete a DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) @@ -1613,25 +1761,26 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a DaemonSet + def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_daemon_set # noqa: E501 + + delete a DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -1641,58 +1790,60 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1700,37 +1851,35 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_deployment(self, name, namespace, **kwargs): - """ - delete a Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) @@ -1740,25 +1889,26 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - delete a Deployment + def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_deployment # noqa: E501 + + delete a Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -1768,58 +1918,60 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1827,37 +1979,35 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_ingress(self, name, namespace, **kwargs): - """ - delete an Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_ingress # noqa: E501 + + delete an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_ingress(name, namespace, async_req=True) @@ -1867,25 +2017,26 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): - """ - delete an Ingress + def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_ingress # noqa: E501 + + delete an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, async_req=True) @@ -1895,58 +2046,60 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1954,37 +2107,35 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_network_policy(self, name, namespace, **kwargs): - """ - delete a NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_network_policy # noqa: E501 + + delete a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_network_policy(name, namespace, async_req=True) @@ -1994,25 +2145,26 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): - """ - delete a NetworkPolicy + def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_network_policy # noqa: E501 + + delete a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, async_req=True) @@ -2022,58 +2174,60 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2081,37 +2235,35 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_replica_set(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) @@ -2121,25 +2273,26 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - delete a ReplicaSet + def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_replica_set # noqa: E501 + + delete a ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -2149,58 +2302,60 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2208,37 +2363,35 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_pod_security_policy(self, name, **kwargs): - """ - delete a PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 + """delete_pod_security_policy # noqa: E501 + + delete a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_pod_security_policy(name, async_req=True) @@ -2247,25 +2400,26 @@ def delete_pod_security_policy(self, name, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_pod_security_policy_with_http_info(name, **kwargs) + return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) + (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_pod_security_policy_with_http_info(self, name, **kwargs): - """ - delete a PodSecurityPolicy + def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_pod_security_policy # noqa: E501 + + delete a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_pod_security_policy_with_http_info(name, async_req=True) @@ -2274,53 +2428,54 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2328,37 +2483,35 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -2371,14 +2524,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -2390,21 +2544,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -2419,40 +2574,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_daemon_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2467,20 +2621,22 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_daemon_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2494,44 +2650,46 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2540,40 +2698,39 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_deployment_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2588,20 +2745,22 @@ def list_deployment_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Deployment + def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_deployment_for_all_namespaces # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2615,44 +2774,46 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2661,40 +2822,39 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_ingress_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_ingress_for_all_namespaces # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_ingress_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2709,20 +2869,22 @@ def list_ingress_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Ingress + def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_ingress_for_all_namespaces # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_ingress_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2736,44 +2898,46 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_ingress_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2782,34 +2946,32 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/ingresses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1IngressList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_daemon_set(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/ingresses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1IngressList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) @@ -2818,6 +2980,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2831,14 +2994,15 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind DaemonSet + def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_daemon_set # noqa: E501 + + list or watch objects of kind DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) @@ -2847,6 +3011,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2859,49 +3024,52 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2910,34 +3078,32 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_deployment(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment(namespace, async_req=True) @@ -2946,6 +3112,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2959,14 +3126,15 @@ def list_namespaced_deployment(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Deployment + def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_deployment # noqa: E501 + + list or watch objects of kind Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) @@ -2975,6 +3143,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2987,49 +3156,52 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3038,34 +3210,32 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1DeploymentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_ingress(self, namespace, **kwargs): - """ - list or watch objects of kind Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1DeploymentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_ingress # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_ingress(namespace, async_req=True) @@ -3074,6 +3244,7 @@ def list_namespaced_ingress(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3087,14 +3258,15 @@ def list_namespaced_ingress(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Ingress + def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_ingress # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_ingress_with_http_info(namespace, async_req=True) @@ -3103,6 +3275,7 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3115,49 +3288,52 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3166,34 +3342,32 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1IngressList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_network_policy(self, namespace, **kwargs): - """ - list or watch objects of kind NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1IngressList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_network_policy # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_network_policy(namespace, async_req=True) @@ -3202,6 +3376,7 @@ def list_namespaced_network_policy(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3215,14 +3390,15 @@ def list_namespaced_network_policy(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind NetworkPolicy + def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_network_policy # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, async_req=True) @@ -3231,6 +3407,7 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3243,49 +3420,52 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3294,34 +3474,32 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_replica_set(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) @@ -3330,6 +3508,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3343,14 +3522,15 @@ def list_namespaced_replica_set(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_replica_set # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) @@ -3359,6 +3539,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3371,49 +3552,52 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3422,40 +3606,39 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_network_policy_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_network_policy_for_all_namespaces # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_network_policy_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3470,20 +3653,22 @@ def list_network_policy_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind NetworkPolicy + def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_network_policy_for_all_namespaces # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3497,44 +3682,46 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_network_policy_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3543,34 +3730,32 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/networkpolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_security_policy(self, **kwargs): - """ - list or watch objects of kind PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/networkpolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_security_policy(self, **kwargs): # noqa: E501 + """list_pod_security_policy # noqa: E501 + + list or watch objects of kind PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_security_policy(async_req=True) @@ -3578,6 +3763,7 @@ def list_pod_security_policy(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3591,14 +3777,15 @@ def list_pod_security_policy(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_security_policy_with_http_info(**kwargs) + return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_security_policy_with_http_info(**kwargs) + (data) = self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_security_policy_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodSecurityPolicy + def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_security_policy # noqa: E501 + + list or watch objects of kind PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_security_policy_with_http_info(async_req=True) @@ -3606,6 +3793,7 @@ def list_pod_security_policy_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3618,44 +3806,46 @@ def list_pod_security_policy_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3664,40 +3854,39 @@ def list_pod_security_policy_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1PodSecurityPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_replica_set_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1PodSecurityPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3712,20 +3901,22 @@ def list_replica_set_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind ReplicaSet + def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_replica_set_for_all_namespaces # noqa: E501 + + list or watch objects of kind ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -3739,44 +3930,46 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3785,34 +3978,32 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/replicasets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/replicasets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -3821,7 +4012,7 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3832,14 +4023,15 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified DaemonSet + def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set # noqa: E501 + + partially update the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -3848,7 +4040,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3858,49 +4050,52 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3908,37 +4103,39 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -3947,7 +4144,7 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3958,14 +4155,15 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified DaemonSet + def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_daemon_set_status # noqa: E501 + + partially update status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -3974,7 +4172,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -3984,49 +4182,52 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4034,37 +4235,39 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) @@ -4073,7 +4276,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4084,14 +4287,15 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Deployment + def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment # noqa: E501 + + partially update the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -4100,7 +4304,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4110,49 +4314,52 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4160,37 +4367,39 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -4199,7 +4408,7 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4210,14 +4419,15 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified Deployment + def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_scale # noqa: E501 + + partially update scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -4226,7 +4436,7 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4236,49 +4446,52 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4286,37 +4499,39 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -4325,7 +4540,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4336,14 +4551,15 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Deployment + def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_deployment_status # noqa: E501 + + partially update status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -4352,7 +4568,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4362,49 +4578,52 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4412,37 +4631,39 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_ingress(self, name, namespace, body, **kwargs): - """ - partially update the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress # noqa: E501 + + partially update the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress(name, namespace, body, async_req=True) @@ -4451,7 +4672,7 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4462,14 +4683,15 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Ingress + def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress # noqa: E501 + + partially update the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) @@ -4478,7 +4700,7 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4488,49 +4710,52 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4538,37 +4763,39 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress_status # noqa: E501 + + partially update status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, async_req=True) @@ -4577,7 +4804,7 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4588,14 +4815,15 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Ingress + def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress_status # noqa: E501 + + partially update status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) @@ -4604,7 +4832,7 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4614,49 +4842,52 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4664,37 +4895,39 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): - """ - partially update the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_network_policy # noqa: E501 + + partially update the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_network_policy(name, namespace, body, async_req=True) @@ -4703,7 +4936,7 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4714,14 +4947,15 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified NetworkPolicy + def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_network_policy # noqa: E501 + + partially update the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) @@ -4730,7 +4964,7 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4740,49 +4974,52 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4790,37 +5027,39 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) @@ -4829,7 +5068,7 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4840,14 +5079,15 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified ReplicaSet + def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set # noqa: E501 + + partially update the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -4856,7 +5096,7 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4866,49 +5106,52 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4916,37 +5159,39 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -4955,7 +5200,7 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4966,14 +5211,15 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicaSet + def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_scale # noqa: E501 + + partially update scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -4982,7 +5228,7 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -4992,49 +5238,52 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5042,37 +5291,39 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -5081,7 +5332,7 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5092,14 +5343,15 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified ReplicaSet + def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replica_set_status # noqa: E501 + + partially update status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -5108,7 +5360,7 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo :param async_req bool :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5118,49 +5370,52 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5168,37 +5423,39 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicationControllerDummy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_dummy_scale # noqa: E501 + + partially update scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True) @@ -5207,7 +5464,7 @@ def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, b :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5218,14 +5475,15 @@ def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, b """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update scale of the specified ReplicationControllerDummy + def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_replication_controller_dummy_scale # noqa: E501 + + partially update scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True) @@ -5234,7 +5492,7 @@ def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, nam :param async_req bool :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5244,49 +5502,52 @@ def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_dummy_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_dummy_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_dummy_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_dummy_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5294,37 +5555,39 @@ def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_pod_security_policy(self, name, body, **kwargs): - """ - partially update the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_pod_security_policy(self, name, body, **kwargs): # noqa: E501 + """patch_pod_security_policy # noqa: E501 + + partially update the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_pod_security_policy(name, body, async_req=True) @@ -5332,7 +5595,7 @@ def patch_pod_security_policy(self, name, body, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5343,14 +5606,15 @@ def patch_pod_security_policy(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PodSecurityPolicy + def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_pod_security_policy # noqa: E501 + + partially update the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_pod_security_policy_with_http_info(name, body, async_req=True) @@ -5358,7 +5622,7 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -5368,44 +5632,46 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5413,37 +5679,39 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) @@ -5461,14 +5729,15 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified DaemonSet + def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set # noqa: E501 + + read the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) @@ -5485,44 +5754,46 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5531,34 +5802,32 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) @@ -5574,14 +5843,15 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified DaemonSet + def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_daemon_set_status # noqa: E501 + + read status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) @@ -5596,40 +5866,42 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5638,34 +5910,32 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment(self, name, namespace, **kwargs): - """ - read the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) @@ -5683,14 +5953,15 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Deployment + def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment # noqa: E501 + + read the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) @@ -5707,44 +5978,46 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5753,34 +6026,32 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_scale(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) @@ -5796,14 +6067,15 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified Deployment + def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_scale # noqa: E501 + + read scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) @@ -5818,40 +6090,42 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5860,34 +6134,32 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_deployment_status(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) @@ -5903,14 +6175,15 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Deployment + def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_deployment_status # noqa: E501 + + read status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) @@ -5925,40 +6198,42 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5967,34 +6242,32 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_ingress(self, name, namespace, **kwargs): - """ - read the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress # noqa: E501 + + read the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress(name, namespace, async_req=True) @@ -6012,14 +6285,15 @@ def read_namespaced_ingress(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Ingress + def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress # noqa: E501 + + read the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, async_req=True) @@ -6036,44 +6310,46 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6082,34 +6358,32 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_ingress_status(self, name, namespace, **kwargs): - """ - read status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_ingress_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress_status # noqa: E501 + + read status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_status(name, namespace, async_req=True) @@ -6125,14 +6399,15 @@ def read_namespaced_ingress_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Ingress + def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress_status # noqa: E501 + + read status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, async_req=True) @@ -6147,40 +6422,42 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6189,34 +6466,32 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_network_policy(self, name, namespace, **kwargs): - """ - read the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_network_policy # noqa: E501 + + read the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_network_policy(name, namespace, async_req=True) @@ -6234,14 +6509,15 @@ def read_namespaced_network_policy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): - """ - read the specified NetworkPolicy + def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_network_policy # noqa: E501 + + read the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, async_req=True) @@ -6258,44 +6534,46 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6304,34 +6582,32 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) @@ -6349,14 +6625,15 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): - """ - read the specified ReplicaSet + def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set # noqa: E501 + + read the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) @@ -6373,44 +6650,46 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6419,34 +6698,32 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) @@ -6462,14 +6739,15 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicaSet + def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_scale # noqa: E501 + + read scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) @@ -6484,40 +6762,42 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6526,34 +6806,32 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replica_set_status(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) @@ -6569,14 +6847,15 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified ReplicaSet + def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replica_set_status # noqa: E501 + + read status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) @@ -6591,40 +6870,42 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6633,34 +6914,32 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_replication_controller_dummy_scale(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicationControllerDummy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_replication_controller_dummy_scale(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_dummy_scale # noqa: E501 + + read scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_dummy_scale(name, namespace, async_req=True) @@ -6676,14 +6955,15 @@ def read_namespaced_replication_controller_dummy_scale(self, name, namespace, ** """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, **kwargs): - """ - read scale of the specified ReplicationControllerDummy + def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_replication_controller_dummy_scale # noqa: E501 + + read scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, async_req=True) @@ -6698,40 +6978,42 @@ def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_dummy_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_dummy_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_dummy_scale`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6740,34 +7022,32 @@ def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_pod_security_policy(self, name, **kwargs): - """ - read the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_pod_security_policy(self, name, **kwargs): # noqa: E501 + """read_pod_security_policy # noqa: E501 + + read the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_pod_security_policy(name, async_req=True) @@ -6784,14 +7064,15 @@ def read_pod_security_policy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_pod_security_policy_with_http_info(name, **kwargs) + return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) + (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 return data - def read_pod_security_policy_with_http_info(self, name, **kwargs): - """ - read the specified PodSecurityPolicy + def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """read_pod_security_policy # noqa: E501 + + read the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_pod_security_policy_with_http_info(name, async_req=True) @@ -6807,39 +7088,40 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6848,34 +7130,32 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) @@ -6894,14 +7174,15 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified DaemonSet + def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set # noqa: E501 + + replace the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) @@ -6919,47 +7200,50 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6967,37 +7251,35 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) @@ -7016,14 +7298,15 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified DaemonSet + def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_daemon_set_status # noqa: E501 + + replace status of the specified DaemonSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) @@ -7041,47 +7324,50 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7089,37 +7375,35 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1DaemonSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1DaemonSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) @@ -7138,14 +7422,15 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Deployment + def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment # noqa: E501 + + replace the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) @@ -7163,47 +7448,50 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7211,37 +7499,35 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) @@ -7260,14 +7546,15 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified Deployment + def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_scale # noqa: E501 + + replace scale of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) @@ -7285,47 +7572,50 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7333,37 +7623,35 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) @@ -7382,14 +7670,15 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Deployment + def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_deployment_status # noqa: E501 + + replace status of the specified Deployment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) @@ -7407,47 +7696,50 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7455,37 +7747,35 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Deployment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_ingress(self, name, namespace, body, **kwargs): - """ - replace the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Deployment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress # noqa: E501 + + replace the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress(name, namespace, body, async_req=True) @@ -7504,14 +7794,15 @@ def replace_namespaced_ingress(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Ingress + def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress # noqa: E501 + + replace the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) @@ -7529,47 +7820,50 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7577,37 +7871,35 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress_status # noqa: E501 + + replace status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, async_req=True) @@ -7626,14 +7918,15 @@ def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Ingress + def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress_status # noqa: E501 + + replace status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) @@ -7651,47 +7944,50 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7699,37 +7995,35 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): - """ - replace the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_network_policy # noqa: E501 + + replace the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_network_policy(name, namespace, body, async_req=True) @@ -7748,14 +8042,15 @@ def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified NetworkPolicy + def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_network_policy # noqa: E501 + + replace the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) @@ -7773,47 +8068,50 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7821,37 +8119,35 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) @@ -7870,14 +8166,15 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified ReplicaSet + def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set # noqa: E501 + + replace the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) @@ -7895,47 +8192,50 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7943,37 +8243,35 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) @@ -7992,14 +8290,15 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicaSet + def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_scale # noqa: E501 + + replace scale of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) @@ -8017,47 +8316,50 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8065,37 +8367,35 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) @@ -8114,14 +8414,15 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified ReplicaSet + def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replica_set_status # noqa: E501 + + replace status of the specified ReplicaSet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) @@ -8139,47 +8440,50 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8187,37 +8491,35 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ReplicaSet', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicationControllerDummy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ReplicaSet', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_replication_controller_dummy_scale(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_dummy_scale # noqa: E501 + + replace scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True) @@ -8236,14 +8538,15 @@ def replace_namespaced_replication_controller_dummy_scale(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): - """ - replace scale of the specified ReplicationControllerDummy + def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_replication_controller_dummy_scale # noqa: E501 + + replace scale of the specified ReplicationControllerDummy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True) @@ -8261,47 +8564,50 @@ def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, n returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_dummy_scale" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_dummy_scale`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_dummy_scale`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_dummy_scale`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8309,37 +8615,35 @@ def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1Scale', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_pod_security_policy(self, name, body, **kwargs): - """ - replace the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1Scale', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_pod_security_policy(self, name, body, **kwargs): # noqa: E501 + """replace_pod_security_policy # noqa: E501 + + replace the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_pod_security_policy(name, body, async_req=True) @@ -8357,14 +8661,15 @@ def replace_pod_security_policy(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): - """ - replace the specified PodSecurityPolicy + def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_pod_security_policy # noqa: E501 + + replace the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_pod_security_policy_with_http_info(name, body, async_req=True) @@ -8381,42 +8686,44 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8424,30 +8731,27 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtensionsV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/extensions/v1beta1/podsecuritypolicies/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ExtensionsV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/logs_api.py b/kubernetes/client/api/logs_api.py similarity index 55% rename from kubernetes/client/apis/logs_api.py rename to kubernetes/client/api/logs_api.py index cb479ac013..38579442f2 100644 --- a/kubernetes/client/apis/logs_api.py +++ b/kubernetes/client/api/logs_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class LogsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,8 +32,9 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def log_file_handler(self, logpath, **kwargs): - """ + def log_file_handler(self, logpath, **kwargs): # noqa: E501 + """log_file_handler # noqa: E501 + This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.log_file_handler(logpath, async_req=True) @@ -50,13 +48,14 @@ def log_file_handler(self, logpath, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.log_file_handler_with_http_info(logpath, **kwargs) + return self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501 else: - (data) = self.log_file_handler_with_http_info(logpath, **kwargs) + (data) = self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501 return data - def log_file_handler_with_http_info(self, logpath, **kwargs): - """ + def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501 + """log_file_handler # noqa: E501 + This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.log_file_handler_with_http_info(logpath, async_req=True) @@ -69,31 +68,32 @@ def log_file_handler_with_http_info(self, logpath, **kwargs): returns the request thread. """ - all_params = ['logpath'] + local_var_params = locals() + + all_params = ['logpath'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method log_file_handler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'logpath' is set - if ('logpath' not in params) or (params['logpath'] is None): - raise ValueError("Missing the required parameter `logpath` when calling `log_file_handler`") - + if ('logpath' not in local_var_params or + local_var_params['logpath'] is None): + raise ValueError("Missing the required parameter `logpath` when calling `log_file_handler`") # noqa: E501 collection_formats = {} path_params = {} - if 'logpath' in params: - path_params['logpath'] = params['logpath'] + if 'logpath' in local_var_params: + path_params['logpath'] = local_var_params['logpath'] # noqa: E501 query_params = [] @@ -104,25 +104,27 @@ def log_file_handler_with_http_info(self, logpath, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/logs/{logpath}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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 log_file_list_handler(self, **kwargs): - """ + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/logs/{logpath}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def log_file_list_handler(self, **kwargs): # noqa: E501 + """log_file_list_handler # noqa: E501 + This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.log_file_list_handler(async_req=True) @@ -135,13 +137,14 @@ def log_file_list_handler(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.log_file_list_handler_with_http_info(**kwargs) + return self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.log_file_list_handler_with_http_info(**kwargs) + (data) = self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501 return data - def log_file_list_handler_with_http_info(self, **kwargs): - """ + def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501 + """log_file_list_handler # noqa: E501 + This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.log_file_list_handler_with_http_info(async_req=True) @@ -153,21 +156,22 @@ def log_file_list_handler_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method log_file_list_handler" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -182,19 +186,20 @@ def log_file_list_handler_with_http_info(self, **kwargs): body_params = None # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/logs/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/logs/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/networking_api.py b/kubernetes/client/api/networking_api.py new file mode 100644 index 0000000000..da72aebcef --- /dev/null +++ b/kubernetes/client/api/networking_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class NetworkingApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/networking_v1_api.py b/kubernetes/client/api/networking_v1_api.py similarity index 61% rename from kubernetes/client/apis/networking_v1_api.py rename to kubernetes/client/api/networking_v1_api.py index 025b8fa337..4e91f1ee6e 100644 --- a/kubernetes/client/apis/networking_v1_api.py +++ b/kubernetes/client/api/networking_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class NetworkingV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_network_policy(self, namespace, body, **kwargs): - """ - create a NetworkPolicy + def create_namespaced_network_policy(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_network_policy # noqa: E501 + + create a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_network_policy(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_network_policy(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): - """ - create a NetworkPolicy + def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_network_policy # noqa: E501 + + create a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_network_policy(self, namespace, **kwargs): - """ - delete collection of NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_network_policy # noqa: E501 + + delete collection of NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_network_policy(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): - """ - delete collection of NetworkPolicy + def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_network_policy # noqa: E501 + + delete collection of NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_network_policy(self, name, namespace, **kwargs): - """ - delete a NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_network_policy # noqa: E501 + + delete a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_network_policy(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): - """ - delete a NetworkPolicy + def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_network_policy # noqa: E501 + + delete a NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,34 +494,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_network_policy(self, namespace, **kwargs): - """ - list or watch objects of kind NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_network_policy # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_network_policy(namespace, async_req=True) @@ -504,6 +528,7 @@ def list_namespaced_network_policy(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -517,14 +542,15 @@ def list_namespaced_network_policy(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind NetworkPolicy + def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_network_policy # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, async_req=True) @@ -533,6 +559,7 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -545,49 +572,52 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -596,40 +626,39 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_network_policy_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_network_policy_for_all_namespaces # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_network_policy_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -644,20 +673,22 @@ def list_network_policy_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind NetworkPolicy + def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_network_policy_for_all_namespaces # noqa: E501 + + list or watch objects of kind NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -671,44 +702,46 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_network_policy_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/networkpolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): - """ - partially update the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/networkpolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_network_policy # noqa: E501 + + partially update the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_network_policy(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified NetworkPolicy + def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_network_policy # noqa: E501 + + partially update the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_network_policy(self, name, namespace, **kwargs): - """ - read the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_network_policy # noqa: E501 + + read the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_network_policy(name, namespace, async_req=True) @@ -888,14 +925,15 @@ def read_namespaced_network_policy(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): - """ - read the specified NetworkPolicy + def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_network_policy # noqa: E501 + + read the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, async_req=True) @@ -912,44 +950,46 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -958,34 +998,32 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): - """ - replace the specified NetworkPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_network_policy # noqa: E501 + + replace the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_network_policy(name, namespace, body, async_req=True) @@ -1004,14 +1042,15 @@ def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified NetworkPolicy + def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_network_policy # noqa: E501 + + replace the specified NetworkPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) @@ -1029,47 +1068,50 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_network_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1077,30 +1119,27 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1NetworkPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1NetworkPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/networking_v1beta1_api.py b/kubernetes/client/api/networking_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/networking_v1beta1_api.py rename to kubernetes/client/api/networking_v1beta1_api.py index cc1f21a033..e52deb9d0c 100644 --- a/kubernetes/client/apis/networking_v1beta1_api.py +++ b/kubernetes/client/api/networking_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class NetworkingV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_ingress(self, namespace, body, **kwargs): - """ - create an Ingress + def create_namespaced_ingress(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_ingress # noqa: E501 + + create an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_ingress(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): - """ - create an Ingress + def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_ingress # noqa: E501 + + create an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_ingress(self, namespace, **kwargs): - """ - delete collection of Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_ingress # noqa: E501 + + delete collection of Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_ingress(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): - """ - delete collection of Ingress + def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_ingress # noqa: E501 + + delete collection of Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_ingress(self, name, namespace, **kwargs): - """ - delete an Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_ingress # noqa: E501 + + delete an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_ingress(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): - """ - delete an Ingress + def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_ingress # noqa: E501 + + delete an Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,40 +494,39 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_ingress_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_ingress_for_all_namespaces # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_ingress_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -516,20 +541,22 @@ def list_ingress_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Ingress + def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_ingress_for_all_namespaces # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_ingress_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -543,44 +570,46 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_ingress_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -589,34 +618,32 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/ingresses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1IngressList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_ingress(self, namespace, **kwargs): - """ - list or watch objects of kind Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/ingresses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1IngressList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_ingress # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_ingress(namespace, async_req=True) @@ -625,6 +652,7 @@ def list_namespaced_ingress(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -638,14 +666,15 @@ def list_namespaced_ingress(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Ingress + def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_ingress # noqa: E501 + + list or watch objects of kind Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_ingress_with_http_info(namespace, async_req=True) @@ -654,6 +683,7 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -666,49 +696,52 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1IngressList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_ingress(self, name, namespace, body, **kwargs): - """ - partially update the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1IngressList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress # noqa: E501 + + partially update the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Ingress + def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress # noqa: E501 + + partially update the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress_status # noqa: E501 + + partially update status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, async_req=True) @@ -879,7 +916,7 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -890,14 +927,15 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified Ingress + def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_ingress_status # noqa: E501 + + partially update status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) @@ -906,7 +944,7 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, :param async_req bool :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -916,49 +954,52 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -966,37 +1007,39 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_ingress(self, name, namespace, **kwargs): - """ - read the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress # noqa: E501 + + read the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress(name, namespace, async_req=True) @@ -1014,14 +1057,15 @@ def read_namespaced_ingress(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Ingress + def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress # noqa: E501 + + read the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, async_req=True) @@ -1038,44 +1082,46 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1084,34 +1130,32 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_ingress_status(self, name, namespace, **kwargs): - """ - read status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_ingress_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress_status # noqa: E501 + + read status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_status(name, namespace, async_req=True) @@ -1127,14 +1171,15 @@ def read_namespaced_ingress_status(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified Ingress + def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_ingress_status # noqa: E501 + + read status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, async_req=True) @@ -1149,40 +1194,42 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1191,34 +1238,32 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_ingress(self, name, namespace, body, **kwargs): - """ - replace the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress # noqa: E501 + + replace the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress(name, namespace, body, async_req=True) @@ -1237,14 +1282,15 @@ def replace_namespaced_ingress(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Ingress + def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress # noqa: E501 + + replace the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) @@ -1262,47 +1308,50 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1310,37 +1359,35 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified Ingress + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress_status # noqa: E501 + + replace status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, async_req=True) @@ -1359,14 +1406,15 @@ def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified Ingress + def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_ingress_status # noqa: E501 + + replace status of the specified Ingress # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) @@ -1384,47 +1432,50 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1432,30 +1483,27 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='NetworkingV1beta1Ingress', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkingV1beta1Ingress', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/node_api.py b/kubernetes/client/api/node_api.py new file mode 100644 index 0000000000..4d5f4cea8f --- /dev/null +++ b/kubernetes/client/api/node_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class NodeApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/node_v1alpha1_api.py b/kubernetes/client/api/node_v1alpha1_api.py similarity index 60% rename from kubernetes/client/apis/node_v1alpha1_api.py rename to kubernetes/client/api/node_v1alpha1_api.py index 0c57c498f7..cb1d248001 100644 --- a/kubernetes/client/apis/node_v1alpha1_api.py +++ b/kubernetes/client/api/node_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class NodeV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_runtime_class(self, body, **kwargs): - """ - create a RuntimeClass + def create_runtime_class(self, body, **kwargs): # noqa: E501 + """create_runtime_class # noqa: E501 + + create a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_runtime_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_runtime_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_runtime_class_with_http_info(body, **kwargs) + return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_runtime_class_with_http_info(body, **kwargs) + (data) = self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_runtime_class_with_http_info(self, body, **kwargs): - """ - create a RuntimeClass + def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_runtime_class # noqa: E501 + + create a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_runtime_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_runtime_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_runtime_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_runtime_class(self, **kwargs): - """ - delete collection of RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_runtime_class(self, **kwargs): # noqa: E501 + """delete_collection_runtime_class # noqa: E501 + + delete collection of RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_runtime_class(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_runtime_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_runtime_class_with_http_info(**kwargs) + return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) + (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_runtime_class_with_http_info(self, **kwargs): - """ - delete collection of RuntimeClass + def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_runtime_class # noqa: E501 + + delete collection of RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_runtime_class_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_runtime_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_runtime_class(self, name, **kwargs): - """ - delete a RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_runtime_class(self, name, **kwargs): # noqa: E501 + """delete_runtime_class # noqa: E501 + + delete a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_runtime_class(name, async_req=True) @@ -275,25 +296,26 @@ def delete_runtime_class(self, name, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_runtime_class_with_http_info(name, **kwargs) + return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_runtime_class_with_http_info(name, **kwargs) + (data) = self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_runtime_class_with_http_info(self, name, **kwargs): - """ - delete a RuntimeClass + def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_runtime_class # noqa: E501 + + delete a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_runtime_class_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_runtime_class(self, **kwargs): - """ - list or watch objects of kind RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_runtime_class(self, **kwargs): # noqa: E501 + """list_runtime_class # noqa: E501 + + list or watch objects of kind RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_class(async_req=True) @@ -482,6 +503,7 @@ def list_runtime_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_runtime_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_runtime_class_with_http_info(**kwargs) + return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_runtime_class_with_http_info(**kwargs) + (data) = self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 return data - def list_runtime_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind RuntimeClass + def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 + """list_runtime_class # noqa: E501 + + list or watch objects of kind RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_class_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_runtime_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_runtime_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_runtime_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_runtime_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RuntimeClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_runtime_class(self, name, body, **kwargs): - """ - partially update the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RuntimeClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_runtime_class(self, name, body, **kwargs): # noqa: E501 + """patch_runtime_class # noqa: E501 + + partially update the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_runtime_class(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_runtime_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_runtime_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_runtime_class_with_http_info(name, body, **kwargs) + return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) + (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_runtime_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified RuntimeClass + def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_runtime_class # noqa: E501 + + partially update the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_runtime_class_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_runtime_class(self, name, **kwargs): - """ - read the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_runtime_class(self, name, **kwargs): # noqa: E501 + """read_runtime_class # noqa: E501 + + read the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_runtime_class(name, async_req=True) @@ -731,14 +760,15 @@ def read_runtime_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_runtime_class_with_http_info(name, **kwargs) + return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_runtime_class_with_http_info(name, **kwargs) + (data) = self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_runtime_class_with_http_info(self, name, **kwargs): - """ - read the specified RuntimeClass + def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_runtime_class # noqa: E501 + + read the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_runtime_class_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_runtime_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_runtime_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_runtime_class(self, name, body, **kwargs): - """ - replace the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_runtime_class(self, name, body, **kwargs): # noqa: E501 + """replace_runtime_class # noqa: E501 + + replace the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_runtime_class(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_runtime_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_runtime_class_with_http_info(name, body, **kwargs) + return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) + (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_runtime_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified RuntimeClass + def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_runtime_class # noqa: E501 + + replace the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_runtime_class_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/node_v1beta1_api.py b/kubernetes/client/api/node_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/node_v1beta1_api.py rename to kubernetes/client/api/node_v1beta1_api.py index e72f023656..3d77ca1e03 100644 --- a/kubernetes/client/apis/node_v1beta1_api.py +++ b/kubernetes/client/api/node_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class NodeV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_runtime_class(self, body, **kwargs): - """ - create a RuntimeClass + def create_runtime_class(self, body, **kwargs): # noqa: E501 + """create_runtime_class # noqa: E501 + + create a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_runtime_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_runtime_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_runtime_class_with_http_info(body, **kwargs) + return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_runtime_class_with_http_info(body, **kwargs) + (data) = self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_runtime_class_with_http_info(self, body, **kwargs): - """ - create a RuntimeClass + def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_runtime_class # noqa: E501 + + create a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_runtime_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_runtime_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_runtime_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_runtime_class(self, **kwargs): - """ - delete collection of RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_runtime_class(self, **kwargs): # noqa: E501 + """delete_collection_runtime_class # noqa: E501 + + delete collection of RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_runtime_class(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_runtime_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_runtime_class_with_http_info(**kwargs) + return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) + (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_runtime_class_with_http_info(self, **kwargs): - """ - delete collection of RuntimeClass + def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_runtime_class # noqa: E501 + + delete collection of RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_runtime_class_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_runtime_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_runtime_class(self, name, **kwargs): - """ - delete a RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_runtime_class(self, name, **kwargs): # noqa: E501 + """delete_runtime_class # noqa: E501 + + delete a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_runtime_class(name, async_req=True) @@ -275,25 +296,26 @@ def delete_runtime_class(self, name, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_runtime_class_with_http_info(name, **kwargs) + return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_runtime_class_with_http_info(name, **kwargs) + (data) = self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_runtime_class_with_http_info(self, name, **kwargs): - """ - delete a RuntimeClass + def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_runtime_class # noqa: E501 + + delete a RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_runtime_class_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_runtime_class(self, **kwargs): - """ - list or watch objects of kind RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_runtime_class(self, **kwargs): # noqa: E501 + """list_runtime_class # noqa: E501 + + list or watch objects of kind RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_class(async_req=True) @@ -482,6 +503,7 @@ def list_runtime_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_runtime_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_runtime_class_with_http_info(**kwargs) + return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_runtime_class_with_http_info(**kwargs) + (data) = self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 return data - def list_runtime_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind RuntimeClass + def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 + """list_runtime_class # noqa: E501 + + list or watch objects of kind RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_class_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_runtime_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_runtime_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_runtime_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_runtime_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RuntimeClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_runtime_class(self, name, body, **kwargs): - """ - partially update the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RuntimeClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_runtime_class(self, name, body, **kwargs): # noqa: E501 + """patch_runtime_class # noqa: E501 + + partially update the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_runtime_class(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_runtime_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_runtime_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_runtime_class_with_http_info(name, body, **kwargs) + return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) + (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_runtime_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified RuntimeClass + def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_runtime_class # noqa: E501 + + partially update the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_runtime_class_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the RuntimeClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_runtime_class(self, name, **kwargs): - """ - read the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_runtime_class(self, name, **kwargs): # noqa: E501 + """read_runtime_class # noqa: E501 + + read the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_runtime_class(name, async_req=True) @@ -731,14 +760,15 @@ def read_runtime_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_runtime_class_with_http_info(name, **kwargs) + return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_runtime_class_with_http_info(name, **kwargs) + (data) = self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_runtime_class_with_http_info(self, name, **kwargs): - """ - read the specified RuntimeClass + def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_runtime_class # noqa: E501 + + read the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_runtime_class_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_runtime_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_runtime_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_runtime_class(self, name, body, **kwargs): - """ - replace the specified RuntimeClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_runtime_class(self, name, body, **kwargs): # noqa: E501 + """replace_runtime_class # noqa: E501 + + replace the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_runtime_class(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_runtime_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_runtime_class_with_http_info(name, body, **kwargs) + return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) + (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_runtime_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified RuntimeClass + def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_runtime_class # noqa: E501 + + replace the specified RuntimeClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_runtime_class_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_runtime_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RuntimeClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/node.k8s.io/v1beta1/runtimeclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RuntimeClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/policy_api.py b/kubernetes/client/api/policy_api.py new file mode 100644 index 0000000000..839aa8bf33 --- /dev/null +++ b/kubernetes/client/api/policy_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class PolicyApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/policy_v1beta1_api.py b/kubernetes/client/api/policy_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/policy_v1beta1_api.py rename to kubernetes/client/api/policy_v1beta1_api.py index 69110a3832..1b06edd657 100644 --- a/kubernetes/client/apis/policy_v1beta1_api.py +++ b/kubernetes/client/api/policy_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class PolicyV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_pod_disruption_budget(self, namespace, body, **kwargs): - """ - create a PodDisruptionBudget + def create_namespaced_pod_disruption_budget(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_disruption_budget # noqa: E501 + + create a PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_disruption_budget(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_pod_disruption_budget(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body, **kwargs): - """ - create a PodDisruptionBudget + def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_disruption_budget # noqa: E501 + + create a PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_disruption_budget`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_disruption_budget`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_pod_security_policy(self, body, **kwargs): - """ - create a PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_pod_security_policy(self, body, **kwargs): # noqa: E501 + """create_pod_security_policy # noqa: E501 + + create a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_pod_security_policy(body, async_req=True) @@ -169,14 +168,15 @@ def create_pod_security_policy(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_pod_security_policy_with_http_info(body, **kwargs) + return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) + (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 return data - def create_pod_security_policy_with_http_info(self, body, **kwargs): - """ - create a PodSecurityPolicy + def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E501 + """create_pod_security_policy # noqa: E501 + + create a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_pod_security_policy_with_http_info(body, async_req=True) @@ -192,37 +192,38 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -230,37 +231,35 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PolicyV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs): - """ - delete collection of PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PolicyV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_disruption_budget # noqa: E501 + + delete collection of PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_disruption_budget(namespace, async_req=True) @@ -269,27 +268,34 @@ def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): - """ - delete collection of PodDisruptionBudget + def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_disruption_budget # noqa: E501 + + delete collection of PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, async_req=True) @@ -298,61 +304,78 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_disruption_budget`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -360,35 +383,35 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_pod_security_policy(self, **kwargs): - """ - delete collection of PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 + """delete_collection_pod_security_policy # noqa: E501 + + delete collection of PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_pod_security_policy(async_req=True) @@ -396,27 +419,34 @@ def delete_collection_pod_security_policy(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_pod_security_policy_with_http_info(**kwargs) + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) + (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_pod_security_policy_with_http_info(self, **kwargs): - """ - delete collection of PodSecurityPolicy + def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_pod_security_policy # noqa: E501 + + delete collection of PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_pod_security_policy_with_http_info(async_req=True) @@ -424,56 +454,72 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -481,35 +527,35 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): - """ - delete a PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_disruption_budget # noqa: E501 + + delete a PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_disruption_budget(name, namespace, async_req=True) @@ -519,25 +565,26 @@ def delete_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): - """ - delete a PodDisruptionBudget + def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_disruption_budget # noqa: E501 + + delete a PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, async_req=True) @@ -547,58 +594,60 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_disruption_budget`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_disruption_budget`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -606,37 +655,35 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_pod_security_policy(self, name, **kwargs): - """ - delete a PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 + """delete_pod_security_policy # noqa: E501 + + delete a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_pod_security_policy(name, async_req=True) @@ -645,25 +692,26 @@ def delete_pod_security_policy(self, name, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_pod_security_policy_with_http_info(name, **kwargs) + return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) + (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_pod_security_policy_with_http_info(self, name, **kwargs): - """ - delete a PodSecurityPolicy + def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_pod_security_policy # noqa: E501 + + delete a PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_pod_security_policy_with_http_info(name, async_req=True) @@ -672,53 +720,54 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -726,37 +775,35 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -769,14 +816,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -788,21 +836,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -817,34 +866,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): - """ - list or watch objects of kind PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_disruption_budget # noqa: E501 + + list or watch objects of kind PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_disruption_budget(namespace, async_req=True) @@ -853,6 +900,7 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -866,14 +914,15 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind PodDisruptionBudget + def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_disruption_budget # noqa: E501 + + list or watch objects of kind PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_disruption_budget_with_http_info(namespace, async_req=True) @@ -882,6 +931,7 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -894,49 +944,52 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_disruption_budget`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -945,40 +998,39 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudgetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudgetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_pod_disruption_budget_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_disruption_budget_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -993,20 +1045,22 @@ def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodDisruptionBudget + def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_disruption_budget_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_disruption_budget_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1020,44 +1074,46 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_disruption_budget_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1066,34 +1122,32 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/poddisruptionbudgets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudgetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_security_policy(self, **kwargs): - """ - list or watch objects of kind PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/poddisruptionbudgets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudgetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_security_policy(self, **kwargs): # noqa: E501 + """list_pod_security_policy # noqa: E501 + + list or watch objects of kind PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_security_policy(async_req=True) @@ -1101,6 +1155,7 @@ def list_pod_security_policy(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1114,14 +1169,15 @@ def list_pod_security_policy(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_security_policy_with_http_info(**kwargs) + return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_security_policy_with_http_info(**kwargs) + (data) = self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_security_policy_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodSecurityPolicy + def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_security_policy # noqa: E501 + + list or watch objects of kind PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_security_policy_with_http_info(async_req=True) @@ -1129,6 +1185,7 @@ def list_pod_security_policy_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1141,44 +1198,46 @@ def list_pod_security_policy_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1187,34 +1246,32 @@ def list_pod_security_policy_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PolicyV1beta1PodSecurityPolicyList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): - """ - partially update the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PolicyV1beta1PodSecurityPolicyList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_disruption_budget # noqa: E501 + + partially update the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_disruption_budget(name, namespace, body, async_req=True) @@ -1223,7 +1280,7 @@ def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs :param async_req bool :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1234,14 +1291,15 @@ def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified PodDisruptionBudget + def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_disruption_budget # noqa: E501 + + partially update the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, async_req=True) @@ -1250,7 +1308,7 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, :param async_req bool :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1260,49 +1318,52 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1310,37 +1371,39 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): - """ - partially update status of the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_disruption_budget_status # noqa: E501 + + partially update status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_disruption_budget_status(name, namespace, body, async_req=True) @@ -1349,7 +1412,7 @@ def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, * :param async_req bool :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1360,14 +1423,15 @@ def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, * """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update status of the specified PodDisruptionBudget + def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_disruption_budget_status # noqa: E501 + + partially update status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, async_req=True) @@ -1376,7 +1440,7 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam :param async_req bool :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1386,49 +1450,52 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_disruption_budget_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1436,37 +1503,39 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_pod_security_policy(self, name, body, **kwargs): - """ - partially update the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_pod_security_policy(self, name, body, **kwargs): # noqa: E501 + """patch_pod_security_policy # noqa: E501 + + partially update the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_pod_security_policy(name, body, async_req=True) @@ -1474,7 +1543,7 @@ def patch_pod_security_policy(self, name, body, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1485,14 +1554,15 @@ def patch_pod_security_policy(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PodSecurityPolicy + def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_pod_security_policy # noqa: E501 + + partially update the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_pod_security_policy_with_http_info(name, body, async_req=True) @@ -1500,7 +1570,7 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PodSecurityPolicy (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1510,44 +1580,46 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1555,37 +1627,39 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PolicyV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): - """ - read the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PolicyV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_disruption_budget # noqa: E501 + + read the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_disruption_budget(name, namespace, async_req=True) @@ -1603,14 +1677,15 @@ def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): - """ - read the specified PodDisruptionBudget + def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_disruption_budget # noqa: E501 + + read the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, async_req=True) @@ -1627,44 +1702,46 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1673,34 +1750,32 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_disruption_budget_status(self, name, namespace, **kwargs): - """ - read status of the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_disruption_budget_status(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_disruption_budget_status # noqa: E501 + + read status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_disruption_budget_status(name, namespace, async_req=True) @@ -1716,14 +1791,15 @@ def read_namespaced_pod_disruption_budget_status(self, name, namespace, **kwargs """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, **kwargs): - """ - read status of the specified PodDisruptionBudget + def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_disruption_budget_status # noqa: E501 + + read status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, async_req=True) @@ -1738,40 +1814,42 @@ def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, name returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_disruption_budget_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget_status`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1780,34 +1858,32 @@ def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, name body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_pod_security_policy(self, name, **kwargs): - """ - read the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_pod_security_policy(self, name, **kwargs): # noqa: E501 + """read_pod_security_policy # noqa: E501 + + read the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_pod_security_policy(name, async_req=True) @@ -1824,14 +1900,15 @@ def read_pod_security_policy(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_pod_security_policy_with_http_info(name, **kwargs) + return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) + (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 return data - def read_pod_security_policy_with_http_info(self, name, **kwargs): - """ - read the specified PodSecurityPolicy + def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 + """read_pod_security_policy # noqa: E501 + + read the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_pod_security_policy_with_http_info(name, async_req=True) @@ -1847,39 +1924,40 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1888,34 +1966,32 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PolicyV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): - """ - replace the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PolicyV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_disruption_budget # noqa: E501 + + replace the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_disruption_budget(name, namespace, body, async_req=True) @@ -1934,14 +2010,15 @@ def replace_namespaced_pod_disruption_budget(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified PodDisruptionBudget + def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_disruption_budget # noqa: E501 + + replace the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, async_req=True) @@ -1959,47 +2036,50 @@ def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespac returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_disruption_budget" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2007,37 +2087,35 @@ def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespac local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): - """ - replace status of the specified PodDisruptionBudget + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_disruption_budget_status(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_disruption_budget_status # noqa: E501 + + replace status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_disruption_budget_status(name, namespace, body, async_req=True) @@ -2056,14 +2134,15 @@ def replace_namespaced_pod_disruption_budget_status(self, name, namespace, body, """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): - """ - replace status of the specified PodDisruptionBudget + def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_disruption_budget_status # noqa: E501 + + replace status of the specified PodDisruptionBudget # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, async_req=True) @@ -2081,47 +2160,50 @@ def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, n returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_disruption_budget_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget_status`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2129,37 +2211,35 @@ def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, n local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PodDisruptionBudget', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_pod_security_policy(self, name, body, **kwargs): - """ - replace the specified PodSecurityPolicy + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PodDisruptionBudget', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_pod_security_policy(self, name, body, **kwargs): # noqa: E501 + """replace_pod_security_policy # noqa: E501 + + replace the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_pod_security_policy(name, body, async_req=True) @@ -2177,14 +2257,15 @@ def replace_pod_security_policy(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) + (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): - """ - replace the specified PodSecurityPolicy + def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_pod_security_policy # noqa: E501 + + replace the specified PodSecurityPolicy # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_pod_security_policy_with_http_info(name, body, async_req=True) @@ -2201,42 +2282,44 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_pod_security_policy" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2244,30 +2327,27 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/v1beta1/podsecuritypolicies/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PolicyV1beta1PodSecurityPolicy', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/policy/v1beta1/podsecuritypolicies/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PolicyV1beta1PodSecurityPolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/rbac_authorization_api.py b/kubernetes/client/api/rbac_authorization_api.py new file mode 100644 index 0000000000..0b12aea0c4 --- /dev/null +++ b/kubernetes/client/api/rbac_authorization_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class RbacAuthorizationApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_v1_api.py b/kubernetes/client/api/rbac_authorization_v1_api.py similarity index 60% rename from kubernetes/client/apis/rbac_authorization_v1_api.py rename to kubernetes/client/api/rbac_authorization_v1_api.py index 468df2219b..b16e53ddaf 100644 --- a/kubernetes/client/apis/rbac_authorization_v1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class RbacAuthorizationV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_cluster_role(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role(body, async_req=True) @@ -54,14 +52,15 @@ def create_cluster_role(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_with_http_info(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_cluster_role_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_cluster_role_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_cluster_role_binding(self, body, **kwargs): - """ - create a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding(body, async_req=True) @@ -162,14 +160,15 @@ def create_cluster_role_binding(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_binding_with_http_info(self, body, **kwargs): - """ - create a ClusterRoleBinding + def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role(self, namespace, body, **kwargs): - """ - create a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role(namespace, body, async_req=True) @@ -271,14 +269,15 @@ def create_namespaced_role(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): - """ - create a Role + def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) @@ -295,42 +294,44 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -338,37 +339,35 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role_binding(self, namespace, body, **kwargs): - """ - create a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) @@ -386,14 +385,15 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a RoleBinding + def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) @@ -410,42 +410,44 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -453,37 +455,35 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role(self, name, **kwargs): - """ - delete a ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role(name, async_req=True) @@ -492,25 +492,26 @@ def delete_cluster_role(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_with_http_info(self, name, **kwargs): - """ - delete a ClusterRole + def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) @@ -519,53 +520,54 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -573,37 +575,35 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role_binding(self, name, **kwargs): - """ - delete a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding(name, async_req=True) @@ -612,25 +612,26 @@ def delete_cluster_role_binding(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - delete a ClusterRoleBinding + def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) @@ -639,53 +640,54 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -693,37 +695,35 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role(self, **kwargs): - """ - delete collection of ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role(async_req=True) @@ -731,27 +731,34 @@ def delete_collection_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_with_http_info(self, **kwargs): - """ - delete collection of ClusterRole + def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) @@ -759,56 +766,72 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -816,35 +839,35 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role_binding(self, **kwargs): - """ - delete collection of ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding(async_req=True) @@ -852,27 +875,34 @@ def delete_collection_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): - """ - delete collection of ClusterRoleBinding + def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) @@ -880,56 +910,72 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -937,35 +983,35 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role(self, namespace, **kwargs): - """ - delete collection of Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) @@ -974,27 +1020,34 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - delete collection of Role + def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) @@ -1003,61 +1056,78 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1065,35 +1135,35 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role_binding(self, namespace, **kwargs): - """ - delete collection of RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) @@ -1102,27 +1172,34 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - delete collection of RoleBinding + def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1131,61 +1208,78 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1193,35 +1287,35 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role(self, name, namespace, **kwargs): - """ - delete a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) @@ -1231,25 +1325,26 @@ def delete_namespaced_role(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - delete a Role + def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -1259,58 +1354,60 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1318,37 +1415,35 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role_binding(self, name, namespace, **kwargs): - """ - delete a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) @@ -1358,25 +1453,26 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - delete a RoleBinding + def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -1386,58 +1482,60 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1445,37 +1543,35 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1488,14 +1584,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1507,21 +1604,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1536,34 +1634,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role(self, **kwargs): - """ - list or watch objects of kind ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role(async_req=True) @@ -1571,6 +1667,7 @@ def list_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1584,14 +1681,15 @@ def list_cluster_role(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_with_http_info(**kwargs) + (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRole + def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_with_http_info(async_req=True) @@ -1599,6 +1697,7 @@ def list_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1611,44 +1710,46 @@ def list_cluster_role_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1657,34 +1758,32 @@ def list_cluster_role_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role_binding(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role_binding(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding(async_req=True) @@ -1692,6 +1791,7 @@ def list_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1705,14 +1805,15 @@ def list_cluster_role_binding(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) + (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_binding_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) @@ -1720,6 +1821,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1732,44 +1834,46 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1778,34 +1882,32 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role(self, namespace, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role(namespace, async_req=True) @@ -1814,6 +1916,7 @@ def list_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1827,14 +1930,15 @@ def list_namespaced_role(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Role + def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) @@ -1843,6 +1947,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1855,49 +1960,52 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1906,34 +2014,32 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role_binding(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) @@ -1942,6 +2048,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1955,14 +2062,15 @@ def list_namespaced_role_binding(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1971,6 +2079,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1983,49 +2092,52 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2034,40 +2146,39 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_binding_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2082,20 +2193,22 @@ def list_role_binding_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2109,44 +2222,46 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2155,40 +2270,39 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2203,20 +2317,22 @@ def list_role_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Role + def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2230,44 +2346,46 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2276,34 +2394,32 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role(name, body, async_req=True) @@ -2311,7 +2427,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2322,14 +2438,15 @@ def patch_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) @@ -2337,7 +2454,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2347,44 +2464,46 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2392,37 +2511,39 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role_binding(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) @@ -2430,7 +2551,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2441,14 +2562,15 @@ def patch_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -2456,7 +2578,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2466,44 +2588,46 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2511,37 +2635,39 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) @@ -2550,7 +2676,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2561,14 +2687,15 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -2577,7 +2704,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2587,49 +2714,52 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2637,37 +2767,39 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) @@ -2676,7 +2808,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2687,14 +2819,15 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -2703,7 +2836,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2713,49 +2846,52 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2763,37 +2899,39 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role(self, name, **kwargs): - """ - read the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role(name, async_req=True) @@ -2808,14 +2946,15 @@ def read_cluster_role(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRole + def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) @@ -2829,35 +2968,36 @@ def read_cluster_role_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2866,34 +3006,32 @@ def read_cluster_role_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role_binding(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding(name, async_req=True) @@ -2908,14 +3046,15 @@ def read_cluster_role_binding(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) @@ -2929,35 +3068,36 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2966,34 +3106,32 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role(self, name, namespace, **kwargs): - """ - read the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role(name, namespace, async_req=True) @@ -3009,14 +3147,15 @@ def read_namespaced_role(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Role + def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -3031,40 +3170,42 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3073,34 +3214,32 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role_binding(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) @@ -3116,14 +3255,15 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -3138,40 +3278,42 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3180,34 +3322,32 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role(self, name, body, **kwargs): - """ - replace the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role(name, body, async_req=True) @@ -3225,14 +3365,15 @@ def replace_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRole + def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) @@ -3249,42 +3390,44 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3292,37 +3435,35 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role_binding(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) @@ -3340,14 +3481,15 @@ def replace_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -3364,42 +3506,44 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3407,37 +3551,35 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role(self, name, namespace, body, **kwargs): - """ - replace the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) @@ -3456,14 +3598,15 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Role + def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -3481,47 +3624,50 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3529,37 +3675,35 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) @@ -3578,14 +3722,15 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -3603,47 +3748,50 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3651,30 +3799,27 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py b/kubernetes/client/api/rbac_authorization_v1alpha1_api.py similarity index 60% rename from kubernetes/client/apis/rbac_authorization_v1alpha1_api.py rename to kubernetes/client/api/rbac_authorization_v1alpha1_api.py index 2f3148ecfd..1cd4dd1629 100644 --- a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class RbacAuthorizationV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_cluster_role(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role(body, async_req=True) @@ -54,14 +52,15 @@ def create_cluster_role(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_with_http_info(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_cluster_role_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_cluster_role_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_cluster_role_binding(self, body, **kwargs): - """ - create a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding(body, async_req=True) @@ -162,14 +160,15 @@ def create_cluster_role_binding(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_binding_with_http_info(self, body, **kwargs): - """ - create a ClusterRoleBinding + def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role(self, namespace, body, **kwargs): - """ - create a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role(namespace, body, async_req=True) @@ -271,14 +269,15 @@ def create_namespaced_role(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): - """ - create a Role + def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) @@ -295,42 +294,44 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -338,37 +339,35 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role_binding(self, namespace, body, **kwargs): - """ - create a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) @@ -386,14 +385,15 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a RoleBinding + def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) @@ -410,42 +410,44 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -453,37 +455,35 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role(self, name, **kwargs): - """ - delete a ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role(name, async_req=True) @@ -492,25 +492,26 @@ def delete_cluster_role(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_with_http_info(self, name, **kwargs): - """ - delete a ClusterRole + def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) @@ -519,53 +520,54 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -573,37 +575,35 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role_binding(self, name, **kwargs): - """ - delete a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding(name, async_req=True) @@ -612,25 +612,26 @@ def delete_cluster_role_binding(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - delete a ClusterRoleBinding + def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) @@ -639,53 +640,54 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -693,37 +695,35 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role(self, **kwargs): - """ - delete collection of ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role(async_req=True) @@ -731,27 +731,34 @@ def delete_collection_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_with_http_info(self, **kwargs): - """ - delete collection of ClusterRole + def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) @@ -759,56 +766,72 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -816,35 +839,35 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role_binding(self, **kwargs): - """ - delete collection of ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding(async_req=True) @@ -852,27 +875,34 @@ def delete_collection_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): - """ - delete collection of ClusterRoleBinding + def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) @@ -880,56 +910,72 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -937,35 +983,35 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role(self, namespace, **kwargs): - """ - delete collection of Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) @@ -974,27 +1020,34 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - delete collection of Role + def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) @@ -1003,61 +1056,78 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1065,35 +1135,35 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role_binding(self, namespace, **kwargs): - """ - delete collection of RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) @@ -1102,27 +1172,34 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - delete collection of RoleBinding + def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1131,61 +1208,78 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1193,35 +1287,35 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role(self, name, namespace, **kwargs): - """ - delete a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) @@ -1231,25 +1325,26 @@ def delete_namespaced_role(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - delete a Role + def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -1259,58 +1354,60 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1318,37 +1415,35 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role_binding(self, name, namespace, **kwargs): - """ - delete a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) @@ -1358,25 +1453,26 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - delete a RoleBinding + def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -1386,58 +1482,60 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1445,37 +1543,35 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1488,14 +1584,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1507,21 +1604,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1536,34 +1634,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role(self, **kwargs): - """ - list or watch objects of kind ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role(async_req=True) @@ -1571,6 +1667,7 @@ def list_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1584,14 +1681,15 @@ def list_cluster_role(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_with_http_info(**kwargs) + (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRole + def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_with_http_info(async_req=True) @@ -1599,6 +1697,7 @@ def list_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1611,44 +1710,46 @@ def list_cluster_role_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1657,34 +1758,32 @@ def list_cluster_role_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role_binding(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role_binding(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding(async_req=True) @@ -1692,6 +1791,7 @@ def list_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1705,14 +1805,15 @@ def list_cluster_role_binding(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) + (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_binding_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) @@ -1720,6 +1821,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1732,44 +1834,46 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1778,34 +1882,32 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role(self, namespace, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role(namespace, async_req=True) @@ -1814,6 +1916,7 @@ def list_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1827,14 +1930,15 @@ def list_namespaced_role(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Role + def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) @@ -1843,6 +1947,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1855,49 +1960,52 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1906,34 +2014,32 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role_binding(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) @@ -1942,6 +2048,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1955,14 +2062,15 @@ def list_namespaced_role_binding(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1971,6 +2079,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1983,49 +2092,52 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2034,40 +2146,39 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_binding_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2082,20 +2193,22 @@ def list_role_binding_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2109,44 +2222,46 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2155,40 +2270,39 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2203,20 +2317,22 @@ def list_role_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Role + def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2230,44 +2346,46 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2276,34 +2394,32 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role(name, body, async_req=True) @@ -2311,7 +2427,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2322,14 +2438,15 @@ def patch_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) @@ -2337,7 +2454,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2347,44 +2464,46 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2392,37 +2511,39 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role_binding(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) @@ -2430,7 +2551,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2441,14 +2562,15 @@ def patch_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -2456,7 +2578,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2466,44 +2588,46 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2511,37 +2635,39 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) @@ -2550,7 +2676,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2561,14 +2687,15 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -2577,7 +2704,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2587,49 +2714,52 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2637,37 +2767,39 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) @@ -2676,7 +2808,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2687,14 +2819,15 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -2703,7 +2836,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2713,49 +2846,52 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2763,37 +2899,39 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role(self, name, **kwargs): - """ - read the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role(name, async_req=True) @@ -2808,14 +2946,15 @@ def read_cluster_role(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRole + def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) @@ -2829,35 +2968,36 @@ def read_cluster_role_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2866,34 +3006,32 @@ def read_cluster_role_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role_binding(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding(name, async_req=True) @@ -2908,14 +3046,15 @@ def read_cluster_role_binding(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) @@ -2929,35 +3068,36 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2966,34 +3106,32 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role(self, name, namespace, **kwargs): - """ - read the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role(name, namespace, async_req=True) @@ -3009,14 +3147,15 @@ def read_namespaced_role(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Role + def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -3031,40 +3170,42 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3073,34 +3214,32 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role_binding(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) @@ -3116,14 +3255,15 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -3138,40 +3278,42 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3180,34 +3322,32 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role(self, name, body, **kwargs): - """ - replace the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role(name, body, async_req=True) @@ -3225,14 +3365,15 @@ def replace_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRole + def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) @@ -3249,42 +3390,44 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3292,37 +3435,35 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role_binding(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) @@ -3340,14 +3481,15 @@ def replace_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -3364,42 +3506,44 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3407,37 +3551,35 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role(self, name, namespace, body, **kwargs): - """ - replace the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) @@ -3456,14 +3598,15 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Role + def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -3481,47 +3624,50 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3529,37 +3675,35 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) @@ -3578,14 +3722,15 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -3603,47 +3748,50 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3651,30 +3799,27 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py b/kubernetes/client/api/rbac_authorization_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/rbac_authorization_v1beta1_api.py rename to kubernetes/client/api/rbac_authorization_v1beta1_api.py index a8c5395379..86dd5a34f8 100644 --- a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class RbacAuthorizationV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_cluster_role(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role(body, async_req=True) @@ -54,14 +52,15 @@ def create_cluster_role(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_with_http_info(self, body, **kwargs): - """ - create a ClusterRole + def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role # noqa: E501 + + create a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_cluster_role_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_cluster_role_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_cluster_role_binding(self, body, **kwargs): - """ - create a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding(body, async_req=True) @@ -162,14 +160,15 @@ def create_cluster_role_binding(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) + (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 return data - def create_cluster_role_binding_with_http_info(self, body, **kwargs): - """ - create a ClusterRoleBinding + def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 + """create_cluster_role_binding # noqa: E501 + + create a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role(self, namespace, body, **kwargs): - """ - create a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role(namespace, body, async_req=True) @@ -271,14 +269,15 @@ def create_namespaced_role(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): - """ - create a Role + def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role # noqa: E501 + + create a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) @@ -295,42 +294,44 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -338,37 +339,35 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_namespaced_role_binding(self, namespace, body, **kwargs): - """ - create a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) @@ -386,14 +385,15 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): - """ - create a RoleBinding + def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_role_binding # noqa: E501 + + create a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) @@ -410,42 +410,44 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -453,37 +455,35 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role(self, name, **kwargs): - """ - delete a ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role(name, async_req=True) @@ -492,25 +492,26 @@ def delete_cluster_role(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_with_http_info(self, name, **kwargs): - """ - delete a ClusterRole + def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role # noqa: E501 + + delete a ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) @@ -519,53 +520,54 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -573,37 +575,35 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_cluster_role_binding(self, name, **kwargs): - """ - delete a ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding(name, async_req=True) @@ -612,25 +612,26 @@ def delete_cluster_role_binding(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - delete a ClusterRoleBinding + def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_cluster_role_binding # noqa: E501 + + delete a ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) @@ -639,53 +640,54 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -693,37 +695,35 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role(self, **kwargs): - """ - delete collection of ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role(async_req=True) @@ -731,27 +731,34 @@ def delete_collection_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_with_http_info(self, **kwargs): - """ - delete collection of ClusterRole + def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role # noqa: E501 + + delete collection of ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) @@ -759,56 +766,72 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -816,35 +839,35 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_cluster_role_binding(self, **kwargs): - """ - delete collection of ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding(async_req=True) @@ -852,27 +875,34 @@ def delete_collection_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) + (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): - """ - delete collection of ClusterRoleBinding + def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_cluster_role_binding # noqa: E501 + + delete collection of ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) @@ -880,56 +910,72 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -937,35 +983,35 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role(self, namespace, **kwargs): - """ - delete collection of Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) @@ -974,27 +1020,34 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - delete collection of Role + def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role # noqa: E501 + + delete collection of Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) @@ -1003,61 +1056,78 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1065,35 +1135,35 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_role_binding(self, namespace, **kwargs): - """ - delete collection of RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) @@ -1102,27 +1172,34 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - delete collection of RoleBinding + def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_role_binding # noqa: E501 + + delete collection of RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1131,61 +1208,78 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1193,35 +1287,35 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role(self, name, namespace, **kwargs): - """ - delete a Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) @@ -1231,25 +1325,26 @@ def delete_namespaced_role(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - delete a Role + def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role # noqa: E501 + + delete a Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -1259,58 +1354,60 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1318,37 +1415,35 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_role_binding(self, name, namespace, **kwargs): - """ - delete a RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) @@ -1358,25 +1453,26 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - delete a RoleBinding + def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_role_binding # noqa: E501 + + delete a RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -1386,58 +1482,60 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1445,37 +1543,35 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1488,14 +1584,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1507,21 +1604,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1536,34 +1634,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role(self, **kwargs): - """ - list or watch objects of kind ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role(async_req=True) @@ -1571,6 +1667,7 @@ def list_cluster_role(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1584,14 +1681,15 @@ def list_cluster_role(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_with_http_info(**kwargs) + (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRole + def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role # noqa: E501 + + list or watch objects of kind ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_with_http_info(async_req=True) @@ -1599,6 +1697,7 @@ def list_cluster_role_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1611,44 +1710,46 @@ def list_cluster_role_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1657,34 +1758,32 @@ def list_cluster_role_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_cluster_role_binding(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_cluster_role_binding(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding(async_req=True) @@ -1692,6 +1791,7 @@ def list_cluster_role_binding(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1705,14 +1805,15 @@ def list_cluster_role_binding(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) + (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 return data - def list_cluster_role_binding_with_http_info(self, **kwargs): - """ - list or watch objects of kind ClusterRoleBinding + def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 + """list_cluster_role_binding # noqa: E501 + + list or watch objects of kind ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) @@ -1720,6 +1821,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1732,44 +1834,46 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1778,34 +1882,32 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role(self, namespace, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role(namespace, async_req=True) @@ -1814,6 +1916,7 @@ def list_namespaced_role(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1827,14 +1930,15 @@ def list_namespaced_role(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind Role + def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) @@ -1843,6 +1947,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1855,49 +1960,52 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1906,34 +2014,32 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_role_binding(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) @@ -1942,6 +2048,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1955,14 +2062,15 @@ def list_namespaced_role_binding(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_role_binding # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) @@ -1971,6 +2079,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1983,49 +2092,52 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2034,40 +2146,39 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_binding_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2082,20 +2193,22 @@ def list_role_binding_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind RoleBinding + def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_binding_for_all_namespaces # noqa: E501 + + list or watch objects of kind RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2109,44 +2222,46 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2155,40 +2270,39 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/rolebindings', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBindingList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_role_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/rolebindings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBindingList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2203,20 +2317,22 @@ def list_role_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_role_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind Role + def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_role_for_all_namespaces # noqa: E501 + + list or watch objects of kind Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -2230,44 +2346,46 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2276,34 +2394,32 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/roles', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role(name, body, async_req=True) @@ -2311,7 +2427,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2322,14 +2438,15 @@ def patch_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRole + def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role # noqa: E501 + + partially update the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) @@ -2337,7 +2454,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRole (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2347,44 +2464,46 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2392,37 +2511,39 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_cluster_role_binding(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) @@ -2430,7 +2551,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2441,14 +2562,15 @@ def patch_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - partially update the specified ClusterRoleBinding + def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_cluster_role_binding # noqa: E501 + + partially update the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -2456,7 +2578,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the ClusterRoleBinding (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2466,44 +2588,46 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2511,37 +2635,39 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) @@ -2550,7 +2676,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2561,14 +2687,15 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified Role + def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role # noqa: E501 + + partially update the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -2577,7 +2704,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2587,49 +2714,52 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2637,37 +2767,39 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) @@ -2676,7 +2808,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2687,14 +2819,15 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified RoleBinding + def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_role_binding # noqa: E501 + + partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -2703,7 +2836,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** :param async_req bool :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2713,49 +2846,52 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2763,37 +2899,39 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role(self, name, **kwargs): - """ - read the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role(name, async_req=True) @@ -2808,14 +2946,15 @@ def read_cluster_role(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRole + def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role # noqa: E501 + + read the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) @@ -2829,35 +2968,36 @@ def read_cluster_role_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2866,34 +3006,32 @@ def read_cluster_role_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_cluster_role_binding(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding(name, async_req=True) @@ -2908,14 +3046,15 @@ def read_cluster_role_binding(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) + (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 return data - def read_cluster_role_binding_with_http_info(self, name, **kwargs): - """ - read the specified ClusterRoleBinding + def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 + """read_cluster_role_binding # noqa: E501 + + read the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) @@ -2929,35 +3068,36 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -2966,34 +3106,32 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role(self, name, namespace, **kwargs): - """ - read the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role(name, namespace, async_req=True) @@ -3009,14 +3147,15 @@ def read_namespaced_role(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): - """ - read the specified Role + def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role # noqa: E501 + + read the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) @@ -3031,40 +3170,42 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3073,34 +3214,32 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_role_binding(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) @@ -3116,14 +3255,15 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): - """ - read the specified RoleBinding + def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_role_binding # noqa: E501 + + read the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) @@ -3138,40 +3278,42 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) returns the request thread. """ - all_params = ['name', 'namespace', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3180,34 +3322,32 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role(self, name, body, **kwargs): - """ - replace the specified ClusterRole + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role(name, body, async_req=True) @@ -3225,14 +3365,15 @@ def replace_cluster_role(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRole + def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role # noqa: E501 + + replace the specified ClusterRole # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) @@ -3249,42 +3390,44 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3292,37 +3435,35 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRole', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_cluster_role_binding(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) @@ -3340,14 +3481,15 @@ def replace_cluster_role_binding(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) + (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): - """ - replace the specified ClusterRoleBinding + def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_cluster_role_binding # noqa: E501 + + replace the specified ClusterRoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) @@ -3364,42 +3506,44 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3407,37 +3551,35 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1ClusterRoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role(self, name, namespace, body, **kwargs): - """ - replace the specified Role + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1ClusterRoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) @@ -3456,14 +3598,15 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified Role + def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role # noqa: E501 + + replace the specified Role # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) @@ -3481,47 +3624,50 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3529,37 +3675,35 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1Role', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1Role', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) @@ -3578,14 +3722,15 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified RoleBinding + def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_role_binding # noqa: E501 + + replace the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) @@ -3603,47 +3748,50 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3651,30 +3799,27 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1RoleBinding', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1RoleBinding', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/scheduling_api.py b/kubernetes/client/api/scheduling_api.py new file mode 100644 index 0000000000..c9d9bd839d --- /dev/null +++ b/kubernetes/client/api/scheduling_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class SchedulingApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/scheduling_v1_api.py b/kubernetes/client/api/scheduling_v1_api.py similarity index 59% rename from kubernetes/client/apis/scheduling_v1_api.py rename to kubernetes/client/api/scheduling_v1_api.py index 7d0ee5297c..bf80a22138 100644 --- a/kubernetes/client/apis/scheduling_v1_api.py +++ b/kubernetes/client/api/scheduling_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class SchedulingV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_priority_class(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_priority_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) + (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_priority_class_with_http_info(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_priority_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_priority_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_priority_class(self, **kwargs): - """ - delete collection of PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_priority_class(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) + (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_priority_class_with_http_info(self, **kwargs): - """ - delete collection of PriorityClass + def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_priority_class(self, name, **kwargs): - """ - delete a PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_priority_class(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class(name, async_req=True) @@ -275,25 +296,26 @@ def delete_priority_class(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) + (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_priority_class_with_http_info(self, name, **kwargs): - """ - delete a PriorityClass + def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_priority_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_priority_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_priority_class(self, **kwargs): - """ - list or watch objects of kind PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_priority_class(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class(async_req=True) @@ -482,6 +503,7 @@ def list_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_priority_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_priority_class_with_http_info(**kwargs) + (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def list_priority_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind PriorityClass + def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_priority_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_priority_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PriorityClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_priority_class(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PriorityClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_priority_class(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_priority_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) + (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_priority_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_priority_class(self, name, **kwargs): - """ - read the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_priority_class(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class(name, async_req=True) @@ -731,14 +760,15 @@ def read_priority_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) + (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_priority_class_with_http_info(self, name, **kwargs): - """ - read the specified PriorityClass + def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_priority_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_priority_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_priority_class(self, name, body, **kwargs): - """ - replace the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_priority_class(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) + (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_priority_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified PriorityClass + def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1/priorityclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/scheduling_v1alpha1_api.py b/kubernetes/client/api/scheduling_v1alpha1_api.py similarity index 59% rename from kubernetes/client/apis/scheduling_v1alpha1_api.py rename to kubernetes/client/api/scheduling_v1alpha1_api.py index ce92fb2cbd..7efccbff90 100644 --- a/kubernetes/client/apis/scheduling_v1alpha1_api.py +++ b/kubernetes/client/api/scheduling_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class SchedulingV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_priority_class(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_priority_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) + (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_priority_class_with_http_info(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_priority_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_priority_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_priority_class(self, **kwargs): - """ - delete collection of PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_priority_class(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) + (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_priority_class_with_http_info(self, **kwargs): - """ - delete collection of PriorityClass + def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_priority_class(self, name, **kwargs): - """ - delete a PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_priority_class(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class(name, async_req=True) @@ -275,25 +296,26 @@ def delete_priority_class(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) + (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_priority_class_with_http_info(self, name, **kwargs): - """ - delete a PriorityClass + def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_priority_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_priority_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_priority_class(self, **kwargs): - """ - list or watch objects of kind PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_priority_class(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class(async_req=True) @@ -482,6 +503,7 @@ def list_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_priority_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_priority_class_with_http_info(**kwargs) + (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def list_priority_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind PriorityClass + def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_priority_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_priority_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PriorityClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_priority_class(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PriorityClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_priority_class(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_priority_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) + (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_priority_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_priority_class(self, name, **kwargs): - """ - read the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_priority_class(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class(name, async_req=True) @@ -731,14 +760,15 @@ def read_priority_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) + (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_priority_class_with_http_info(self, name, **kwargs): - """ - read the specified PriorityClass + def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_priority_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_priority_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_priority_class(self, name, body, **kwargs): - """ - replace the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_priority_class(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) + (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_priority_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified PriorityClass + def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/scheduling_v1beta1_api.py b/kubernetes/client/api/scheduling_v1beta1_api.py similarity index 59% rename from kubernetes/client/apis/scheduling_v1beta1_api.py rename to kubernetes/client/api/scheduling_v1beta1_api.py index 18cc26ebe2..5fd19f368d 100644 --- a/kubernetes/client/apis/scheduling_v1beta1_api.py +++ b/kubernetes/client/api/scheduling_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class SchedulingV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_priority_class(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_priority_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) + (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_priority_class_with_http_info(self, body, **kwargs): - """ - create a PriorityClass + def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_priority_class # noqa: E501 + + create a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_priority_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_priority_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_priority_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_priority_class(self, **kwargs): - """ - delete collection of PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_priority_class(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) + (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_priority_class_with_http_info(self, **kwargs): - """ - delete collection of PriorityClass + def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_priority_class # noqa: E501 + + delete collection of PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_priority_class(self, name, **kwargs): - """ - delete a PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_priority_class(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class(name, async_req=True) @@ -275,25 +296,26 @@ def delete_priority_class(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) + (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_priority_class_with_http_info(self, name, **kwargs): - """ - delete a PriorityClass + def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_priority_class # noqa: E501 + + delete a PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_priority_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_priority_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_priority_class(self, **kwargs): - """ - list or watch objects of kind PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_priority_class(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class(async_req=True) @@ -482,6 +503,7 @@ def list_priority_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_priority_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_priority_class_with_http_info(**kwargs) + (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 return data - def list_priority_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind PriorityClass + def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 + """list_priority_class # noqa: E501 + + list or watch objects of kind PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_priority_class_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_priority_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_priority_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_priority_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PriorityClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_priority_class(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PriorityClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_priority_class(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_priority_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) + (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_priority_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified PriorityClass + def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_priority_class # noqa: E501 + + partially update the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the PriorityClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_priority_class(self, name, **kwargs): - """ - read the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_priority_class(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class(name, async_req=True) @@ -731,14 +760,15 @@ def read_priority_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) + (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_priority_class_with_http_info(self, name, **kwargs): - """ - read the specified PriorityClass + def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_priority_class # noqa: E501 + + read the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_priority_class_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_priority_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_priority_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_priority_class(self, name, body, **kwargs): - """ - replace the specified PriorityClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_priority_class(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_priority_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) + (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_priority_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified PriorityClass + def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_priority_class # noqa: E501 + + replace the specified PriorityClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1PriorityClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1PriorityClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/settings_api.py b/kubernetes/client/api/settings_api.py new file mode 100644 index 0000000000..7d46c07091 --- /dev/null +++ b/kubernetes/client/api/settings_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class SettingsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_v1alpha1_api.py b/kubernetes/client/api/settings_v1alpha1_api.py similarity index 61% rename from kubernetes/client/apis/settings_v1alpha1_api.py rename to kubernetes/client/api/settings_v1alpha1_api.py index 71cb0f21a1..ed90cff71c 100644 --- a/kubernetes/client/apis/settings_v1alpha1_api.py +++ b/kubernetes/client/api/settings_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class SettingsV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_namespaced_pod_preset(self, namespace, body, **kwargs): - """ - create a PodPreset + def create_namespaced_pod_preset(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_preset # noqa: E501 + + create a PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_preset(namespace, body, async_req=True) @@ -55,14 +53,15 @@ def create_namespaced_pod_preset(self, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) + return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) # noqa: E501 else: - (data) = self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) + (data) = self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) # noqa: E501 return data - def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs): - """ - create a PodPreset + def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs): # noqa: E501 + """create_namespaced_pod_preset # noqa: E501 + + create a PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_namespaced_pod_preset_with_http_info(namespace, body, async_req=True) @@ -79,42 +78,44 @@ def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs) returns the request thread. """ - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_preset`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_preset`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -122,37 +123,35 @@ def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): - """ - delete collection of PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPreset', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_preset # noqa: E501 + + delete collection of PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_preset(namespace, async_req=True) @@ -161,27 +160,34 @@ def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) + return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 return data - def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): - """ - delete collection of PodPreset + def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noqa: E501 + """delete_collection_namespaced_pod_preset # noqa: E501 + + delete collection of PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_namespaced_pod_preset_with_http_info(namespace, async_req=True) @@ -190,61 +196,78 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -252,35 +275,35 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_namespaced_pod_preset(self, name, namespace, **kwargs): - """ - delete a PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_pod_preset(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_preset # noqa: E501 + + delete a PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_preset(name, namespace, async_req=True) @@ -290,25 +313,26 @@ def delete_namespaced_pod_preset(self, name, namespace, **kwargs): :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + return self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + (data) = self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): - """ - delete a PodPreset + def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """delete_namespaced_pod_preset # noqa: E501 + + delete a PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_namespaced_pod_preset_with_http_info(name, namespace, async_req=True) @@ -318,58 +342,60 @@ def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs) :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_preset`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_preset`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -377,37 +403,35 @@ def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs) local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -420,14 +444,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -439,21 +464,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -468,34 +494,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_namespaced_pod_preset(self, namespace, **kwargs): - """ - list or watch objects of kind PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_namespaced_pod_preset(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_preset # noqa: E501 + + list or watch objects of kind PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_preset(namespace, async_req=True) @@ -504,6 +528,7 @@ def list_namespaced_pod_preset(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -517,14 +542,15 @@ def list_namespaced_pod_preset(self, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) + return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 else: - (data) = self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) + (data) = self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 return data - def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): - """ - list or watch objects of kind PodPreset + def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noqa: E501 + """list_namespaced_pod_preset # noqa: E501 + + list or watch objects of kind PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_namespaced_pod_preset_with_http_info(namespace, async_req=True) @@ -533,6 +559,7 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): :param async_req bool :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -545,49 +572,52 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): returns the request thread. """ - all_params = ['namespace', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_preset`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -596,40 +626,39 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPresetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_pod_preset_for_all_namespaces(self, **kwargs): - """ - list or watch objects of kind PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPresetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_pod_preset_for_all_namespaces(self, **kwargs): # noqa: E501 + """list_pod_preset_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_preset_for_all_namespaces(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -644,20 +673,22 @@ def list_pod_preset_for_all_namespaces(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) + return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 return data - def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): - """ - list or watch objects of kind PodPreset + def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 + """list_pod_preset_for_all_namespaces # noqa: E501 + + list or watch objects of kind PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_pod_preset_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -671,44 +702,46 @@ def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_preset_for_all_namespaces" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -717,34 +750,32 @@ def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/podpresets', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPresetList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): - """ - partially update the specified PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/podpresets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPresetList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_preset # noqa: E501 + + partially update the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_preset(name, namespace, body, async_req=True) @@ -753,7 +784,7 @@ def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): :param async_req bool :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -764,14 +795,15 @@ def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): - """ - partially update the specified PodPreset + def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """patch_namespaced_pod_preset # noqa: E501 + + partially update the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_namespaced_pod_preset_with_http_info(name, namespace, body, async_req=True) @@ -780,7 +812,7 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw :param async_req bool :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -790,49 +822,52 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_preset`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_preset`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_preset`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -840,37 +875,39 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_namespaced_pod_preset(self, name, namespace, **kwargs): - """ - read the specified PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPreset', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_namespaced_pod_preset(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_preset # noqa: E501 + + read the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_preset(name, namespace, async_req=True) @@ -888,14 +925,15 @@ def read_namespaced_pod_preset(self, name, namespace, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 else: - (data) = self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 return data - def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): - """ - read the specified PodPreset + def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): # noqa: E501 + """read_namespaced_pod_preset # noqa: E501 + + read the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_namespaced_pod_preset_with_http_info(name, namespace, async_req=True) @@ -912,44 +950,46 @@ def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): returns the request thread. """ - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_preset`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_preset`") - + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -958,34 +998,32 @@ def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): - """ - replace the specified PodPreset + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPreset', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_preset # noqa: E501 + + replace the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_preset(name, namespace, body, async_req=True) @@ -1004,14 +1042,15 @@ def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 else: - (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) + (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 return data - def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): - """ - replace the specified PodPreset + def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 + """replace_namespaced_pod_preset # noqa: E501 + + replace the specified PodPreset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_pod_preset_with_http_info(name, namespace, body, async_req=True) @@ -1029,47 +1068,50 @@ def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, ** returns the request thread. """ - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_preset" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_preset`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_preset`") + if ('namespace' not in local_var_params or + local_var_params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_preset`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_preset`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] - if 'namespace' in params: - path_params['namespace'] = params['namespace'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 + if 'namespace' in local_var_params: + path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1077,30 +1119,27 @@ def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, ** local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1PodPreset', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1PodPreset', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/storage_api.py b/kubernetes/client/api/storage_api.py new file mode 100644 index 0000000000..361681b01e --- /dev/null +++ b/kubernetes/client/api/storage_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class StorageApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_api_group(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 + return data + + def get_api_group_with_http_info(self, **kwargs): # noqa: E501 + """get_api_group # noqa: E501 + + get information of a group # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_api_group_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIGroup', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_v1_api.py b/kubernetes/client/api/storage_v1_api.py similarity index 59% rename from kubernetes/client/apis/storage_v1_api.py rename to kubernetes/client/api/storage_v1_api.py index 5ea153f3b5..27044a4c9b 100644 --- a/kubernetes/client/apis/storage_v1_api.py +++ b/kubernetes/client/api/storage_v1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class StorageV1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_storage_class(self, body, **kwargs): - """ - create a StorageClass + def create_storage_class(self, body, **kwargs): # noqa: E501 + """create_storage_class # noqa: E501 + + create a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_storage_class(body, async_req=True) @@ -54,14 +52,15 @@ def create_storage_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_storage_class_with_http_info(body, **kwargs) + return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_storage_class_with_http_info(body, **kwargs) + (data) = self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_storage_class_with_http_info(self, body, **kwargs): - """ - create a StorageClass + def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_storage_class # noqa: E501 + + create a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_storage_class_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_storage_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_storage_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_volume_attachment(self, body, **kwargs): - """ - create a VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_volume_attachment(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment(body, async_req=True) @@ -162,14 +160,15 @@ def create_volume_attachment(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) + (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 return data - def create_volume_attachment_with_http_info(self, body, **kwargs): - """ - create a VolumeAttachment + def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_storage_class(self, **kwargs): - """ - delete collection of StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_storage_class(self, **kwargs): # noqa: E501 + """delete_collection_storage_class # noqa: E501 + + delete collection of StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_storage_class(async_req=True) @@ -261,27 +259,34 @@ def delete_collection_storage_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_storage_class_with_http_info(**kwargs) + return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_storage_class_with_http_info(**kwargs) + (data) = self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_storage_class_with_http_info(self, **kwargs): - """ - delete collection of StorageClass + def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_storage_class # noqa: E501 + + delete collection of StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_storage_class_with_http_info(async_req=True) @@ -289,56 +294,72 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_storage_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -346,35 +367,35 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_volume_attachment(self, **kwargs): - """ - delete collection of VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment(async_req=True) @@ -382,27 +403,34 @@ def delete_collection_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) + (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_volume_attachment_with_http_info(self, **kwargs): - """ - delete collection of VolumeAttachment + def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) @@ -410,56 +438,72 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -467,35 +511,35 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_storage_class(self, name, **kwargs): - """ - delete a StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_storage_class(self, name, **kwargs): # noqa: E501 + """delete_storage_class # noqa: E501 + + delete a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_storage_class(name, async_req=True) @@ -504,25 +548,26 @@ def delete_storage_class(self, name, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_storage_class_with_http_info(name, **kwargs) + return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_storage_class_with_http_info(name, **kwargs) + (data) = self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_storage_class_with_http_info(self, name, **kwargs): - """ - delete a StorageClass + def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_storage_class # noqa: E501 + + delete a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_storage_class_with_http_info(name, async_req=True) @@ -531,53 +576,54 @@ def delete_storage_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -585,37 +631,35 @@ def delete_storage_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_volume_attachment(self, name, **kwargs): - """ - delete a VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_volume_attachment(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment(name, async_req=True) @@ -624,25 +668,26 @@ def delete_volume_attachment(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) + (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_volume_attachment_with_http_info(self, name, **kwargs): - """ - delete a VolumeAttachment + def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) @@ -651,53 +696,54 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -705,37 +751,35 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -748,14 +792,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -767,21 +812,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -796,34 +842,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_storage_class(self, **kwargs): - """ - list or watch objects of kind StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_storage_class(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 + + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_storage_class(async_req=True) @@ -831,6 +875,7 @@ def list_storage_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -844,14 +889,15 @@ def list_storage_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_storage_class_with_http_info(**kwargs) + return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_storage_class_with_http_info(**kwargs) + (data) = self.list_storage_class_with_http_info(**kwargs) # noqa: E501 return data - def list_storage_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind StorageClass + def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 + + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_storage_class_with_http_info(async_req=True) @@ -859,6 +905,7 @@ def list_storage_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -871,44 +918,46 @@ def list_storage_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_storage_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -917,34 +966,32 @@ def list_storage_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_volume_attachment(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StorageClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_volume_attachment(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment(async_req=True) @@ -952,6 +999,7 @@ def list_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -965,14 +1013,15 @@ def list_volume_attachment(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) + (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def list_volume_attachment_with_http_info(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment_with_http_info(async_req=True) @@ -980,6 +1029,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -992,44 +1042,46 @@ def list_volume_attachment_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1038,34 +1090,32 @@ def list_volume_attachment_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachmentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_storage_class(self, name, body, **kwargs): - """ - partially update the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachmentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_storage_class(self, name, body, **kwargs): # noqa: E501 + """patch_storage_class # noqa: E501 + + partially update the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_storage_class(name, body, async_req=True) @@ -1073,7 +1123,7 @@ def patch_storage_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1084,14 +1134,15 @@ def patch_storage_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_storage_class_with_http_info(name, body, **kwargs) + return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) + (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_storage_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified StorageClass + def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_storage_class # noqa: E501 + + partially update the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_storage_class_with_http_info(name, body, async_req=True) @@ -1099,7 +1150,7 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1109,44 +1160,46 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1154,37 +1207,39 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_volume_attachment(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment(name, body, async_req=True) @@ -1192,7 +1247,7 @@ def patch_volume_attachment(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1203,14 +1258,15 @@ def patch_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) @@ -1218,7 +1274,7 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1228,44 +1284,46 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1273,37 +1331,39 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_volume_attachment_status(self, name, body, **kwargs): - """ - partially update status of the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment_status # noqa: E501 + + partially update status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment_status(name, body, async_req=True) @@ -1311,7 +1371,7 @@ def patch_volume_attachment_status(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1322,14 +1382,15 @@ def patch_volume_attachment_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) + return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) + (data) = self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): - """ - partially update status of the specified VolumeAttachment + def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment_status # noqa: E501 + + partially update status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment_status_with_http_info(name, body, async_req=True) @@ -1337,7 +1398,7 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -1347,44 +1408,46 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1392,37 +1455,39 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_storage_class(self, name, **kwargs): - """ - read the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_storage_class(self, name, **kwargs): # noqa: E501 + """read_storage_class # noqa: E501 + + read the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_storage_class(name, async_req=True) @@ -1439,14 +1504,15 @@ def read_storage_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_storage_class_with_http_info(name, **kwargs) + return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_storage_class_with_http_info(name, **kwargs) + (data) = self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_storage_class_with_http_info(self, name, **kwargs): - """ - read the specified StorageClass + def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_storage_class # noqa: E501 + + read the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_storage_class_with_http_info(name, async_req=True) @@ -1462,39 +1528,40 @@ def read_storage_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1503,34 +1570,32 @@ def read_storage_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_volume_attachment(self, name, **kwargs): - """ - read the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_volume_attachment(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment(name, async_req=True) @@ -1547,14 +1612,15 @@ def read_volume_attachment(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) + (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def read_volume_attachment_with_http_info(self, name, **kwargs): - """ - read the specified VolumeAttachment + def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) @@ -1570,39 +1636,40 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1611,34 +1678,32 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_volume_attachment_status(self, name, **kwargs): - """ - read status of the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_volume_attachment_status(self, name, **kwargs): # noqa: E501 + """read_volume_attachment_status # noqa: E501 + + read status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment_status(name, async_req=True) @@ -1653,14 +1718,15 @@ def read_volume_attachment_status(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_volume_attachment_status_with_http_info(name, **kwargs) + return self.read_volume_attachment_status_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_volume_attachment_status_with_http_info(name, **kwargs) + (data) = self.read_volume_attachment_status_with_http_info(name, **kwargs) # noqa: E501 return data - def read_volume_attachment_status_with_http_info(self, name, **kwargs): - """ - read status of the specified VolumeAttachment + def read_volume_attachment_status_with_http_info(self, name, **kwargs): # noqa: E501 + """read_volume_attachment_status # noqa: E501 + + read status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment_status_with_http_info(name, async_req=True) @@ -1674,35 +1740,36 @@ def read_volume_attachment_status_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty'] + local_var_params = locals() + + all_params = ['name', 'pretty'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment_status`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1711,34 +1778,32 @@ def read_volume_attachment_status_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_storage_class(self, name, body, **kwargs): - """ - replace the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_storage_class(self, name, body, **kwargs): # noqa: E501 + """replace_storage_class # noqa: E501 + + replace the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_storage_class(name, body, async_req=True) @@ -1756,14 +1821,15 @@ def replace_storage_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_storage_class_with_http_info(name, body, **kwargs) + return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) + (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_storage_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified StorageClass + def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_storage_class # noqa: E501 + + replace the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_storage_class_with_http_info(name, body, async_req=True) @@ -1780,42 +1846,44 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1823,37 +1891,35 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/storageclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_volume_attachment(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/storageclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment(name, body, async_req=True) @@ -1871,14 +1937,15 @@ def replace_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) @@ -1895,42 +1962,44 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1938,37 +2007,35 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_volume_attachment_status(self, name, body, **kwargs): - """ - replace status of the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment_status # noqa: E501 + + replace status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment_status(name, body, async_req=True) @@ -1986,14 +2053,15 @@ def replace_volume_attachment_status(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) + return self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) + (data) = self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): - """ - replace status of the specified VolumeAttachment + def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment_status # noqa: E501 + + replace status of the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment_status_with_http_info(name, body, async_req=True) @@ -2010,42 +2078,44 @@ def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment_status" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment_status`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment_status`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment_status`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2053,30 +2123,27 @@ def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1/volumeattachments/{name}/status', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_v1alpha1_api.py b/kubernetes/client/api/storage_v1alpha1_api.py similarity index 59% rename from kubernetes/client/apis/storage_v1alpha1_api.py rename to kubernetes/client/api/storage_v1alpha1_api.py index 65313ef7ae..900577517c 100644 --- a/kubernetes/client/apis/storage_v1alpha1_api.py +++ b/kubernetes/client/api/storage_v1alpha1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class StorageV1alpha1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_volume_attachment(self, body, **kwargs): - """ - create a VolumeAttachment + def create_volume_attachment(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment(body, async_req=True) @@ -54,14 +52,15 @@ def create_volume_attachment(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) + (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 return data - def create_volume_attachment_with_http_info(self, body, **kwargs): - """ - create a VolumeAttachment + def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_volume_attachment(self, **kwargs): - """ - delete collection of VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment(async_req=True) @@ -153,27 +151,34 @@ def delete_collection_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) + (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_volume_attachment_with_http_info(self, **kwargs): - """ - delete collection of VolumeAttachment + def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) @@ -181,56 +186,72 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -238,35 +259,35 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_volume_attachment(self, name, **kwargs): - """ - delete a VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_volume_attachment(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment(name, async_req=True) @@ -275,25 +296,26 @@ def delete_volume_attachment(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) + (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_volume_attachment_with_http_info(self, name, **kwargs): - """ - delete a VolumeAttachment + def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) @@ -302,53 +324,54 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -356,37 +379,35 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -399,14 +420,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -418,21 +440,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -447,34 +470,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_volume_attachment(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_volume_attachment(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment(async_req=True) @@ -482,6 +503,7 @@ def list_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -495,14 +517,15 @@ def list_volume_attachment(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) + (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def list_volume_attachment_with_http_info(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment_with_http_info(async_req=True) @@ -510,6 +533,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -522,44 +546,46 @@ def list_volume_attachment_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -568,34 +594,32 @@ def list_volume_attachment_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1VolumeAttachmentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_volume_attachment(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VolumeAttachmentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment(name, body, async_req=True) @@ -603,7 +627,7 @@ def patch_volume_attachment(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -614,14 +638,15 @@ def patch_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) @@ -629,7 +654,7 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -639,44 +664,46 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -684,37 +711,39 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_volume_attachment(self, name, **kwargs): - """ - read the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_volume_attachment(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment(name, async_req=True) @@ -731,14 +760,15 @@ def read_volume_attachment(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) + (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def read_volume_attachment_with_http_info(self, name, **kwargs): - """ - read the specified VolumeAttachment + def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) @@ -754,39 +784,40 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -795,34 +826,32 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_volume_attachment(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment(name, body, async_req=True) @@ -840,14 +869,15 @@ def replace_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) @@ -864,42 +894,44 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -907,30 +939,27 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1alpha1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_v1beta1_api.py b/kubernetes/client/api/storage_v1beta1_api.py similarity index 60% rename from kubernetes/client/apis/storage_v1beta1_api.py rename to kubernetes/client/api/storage_v1beta1_api.py index 6e37d39bcf..41366d1fc3 100644 --- a/kubernetes/client/apis/storage_v1beta1_api.py +++ b/kubernetes/client/api/storage_v1beta1_api.py @@ -3,31 +3,28 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..api_client import ApiClient +from kubernetes.client.api_client import ApiClient class StorageV1beta1Api(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): @@ -35,9 +32,10 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def create_csi_driver(self, body, **kwargs): - """ - create a CSIDriver + def create_csi_driver(self, body, **kwargs): # noqa: E501 + """create_csi_driver # noqa: E501 + + create a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_csi_driver(body, async_req=True) @@ -54,14 +52,15 @@ def create_csi_driver(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_csi_driver_with_http_info(body, **kwargs) + return self.create_csi_driver_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_csi_driver_with_http_info(body, **kwargs) + (data) = self.create_csi_driver_with_http_info(body, **kwargs) # noqa: E501 return data - def create_csi_driver_with_http_info(self, body, **kwargs): - """ - create a CSIDriver + def create_csi_driver_with_http_info(self, body, **kwargs): # noqa: E501 + """create_csi_driver # noqa: E501 + + create a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_csi_driver_with_http_info(body, async_req=True) @@ -77,37 +76,38 @@ def create_csi_driver_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_csi_driver" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_csi_driver`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -115,37 +115,35 @@ def create_csi_driver_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSIDriver', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_csi_node(self, body, **kwargs): - """ - create a CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSIDriver', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_csi_node(self, body, **kwargs): # noqa: E501 + """create_csi_node # noqa: E501 + + create a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_csi_node(body, async_req=True) @@ -162,14 +160,15 @@ def create_csi_node(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_csi_node_with_http_info(body, **kwargs) + return self.create_csi_node_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_csi_node_with_http_info(body, **kwargs) + (data) = self.create_csi_node_with_http_info(body, **kwargs) # noqa: E501 return data - def create_csi_node_with_http_info(self, body, **kwargs): - """ - create a CSINode + def create_csi_node_with_http_info(self, body, **kwargs): # noqa: E501 + """create_csi_node # noqa: E501 + + create a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_csi_node_with_http_info(body, async_req=True) @@ -185,37 +184,38 @@ def create_csi_node_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_csi_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_csi_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_csi_node`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -223,37 +223,35 @@ def create_csi_node_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSINode', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_storage_class(self, body, **kwargs): - """ - create a StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSINode', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_storage_class(self, body, **kwargs): # noqa: E501 + """create_storage_class # noqa: E501 + + create a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_storage_class(body, async_req=True) @@ -270,14 +268,15 @@ def create_storage_class(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_storage_class_with_http_info(body, **kwargs) + return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_storage_class_with_http_info(body, **kwargs) + (data) = self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 return data - def create_storage_class_with_http_info(self, body, **kwargs): - """ - create a StorageClass + def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 + """create_storage_class # noqa: E501 + + create a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_storage_class_with_http_info(body, async_req=True) @@ -293,37 +292,38 @@ def create_storage_class_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -331,37 +331,35 @@ def create_storage_class_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_volume_attachment(self, body, **kwargs): - """ - create a VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_volume_attachment(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment(body, async_req=True) @@ -378,14 +376,15 @@ def create_volume_attachment(self, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) + (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 return data - def create_volume_attachment_with_http_info(self, body, **kwargs): - """ - create a VolumeAttachment + def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 + """create_volume_attachment # noqa: E501 + + create a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) @@ -401,37 +400,38 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): returns the request thread. """ - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -439,37 +439,35 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_csi_driver(self, **kwargs): - """ - delete collection of CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_csi_driver(self, **kwargs): # noqa: E501 + """delete_collection_csi_driver # noqa: E501 + + delete collection of CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_csi_driver(async_req=True) @@ -477,27 +475,34 @@ def delete_collection_csi_driver(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_csi_driver_with_http_info(**kwargs) + return self.delete_collection_csi_driver_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_csi_driver_with_http_info(**kwargs) + (data) = self.delete_collection_csi_driver_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_csi_driver_with_http_info(self, **kwargs): - """ - delete collection of CSIDriver + def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_csi_driver # noqa: E501 + + delete collection of CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_csi_driver_with_http_info(async_req=True) @@ -505,56 +510,72 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_csi_driver" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -562,35 +583,35 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_csi_node(self, **kwargs): - """ - delete collection of CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_csi_node(self, **kwargs): # noqa: E501 + """delete_collection_csi_node # noqa: E501 + + delete collection of CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_csi_node(async_req=True) @@ -598,27 +619,34 @@ def delete_collection_csi_node(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_csi_node_with_http_info(**kwargs) + return self.delete_collection_csi_node_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_csi_node_with_http_info(**kwargs) + (data) = self.delete_collection_csi_node_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_csi_node_with_http_info(self, **kwargs): - """ - delete collection of CSINode + def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_csi_node # noqa: E501 + + delete collection of CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_csi_node_with_http_info(async_req=True) @@ -626,56 +654,72 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_csi_node" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -683,35 +727,35 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_storage_class(self, **kwargs): - """ - delete collection of StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_storage_class(self, **kwargs): # noqa: E501 + """delete_collection_storage_class # noqa: E501 + + delete collection of StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_storage_class(async_req=True) @@ -719,27 +763,34 @@ def delete_collection_storage_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_storage_class_with_http_info(**kwargs) + return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_storage_class_with_http_info(**kwargs) + (data) = self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_storage_class_with_http_info(self, **kwargs): - """ - delete collection of StorageClass + def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_storage_class # noqa: E501 + + delete collection of StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_storage_class_with_http_info(async_req=True) @@ -747,56 +798,72 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_storage_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -804,35 +871,35 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_collection_volume_attachment(self, **kwargs): - """ - delete collection of VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment(async_req=True) @@ -840,27 +907,34 @@ def delete_collection_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) + (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def delete_collection_volume_attachment_with_http_info(self, **kwargs): - """ - delete collection of VolumeAttachment + def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """delete_collection_volume_attachment # noqa: E501 + + delete collection of VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) @@ -868,56 +942,72 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param V1DeleteOptions v1_delete_options: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -925,35 +1015,35 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): local_var_files = {} body_params = None + if 'v1_delete_options' in local_var_params: + body_params = local_var_params['v1_delete_options'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_csi_driver(self, name, **kwargs): - """ - delete a CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_csi_driver(self, name, **kwargs): # noqa: E501 + """delete_csi_driver # noqa: E501 + + delete a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_csi_driver(name, async_req=True) @@ -962,25 +1052,26 @@ def delete_csi_driver(self, name, **kwargs): :param async_req bool :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_csi_driver_with_http_info(name, **kwargs) + return self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_csi_driver_with_http_info(name, **kwargs) + (data) = self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_csi_driver_with_http_info(self, name, **kwargs): - """ - delete a CSIDriver + def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_csi_driver # noqa: E501 + + delete a CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_csi_driver_with_http_info(name, async_req=True) @@ -989,53 +1080,54 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_csi_driver" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_csi_driver`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1043,37 +1135,35 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_csi_node(self, name, **kwargs): - """ - delete a CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_csi_node(self, name, **kwargs): # noqa: E501 + """delete_csi_node # noqa: E501 + + delete a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_csi_node(name, async_req=True) @@ -1082,25 +1172,26 @@ def delete_csi_node(self, name, **kwargs): :param async_req bool :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_csi_node_with_http_info(name, **kwargs) + return self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_csi_node_with_http_info(name, **kwargs) + (data) = self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_csi_node_with_http_info(self, name, **kwargs): - """ - delete a CSINode + def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_csi_node # noqa: E501 + + delete a CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_csi_node_with_http_info(name, async_req=True) @@ -1109,53 +1200,54 @@ def delete_csi_node_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_csi_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_csi_node`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_csi_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1163,37 +1255,35 @@ def delete_csi_node_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_storage_class(self, name, **kwargs): - """ - delete a StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_storage_class(self, name, **kwargs): # noqa: E501 + """delete_storage_class # noqa: E501 + + delete a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_storage_class(name, async_req=True) @@ -1202,25 +1292,26 @@ def delete_storage_class(self, name, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_storage_class_with_http_info(name, **kwargs) + return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_storage_class_with_http_info(name, **kwargs) + (data) = self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_storage_class_with_http_info(self, name, **kwargs): - """ - delete a StorageClass + def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_storage_class # noqa: E501 + + delete a StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_storage_class_with_http_info(name, async_req=True) @@ -1229,53 +1320,54 @@ def delete_storage_class_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1283,37 +1375,35 @@ def delete_storage_class_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_volume_attachment(self, name, **kwargs): - """ - delete a VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_volume_attachment(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment(name, async_req=True) @@ -1322,25 +1412,26 @@ def delete_volume_attachment(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) + (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def delete_volume_attachment_with_http_info(self, name, **kwargs): - """ - delete a VolumeAttachment + def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """delete_volume_attachment # noqa: E501 + + delete a VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) @@ -1349,53 +1440,54 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :param V1DeleteOptions body: :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :param V1DeleteOptions body: :return: V1Status If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'pretty', 'body', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'grace_period_seconds' in params: - query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) - if 'orphan_dependents' in params: - query_params.append(('orphanDependents', params['orphan_dependents'])) - if 'propagation_policy' in params: - query_params.append(('propagationPolicy', params['propagation_policy'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params: + query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 + if 'orphan_dependents' in local_var_params: + query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 + if 'propagation_policy' in local_var_params: + query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1403,37 +1495,35 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1Status', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_api_resources(self, **kwargs): - """ - get available resources + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1Status', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_api_resources(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources(async_req=True) @@ -1446,14 +1536,15 @@ def get_api_resources(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 return data - def get_api_resources_with_http_info(self, **kwargs): - """ - get available resources + def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 + """get_api_resources # noqa: E501 + + get available resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_api_resources_with_http_info(async_req=True) @@ -1465,21 +1556,22 @@ def get_api_resources_with_http_info(self, **kwargs): returns the request thread. """ - all_params = [] + local_var_params = locals() + + all_params = [] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} @@ -1494,34 +1586,32 @@ def get_api_resources_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIResourceList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_csi_driver(self, **kwargs): - """ - list or watch objects of kind CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1APIResourceList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_csi_driver(self, **kwargs): # noqa: E501 + """list_csi_driver # noqa: E501 + + list or watch objects of kind CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_csi_driver(async_req=True) @@ -1529,6 +1619,7 @@ def list_csi_driver(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1542,14 +1633,15 @@ def list_csi_driver(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_csi_driver_with_http_info(**kwargs) + return self.list_csi_driver_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_csi_driver_with_http_info(**kwargs) + (data) = self.list_csi_driver_with_http_info(**kwargs) # noqa: E501 return data - def list_csi_driver_with_http_info(self, **kwargs): - """ - list or watch objects of kind CSIDriver + def list_csi_driver_with_http_info(self, **kwargs): # noqa: E501 + """list_csi_driver # noqa: E501 + + list or watch objects of kind CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_csi_driver_with_http_info(async_req=True) @@ -1557,6 +1649,7 @@ def list_csi_driver_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1569,44 +1662,46 @@ def list_csi_driver_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_csi_driver" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1615,34 +1710,32 @@ def list_csi_driver_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSIDriverList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_csi_node(self, **kwargs): - """ - list or watch objects of kind CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSIDriverList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_csi_node(self, **kwargs): # noqa: E501 + """list_csi_node # noqa: E501 + + list or watch objects of kind CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_csi_node(async_req=True) @@ -1650,6 +1743,7 @@ def list_csi_node(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1663,14 +1757,15 @@ def list_csi_node(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_csi_node_with_http_info(**kwargs) + return self.list_csi_node_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_csi_node_with_http_info(**kwargs) + (data) = self.list_csi_node_with_http_info(**kwargs) # noqa: E501 return data - def list_csi_node_with_http_info(self, **kwargs): - """ - list or watch objects of kind CSINode + def list_csi_node_with_http_info(self, **kwargs): # noqa: E501 + """list_csi_node # noqa: E501 + + list or watch objects of kind CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_csi_node_with_http_info(async_req=True) @@ -1678,6 +1773,7 @@ def list_csi_node_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1690,44 +1786,46 @@ def list_csi_node_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_csi_node" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1736,34 +1834,32 @@ def list_csi_node_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSINodeList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_storage_class(self, **kwargs): - """ - list or watch objects of kind StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSINodeList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_storage_class(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 + + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_storage_class(async_req=True) @@ -1771,6 +1867,7 @@ def list_storage_class(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1784,14 +1881,15 @@ def list_storage_class(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_storage_class_with_http_info(**kwargs) + return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_storage_class_with_http_info(**kwargs) + (data) = self.list_storage_class_with_http_info(**kwargs) # noqa: E501 return data - def list_storage_class_with_http_info(self, **kwargs): - """ - list or watch objects of kind StorageClass + def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 + """list_storage_class # noqa: E501 + + list or watch objects of kind StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_storage_class_with_http_info(async_req=True) @@ -1799,6 +1897,7 @@ def list_storage_class_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1811,44 +1910,46 @@ def list_storage_class_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_storage_class" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1857,34 +1958,32 @@ def list_storage_class_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StorageClassList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_volume_attachment(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClassList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_volume_attachment(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment(async_req=True) @@ -1892,6 +1991,7 @@ def list_volume_attachment(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1905,14 +2005,15 @@ def list_volume_attachment(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) + (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 return data - def list_volume_attachment_with_http_info(self, **kwargs): - """ - list or watch objects of kind VolumeAttachment + def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 + """list_volume_attachment # noqa: E501 + + list or watch objects of kind VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_volume_attachment_with_http_info(async_req=True) @@ -1920,6 +2021,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): :param async_req bool :param str pretty: If 'true', then the output is pretty printed. + :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything. @@ -1932,44 +2034,46 @@ def list_volume_attachment_with_http_info(self, **kwargs): returns the request thread. """ - all_params = ['pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + local_var_params = locals() + + all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) - params[key] = val - del params['kwargs'] - + local_var_params[key] = val + del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if '_continue' in params: - query_params.append(('continue', params['_continue'])) - if 'field_selector' in params: - query_params.append(('fieldSelector', params['field_selector'])) - if 'label_selector' in params: - query_params.append(('labelSelector', params['label_selector'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - if 'resource_version' in params: - query_params.append(('resourceVersion', params['resource_version'])) - if 'timeout_seconds' in params: - query_params.append(('timeoutSeconds', params['timeout_seconds'])) - if 'watch' in params: - query_params.append(('watch', params['watch'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'allow_watch_bookmarks' in local_var_params: + query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 + if '_continue' in local_var_params: + query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 + if 'field_selector' in local_var_params: + query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 + if 'label_selector' in local_var_params: + query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'resource_version' in local_var_params: + query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 + if 'timeout_seconds' in local_var_params: + query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 + if 'watch' in local_var_params: + query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1978,34 +2082,32 @@ def list_volume_attachment_with_http_info(self, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1VolumeAttachmentList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_csi_driver(self, name, body, **kwargs): - """ - partially update the specified CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VolumeAttachmentList', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_csi_driver(self, name, body, **kwargs): # noqa: E501 + """patch_csi_driver # noqa: E501 + + partially update the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_csi_driver(name, body, async_req=True) @@ -2013,7 +2115,7 @@ def patch_csi_driver(self, name, body, **kwargs): :param async_req bool :param str name: name of the CSIDriver (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2024,14 +2126,15 @@ def patch_csi_driver(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_csi_driver_with_http_info(name, body, **kwargs) + return self.patch_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_csi_driver_with_http_info(name, body, **kwargs) + (data) = self.patch_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_csi_driver_with_http_info(self, name, body, **kwargs): - """ - partially update the specified CSIDriver + def patch_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_csi_driver # noqa: E501 + + partially update the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_csi_driver_with_http_info(name, body, async_req=True) @@ -2039,7 +2142,7 @@ def patch_csi_driver_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the CSIDriver (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2049,44 +2152,46 @@ def patch_csi_driver_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_csi_driver" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_csi_driver`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_csi_driver`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_csi_driver`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2094,37 +2199,39 @@ def patch_csi_driver_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSIDriver', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_csi_node(self, name, body, **kwargs): - """ - partially update the specified CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSIDriver', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_csi_node(self, name, body, **kwargs): # noqa: E501 + """patch_csi_node # noqa: E501 + + partially update the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_csi_node(name, body, async_req=True) @@ -2132,7 +2239,7 @@ def patch_csi_node(self, name, body, **kwargs): :param async_req bool :param str name: name of the CSINode (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2143,14 +2250,15 @@ def patch_csi_node(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_csi_node_with_http_info(name, body, **kwargs) + return self.patch_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_csi_node_with_http_info(name, body, **kwargs) + (data) = self.patch_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_csi_node_with_http_info(self, name, body, **kwargs): - """ - partially update the specified CSINode + def patch_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_csi_node # noqa: E501 + + partially update the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_csi_node_with_http_info(name, body, async_req=True) @@ -2158,7 +2266,7 @@ def patch_csi_node_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the CSINode (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2168,44 +2276,46 @@ def patch_csi_node_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_csi_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_csi_node`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_csi_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_csi_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_csi_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2213,37 +2323,39 @@ def patch_csi_node_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSINode', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_storage_class(self, name, body, **kwargs): - """ - partially update the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSINode', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_storage_class(self, name, body, **kwargs): # noqa: E501 + """patch_storage_class # noqa: E501 + + partially update the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_storage_class(name, body, async_req=True) @@ -2251,7 +2363,7 @@ def patch_storage_class(self, name, body, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2262,14 +2374,15 @@ def patch_storage_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_storage_class_with_http_info(name, body, **kwargs) + return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) + (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_storage_class_with_http_info(self, name, body, **kwargs): - """ - partially update the specified StorageClass + def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_storage_class # noqa: E501 + + partially update the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_storage_class_with_http_info(name, body, async_req=True) @@ -2277,7 +2390,7 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the StorageClass (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2287,44 +2400,46 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2332,37 +2447,39 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def patch_volume_attachment(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment(name, body, async_req=True) @@ -2370,7 +2487,7 @@ def patch_volume_attachment(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2381,14 +2498,15 @@ def patch_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def patch_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - partially update the specified VolumeAttachment + def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """patch_volume_attachment # noqa: E501 + + partially update the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) @@ -2396,7 +2514,7 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): :param async_req bool :param str name: name of the VolumeAttachment (required) - :param object body: (required) + :param UNKNOWN_BASE_TYPE body: (required) :param str pretty: If 'true', then the output is pretty printed. :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). @@ -2406,44 +2524,46 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) - if 'force' in params: - query_params.append(('force', params['force'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params: + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2451,37 +2571,39 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_csi_driver(self, name, **kwargs): - """ - read the specified CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_csi_driver(self, name, **kwargs): # noqa: E501 + """read_csi_driver # noqa: E501 + + read the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_csi_driver(name, async_req=True) @@ -2498,14 +2620,15 @@ def read_csi_driver(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_csi_driver_with_http_info(name, **kwargs) + return self.read_csi_driver_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_csi_driver_with_http_info(name, **kwargs) + (data) = self.read_csi_driver_with_http_info(name, **kwargs) # noqa: E501 return data - def read_csi_driver_with_http_info(self, name, **kwargs): - """ - read the specified CSIDriver + def read_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 + """read_csi_driver # noqa: E501 + + read the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_csi_driver_with_http_info(name, async_req=True) @@ -2521,39 +2644,40 @@ def read_csi_driver_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_csi_driver" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_csi_driver`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2562,34 +2686,32 @@ def read_csi_driver_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSIDriver', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_csi_node(self, name, **kwargs): - """ - read the specified CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSIDriver', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_csi_node(self, name, **kwargs): # noqa: E501 + """read_csi_node # noqa: E501 + + read the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_csi_node(name, async_req=True) @@ -2606,14 +2728,15 @@ def read_csi_node(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_csi_node_with_http_info(name, **kwargs) + return self.read_csi_node_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_csi_node_with_http_info(name, **kwargs) + (data) = self.read_csi_node_with_http_info(name, **kwargs) # noqa: E501 return data - def read_csi_node_with_http_info(self, name, **kwargs): - """ - read the specified CSINode + def read_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 + """read_csi_node # noqa: E501 + + read the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_csi_node_with_http_info(name, async_req=True) @@ -2629,39 +2752,40 @@ def read_csi_node_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_csi_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_csi_node`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_csi_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2670,34 +2794,32 @@ def read_csi_node_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSINode', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_storage_class(self, name, **kwargs): - """ - read the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSINode', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_storage_class(self, name, **kwargs): # noqa: E501 + """read_storage_class # noqa: E501 + + read the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_storage_class(name, async_req=True) @@ -2714,14 +2836,15 @@ def read_storage_class(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_storage_class_with_http_info(name, **kwargs) + return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_storage_class_with_http_info(name, **kwargs) + (data) = self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 return data - def read_storage_class_with_http_info(self, name, **kwargs): - """ - read the specified StorageClass + def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 + """read_storage_class # noqa: E501 + + read the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_storage_class_with_http_info(name, async_req=True) @@ -2737,39 +2860,40 @@ def read_storage_class_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2778,34 +2902,32 @@ def read_storage_class_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def read_volume_attachment(self, name, **kwargs): - """ - read the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def read_volume_attachment(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment(name, async_req=True) @@ -2822,14 +2944,15 @@ def read_volume_attachment(self, name, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) + (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 return data - def read_volume_attachment_with_http_info(self, name, **kwargs): - """ - read the specified VolumeAttachment + def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 + """read_volume_attachment # noqa: E501 + + read the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) @@ -2845,39 +2968,40 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): returns the request thread. """ - all_params = ['name', 'pretty', 'exact', 'export'] + local_var_params = locals() + + all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") - + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'exact' in params: - query_params.append(('exact', params['exact'])) - if 'export' in params: - query_params.append(('export', params['export'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'exact' in local_var_params: + query_params.append(('exact', local_var_params['exact'])) # noqa: E501 + if 'export' in local_var_params: + query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2886,34 +3010,32 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): body_params = None # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_csi_driver(self, name, body, **kwargs): - """ - replace the specified CSIDriver + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_csi_driver(self, name, body, **kwargs): # noqa: E501 + """replace_csi_driver # noqa: E501 + + replace the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_csi_driver(name, body, async_req=True) @@ -2931,14 +3053,15 @@ def replace_csi_driver(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_csi_driver_with_http_info(name, body, **kwargs) + return self.replace_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_csi_driver_with_http_info(name, body, **kwargs) + (data) = self.replace_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_csi_driver_with_http_info(self, name, body, **kwargs): - """ - replace the specified CSIDriver + def replace_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_csi_driver # noqa: E501 + + replace the specified CSIDriver # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_csi_driver_with_http_info(name, body, async_req=True) @@ -2955,42 +3078,44 @@ def replace_csi_driver_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_csi_driver" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_csi_driver`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_csi_driver`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_csi_driver`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2998,37 +3123,35 @@ def replace_csi_driver_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSIDriver', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_csi_node(self, name, body, **kwargs): - """ - replace the specified CSINode + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csidrivers/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSIDriver', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_csi_node(self, name, body, **kwargs): # noqa: E501 + """replace_csi_node # noqa: E501 + + replace the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_csi_node(name, body, async_req=True) @@ -3046,14 +3169,15 @@ def replace_csi_node(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_csi_node_with_http_info(name, body, **kwargs) + return self.replace_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_csi_node_with_http_info(name, body, **kwargs) + (data) = self.replace_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_csi_node_with_http_info(self, name, body, **kwargs): - """ - replace the specified CSINode + def replace_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_csi_node # noqa: E501 + + replace the specified CSINode # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_csi_node_with_http_info(name, body, async_req=True) @@ -3070,42 +3194,44 @@ def replace_csi_node_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_csi_node" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_csi_node`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_csi_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_csi_node`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_csi_node`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3113,37 +3239,35 @@ def replace_csi_node_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1CSINode', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_storage_class(self, name, body, **kwargs): - """ - replace the specified StorageClass + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/csinodes/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1CSINode', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_storage_class(self, name, body, **kwargs): # noqa: E501 + """replace_storage_class # noqa: E501 + + replace the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_storage_class(name, body, async_req=True) @@ -3161,14 +3285,15 @@ def replace_storage_class(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_storage_class_with_http_info(name, body, **kwargs) + return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) + (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_storage_class_with_http_info(self, name, body, **kwargs): - """ - replace the specified StorageClass + def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_storage_class # noqa: E501 + + replace the specified StorageClass # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_storage_class_with_http_info(name, body, async_req=True) @@ -3185,42 +3310,44 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_storage_class" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3228,37 +3355,35 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1StorageClass', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def replace_volume_attachment(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/storageclasses/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1StorageClass', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment(name, body, async_req=True) @@ -3276,14 +3401,15 @@ def replace_volume_attachment(self, name, body, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) + (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 return data - def replace_volume_attachment_with_http_info(self, name, body, **kwargs): - """ - replace the specified VolumeAttachment + def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 + """replace_volume_attachment # noqa: E501 + + replace the specified VolumeAttachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) @@ -3300,42 +3426,44 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): returns the request thread. """ - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] + local_var_params = locals() + + all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 all_params.append('async_req') 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']): + for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) - params[key] = val - del params['kwargs'] + local_var_params[key] = val + del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") + if ('name' not in local_var_params or + local_var_params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") - + if ('body' not in local_var_params or + local_var_params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} - if 'name' in params: - path_params['name'] = params['name'] + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in params: - query_params.append(('pretty', params['pretty'])) - if 'dry_run' in params: - query_params.append(('dryRun', params['dry_run'])) - if 'field_manager' in params: - query_params.append(('fieldManager', params['field_manager'])) + if 'pretty' in local_var_params: + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params: + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params: + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3343,30 +3471,27 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): local_var_files = {} body_params = None - if 'body' in params: - body_params = params['body'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['*/*']) + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1beta1VolumeAttachment', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _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) + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/apis/storage.k8s.io/v1beta1/volumeattachments/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VolumeAttachment', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api/version_api.py b/kubernetes/client/api/version_api.py new file mode 100644 index 0000000000..675c96f7a7 --- /dev/null +++ b/kubernetes/client/api/version_api.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from kubernetes.client.api_client import ApiClient + + +class VersionApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_code(self, **kwargs): # noqa: E501 + """get_code # noqa: E501 + + get the code version # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_code(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: VersionInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_code_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_code_with_http_info(**kwargs) # noqa: E501 + return data + + def get_code_with_http_info(self, **kwargs): # noqa: E501 + """get_code # noqa: E501 + + get the code version # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_code_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: VersionInfo + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_code" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['BearerToken'] # noqa: E501 + + return self.api_client.call_api( + '/version/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index 00181eddd3..498517651e 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -2,60 +2,62 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import re +import datetime import json import mimetypes -import tempfile from multiprocessing.pool import ThreadPool - -from datetime import date, datetime +import os +import re +import tempfile # python 2 and python 3 compatibility library -from six import PY3, integer_types, iteritems, text_type +import six from six.moves.urllib.parse import quote -from . import models -from .configuration import Configuration -from .rest import ApiException, RESTClientObject +from kubernetes.client.configuration import Configuration +import kubernetes.client.models +from kubernetes.client import rest class ApiClient(object): - """ - Generic API client for Swagger client library builds. + """Generic API client for OpenAPI client library builds. - Swagger generic API client. This client handles the client- + OpenAPI generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger + the methods and models for each application are generated from the OpenAPI templates. - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech Do not edit the class manually. - :param host: The base path for the server to call. + :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. """ - PRIMITIVE_TYPES = (float, bool, bytes, text_type) + integer_types + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types NATIVE_TYPES_MAPPING = { 'int': int, - 'long': int if PY3 else long, + 'long': int if six.PY3 else long, # noqa: F821 'float': float, 'str': str, 'bool': bool, - 'date': date, - 'datetime': datetime, + 'date': datetime.date, + 'datetime': datetime.datetime, 'object': object, } _pool = None @@ -67,14 +69,14 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.configuration = configuration self.pool_threads = pool_threads - self.rest_client = RESTClientObject(configuration) + self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/10.0.0-snapshot/python' - + self.user_agent = 'OpenAPI-Generator/11.0.0-snapshot/python' + def __del__(self): if self._pool: self._pool.close() @@ -92,27 +94,22 @@ def pool(self): @property def user_agent(self): - """ - Gets user agent. - """ + """User agent for this API client""" return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - """ - Sets user agent. - """ self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value - def __call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): config = self.configuration @@ -134,7 +131,9 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) # query parameters if query_params: @@ -160,12 +159,11 @@ def __call_api(self, resource_path, method, url = self.configuration.host + resource_path # perform request and return response - response_data = self.request(method, url, - query_params=query_params, - headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) self.last_response = response_data @@ -180,11 +178,11 @@ def __call_api(self, resource_path, method, if _return_http_data_only: return (return_data) else: - return (return_data, response_data.status, response_data.getheaders()) + return (return_data, response_data.status, + response_data.getheaders()) def sanitize_for_serialization(self, obj): - """ - Builds a JSON POST object. + """Builds a JSON POST object. If obj is None, return None. If obj is str, int, long, float, bool, return directly. @@ -192,7 +190,7 @@ def sanitize_for_serialization(self, obj): convert to string in iso8601 format. If obj is list, sanitize each element in the list. If obj is dict, return the dict. - If obj is swagger model, return the properties dict. + If obj is OpenAPI model, return the properties dict. :param obj: The data to serialize. :return: The serialized form of data. @@ -207,27 +205,26 @@ def sanitize_for_serialization(self, obj): elif isinstance(obj, tuple): return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) - elif isinstance(obj, (datetime, date)): + elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() if isinstance(obj, dict): obj_dict = obj else: # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` + # attributes `openapi_types`, `attribute_map` # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in iteritems(obj.swagger_types) + for attr, _ in six.iteritems(obj.openapi_types) if getattr(obj, attr) is not None} return {key: self.sanitize_for_serialization(val) - for key, val in iteritems(obj_dict)} + for key, val in six.iteritems(obj_dict)} def deserialize(self, response, response_type): - """ - Deserializes response into an object. + """Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for @@ -249,8 +246,7 @@ def deserialize(self, response, response_type): return self.__deserialize(data, response_type) def __deserialize(self, data, klass): - """ - Deserializes dict, list, str into an object. + """Deserializes dict, list, str into an object. :param data: dict, list or str. :param klass: class literal, or string of class name. @@ -262,28 +258,28 @@ def __deserialize(self, data, klass): if type(klass) == str: if klass.startswith('list['): - sub_kls = re.match('list\[(.*)\]', klass).group(1) + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): - sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) - for k, v in iteritems(data)} + for k, v in six.iteritems(data)} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(models, klass) + klass = getattr(kubernetes.client.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) elif klass == object: return self.__deserialize_object(data) - elif klass == date: + elif klass == datetime.date: return self.__deserialize_date(data) - elif klass == datetime: + elif klass == datetime.datetime: return self.__deserialize_datatime(data) else: return self.__deserialize_model(data, klass) @@ -292,11 +288,11 @@ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): - """ - Makes the HTTP request (synchronous) and return the deserialized data. - To make an async request, set the async parameter. + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -312,18 +308,22 @@ def call_api(self, resource_path, method, :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code and headers + :param _return_http_data_only: response data without head status code + and headers :param collection_formats: dict of collection formats for path, query, header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without - reading/decoding response data. Default is True. - :param _request_timeout: timeout setting for this request. If one number provided, it will be total request - timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: - If async parameter is True, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_req is False or missing, then the method will return the response directly. """ if not async_req: @@ -331,22 +331,23 @@ def call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, - _return_http_data_only, collection_formats, _preload_content, _request_timeout) + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) else: - thread = self.pool.apply_async(self.__call_api, (resource_path, method, - path_params, query_params, + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) + collection_formats, + _preload_content, _request_timeout)) return thread def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, _request_timeout=None): - """ - Makes the HTTP request using RESTClient. - """ + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" if method == "GET": return self.rest_client.GET(url, query_params=query_params, @@ -405,8 +406,7 @@ def request(self, method, url, query_params=None, headers=None, ) def parameters_to_tuples(self, params, collection_formats): - """ - Get parameters as list of tuples, formatting collections. + """Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats @@ -415,7 +415,7 @@ def parameters_to_tuples(self, params, collection_formats): new_params = [] if collection_formats is None: collection_formats = {} - for k, v in iteritems(params) if isinstance(params, dict) else params: + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': @@ -436,8 +436,7 @@ def parameters_to_tuples(self, params, collection_formats): return new_params def prepare_post_parameters(self, post_params=None, files=None): - """ - Builds form parameters. + """Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. @@ -449,7 +448,7 @@ def prepare_post_parameters(self, post_params=None, files=None): params = post_params if files: - for k, v in iteritems(files): + for k, v in six.iteritems(files): if not v: continue file_names = v if type(v) is list else [v] @@ -457,15 +456,15 @@ def prepare_post_parameters(self, post_params=None, files=None): with open(n, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() - mimetype = mimetypes.\ - guess_type(filename)[0] or 'application/octet-stream' - params.append(tuple([k, tuple([filename, filedata, mimetype])])) + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) return params def select_header_accept(self, accepts): - """ - Returns `Accept` based on an array of accepts provided. + """Returns `Accept` based on an array of accepts provided. :param accepts: List of headers. :return: Accept (e.g. application/json). @@ -481,8 +480,7 @@ def select_header_accept(self, accepts): return ', '.join(accepts) def select_header_content_type(self, content_types): - """ - Returns `Content-Type` based on an array of content_types provided. + """Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. :return: Content-Type (e.g. application/json). @@ -498,8 +496,7 @@ def select_header_content_type(self, content_types): return content_types[0] def update_params_for_auth(self, headers, querys, auth_settings): - """ - Updates header and query params based on authentication setting. + """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. :param querys: Query parameters tuple list to be updated. @@ -523,7 +520,8 @@ def update_params_for_auth(self, headers, querys, auth_settings): ) def __deserialize_file(self, response): - """ + """Deserializes body to file + Saves response body into a file in a temporary folder, using the filename from the `Content-Disposition` header if provided. @@ -536,19 +534,17 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - filename = re.\ - search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ - group(1) + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) - with open(path, "w") as f: + with open(path, "wb") as f: f.write(response.data) return path def __deserialize_primitive(self, data, klass): - """ - Deserializes string to primitive type. + """Deserializes string to primitive type. :param data: str. :param klass: class literal. @@ -558,21 +554,19 @@ def __deserialize_primitive(self, data, klass): try: return klass(data) except UnicodeEncodeError: - return unicode(data) + return six.text_type(data) except TypeError: return data def __deserialize_object(self, value): - """ - Return a original value. + """Return an original value. :return: object. """ return value def __deserialize_date(self, string): - """ - Deserializes string to date. + """Deserializes string to date. :param string: str. :return: date. @@ -583,14 +577,13 @@ def __deserialize_date(self, string): except ImportError: return string except ValueError: - raise ApiException( + raise rest.ApiException( status=0, - reason="Failed to parse `{0}` into a date object".format(string) + reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datatime(self, string): - """ - Deserializes string to datetime. + """Deserializes string to datetime. The string should be in iso8601 datetime format. @@ -603,32 +596,32 @@ def __deserialize_datatime(self, string): except ImportError: return string except ValueError: - raise ApiException( + raise rest.ApiException( status=0, reason=( - "Failed to parse `{0}` into a datetime object" + "Failed to parse `{0}` as datetime object" .format(string) ) ) def __deserialize_model(self, data, klass): - """ - Deserializes list or dict to model. + """Deserializes list or dict to model. :param data: dict, list. :param klass: class literal. :return: model object. """ - if not klass.swagger_types and not hasattr(klass, 'get_real_child_model'): + if not klass.openapi_types and not hasattr(klass, + 'get_real_child_model'): return data kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in iteritems(klass.swagger_types): - if data is not None \ - and klass.attribute_map[attr] in data \ - and isinstance(data, (list, dict)): + if klass.openapi_types is not None: + for attr, attr_type in six.iteritems(klass.openapi_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): value = data[klass.attribute_map[attr]] kwargs[attr] = self.__deserialize(value, attr_type) diff --git a/kubernetes/client/apis/__init__.py b/kubernetes/client/apis/__init__.py deleted file mode 100644 index b64b265c2f..0000000000 --- a/kubernetes/client/apis/__init__.py +++ /dev/null @@ -1,67 +0,0 @@ -from __future__ import absolute_import - -# import apis into api package -from .admissionregistration_api import AdmissionregistrationApi -from .admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api -from .apiextensions_api import ApiextensionsApi -from .apiextensions_v1beta1_api import ApiextensionsV1beta1Api -from .apiregistration_api import ApiregistrationApi -from .apiregistration_v1_api import ApiregistrationV1Api -from .apiregistration_v1beta1_api import ApiregistrationV1beta1Api -from .apis_api import ApisApi -from .apps_api import AppsApi -from .apps_v1_api import AppsV1Api -from .apps_v1beta1_api import AppsV1beta1Api -from .apps_v1beta2_api import AppsV1beta2Api -from .auditregistration_api import AuditregistrationApi -from .auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api -from .authentication_api import AuthenticationApi -from .authentication_v1_api import AuthenticationV1Api -from .authentication_v1beta1_api import AuthenticationV1beta1Api -from .authorization_api import AuthorizationApi -from .authorization_v1_api import AuthorizationV1Api -from .authorization_v1beta1_api import AuthorizationV1beta1Api -from .autoscaling_api import AutoscalingApi -from .autoscaling_v1_api import AutoscalingV1Api -from .autoscaling_v2beta1_api import AutoscalingV2beta1Api -from .autoscaling_v2beta2_api import AutoscalingV2beta2Api -from .batch_api import BatchApi -from .batch_v1_api import BatchV1Api -from .batch_v1beta1_api import BatchV1beta1Api -from .batch_v2alpha1_api import BatchV2alpha1Api -from .certificates_api import CertificatesApi -from .certificates_v1beta1_api import CertificatesV1beta1Api -from .coordination_api import CoordinationApi -from .coordination_v1_api import CoordinationV1Api -from .coordination_v1beta1_api import CoordinationV1beta1Api -from .core_api import CoreApi -from .core_v1_api import CoreV1Api -from .custom_objects_api import CustomObjectsApi -from .events_api import EventsApi -from .events_v1beta1_api import EventsV1beta1Api -from .extensions_api import ExtensionsApi -from .extensions_v1beta1_api import ExtensionsV1beta1Api -from .logs_api import LogsApi -from .networking_api import NetworkingApi -from .networking_v1_api import NetworkingV1Api -from .networking_v1beta1_api import NetworkingV1beta1Api -from .node_api import NodeApi -from .node_v1alpha1_api import NodeV1alpha1Api -from .node_v1beta1_api import NodeV1beta1Api -from .policy_api import PolicyApi -from .policy_v1beta1_api import PolicyV1beta1Api -from .rbac_authorization_api import RbacAuthorizationApi -from .rbac_authorization_v1_api import RbacAuthorizationV1Api -from .rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api -from .rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api -from .scheduling_api import SchedulingApi -from .scheduling_v1_api import SchedulingV1Api -from .scheduling_v1alpha1_api import SchedulingV1alpha1Api -from .scheduling_v1beta1_api import SchedulingV1beta1Api -from .settings_api import SettingsApi -from .settings_v1alpha1_api import SettingsV1alpha1Api -from .storage_api import StorageApi -from .storage_v1_api import StorageV1Api -from .storage_v1alpha1_api import StorageV1alpha1Api -from .storage_v1beta1_api import StorageV1beta1Api -from .version_api import VersionApi diff --git a/kubernetes/client/apis/admissionregistration_api.py b/kubernetes/client/apis/admissionregistration_api.py deleted file mode 100644 index f848504776..0000000000 --- a/kubernetes/client/apis/admissionregistration_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AdmissionregistrationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/admissionregistration.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apiextensions_api.py b/kubernetes/client/apis/apiextensions_api.py deleted file mode 100644 index 5873d9d603..0000000000 --- a/kubernetes/client/apis/apiextensions_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class ApiextensionsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiextensions.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apiregistration_api.py b/kubernetes/client/apis/apiregistration_api.py deleted file mode 100644 index f94d818ea4..0000000000 --- a/kubernetes/client/apis/apiregistration_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class ApiregistrationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apiregistration.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apis_api.py b/kubernetes/client/apis/apis_api.py deleted file mode 100644 index 8592870d20..0000000000 --- a/kubernetes/client/apis/apis_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class ApisApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_versions(self, **kwargs): - """ - get available API versions - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_versions(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroupList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_versions_with_http_info(**kwargs) - else: - (data) = self.get_api_versions_with_http_info(**kwargs) - return data - - def get_api_versions_with_http_info(self, **kwargs): - """ - get available API versions - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_versions_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroupList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_versions" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroupList', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/apps_api.py b/kubernetes/client/apis/apps_api.py deleted file mode 100644 index cf3df909dc..0000000000 --- a/kubernetes/client/apis/apps_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AppsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/apps/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/auditregistration_api.py b/kubernetes/client/apis/auditregistration_api.py deleted file mode 100644 index df0de9fbfe..0000000000 --- a/kubernetes/client/apis/auditregistration_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AuditregistrationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/auditregistration.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authentication_api.py b/kubernetes/client/apis/authentication_api.py deleted file mode 100644 index 9b298013c5..0000000000 --- a/kubernetes/client/apis/authentication_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AuthenticationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authentication.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/authorization_api.py b/kubernetes/client/apis/authorization_api.py deleted file mode 100644 index 56e9741bc7..0000000000 --- a/kubernetes/client/apis/authorization_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AuthorizationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/authorization.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/autoscaling_api.py b/kubernetes/client/apis/autoscaling_api.py deleted file mode 100644 index 16ea306bdd..0000000000 --- a/kubernetes/client/apis/autoscaling_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class AutoscalingApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/autoscaling/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/batch_api.py b/kubernetes/client/apis/batch_api.py deleted file mode 100644 index 25223a39a9..0000000000 --- a/kubernetes/client/apis/batch_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class BatchApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/batch/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/certificates_api.py b/kubernetes/client/apis/certificates_api.py deleted file mode 100644 index 1263e6c4cc..0000000000 --- a/kubernetes/client/apis/certificates_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class CertificatesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/certificates.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/coordination_api.py b/kubernetes/client/apis/coordination_api.py deleted file mode 100644 index b19a848ff6..0000000000 --- a/kubernetes/client/apis/coordination_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class CoordinationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/coordination.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/core_api.py b/kubernetes/client/apis/core_api.py deleted file mode 100644 index 22b93b74f0..0000000000 --- a/kubernetes/client/apis/core_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class CoreApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_versions(self, **kwargs): - """ - get available API versions - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_versions(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIVersions - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_versions_with_http_info(**kwargs) - else: - (data) = self.get_api_versions_with_http_info(**kwargs) - return data - - def get_api_versions_with_http_info(self, **kwargs): - """ - get available API versions - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_versions_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIVersions - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_versions" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/api/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIVersions', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/events_api.py b/kubernetes/client/apis/events_api.py deleted file mode 100644 index 2fab7832cc..0000000000 --- a/kubernetes/client/apis/events_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class EventsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/events.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/extensions_api.py b/kubernetes/client/apis/extensions_api.py deleted file mode 100644 index 93e23fcf7b..0000000000 --- a/kubernetes/client/apis/extensions_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class ExtensionsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/extensions/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/networking_api.py b/kubernetes/client/apis/networking_api.py deleted file mode 100644 index 2abcfc593b..0000000000 --- a/kubernetes/client/apis/networking_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class NetworkingApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/networking.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/node_api.py b/kubernetes/client/apis/node_api.py deleted file mode 100644 index 224d8501fd..0000000000 --- a/kubernetes/client/apis/node_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class NodeApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/node.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/policy_api.py b/kubernetes/client/apis/policy_api.py deleted file mode 100644 index eacafc0907..0000000000 --- a/kubernetes/client/apis/policy_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class PolicyApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/policy/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/rbac_authorization_api.py b/kubernetes/client/apis/rbac_authorization_api.py deleted file mode 100644 index 88ea1d883f..0000000000 --- a/kubernetes/client/apis/rbac_authorization_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class RbacAuthorizationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/rbac.authorization.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/scheduling_api.py b/kubernetes/client/apis/scheduling_api.py deleted file mode 100644 index 18f213e28c..0000000000 --- a/kubernetes/client/apis/scheduling_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class SchedulingApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/scheduling.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/settings_api.py b/kubernetes/client/apis/settings_api.py deleted file mode 100644 index 3f4ea045b4..0000000000 --- a/kubernetes/client/apis/settings_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class SettingsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/settings.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/storage_api.py b/kubernetes/client/apis/storage_api.py deleted file mode 100644 index 8100c7bbbb..0000000000 --- a/kubernetes/client/apis/storage_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class StorageApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_api_group(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) - else: - (data) = self.get_api_group_with_http_info(**kwargs) - return data - - def get_api_group_with_http_info(self, **kwargs): - """ - get information of a group - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_group_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: V1APIGroup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_api_group" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/apis/storage.k8s.io/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V1APIGroup', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/apis/version_api.py b/kubernetes/client/apis/version_api.py deleted file mode 100644 index 828db5f4f7..0000000000 --- a/kubernetes/client/apis/version_api.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..api_client import ApiClient - - -class VersionApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_code(self, **kwargs): - """ - get the code version - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_code(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: VersionInfo - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_code_with_http_info(**kwargs) - else: - (data) = self.get_code_with_http_info(**kwargs) - return data - - def get_code_with_http_info(self, **kwargs): - """ - get the code version - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_code_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: VersionInfo - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_code" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['BearerToken'] - - return self.api_client.call_api('/version/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VersionInfo', - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index d1fc4e6061..a11a357a3a 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -3,34 +3,32 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import urllib3 - import copy import logging import multiprocessing import sys +import urllib3 -from six import iteritems -from six import with_metaclass +import six from six.moves import http_client as httplib + class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls._default = None def __call__(cls): - if cls._default == None: + if cls._default is None: cls._default = type.__call__(cls) return copy.copy(cls._default) @@ -38,19 +36,17 @@ def set_default(cls, default): cls._default = copy.copy(default) -class Configuration(with_metaclass(TypeWithDefault, object)): - """ - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self): - """ - Constructor - """ + """Constructor""" # Default Base url - self.host = "https://localhost" + self.host = "http://localhost" # Temp file folder for downloading files self.temp_folder_path = None @@ -80,7 +76,8 @@ def __init__(self): self.debug = False # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API from https server. + # Set this to false to skip verifying SSL certificate when calling API + # from https server. self.verify_ssl = True # Set this to customize the certificate file to verify the peer. self.ssl_ca_cert = None @@ -98,7 +95,6 @@ def __init__(self): # cpu_count * 5 is used as default value to increase performance. self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - # Proxy URL self.proxy = None # Safe chars for path_param @@ -106,18 +102,22 @@ def __init__(self): @property def logger_file(self): - """ - Gets the logger_file. + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str """ return self.__logger_file @logger_file.setter def logger_file(self, value): - """ - Sets the logger_file. + """The logger file. - If the logger_file is None, then add stream handler and remove file handler. - Otherwise, add file handler and remove stream handler. + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str @@ -128,31 +128,21 @@ def logger_file(self, value): # then add file handler and remove stream handler. self.logger_file_handler = logging.FileHandler(self.__logger_file) self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) @property def debug(self): - """ - Gets the debug status. + """Debug status + + :param value: The debug status, True or False. + :type: bool """ return self.__debug @debug.setter def debug(self, value): - """ - Sets the debug status. + """Debug status :param value: The debug status, True or False. :type: bool @@ -160,29 +150,32 @@ def debug(self, value): self.__debug = value if self.__debug: # if debug status is True, turn on debug logging - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.setLevel(logging.DEBUG) # turn on httplib debug httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.setLevel(logging.WARNING) # turn off httplib debug httplib.HTTPConnection.debuglevel = 0 @property def logger_format(self): - """ - Gets the logger_format. + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str """ return self.__logger_format @logger_format.setter def logger_format(self, value): - """ - Sets the logger_format. + """The logger format. The logger_formatter will be updated when sets logger_format. @@ -193,29 +186,28 @@ def logger_format(self, value): self.logger_formatter = logging.Formatter(self.__logger_format) def get_api_key_with_prefix(self, identifier): - """ - Gets API key (with prefix if set). + """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 elif self.api_key.get(identifier): return self.api_key[identifier] def get_basic_auth_token(self): - """ - Gets HTTP basic authentication header (string). + """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. """ - return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ - .get('authorization') + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') def auth_settings(self): - """ - Gets Auth Settings dict for api client. + """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ @@ -231,14 +223,13 @@ def auth_settings(self): } def to_debug_report(self): - """ - Gets the essential information for debugging. + """Gets the essential information for debugging. :return: The report for debugging. """ return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v1.14.4\n"\ - "SDK Package Version: 10.0.0-snapshot".\ + "Version of the API: v1.15.6\n"\ + "SDK Package Version: 11.0.0-snapshot".\ format(env=sys.platform, pyversion=sys.version) diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index 93e5e62117..e1155afe67 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -1,616 +1,620 @@ # coding: utf-8 +# flake8: noqa """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import # import models into model package -from .admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference -from .admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig -from .apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference -from .apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig -from .apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference -from .apps_v1beta1_deployment import AppsV1beta1Deployment -from .apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition -from .apps_v1beta1_deployment_list import AppsV1beta1DeploymentList -from .apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback -from .apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec -from .apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus -from .apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy -from .apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig -from .apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment -from .apps_v1beta1_scale import AppsV1beta1Scale -from .apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec -from .apps_v1beta1_scale_status import AppsV1beta1ScaleStatus -from .extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver -from .extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume -from .extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath -from .extensions_v1beta1_deployment import ExtensionsV1beta1Deployment -from .extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition -from .extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList -from .extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback -from .extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec -from .extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus -from .extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy -from .extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions -from .extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath -from .extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue -from .extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange -from .extensions_v1beta1_id_range import ExtensionsV1beta1IDRange -from .extensions_v1beta1_ingress import ExtensionsV1beta1Ingress -from .extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend -from .extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList -from .extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule -from .extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec -from .extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus -from .extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS -from .extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy -from .extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList -from .extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec -from .extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig -from .extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment -from .extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions -from .extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions -from .extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions -from .extensions_v1beta1_scale import ExtensionsV1beta1Scale -from .extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec -from .extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus -from .extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions -from .networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath -from .networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue -from .networking_v1beta1_ingress import NetworkingV1beta1Ingress -from .networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend -from .networking_v1beta1_ingress_list import NetworkingV1beta1IngressList -from .networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule -from .networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec -from .networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus -from .networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS -from .policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver -from .policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume -from .policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath -from .policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions -from .policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange -from .policy_v1beta1_id_range import PolicyV1beta1IDRange -from .policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy -from .policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList -from .policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec -from .policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions -from .policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions -from .policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions -from .policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions -from .runtime_raw_extension import RuntimeRawExtension -from .v1_api_group import V1APIGroup -from .v1_api_group_list import V1APIGroupList -from .v1_api_resource import V1APIResource -from .v1_api_resource_list import V1APIResourceList -from .v1_api_service import V1APIService -from .v1_api_service_condition import V1APIServiceCondition -from .v1_api_service_list import V1APIServiceList -from .v1_api_service_spec import V1APIServiceSpec -from .v1_api_service_status import V1APIServiceStatus -from .v1_api_versions import V1APIVersions -from .v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource -from .v1_affinity import V1Affinity -from .v1_aggregation_rule import V1AggregationRule -from .v1_attached_volume import V1AttachedVolume -from .v1_azure_disk_volume_source import V1AzureDiskVolumeSource -from .v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource -from .v1_azure_file_volume_source import V1AzureFileVolumeSource -from .v1_binding import V1Binding -from .v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource -from .v1_csi_volume_source import V1CSIVolumeSource -from .v1_capabilities import V1Capabilities -from .v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource -from .v1_ceph_fs_volume_source import V1CephFSVolumeSource -from .v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource -from .v1_cinder_volume_source import V1CinderVolumeSource -from .v1_client_ip_config import V1ClientIPConfig -from .v1_cluster_role import V1ClusterRole -from .v1_cluster_role_binding import V1ClusterRoleBinding -from .v1_cluster_role_binding_list import V1ClusterRoleBindingList -from .v1_cluster_role_list import V1ClusterRoleList -from .v1_component_condition import V1ComponentCondition -from .v1_component_status import V1ComponentStatus -from .v1_component_status_list import V1ComponentStatusList -from .v1_config_map import V1ConfigMap -from .v1_config_map_env_source import V1ConfigMapEnvSource -from .v1_config_map_key_selector import V1ConfigMapKeySelector -from .v1_config_map_list import V1ConfigMapList -from .v1_config_map_node_config_source import V1ConfigMapNodeConfigSource -from .v1_config_map_projection import V1ConfigMapProjection -from .v1_config_map_volume_source import V1ConfigMapVolumeSource -from .v1_container import V1Container -from .v1_container_image import V1ContainerImage -from .v1_container_port import V1ContainerPort -from .v1_container_state import V1ContainerState -from .v1_container_state_running import V1ContainerStateRunning -from .v1_container_state_terminated import V1ContainerStateTerminated -from .v1_container_state_waiting import V1ContainerStateWaiting -from .v1_container_status import V1ContainerStatus -from .v1_controller_revision import V1ControllerRevision -from .v1_controller_revision_list import V1ControllerRevisionList -from .v1_cross_version_object_reference import V1CrossVersionObjectReference -from .v1_daemon_endpoint import V1DaemonEndpoint -from .v1_daemon_set import V1DaemonSet -from .v1_daemon_set_condition import V1DaemonSetCondition -from .v1_daemon_set_list import V1DaemonSetList -from .v1_daemon_set_spec import V1DaemonSetSpec -from .v1_daemon_set_status import V1DaemonSetStatus -from .v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy -from .v1_delete_options import V1DeleteOptions -from .v1_deployment import V1Deployment -from .v1_deployment_condition import V1DeploymentCondition -from .v1_deployment_list import V1DeploymentList -from .v1_deployment_spec import V1DeploymentSpec -from .v1_deployment_status import V1DeploymentStatus -from .v1_deployment_strategy import V1DeploymentStrategy -from .v1_downward_api_projection import V1DownwardAPIProjection -from .v1_downward_api_volume_file import V1DownwardAPIVolumeFile -from .v1_downward_api_volume_source import V1DownwardAPIVolumeSource -from .v1_empty_dir_volume_source import V1EmptyDirVolumeSource -from .v1_endpoint_address import V1EndpointAddress -from .v1_endpoint_port import V1EndpointPort -from .v1_endpoint_subset import V1EndpointSubset -from .v1_endpoints import V1Endpoints -from .v1_endpoints_list import V1EndpointsList -from .v1_env_from_source import V1EnvFromSource -from .v1_env_var import V1EnvVar -from .v1_env_var_source import V1EnvVarSource -from .v1_event import V1Event -from .v1_event_list import V1EventList -from .v1_event_series import V1EventSeries -from .v1_event_source import V1EventSource -from .v1_exec_action import V1ExecAction -from .v1_fc_volume_source import V1FCVolumeSource -from .v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource -from .v1_flex_volume_source import V1FlexVolumeSource -from .v1_flocker_volume_source import V1FlockerVolumeSource -from .v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource -from .v1_git_repo_volume_source import V1GitRepoVolumeSource -from .v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource -from .v1_glusterfs_volume_source import V1GlusterfsVolumeSource -from .v1_group_version_for_discovery import V1GroupVersionForDiscovery -from .v1_http_get_action import V1HTTPGetAction -from .v1_http_header import V1HTTPHeader -from .v1_handler import V1Handler -from .v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler -from .v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList -from .v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec -from .v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus -from .v1_host_alias import V1HostAlias -from .v1_host_path_volume_source import V1HostPathVolumeSource -from .v1_ip_block import V1IPBlock -from .v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource -from .v1_iscsi_volume_source import V1ISCSIVolumeSource -from .v1_initializer import V1Initializer -from .v1_initializers import V1Initializers -from .v1_job import V1Job -from .v1_job_condition import V1JobCondition -from .v1_job_list import V1JobList -from .v1_job_spec import V1JobSpec -from .v1_job_status import V1JobStatus -from .v1_key_to_path import V1KeyToPath -from .v1_label_selector import V1LabelSelector -from .v1_label_selector_requirement import V1LabelSelectorRequirement -from .v1_lease import V1Lease -from .v1_lease_list import V1LeaseList -from .v1_lease_spec import V1LeaseSpec -from .v1_lifecycle import V1Lifecycle -from .v1_limit_range import V1LimitRange -from .v1_limit_range_item import V1LimitRangeItem -from .v1_limit_range_list import V1LimitRangeList -from .v1_limit_range_spec import V1LimitRangeSpec -from .v1_list_meta import V1ListMeta -from .v1_load_balancer_ingress import V1LoadBalancerIngress -from .v1_load_balancer_status import V1LoadBalancerStatus -from .v1_local_object_reference import V1LocalObjectReference -from .v1_local_subject_access_review import V1LocalSubjectAccessReview -from .v1_local_volume_source import V1LocalVolumeSource -from .v1_managed_fields_entry import V1ManagedFieldsEntry -from .v1_nfs_volume_source import V1NFSVolumeSource -from .v1_namespace import V1Namespace -from .v1_namespace_list import V1NamespaceList -from .v1_namespace_spec import V1NamespaceSpec -from .v1_namespace_status import V1NamespaceStatus -from .v1_network_policy import V1NetworkPolicy -from .v1_network_policy_egress_rule import V1NetworkPolicyEgressRule -from .v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule -from .v1_network_policy_list import V1NetworkPolicyList -from .v1_network_policy_peer import V1NetworkPolicyPeer -from .v1_network_policy_port import V1NetworkPolicyPort -from .v1_network_policy_spec import V1NetworkPolicySpec -from .v1_node import V1Node -from .v1_node_address import V1NodeAddress -from .v1_node_affinity import V1NodeAffinity -from .v1_node_condition import V1NodeCondition -from .v1_node_config_source import V1NodeConfigSource -from .v1_node_config_status import V1NodeConfigStatus -from .v1_node_daemon_endpoints import V1NodeDaemonEndpoints -from .v1_node_list import V1NodeList -from .v1_node_selector import V1NodeSelector -from .v1_node_selector_requirement import V1NodeSelectorRequirement -from .v1_node_selector_term import V1NodeSelectorTerm -from .v1_node_spec import V1NodeSpec -from .v1_node_status import V1NodeStatus -from .v1_node_system_info import V1NodeSystemInfo -from .v1_non_resource_attributes import V1NonResourceAttributes -from .v1_non_resource_rule import V1NonResourceRule -from .v1_object_field_selector import V1ObjectFieldSelector -from .v1_object_meta import V1ObjectMeta -from .v1_object_reference import V1ObjectReference -from .v1_owner_reference import V1OwnerReference -from .v1_persistent_volume import V1PersistentVolume -from .v1_persistent_volume_claim import V1PersistentVolumeClaim -from .v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition -from .v1_persistent_volume_claim_list import V1PersistentVolumeClaimList -from .v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec -from .v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus -from .v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource -from .v1_persistent_volume_list import V1PersistentVolumeList -from .v1_persistent_volume_spec import V1PersistentVolumeSpec -from .v1_persistent_volume_status import V1PersistentVolumeStatus -from .v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource -from .v1_pod import V1Pod -from .v1_pod_affinity import V1PodAffinity -from .v1_pod_affinity_term import V1PodAffinityTerm -from .v1_pod_anti_affinity import V1PodAntiAffinity -from .v1_pod_condition import V1PodCondition -from .v1_pod_dns_config import V1PodDNSConfig -from .v1_pod_dns_config_option import V1PodDNSConfigOption -from .v1_pod_list import V1PodList -from .v1_pod_readiness_gate import V1PodReadinessGate -from .v1_pod_security_context import V1PodSecurityContext -from .v1_pod_spec import V1PodSpec -from .v1_pod_status import V1PodStatus -from .v1_pod_template import V1PodTemplate -from .v1_pod_template_list import V1PodTemplateList -from .v1_pod_template_spec import V1PodTemplateSpec -from .v1_policy_rule import V1PolicyRule -from .v1_portworx_volume_source import V1PortworxVolumeSource -from .v1_preconditions import V1Preconditions -from .v1_preferred_scheduling_term import V1PreferredSchedulingTerm -from .v1_priority_class import V1PriorityClass -from .v1_priority_class_list import V1PriorityClassList -from .v1_probe import V1Probe -from .v1_projected_volume_source import V1ProjectedVolumeSource -from .v1_quobyte_volume_source import V1QuobyteVolumeSource -from .v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource -from .v1_rbd_volume_source import V1RBDVolumeSource -from .v1_replica_set import V1ReplicaSet -from .v1_replica_set_condition import V1ReplicaSetCondition -from .v1_replica_set_list import V1ReplicaSetList -from .v1_replica_set_spec import V1ReplicaSetSpec -from .v1_replica_set_status import V1ReplicaSetStatus -from .v1_replication_controller import V1ReplicationController -from .v1_replication_controller_condition import V1ReplicationControllerCondition -from .v1_replication_controller_list import V1ReplicationControllerList -from .v1_replication_controller_spec import V1ReplicationControllerSpec -from .v1_replication_controller_status import V1ReplicationControllerStatus -from .v1_resource_attributes import V1ResourceAttributes -from .v1_resource_field_selector import V1ResourceFieldSelector -from .v1_resource_quota import V1ResourceQuota -from .v1_resource_quota_list import V1ResourceQuotaList -from .v1_resource_quota_spec import V1ResourceQuotaSpec -from .v1_resource_quota_status import V1ResourceQuotaStatus -from .v1_resource_requirements import V1ResourceRequirements -from .v1_resource_rule import V1ResourceRule -from .v1_role import V1Role -from .v1_role_binding import V1RoleBinding -from .v1_role_binding_list import V1RoleBindingList -from .v1_role_list import V1RoleList -from .v1_role_ref import V1RoleRef -from .v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet -from .v1_rolling_update_deployment import V1RollingUpdateDeployment -from .v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy -from .v1_se_linux_options import V1SELinuxOptions -from .v1_scale import V1Scale -from .v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource -from .v1_scale_io_volume_source import V1ScaleIOVolumeSource -from .v1_scale_spec import V1ScaleSpec -from .v1_scale_status import V1ScaleStatus -from .v1_scope_selector import V1ScopeSelector -from .v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement -from .v1_secret import V1Secret -from .v1_secret_env_source import V1SecretEnvSource -from .v1_secret_key_selector import V1SecretKeySelector -from .v1_secret_list import V1SecretList -from .v1_secret_projection import V1SecretProjection -from .v1_secret_reference import V1SecretReference -from .v1_secret_volume_source import V1SecretVolumeSource -from .v1_security_context import V1SecurityContext -from .v1_self_subject_access_review import V1SelfSubjectAccessReview -from .v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec -from .v1_self_subject_rules_review import V1SelfSubjectRulesReview -from .v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec -from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR -from .v1_service import V1Service -from .v1_service_account import V1ServiceAccount -from .v1_service_account_list import V1ServiceAccountList -from .v1_service_account_token_projection import V1ServiceAccountTokenProjection -from .v1_service_list import V1ServiceList -from .v1_service_port import V1ServicePort -from .v1_service_reference import V1ServiceReference -from .v1_service_spec import V1ServiceSpec -from .v1_service_status import V1ServiceStatus -from .v1_session_affinity_config import V1SessionAffinityConfig -from .v1_stateful_set import V1StatefulSet -from .v1_stateful_set_condition import V1StatefulSetCondition -from .v1_stateful_set_list import V1StatefulSetList -from .v1_stateful_set_spec import V1StatefulSetSpec -from .v1_stateful_set_status import V1StatefulSetStatus -from .v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy -from .v1_status import V1Status -from .v1_status_cause import V1StatusCause -from .v1_status_details import V1StatusDetails -from .v1_storage_class import V1StorageClass -from .v1_storage_class_list import V1StorageClassList -from .v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource -from .v1_storage_os_volume_source import V1StorageOSVolumeSource -from .v1_subject import V1Subject -from .v1_subject_access_review import V1SubjectAccessReview -from .v1_subject_access_review_spec import V1SubjectAccessReviewSpec -from .v1_subject_access_review_status import V1SubjectAccessReviewStatus -from .v1_subject_rules_review_status import V1SubjectRulesReviewStatus -from .v1_sysctl import V1Sysctl -from .v1_tcp_socket_action import V1TCPSocketAction -from .v1_taint import V1Taint -from .v1_token_review import V1TokenReview -from .v1_token_review_spec import V1TokenReviewSpec -from .v1_token_review_status import V1TokenReviewStatus -from .v1_toleration import V1Toleration -from .v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement -from .v1_topology_selector_term import V1TopologySelectorTerm -from .v1_typed_local_object_reference import V1TypedLocalObjectReference -from .v1_user_info import V1UserInfo -from .v1_volume import V1Volume -from .v1_volume_attachment import V1VolumeAttachment -from .v1_volume_attachment_list import V1VolumeAttachmentList -from .v1_volume_attachment_source import V1VolumeAttachmentSource -from .v1_volume_attachment_spec import V1VolumeAttachmentSpec -from .v1_volume_attachment_status import V1VolumeAttachmentStatus -from .v1_volume_device import V1VolumeDevice -from .v1_volume_error import V1VolumeError -from .v1_volume_mount import V1VolumeMount -from .v1_volume_node_affinity import V1VolumeNodeAffinity -from .v1_volume_projection import V1VolumeProjection -from .v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource -from .v1_watch_event import V1WatchEvent -from .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm -from .v1alpha1_aggregation_rule import V1alpha1AggregationRule -from .v1alpha1_audit_sink import V1alpha1AuditSink -from .v1alpha1_audit_sink_list import V1alpha1AuditSinkList -from .v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec -from .v1alpha1_cluster_role import V1alpha1ClusterRole -from .v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding -from .v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList -from .v1alpha1_cluster_role_list import V1alpha1ClusterRoleList -from .v1alpha1_pod_preset import V1alpha1PodPreset -from .v1alpha1_pod_preset_list import V1alpha1PodPresetList -from .v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec -from .v1alpha1_policy import V1alpha1Policy -from .v1alpha1_policy_rule import V1alpha1PolicyRule -from .v1alpha1_priority_class import V1alpha1PriorityClass -from .v1alpha1_priority_class_list import V1alpha1PriorityClassList -from .v1alpha1_role import V1alpha1Role -from .v1alpha1_role_binding import V1alpha1RoleBinding -from .v1alpha1_role_binding_list import V1alpha1RoleBindingList -from .v1alpha1_role_list import V1alpha1RoleList -from .v1alpha1_role_ref import V1alpha1RoleRef -from .v1alpha1_runtime_class import V1alpha1RuntimeClass -from .v1alpha1_runtime_class_list import V1alpha1RuntimeClassList -from .v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec -from .v1alpha1_service_reference import V1alpha1ServiceReference -from .v1alpha1_subject import V1alpha1Subject -from .v1alpha1_volume_attachment import V1alpha1VolumeAttachment -from .v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList -from .v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource -from .v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec -from .v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus -from .v1alpha1_volume_error import V1alpha1VolumeError -from .v1alpha1_webhook import V1alpha1Webhook -from .v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig -from .v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig -from .v1beta1_api_service import V1beta1APIService -from .v1beta1_api_service_condition import V1beta1APIServiceCondition -from .v1beta1_api_service_list import V1beta1APIServiceList -from .v1beta1_api_service_spec import V1beta1APIServiceSpec -from .v1beta1_api_service_status import V1beta1APIServiceStatus -from .v1beta1_aggregation_rule import V1beta1AggregationRule -from .v1beta1_csi_driver import V1beta1CSIDriver -from .v1beta1_csi_driver_list import V1beta1CSIDriverList -from .v1beta1_csi_driver_spec import V1beta1CSIDriverSpec -from .v1beta1_csi_node import V1beta1CSINode -from .v1beta1_csi_node_driver import V1beta1CSINodeDriver -from .v1beta1_csi_node_list import V1beta1CSINodeList -from .v1beta1_csi_node_spec import V1beta1CSINodeSpec -from .v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest -from .v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition -from .v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList -from .v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec -from .v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus -from .v1beta1_cluster_role import V1beta1ClusterRole -from .v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding -from .v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList -from .v1beta1_cluster_role_list import V1beta1ClusterRoleList -from .v1beta1_controller_revision import V1beta1ControllerRevision -from .v1beta1_controller_revision_list import V1beta1ControllerRevisionList -from .v1beta1_cron_job import V1beta1CronJob -from .v1beta1_cron_job_list import V1beta1CronJobList -from .v1beta1_cron_job_spec import V1beta1CronJobSpec -from .v1beta1_cron_job_status import V1beta1CronJobStatus -from .v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition -from .v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion -from .v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition -from .v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition -from .v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList -from .v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames -from .v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec -from .v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus -from .v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion -from .v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale -from .v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources -from .v1beta1_custom_resource_validation import V1beta1CustomResourceValidation -from .v1beta1_daemon_set import V1beta1DaemonSet -from .v1beta1_daemon_set_condition import V1beta1DaemonSetCondition -from .v1beta1_daemon_set_list import V1beta1DaemonSetList -from .v1beta1_daemon_set_spec import V1beta1DaemonSetSpec -from .v1beta1_daemon_set_status import V1beta1DaemonSetStatus -from .v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy -from .v1beta1_event import V1beta1Event -from .v1beta1_event_list import V1beta1EventList -from .v1beta1_event_series import V1beta1EventSeries -from .v1beta1_eviction import V1beta1Eviction -from .v1beta1_external_documentation import V1beta1ExternalDocumentation -from .v1beta1_ip_block import V1beta1IPBlock -from .v1beta1_json_schema_props import V1beta1JSONSchemaProps -from .v1beta1_job_template_spec import V1beta1JobTemplateSpec -from .v1beta1_lease import V1beta1Lease -from .v1beta1_lease_list import V1beta1LeaseList -from .v1beta1_lease_spec import V1beta1LeaseSpec -from .v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview -from .v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration -from .v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList -from .v1beta1_network_policy import V1beta1NetworkPolicy -from .v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule -from .v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule -from .v1beta1_network_policy_list import V1beta1NetworkPolicyList -from .v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer -from .v1beta1_network_policy_port import V1beta1NetworkPolicyPort -from .v1beta1_network_policy_spec import V1beta1NetworkPolicySpec -from .v1beta1_non_resource_attributes import V1beta1NonResourceAttributes -from .v1beta1_non_resource_rule import V1beta1NonResourceRule -from .v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget -from .v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList -from .v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec -from .v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus -from .v1beta1_policy_rule import V1beta1PolicyRule -from .v1beta1_priority_class import V1beta1PriorityClass -from .v1beta1_priority_class_list import V1beta1PriorityClassList -from .v1beta1_replica_set import V1beta1ReplicaSet -from .v1beta1_replica_set_condition import V1beta1ReplicaSetCondition -from .v1beta1_replica_set_list import V1beta1ReplicaSetList -from .v1beta1_replica_set_spec import V1beta1ReplicaSetSpec -from .v1beta1_replica_set_status import V1beta1ReplicaSetStatus -from .v1beta1_resource_attributes import V1beta1ResourceAttributes -from .v1beta1_resource_rule import V1beta1ResourceRule -from .v1beta1_role import V1beta1Role -from .v1beta1_role_binding import V1beta1RoleBinding -from .v1beta1_role_binding_list import V1beta1RoleBindingList -from .v1beta1_role_list import V1beta1RoleList -from .v1beta1_role_ref import V1beta1RoleRef -from .v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet -from .v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy -from .v1beta1_rule_with_operations import V1beta1RuleWithOperations -from .v1beta1_runtime_class import V1beta1RuntimeClass -from .v1beta1_runtime_class_list import V1beta1RuntimeClassList -from .v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview -from .v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec -from .v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview -from .v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec -from .v1beta1_stateful_set import V1beta1StatefulSet -from .v1beta1_stateful_set_condition import V1beta1StatefulSetCondition -from .v1beta1_stateful_set_list import V1beta1StatefulSetList -from .v1beta1_stateful_set_spec import V1beta1StatefulSetSpec -from .v1beta1_stateful_set_status import V1beta1StatefulSetStatus -from .v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy -from .v1beta1_storage_class import V1beta1StorageClass -from .v1beta1_storage_class_list import V1beta1StorageClassList -from .v1beta1_subject import V1beta1Subject -from .v1beta1_subject_access_review import V1beta1SubjectAccessReview -from .v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec -from .v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus -from .v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus -from .v1beta1_token_review import V1beta1TokenReview -from .v1beta1_token_review_spec import V1beta1TokenReviewSpec -from .v1beta1_token_review_status import V1beta1TokenReviewStatus -from .v1beta1_user_info import V1beta1UserInfo -from .v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration -from .v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList -from .v1beta1_volume_attachment import V1beta1VolumeAttachment -from .v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList -from .v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource -from .v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec -from .v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus -from .v1beta1_volume_error import V1beta1VolumeError -from .v1beta1_webhook import V1beta1Webhook -from .v1beta2_controller_revision import V1beta2ControllerRevision -from .v1beta2_controller_revision_list import V1beta2ControllerRevisionList -from .v1beta2_daemon_set import V1beta2DaemonSet -from .v1beta2_daemon_set_condition import V1beta2DaemonSetCondition -from .v1beta2_daemon_set_list import V1beta2DaemonSetList -from .v1beta2_daemon_set_spec import V1beta2DaemonSetSpec -from .v1beta2_daemon_set_status import V1beta2DaemonSetStatus -from .v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy -from .v1beta2_deployment import V1beta2Deployment -from .v1beta2_deployment_condition import V1beta2DeploymentCondition -from .v1beta2_deployment_list import V1beta2DeploymentList -from .v1beta2_deployment_spec import V1beta2DeploymentSpec -from .v1beta2_deployment_status import V1beta2DeploymentStatus -from .v1beta2_deployment_strategy import V1beta2DeploymentStrategy -from .v1beta2_replica_set import V1beta2ReplicaSet -from .v1beta2_replica_set_condition import V1beta2ReplicaSetCondition -from .v1beta2_replica_set_list import V1beta2ReplicaSetList -from .v1beta2_replica_set_spec import V1beta2ReplicaSetSpec -from .v1beta2_replica_set_status import V1beta2ReplicaSetStatus -from .v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet -from .v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment -from .v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy -from .v1beta2_scale import V1beta2Scale -from .v1beta2_scale_spec import V1beta2ScaleSpec -from .v1beta2_scale_status import V1beta2ScaleStatus -from .v1beta2_stateful_set import V1beta2StatefulSet -from .v1beta2_stateful_set_condition import V1beta2StatefulSetCondition -from .v1beta2_stateful_set_list import V1beta2StatefulSetList -from .v1beta2_stateful_set_spec import V1beta2StatefulSetSpec -from .v1beta2_stateful_set_status import V1beta2StatefulSetStatus -from .v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy -from .v2alpha1_cron_job import V2alpha1CronJob -from .v2alpha1_cron_job_list import V2alpha1CronJobList -from .v2alpha1_cron_job_spec import V2alpha1CronJobSpec -from .v2alpha1_cron_job_status import V2alpha1CronJobStatus -from .v2alpha1_job_template_spec import V2alpha1JobTemplateSpec -from .v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference -from .v2beta1_external_metric_source import V2beta1ExternalMetricSource -from .v2beta1_external_metric_status import V2beta1ExternalMetricStatus -from .v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler -from .v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition -from .v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList -from .v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec -from .v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus -from .v2beta1_metric_spec import V2beta1MetricSpec -from .v2beta1_metric_status import V2beta1MetricStatus -from .v2beta1_object_metric_source import V2beta1ObjectMetricSource -from .v2beta1_object_metric_status import V2beta1ObjectMetricStatus -from .v2beta1_pods_metric_source import V2beta1PodsMetricSource -from .v2beta1_pods_metric_status import V2beta1PodsMetricStatus -from .v2beta1_resource_metric_source import V2beta1ResourceMetricSource -from .v2beta1_resource_metric_status import V2beta1ResourceMetricStatus -from .v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference -from .v2beta2_external_metric_source import V2beta2ExternalMetricSource -from .v2beta2_external_metric_status import V2beta2ExternalMetricStatus -from .v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler -from .v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition -from .v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList -from .v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec -from .v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus -from .v2beta2_metric_identifier import V2beta2MetricIdentifier -from .v2beta2_metric_spec import V2beta2MetricSpec -from .v2beta2_metric_status import V2beta2MetricStatus -from .v2beta2_metric_target import V2beta2MetricTarget -from .v2beta2_metric_value_status import V2beta2MetricValueStatus -from .v2beta2_object_metric_source import V2beta2ObjectMetricSource -from .v2beta2_object_metric_status import V2beta2ObjectMetricStatus -from .v2beta2_pods_metric_source import V2beta2PodsMetricSource -from .v2beta2_pods_metric_status import V2beta2PodsMetricStatus -from .v2beta2_resource_metric_source import V2beta2ResourceMetricSource -from .v2beta2_resource_metric_status import V2beta2ResourceMetricStatus -from .version_info import VersionInfo +from kubernetes.client.models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference +from kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig +from kubernetes.client.models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference +from kubernetes.client.models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig +from kubernetes.client.models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference +from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment +from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition +from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList +from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback +from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec +from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus +from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy +from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig +from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment +from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale +from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec +from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus +from kubernetes.client.models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver +from kubernetes.client.models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume +from kubernetes.client.models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath +from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment +from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition +from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList +from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback +from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec +from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus +from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy +from kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions +from kubernetes.client.models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath +from kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue +from kubernetes.client.models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange +from kubernetes.client.models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange +from kubernetes.client.models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress +from kubernetes.client.models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend +from kubernetes.client.models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList +from kubernetes.client.models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule +from kubernetes.client.models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec +from kubernetes.client.models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus +from kubernetes.client.models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS +from kubernetes.client.models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec +from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig +from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment +from kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions +from kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions +from kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options import ExtensionsV1beta1RuntimeClassStrategyOptions +from kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions +from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale +from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec +from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus +from kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions +from kubernetes.client.models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath +from kubernetes.client.models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue +from kubernetes.client.models.networking_v1beta1_ingress import NetworkingV1beta1Ingress +from kubernetes.client.models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend +from kubernetes.client.models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList +from kubernetes.client.models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule +from kubernetes.client.models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec +from kubernetes.client.models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus +from kubernetes.client.models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS +from kubernetes.client.models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver +from kubernetes.client.models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume +from kubernetes.client.models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath +from kubernetes.client.models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions +from kubernetes.client.models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange +from kubernetes.client.models.policy_v1beta1_id_range import PolicyV1beta1IDRange +from kubernetes.client.models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy +from kubernetes.client.models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList +from kubernetes.client.models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec +from kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions +from kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions +from kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options import PolicyV1beta1RuntimeClassStrategyOptions +from kubernetes.client.models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions +from kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions +from kubernetes.client.models.runtime_raw_extension import RuntimeRawExtension +from kubernetes.client.models.v1_api_group import V1APIGroup +from kubernetes.client.models.v1_api_group_list import V1APIGroupList +from kubernetes.client.models.v1_api_resource import V1APIResource +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList +from kubernetes.client.models.v1_api_service import V1APIService +from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition +from kubernetes.client.models.v1_api_service_list import V1APIServiceList +from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec +from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus +from kubernetes.client.models.v1_api_versions import V1APIVersions +from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource +from kubernetes.client.models.v1_affinity import V1Affinity +from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule +from kubernetes.client.models.v1_attached_volume import V1AttachedVolume +from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource +from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource +from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource +from kubernetes.client.models.v1_binding import V1Binding +from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource +from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource +from kubernetes.client.models.v1_capabilities import V1Capabilities +from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource +from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource +from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource +from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource +from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig +from kubernetes.client.models.v1_cluster_role import V1ClusterRole +from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding +from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList +from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList +from kubernetes.client.models.v1_component_condition import V1ComponentCondition +from kubernetes.client.models.v1_component_status import V1ComponentStatus +from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList +from kubernetes.client.models.v1_config_map import V1ConfigMap +from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource +from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector +from kubernetes.client.models.v1_config_map_list import V1ConfigMapList +from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource +from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection +from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource +from kubernetes.client.models.v1_container import V1Container +from kubernetes.client.models.v1_container_image import V1ContainerImage +from kubernetes.client.models.v1_container_port import V1ContainerPort +from kubernetes.client.models.v1_container_state import V1ContainerState +from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning +from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated +from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting +from kubernetes.client.models.v1_container_status import V1ContainerStatus +from kubernetes.client.models.v1_controller_revision import V1ControllerRevision +from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList +from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference +from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint +from kubernetes.client.models.v1_daemon_set import V1DaemonSet +from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition +from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList +from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec +from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus +from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy +from kubernetes.client.models.v1_delete_options import V1DeleteOptions +from kubernetes.client.models.v1_deployment import V1Deployment +from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition +from kubernetes.client.models.v1_deployment_list import V1DeploymentList +from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec +from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus +from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy +from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection +from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile +from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource +from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource +from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress +from kubernetes.client.models.v1_endpoint_port import V1EndpointPort +from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset +from kubernetes.client.models.v1_endpoints import V1Endpoints +from kubernetes.client.models.v1_endpoints_list import V1EndpointsList +from kubernetes.client.models.v1_env_from_source import V1EnvFromSource +from kubernetes.client.models.v1_env_var import V1EnvVar +from kubernetes.client.models.v1_env_var_source import V1EnvVarSource +from kubernetes.client.models.v1_event import V1Event +from kubernetes.client.models.v1_event_list import V1EventList +from kubernetes.client.models.v1_event_series import V1EventSeries +from kubernetes.client.models.v1_event_source import V1EventSource +from kubernetes.client.models.v1_exec_action import V1ExecAction +from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource +from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource +from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource +from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource +from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource +from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource +from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource +from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource +from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery +from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction +from kubernetes.client.models.v1_http_header import V1HTTPHeader +from kubernetes.client.models.v1_handler import V1Handler +from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler +from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList +from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec +from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus +from kubernetes.client.models.v1_host_alias import V1HostAlias +from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource +from kubernetes.client.models.v1_ip_block import V1IPBlock +from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource +from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource +from kubernetes.client.models.v1_initializer import V1Initializer +from kubernetes.client.models.v1_initializers import V1Initializers +from kubernetes.client.models.v1_job import V1Job +from kubernetes.client.models.v1_job_condition import V1JobCondition +from kubernetes.client.models.v1_job_list import V1JobList +from kubernetes.client.models.v1_job_spec import V1JobSpec +from kubernetes.client.models.v1_job_status import V1JobStatus +from kubernetes.client.models.v1_key_to_path import V1KeyToPath +from kubernetes.client.models.v1_label_selector import V1LabelSelector +from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement +from kubernetes.client.models.v1_lease import V1Lease +from kubernetes.client.models.v1_lease_list import V1LeaseList +from kubernetes.client.models.v1_lease_spec import V1LeaseSpec +from kubernetes.client.models.v1_lifecycle import V1Lifecycle +from kubernetes.client.models.v1_limit_range import V1LimitRange +from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem +from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList +from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec +from kubernetes.client.models.v1_list_meta import V1ListMeta +from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress +from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus +from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference +from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview +from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource +from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry +from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource +from kubernetes.client.models.v1_namespace import V1Namespace +from kubernetes.client.models.v1_namespace_list import V1NamespaceList +from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec +from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus +from kubernetes.client.models.v1_network_policy import V1NetworkPolicy +from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule +from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule +from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList +from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer +from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort +from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec +from kubernetes.client.models.v1_node import V1Node +from kubernetes.client.models.v1_node_address import V1NodeAddress +from kubernetes.client.models.v1_node_affinity import V1NodeAffinity +from kubernetes.client.models.v1_node_condition import V1NodeCondition +from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource +from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus +from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints +from kubernetes.client.models.v1_node_list import V1NodeList +from kubernetes.client.models.v1_node_selector import V1NodeSelector +from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement +from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm +from kubernetes.client.models.v1_node_spec import V1NodeSpec +from kubernetes.client.models.v1_node_status import V1NodeStatus +from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo +from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes +from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule +from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector +from kubernetes.client.models.v1_object_meta import V1ObjectMeta +from kubernetes.client.models.v1_object_reference import V1ObjectReference +from kubernetes.client.models.v1_owner_reference import V1OwnerReference +from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume +from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim +from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition +from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList +from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec +from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus +from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource +from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList +from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec +from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus +from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource +from kubernetes.client.models.v1_pod import V1Pod +from kubernetes.client.models.v1_pod_affinity import V1PodAffinity +from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm +from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity +from kubernetes.client.models.v1_pod_condition import V1PodCondition +from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig +from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption +from kubernetes.client.models.v1_pod_list import V1PodList +from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate +from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext +from kubernetes.client.models.v1_pod_spec import V1PodSpec +from kubernetes.client.models.v1_pod_status import V1PodStatus +from kubernetes.client.models.v1_pod_template import V1PodTemplate +from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList +from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec +from kubernetes.client.models.v1_policy_rule import V1PolicyRule +from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource +from kubernetes.client.models.v1_preconditions import V1Preconditions +from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm +from kubernetes.client.models.v1_priority_class import V1PriorityClass +from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList +from kubernetes.client.models.v1_probe import V1Probe +from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource +from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource +from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource +from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource +from kubernetes.client.models.v1_replica_set import V1ReplicaSet +from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition +from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList +from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec +from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus +from kubernetes.client.models.v1_replication_controller import V1ReplicationController +from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition +from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList +from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec +from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus +from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes +from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector +from kubernetes.client.models.v1_resource_quota import V1ResourceQuota +from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList +from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec +from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus +from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements +from kubernetes.client.models.v1_resource_rule import V1ResourceRule +from kubernetes.client.models.v1_role import V1Role +from kubernetes.client.models.v1_role_binding import V1RoleBinding +from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList +from kubernetes.client.models.v1_role_list import V1RoleList +from kubernetes.client.models.v1_role_ref import V1RoleRef +from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet +from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment +from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions +from kubernetes.client.models.v1_scale import V1Scale +from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource +from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource +from kubernetes.client.models.v1_scale_spec import V1ScaleSpec +from kubernetes.client.models.v1_scale_status import V1ScaleStatus +from kubernetes.client.models.v1_scope_selector import V1ScopeSelector +from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement +from kubernetes.client.models.v1_secret import V1Secret +from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource +from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector +from kubernetes.client.models.v1_secret_list import V1SecretList +from kubernetes.client.models.v1_secret_projection import V1SecretProjection +from kubernetes.client.models.v1_secret_reference import V1SecretReference +from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource +from kubernetes.client.models.v1_security_context import V1SecurityContext +from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview +from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec +from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview +from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec +from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR +from kubernetes.client.models.v1_service import V1Service +from kubernetes.client.models.v1_service_account import V1ServiceAccount +from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList +from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection +from kubernetes.client.models.v1_service_list import V1ServiceList +from kubernetes.client.models.v1_service_port import V1ServicePort +from kubernetes.client.models.v1_service_reference import V1ServiceReference +from kubernetes.client.models.v1_service_spec import V1ServiceSpec +from kubernetes.client.models.v1_service_status import V1ServiceStatus +from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig +from kubernetes.client.models.v1_stateful_set import V1StatefulSet +from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition +from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList +from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec +from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus +from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy +from kubernetes.client.models.v1_status import V1Status +from kubernetes.client.models.v1_status_cause import V1StatusCause +from kubernetes.client.models.v1_status_details import V1StatusDetails +from kubernetes.client.models.v1_storage_class import V1StorageClass +from kubernetes.client.models.v1_storage_class_list import V1StorageClassList +from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource +from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource +from kubernetes.client.models.v1_subject import V1Subject +from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview +from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec +from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus +from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus +from kubernetes.client.models.v1_sysctl import V1Sysctl +from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction +from kubernetes.client.models.v1_taint import V1Taint +from kubernetes.client.models.v1_token_review import V1TokenReview +from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec +from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus +from kubernetes.client.models.v1_toleration import V1Toleration +from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement +from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm +from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference +from kubernetes.client.models.v1_user_info import V1UserInfo +from kubernetes.client.models.v1_volume import V1Volume +from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment +from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList +from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource +from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec +from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus +from kubernetes.client.models.v1_volume_device import V1VolumeDevice +from kubernetes.client.models.v1_volume_error import V1VolumeError +from kubernetes.client.models.v1_volume_mount import V1VolumeMount +from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity +from kubernetes.client.models.v1_volume_projection import V1VolumeProjection +from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource +from kubernetes.client.models.v1_watch_event import V1WatchEvent +from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions +from kubernetes.client.models.v1alpha1_aggregation_rule import V1alpha1AggregationRule +from kubernetes.client.models.v1alpha1_audit_sink import V1alpha1AuditSink +from kubernetes.client.models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList +from kubernetes.client.models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec +from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole +from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding +from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList +from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList +from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset +from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList +from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec +from kubernetes.client.models.v1alpha1_policy import V1alpha1Policy +from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule +from kubernetes.client.models.v1alpha1_priority_class import V1alpha1PriorityClass +from kubernetes.client.models.v1alpha1_priority_class_list import V1alpha1PriorityClassList +from kubernetes.client.models.v1alpha1_role import V1alpha1Role +from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding +from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList +from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList +from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef +from kubernetes.client.models.v1alpha1_runtime_class import V1alpha1RuntimeClass +from kubernetes.client.models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList +from kubernetes.client.models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec +from kubernetes.client.models.v1alpha1_service_reference import V1alpha1ServiceReference +from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject +from kubernetes.client.models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment +from kubernetes.client.models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList +from kubernetes.client.models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource +from kubernetes.client.models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec +from kubernetes.client.models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus +from kubernetes.client.models.v1alpha1_volume_error import V1alpha1VolumeError +from kubernetes.client.models.v1alpha1_webhook import V1alpha1Webhook +from kubernetes.client.models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig +from kubernetes.client.models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig +from kubernetes.client.models.v1beta1_api_service import V1beta1APIService +from kubernetes.client.models.v1beta1_api_service_condition import V1beta1APIServiceCondition +from kubernetes.client.models.v1beta1_api_service_list import V1beta1APIServiceList +from kubernetes.client.models.v1beta1_api_service_spec import V1beta1APIServiceSpec +from kubernetes.client.models.v1beta1_api_service_status import V1beta1APIServiceStatus +from kubernetes.client.models.v1beta1_aggregation_rule import V1beta1AggregationRule +from kubernetes.client.models.v1beta1_csi_driver import V1beta1CSIDriver +from kubernetes.client.models.v1beta1_csi_driver_list import V1beta1CSIDriverList +from kubernetes.client.models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec +from kubernetes.client.models.v1beta1_csi_node import V1beta1CSINode +from kubernetes.client.models.v1beta1_csi_node_driver import V1beta1CSINodeDriver +from kubernetes.client.models.v1beta1_csi_node_list import V1beta1CSINodeList +from kubernetes.client.models.v1beta1_csi_node_spec import V1beta1CSINodeSpec +from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest +from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition +from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList +from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec +from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus +from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole +from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding +from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList +from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList +from kubernetes.client.models.v1beta1_controller_revision import V1beta1ControllerRevision +from kubernetes.client.models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList +from kubernetes.client.models.v1beta1_cron_job import V1beta1CronJob +from kubernetes.client.models.v1beta1_cron_job_list import V1beta1CronJobList +from kubernetes.client.models.v1beta1_cron_job_spec import V1beta1CronJobSpec +from kubernetes.client.models.v1beta1_cron_job_status import V1beta1CronJobStatus +from kubernetes.client.models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition +from kubernetes.client.models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion +from kubernetes.client.models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition +from kubernetes.client.models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition +from kubernetes.client.models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList +from kubernetes.client.models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames +from kubernetes.client.models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec +from kubernetes.client.models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus +from kubernetes.client.models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion +from kubernetes.client.models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale +from kubernetes.client.models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources +from kubernetes.client.models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation +from kubernetes.client.models.v1beta1_daemon_set import V1beta1DaemonSet +from kubernetes.client.models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition +from kubernetes.client.models.v1beta1_daemon_set_list import V1beta1DaemonSetList +from kubernetes.client.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec +from kubernetes.client.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus +from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy +from kubernetes.client.models.v1beta1_event import V1beta1Event +from kubernetes.client.models.v1beta1_event_list import V1beta1EventList +from kubernetes.client.models.v1beta1_event_series import V1beta1EventSeries +from kubernetes.client.models.v1beta1_eviction import V1beta1Eviction +from kubernetes.client.models.v1beta1_external_documentation import V1beta1ExternalDocumentation +from kubernetes.client.models.v1beta1_ip_block import V1beta1IPBlock +from kubernetes.client.models.v1beta1_json_schema_props import V1beta1JSONSchemaProps +from kubernetes.client.models.v1beta1_job_template_spec import V1beta1JobTemplateSpec +from kubernetes.client.models.v1beta1_lease import V1beta1Lease +from kubernetes.client.models.v1beta1_lease_list import V1beta1LeaseList +from kubernetes.client.models.v1beta1_lease_spec import V1beta1LeaseSpec +from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview +from kubernetes.client.models.v1beta1_mutating_webhook import V1beta1MutatingWebhook +from kubernetes.client.models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration +from kubernetes.client.models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList +from kubernetes.client.models.v1beta1_network_policy import V1beta1NetworkPolicy +from kubernetes.client.models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule +from kubernetes.client.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule +from kubernetes.client.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList +from kubernetes.client.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer +from kubernetes.client.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort +from kubernetes.client.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec +from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes +from kubernetes.client.models.v1beta1_non_resource_rule import V1beta1NonResourceRule +from kubernetes.client.models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget +from kubernetes.client.models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList +from kubernetes.client.models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec +from kubernetes.client.models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus +from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule +from kubernetes.client.models.v1beta1_priority_class import V1beta1PriorityClass +from kubernetes.client.models.v1beta1_priority_class_list import V1beta1PriorityClassList +from kubernetes.client.models.v1beta1_replica_set import V1beta1ReplicaSet +from kubernetes.client.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition +from kubernetes.client.models.v1beta1_replica_set_list import V1beta1ReplicaSetList +from kubernetes.client.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec +from kubernetes.client.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus +from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes +from kubernetes.client.models.v1beta1_resource_rule import V1beta1ResourceRule +from kubernetes.client.models.v1beta1_role import V1beta1Role +from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding +from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList +from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList +from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef +from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet +from kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1beta1_rule_with_operations import V1beta1RuleWithOperations +from kubernetes.client.models.v1beta1_runtime_class import V1beta1RuntimeClass +from kubernetes.client.models.v1beta1_runtime_class_list import V1beta1RuntimeClassList +from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview +from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec +from kubernetes.client.models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview +from kubernetes.client.models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec +from kubernetes.client.models.v1beta1_stateful_set import V1beta1StatefulSet +from kubernetes.client.models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition +from kubernetes.client.models.v1beta1_stateful_set_list import V1beta1StatefulSetList +from kubernetes.client.models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec +from kubernetes.client.models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus +from kubernetes.client.models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy +from kubernetes.client.models.v1beta1_storage_class import V1beta1StorageClass +from kubernetes.client.models.v1beta1_storage_class_list import V1beta1StorageClassList +from kubernetes.client.models.v1beta1_subject import V1beta1Subject +from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview +from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec +from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus +from kubernetes.client.models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus +from kubernetes.client.models.v1beta1_token_review import V1beta1TokenReview +from kubernetes.client.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec +from kubernetes.client.models.v1beta1_token_review_status import V1beta1TokenReviewStatus +from kubernetes.client.models.v1beta1_user_info import V1beta1UserInfo +from kubernetes.client.models.v1beta1_validating_webhook import V1beta1ValidatingWebhook +from kubernetes.client.models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration +from kubernetes.client.models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList +from kubernetes.client.models.v1beta1_volume_attachment import V1beta1VolumeAttachment +from kubernetes.client.models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList +from kubernetes.client.models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource +from kubernetes.client.models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec +from kubernetes.client.models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus +from kubernetes.client.models.v1beta1_volume_error import V1beta1VolumeError +from kubernetes.client.models.v1beta2_controller_revision import V1beta2ControllerRevision +from kubernetes.client.models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList +from kubernetes.client.models.v1beta2_daemon_set import V1beta2DaemonSet +from kubernetes.client.models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition +from kubernetes.client.models.v1beta2_daemon_set_list import V1beta2DaemonSetList +from kubernetes.client.models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec +from kubernetes.client.models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus +from kubernetes.client.models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy +from kubernetes.client.models.v1beta2_deployment import V1beta2Deployment +from kubernetes.client.models.v1beta2_deployment_condition import V1beta2DeploymentCondition +from kubernetes.client.models.v1beta2_deployment_list import V1beta2DeploymentList +from kubernetes.client.models.v1beta2_deployment_spec import V1beta2DeploymentSpec +from kubernetes.client.models.v1beta2_deployment_status import V1beta2DeploymentStatus +from kubernetes.client.models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy +from kubernetes.client.models.v1beta2_replica_set import V1beta2ReplicaSet +from kubernetes.client.models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition +from kubernetes.client.models.v1beta2_replica_set_list import V1beta2ReplicaSetList +from kubernetes.client.models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec +from kubernetes.client.models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus +from kubernetes.client.models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet +from kubernetes.client.models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment +from kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy +from kubernetes.client.models.v1beta2_scale import V1beta2Scale +from kubernetes.client.models.v1beta2_scale_spec import V1beta2ScaleSpec +from kubernetes.client.models.v1beta2_scale_status import V1beta2ScaleStatus +from kubernetes.client.models.v1beta2_stateful_set import V1beta2StatefulSet +from kubernetes.client.models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition +from kubernetes.client.models.v1beta2_stateful_set_list import V1beta2StatefulSetList +from kubernetes.client.models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec +from kubernetes.client.models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus +from kubernetes.client.models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy +from kubernetes.client.models.v2alpha1_cron_job import V2alpha1CronJob +from kubernetes.client.models.v2alpha1_cron_job_list import V2alpha1CronJobList +from kubernetes.client.models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec +from kubernetes.client.models.v2alpha1_cron_job_status import V2alpha1CronJobStatus +from kubernetes.client.models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec +from kubernetes.client.models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference +from kubernetes.client.models.v2beta1_external_metric_source import V2beta1ExternalMetricSource +from kubernetes.client.models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus +from kubernetes.client.models.v2beta1_metric_spec import V2beta1MetricSpec +from kubernetes.client.models.v2beta1_metric_status import V2beta1MetricStatus +from kubernetes.client.models.v2beta1_object_metric_source import V2beta1ObjectMetricSource +from kubernetes.client.models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus +from kubernetes.client.models.v2beta1_pods_metric_source import V2beta1PodsMetricSource +from kubernetes.client.models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus +from kubernetes.client.models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource +from kubernetes.client.models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus +from kubernetes.client.models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference +from kubernetes.client.models.v2beta2_external_metric_source import V2beta2ExternalMetricSource +from kubernetes.client.models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus +from kubernetes.client.models.v2beta2_metric_identifier import V2beta2MetricIdentifier +from kubernetes.client.models.v2beta2_metric_spec import V2beta2MetricSpec +from kubernetes.client.models.v2beta2_metric_status import V2beta2MetricStatus +from kubernetes.client.models.v2beta2_metric_target import V2beta2MetricTarget +from kubernetes.client.models.v2beta2_metric_value_status import V2beta2MetricValueStatus +from kubernetes.client.models.v2beta2_object_metric_source import V2beta2ObjectMetricSource +from kubernetes.client.models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus +from kubernetes.client.models.v2beta2_pods_metric_source import V2beta2PodsMetricSource +from kubernetes.client.models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus +from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource +from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus +from kubernetes.client.models.version_info import VersionInfo diff --git a/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py b/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py index acb13cbd3a..c3e4370f36 100644 --- a/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py +++ b/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py @@ -3,140 +3,164 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AdmissionregistrationV1beta1ServiceReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'namespace': 'str', - 'path': 'str' + 'path': 'str', + 'port': 'int' } attribute_map = { 'name': 'name', 'namespace': 'namespace', - 'path': 'path' + 'path': 'path', + 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None): - """ - AdmissionregistrationV1beta1ServiceReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + """AdmissionregistrationV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None self._path = None + self._port = None self.discriminator = None self.name = name self.namespace = namespace if path is not None: - self.path = path + self.path = path + if port is not None: + self.port = port @property def name(self): - """ - Gets the name of this AdmissionregistrationV1beta1ServiceReference. - `name` is the name of the service. Required + """Gets the name of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 - :return: The name of this AdmissionregistrationV1beta1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :return: The name of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this AdmissionregistrationV1beta1ServiceReference. - `name` is the name of the service. Required + """Sets the name of this AdmissionregistrationV1beta1ServiceReference. - :param name: The name of this AdmissionregistrationV1beta1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :param name: The name of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this AdmissionregistrationV1beta1ServiceReference. - `namespace` is the namespace of the service. Required + """Gets the namespace of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 + + `namespace` is the namespace of the service. Required # noqa: E501 - :return: The namespace of this AdmissionregistrationV1beta1ServiceReference. + :return: The namespace of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this AdmissionregistrationV1beta1ServiceReference. - `namespace` is the namespace of the service. Required + """Sets the namespace of this AdmissionregistrationV1beta1ServiceReference. + + `namespace` is the namespace of the service. Required # noqa: E501 - :param namespace: The namespace of this AdmissionregistrationV1beta1ServiceReference. + :param namespace: The namespace of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ if namespace is None: - raise ValueError("Invalid value for `namespace`, must not be `None`") + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @property def path(self): - """ - Gets the path of this AdmissionregistrationV1beta1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Gets the path of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :return: The path of this AdmissionregistrationV1beta1ServiceReference. + :return: The path of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this AdmissionregistrationV1beta1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Sets the path of this AdmissionregistrationV1beta1ServiceReference. + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :param path: The path of this AdmissionregistrationV1beta1ServiceReference. + :param path: The path of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ self._path = path - def to_dict(self): + @property + def port(self): + """Gets the port of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :return: The port of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 + :rtype: int """ - Returns the model properties as a dict + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AdmissionregistrationV1beta1ServiceReference. + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :param port: The port of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 + :type: int """ + + self._port = port + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AdmissionregistrationV1beta1ServiceReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py b/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py index a65d5c01d6..ff285c9f75 100644 --- a/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py +++ b/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AdmissionregistrationV1beta1WebhookClientConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ca_bundle': 'str', 'service': 'AdmissionregistrationV1beta1ServiceReference', 'url': 'str' @@ -42,10 +42,8 @@ class AdmissionregistrationV1beta1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): - """ - AdmissionregistrationV1beta1WebhookClientConfig - a model defined in Swagger - """ + def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + """AdmissionregistrationV1beta1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 self._ca_bundle = None self._service = None @@ -53,55 +51,53 @@ def __init__(self, ca_bundle=None, service=None, url=None): self.discriminator = None if ca_bundle is not None: - self.ca_bundle = ca_bundle + self.ca_bundle = ca_bundle if service is not None: - self.service = service + self.service = service if url is not None: - self.url = url + self.url = url @property def ca_bundle(self): - """ - Gets the ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Gets the ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 - :return: The ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :return: The ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._ca_bundle @ca_bundle.setter def ca_bundle(self, ca_bundle): - """ - Sets the ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Sets the ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. - :param ca_bundle: The ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :param ca_bundle: The ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): - raise ValueError("Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @property def service(self): - """ - Gets the service of this AdmissionregistrationV1beta1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Gets the service of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 - :return: The service of this AdmissionregistrationV1beta1WebhookClientConfig. + + :return: The service of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :rtype: AdmissionregistrationV1beta1ServiceReference """ return self._service @service.setter def service(self, service): - """ - Sets the service of this AdmissionregistrationV1beta1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Sets the service of this AdmissionregistrationV1beta1WebhookClientConfig. + - :param service: The service of this AdmissionregistrationV1beta1WebhookClientConfig. + :param service: The service of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :type: AdmissionregistrationV1beta1ServiceReference """ @@ -109,34 +105,32 @@ def service(self, service): @property def url(self): - """ - Gets the url of this AdmissionregistrationV1beta1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Gets the url of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :return: The url of this AdmissionregistrationV1beta1WebhookClientConfig. + :return: The url of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): - """ - Sets the url of this AdmissionregistrationV1beta1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Sets the url of this AdmissionregistrationV1beta1WebhookClientConfig. + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :param url: The url of this AdmissionregistrationV1beta1WebhookClientConfig. + :param url: The url of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :type: str """ self._url = url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AdmissionregistrationV1beta1WebhookClientConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apiextensions_v1beta1_service_reference.py b/kubernetes/client/models/apiextensions_v1beta1_service_reference.py index 61aa9b14e8..331f60080c 100644 --- a/kubernetes/client/models/apiextensions_v1beta1_service_reference.py +++ b/kubernetes/client/models/apiextensions_v1beta1_service_reference.py @@ -3,140 +3,164 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ApiextensionsV1beta1ServiceReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'namespace': 'str', - 'path': 'str' + 'path': 'str', + 'port': 'int' } attribute_map = { 'name': 'name', 'namespace': 'namespace', - 'path': 'path' + 'path': 'path', + 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None): - """ - ApiextensionsV1beta1ServiceReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + """ApiextensionsV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None self._path = None + self._port = None self.discriminator = None self.name = name self.namespace = namespace if path is not None: - self.path = path + self.path = path + if port is not None: + self.port = port @property def name(self): - """ - Gets the name of this ApiextensionsV1beta1ServiceReference. - `name` is the name of the service. Required + """Gets the name of this ApiextensionsV1beta1ServiceReference. # noqa: E501 - :return: The name of this ApiextensionsV1beta1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :return: The name of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ApiextensionsV1beta1ServiceReference. - `name` is the name of the service. Required + """Sets the name of this ApiextensionsV1beta1ServiceReference. - :param name: The name of this ApiextensionsV1beta1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :param name: The name of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this ApiextensionsV1beta1ServiceReference. - `namespace` is the namespace of the service. Required + """Gets the namespace of this ApiextensionsV1beta1ServiceReference. # noqa: E501 + + `namespace` is the namespace of the service. Required # noqa: E501 - :return: The namespace of this ApiextensionsV1beta1ServiceReference. + :return: The namespace of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this ApiextensionsV1beta1ServiceReference. - `namespace` is the namespace of the service. Required + """Sets the namespace of this ApiextensionsV1beta1ServiceReference. + + `namespace` is the namespace of the service. Required # noqa: E501 - :param namespace: The namespace of this ApiextensionsV1beta1ServiceReference. + :param namespace: The namespace of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :type: str """ if namespace is None: - raise ValueError("Invalid value for `namespace`, must not be `None`") + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @property def path(self): - """ - Gets the path of this ApiextensionsV1beta1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Gets the path of this ApiextensionsV1beta1ServiceReference. # noqa: E501 + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :return: The path of this ApiextensionsV1beta1ServiceReference. + :return: The path of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this ApiextensionsV1beta1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Sets the path of this ApiextensionsV1beta1ServiceReference. + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :param path: The path of this ApiextensionsV1beta1ServiceReference. + :param path: The path of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :type: str """ self._path = path - def to_dict(self): + @property + def port(self): + """Gets the port of this ApiextensionsV1beta1ServiceReference. # noqa: E501 + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :return: The port of this ApiextensionsV1beta1ServiceReference. # noqa: E501 + :rtype: int """ - Returns the model properties as a dict + return self._port + + @port.setter + def port(self, port): + """Sets the port of this ApiextensionsV1beta1ServiceReference. + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :param port: The port of this ApiextensionsV1beta1ServiceReference. # noqa: E501 + :type: int """ + + self._port = port + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ApiextensionsV1beta1ServiceReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py b/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py index 7e28ce9c49..6e1c45412c 100644 --- a/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py +++ b/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ApiextensionsV1beta1WebhookClientConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ca_bundle': 'str', 'service': 'ApiextensionsV1beta1ServiceReference', 'url': 'str' @@ -42,10 +42,8 @@ class ApiextensionsV1beta1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): - """ - ApiextensionsV1beta1WebhookClientConfig - a model defined in Swagger - """ + def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + """ApiextensionsV1beta1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 self._ca_bundle = None self._service = None @@ -53,55 +51,53 @@ def __init__(self, ca_bundle=None, service=None, url=None): self.discriminator = None if ca_bundle is not None: - self.ca_bundle = ca_bundle + self.ca_bundle = ca_bundle if service is not None: - self.service = service + self.service = service if url is not None: - self.url = url + self.url = url @property def ca_bundle(self): - """ - Gets the ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Gets the ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 - :return: The ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :return: The ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._ca_bundle @ca_bundle.setter def ca_bundle(self, ca_bundle): - """ - Sets the ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Sets the ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. - :param ca_bundle: The ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :param ca_bundle: The ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): - raise ValueError("Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @property def service(self): - """ - Gets the service of this ApiextensionsV1beta1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Gets the service of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 - :return: The service of this ApiextensionsV1beta1WebhookClientConfig. + + :return: The service of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :rtype: ApiextensionsV1beta1ServiceReference """ return self._service @service.setter def service(self, service): - """ - Sets the service of this ApiextensionsV1beta1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Sets the service of this ApiextensionsV1beta1WebhookClientConfig. + - :param service: The service of this ApiextensionsV1beta1WebhookClientConfig. + :param service: The service of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :type: ApiextensionsV1beta1ServiceReference """ @@ -109,34 +105,32 @@ def service(self, service): @property def url(self): - """ - Gets the url of this ApiextensionsV1beta1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Gets the url of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :return: The url of this ApiextensionsV1beta1WebhookClientConfig. + :return: The url of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): - """ - Sets the url of this ApiextensionsV1beta1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Sets the url of this ApiextensionsV1beta1WebhookClientConfig. + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :param url: The url of this ApiextensionsV1beta1WebhookClientConfig. + :param url: The url of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :type: str """ self._url = url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ApiextensionsV1beta1WebhookClientConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apiregistration_v1beta1_service_reference.py b/kubernetes/client/models/apiregistration_v1beta1_service_reference.py index aa4a006f40..a9729bc6f6 100644 --- a/kubernetes/client/models/apiregistration_v1beta1_service_reference.py +++ b/kubernetes/client/models/apiregistration_v1beta1_service_reference.py @@ -3,75 +3,78 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ApiregistrationV1beta1ServiceReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', - 'namespace': 'str' + 'namespace': 'str', + 'port': 'int' } attribute_map = { 'name': 'name', - 'namespace': 'namespace' + 'namespace': 'namespace', + 'port': 'port' } - def __init__(self, name=None, namespace=None): - """ - ApiregistrationV1beta1ServiceReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None, port=None): # noqa: E501 + """ApiregistrationV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None + self._port = None self.discriminator = None if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace + if port is not None: + self.port = port @property def name(self): - """ - Gets the name of this ApiregistrationV1beta1ServiceReference. - Name is the name of the service + """Gets the name of this ApiregistrationV1beta1ServiceReference. # noqa: E501 + + Name is the name of the service # noqa: E501 - :return: The name of this ApiregistrationV1beta1ServiceReference. + :return: The name of this ApiregistrationV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ApiregistrationV1beta1ServiceReference. - Name is the name of the service + """Sets the name of this ApiregistrationV1beta1ServiceReference. + + Name is the name of the service # noqa: E501 - :param name: The name of this ApiregistrationV1beta1ServiceReference. + :param name: The name of this ApiregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ @@ -79,34 +82,55 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this ApiregistrationV1beta1ServiceReference. - Namespace is the namespace of the service + """Gets the namespace of this ApiregistrationV1beta1ServiceReference. # noqa: E501 + + Namespace is the namespace of the service # noqa: E501 - :return: The namespace of this ApiregistrationV1beta1ServiceReference. + :return: The namespace of this ApiregistrationV1beta1ServiceReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this ApiregistrationV1beta1ServiceReference. - Namespace is the namespace of the service + """Sets the namespace of this ApiregistrationV1beta1ServiceReference. + + Namespace is the namespace of the service # noqa: E501 - :param namespace: The namespace of this ApiregistrationV1beta1ServiceReference. + :param namespace: The namespace of this ApiregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ self._namespace = namespace - def to_dict(self): + @property + def port(self): + """Gets the port of this ApiregistrationV1beta1ServiceReference. # noqa: E501 + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :return: The port of this ApiregistrationV1beta1ServiceReference. # noqa: E501 + :rtype: int """ - Returns the model properties as a dict + return self._port + + @port.setter + def port(self, port): + """Sets the port of this ApiregistrationV1beta1ServiceReference. + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :param port: The port of this ApiregistrationV1beta1ServiceReference. # noqa: E501 + :type: int """ + + self._port = port + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ApiregistrationV1beta1ServiceReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment.py b/kubernetes/client/models/apps_v1beta1_deployment.py index c4781e3a64..ab10b569a7 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class AppsV1beta1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - AppsV1beta1Deployment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """AppsV1beta1Deployment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this AppsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this AppsV1beta1Deployment. # noqa: E501 - :return: The api_version of this AppsV1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this AppsV1beta1Deployment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this AppsV1beta1Deployment. - :param api_version: The api_version of this AppsV1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this AppsV1beta1Deployment. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this AppsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this AppsV1beta1Deployment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this AppsV1beta1Deployment. + :return: The kind of this AppsV1beta1Deployment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this AppsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this AppsV1beta1Deployment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this AppsV1beta1Deployment. + :param kind: The kind of this AppsV1beta1Deployment. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this AppsV1beta1Deployment. - Standard object metadata. + """Gets the metadata of this AppsV1beta1Deployment. # noqa: E501 + - :return: The metadata of this AppsV1beta1Deployment. + :return: The metadata of this AppsV1beta1Deployment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1Deployment. - Standard object metadata. + """Sets the metadata of this AppsV1beta1Deployment. + - :param metadata: The metadata of this AppsV1beta1Deployment. + :param metadata: The metadata of this AppsV1beta1Deployment. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this AppsV1beta1Deployment. - Specification of the desired behavior of the Deployment. + """Gets the spec of this AppsV1beta1Deployment. # noqa: E501 + - :return: The spec of this AppsV1beta1Deployment. + :return: The spec of this AppsV1beta1Deployment. # noqa: E501 :rtype: AppsV1beta1DeploymentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this AppsV1beta1Deployment. - Specification of the desired behavior of the Deployment. + """Sets the spec of this AppsV1beta1Deployment. - :param spec: The spec of this AppsV1beta1Deployment. + + :param spec: The spec of this AppsV1beta1Deployment. # noqa: E501 :type: AppsV1beta1DeploymentSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this AppsV1beta1Deployment. - Most recently observed status of the Deployment. + """Gets the status of this AppsV1beta1Deployment. # noqa: E501 - :return: The status of this AppsV1beta1Deployment. + + :return: The status of this AppsV1beta1Deployment. # noqa: E501 :rtype: AppsV1beta1DeploymentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this AppsV1beta1Deployment. - Most recently observed status of the Deployment. + """Sets the status of this AppsV1beta1Deployment. - :param status: The status of this AppsV1beta1Deployment. + + :param status: The status of this AppsV1beta1Deployment. # noqa: E501 :type: AppsV1beta1DeploymentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1Deployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_condition.py b/kubernetes/client/models/apps_v1beta1_deployment_condition.py index 0e85a8a7e5..d9101fbaa7 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'last_update_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class AppsV1beta1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - AppsV1beta1DeploymentCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """AppsV1beta1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._last_update_time = None @@ -62,34 +60,34 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if last_update_time is not None: - self.last_update_time = last_update_time + self.last_update_time = last_update_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this AppsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this AppsV1beta1DeploymentCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this AppsV1beta1DeploymentCondition. + :return: The last_transition_time of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this AppsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this AppsV1beta1DeploymentCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 - :param last_transition_time: The last_transition_time of this AppsV1beta1DeploymentCondition. + :param last_transition_time: The last_transition_time of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_transition_time(self, last_transition_time): @property def last_update_time(self): - """ - Gets the last_update_time of this AppsV1beta1DeploymentCondition. - The last time this condition was updated. + """Gets the last_update_time of this AppsV1beta1DeploymentCondition. # noqa: E501 + + The last time this condition was updated. # noqa: E501 - :return: The last_update_time of this AppsV1beta1DeploymentCondition. + :return: The last_update_time of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_update_time @last_update_time.setter def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this AppsV1beta1DeploymentCondition. - The last time this condition was updated. + """Sets the last_update_time of this AppsV1beta1DeploymentCondition. - :param last_update_time: The last_update_time of this AppsV1beta1DeploymentCondition. + The last time this condition was updated. # noqa: E501 + + :param last_update_time: The last_update_time of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_update_time(self, last_update_time): @property def message(self): - """ - Gets the message of this AppsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. + """Gets the message of this AppsV1beta1DeploymentCondition. # noqa: E501 - :return: The message of this AppsV1beta1DeploymentCondition. + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this AppsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. + """Sets the message of this AppsV1beta1DeploymentCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this AppsV1beta1DeploymentCondition. + :param message: The message of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this AppsV1beta1DeploymentCondition. - The reason for the condition's last transition. + """Gets the reason of this AppsV1beta1DeploymentCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this AppsV1beta1DeploymentCondition. + :return: The reason of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this AppsV1beta1DeploymentCondition. - The reason for the condition's last transition. + """Sets the reason of this AppsV1beta1DeploymentCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this AppsV1beta1DeploymentCondition. + :param reason: The reason of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this AppsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this AppsV1beta1DeploymentCondition. # noqa: E501 - :return: The status of this AppsV1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this AppsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this AppsV1beta1DeploymentCondition. - :param status: The status of this AppsV1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this AppsV1beta1DeploymentCondition. - Type of deployment condition. + """Gets the type of this AppsV1beta1DeploymentCondition. # noqa: E501 + + Type of deployment condition. # noqa: E501 - :return: The type of this AppsV1beta1DeploymentCondition. + :return: The type of this AppsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this AppsV1beta1DeploymentCondition. - Type of deployment condition. + """Sets the type of this AppsV1beta1DeploymentCondition. + + Type of deployment condition. # noqa: E501 - :param type: The type of this AppsV1beta1DeploymentCondition. + :param type: The type of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_list.py b/kubernetes/client/models/apps_v1beta1_deployment_list.py index 50452315f7..99fdfde8a6 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_list.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[AppsV1beta1Deployment]', 'kind': 'str', @@ -44,10 +44,8 @@ class AppsV1beta1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - AppsV1beta1DeploymentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """AppsV1beta1DeploymentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this AppsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this AppsV1beta1DeploymentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this AppsV1beta1DeploymentList. + :return: The api_version of this AppsV1beta1DeploymentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this AppsV1beta1DeploymentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this AppsV1beta1DeploymentList. + :param api_version: The api_version of this AppsV1beta1DeploymentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this AppsV1beta1DeploymentList. - Items is the list of Deployments. + """Gets the items of this AppsV1beta1DeploymentList. # noqa: E501 + + Items is the list of Deployments. # noqa: E501 - :return: The items of this AppsV1beta1DeploymentList. + :return: The items of this AppsV1beta1DeploymentList. # noqa: E501 :rtype: list[AppsV1beta1Deployment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this AppsV1beta1DeploymentList. - Items is the list of Deployments. + """Sets the items of this AppsV1beta1DeploymentList. + + Items is the list of Deployments. # noqa: E501 - :param items: The items of this AppsV1beta1DeploymentList. + :param items: The items of this AppsV1beta1DeploymentList. # noqa: E501 :type: list[AppsV1beta1Deployment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this AppsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this AppsV1beta1DeploymentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this AppsV1beta1DeploymentList. + :return: The kind of this AppsV1beta1DeploymentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this AppsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this AppsV1beta1DeploymentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this AppsV1beta1DeploymentList. + :param kind: The kind of this AppsV1beta1DeploymentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this AppsV1beta1DeploymentList. - Standard list metadata. + """Gets the metadata of this AppsV1beta1DeploymentList. # noqa: E501 + - :return: The metadata of this AppsV1beta1DeploymentList. + :return: The metadata of this AppsV1beta1DeploymentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1DeploymentList. - Standard list metadata. + """Sets the metadata of this AppsV1beta1DeploymentList. + - :param metadata: The metadata of this AppsV1beta1DeploymentList. + :param metadata: The metadata of this AppsV1beta1DeploymentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py index 7df70bd55f..f442705a24 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentRollback(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str', @@ -46,10 +46,8 @@ class AppsV1beta1DeploymentRollback(object): 'updated_annotations': 'updatedAnnotations' } - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): - """ - AppsV1beta1DeploymentRollback - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): # noqa: E501 + """AppsV1beta1DeploymentRollback - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,32 +57,32 @@ def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, upd self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind self.name = name self.rollback_to = rollback_to if updated_annotations is not None: - self.updated_annotations = updated_annotations + self.updated_annotations = updated_annotations @property def api_version(self): - """ - Gets the api_version of this AppsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this AppsV1beta1DeploymentRollback. # noqa: E501 - :return: The api_version of this AppsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this AppsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this AppsV1beta1DeploymentRollback. - :param api_version: The api_version of this AppsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: str """ @@ -92,22 +90,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this AppsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this AppsV1beta1DeploymentRollback. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this AppsV1beta1DeploymentRollback. + :return: The kind of this AppsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this AppsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this AppsV1beta1DeploymentRollback. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this AppsV1beta1DeploymentRollback. + :param kind: The kind of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: str """ @@ -115,84 +113,80 @@ def kind(self, kind): @property def name(self): - """ - Gets the name of this AppsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. + """Gets the name of this AppsV1beta1DeploymentRollback. # noqa: E501 + + Required: This must match the Name of a deployment. # noqa: E501 - :return: The name of this AppsV1beta1DeploymentRollback. + :return: The name of this AppsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this AppsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. + """Sets the name of this AppsV1beta1DeploymentRollback. + + Required: This must match the Name of a deployment. # noqa: E501 - :param name: The name of this AppsV1beta1DeploymentRollback. + :param name: The name of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def rollback_to(self): - """ - Gets the rollback_to of this AppsV1beta1DeploymentRollback. - The config of this deployment rollback. + """Gets the rollback_to of this AppsV1beta1DeploymentRollback. # noqa: E501 + - :return: The rollback_to of this AppsV1beta1DeploymentRollback. + :return: The rollback_to of this AppsV1beta1DeploymentRollback. # noqa: E501 :rtype: AppsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this AppsV1beta1DeploymentRollback. - The config of this deployment rollback. + """Sets the rollback_to of this AppsV1beta1DeploymentRollback. - :param rollback_to: The rollback_to of this AppsV1beta1DeploymentRollback. + + :param rollback_to: The rollback_to of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: AppsV1beta1RollbackConfig """ if rollback_to is None: - raise ValueError("Invalid value for `rollback_to`, must not be `None`") + raise ValueError("Invalid value for `rollback_to`, must not be `None`") # noqa: E501 self._rollback_to = rollback_to @property def updated_annotations(self): - """ - Gets the updated_annotations of this AppsV1beta1DeploymentRollback. - The annotations to be updated to a deployment + """Gets the updated_annotations of this AppsV1beta1DeploymentRollback. # noqa: E501 - :return: The updated_annotations of this AppsV1beta1DeploymentRollback. + The annotations to be updated to a deployment # noqa: E501 + + :return: The updated_annotations of this AppsV1beta1DeploymentRollback. # noqa: E501 :rtype: dict(str, str) """ return self._updated_annotations @updated_annotations.setter def updated_annotations(self, updated_annotations): - """ - Sets the updated_annotations of this AppsV1beta1DeploymentRollback. - The annotations to be updated to a deployment + """Sets the updated_annotations of this AppsV1beta1DeploymentRollback. - :param updated_annotations: The updated_annotations of this AppsV1beta1DeploymentRollback. + The annotations to be updated to a deployment # noqa: E501 + + :param updated_annotations: The updated_annotations of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: dict(str, str) """ self._updated_annotations = updated_annotations def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentRollback): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_spec.py b/kubernetes/client/models/apps_v1beta1_deployment_spec.py index 1038d308bd..375ec8181d 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_spec.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'paused': 'bool', 'progress_deadline_seconds': 'int', @@ -54,10 +54,8 @@ class AppsV1beta1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): - """ - AppsV1beta1DeploymentSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): # noqa: E501 + """AppsV1beta1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._paused = None @@ -71,41 +69,41 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if paused is not None: - self.paused = paused + self.paused = paused if progress_deadline_seconds is not None: - self.progress_deadline_seconds = progress_deadline_seconds + self.progress_deadline_seconds = progress_deadline_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit if rollback_to is not None: - self.rollback_to = rollback_to + self.rollback_to = rollback_to if selector is not None: - self.selector = selector + self.selector = selector if strategy is not None: - self.strategy = strategy + self.strategy = strategy self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this AppsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 - :return: The min_ready_seconds of this AppsV1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :return: The min_ready_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this AppsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this AppsV1beta1DeploymentSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this AppsV1beta1DeploymentSpec. + :param min_ready_seconds: The min_ready_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -113,22 +111,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def paused(self): - """ - Gets the paused of this AppsV1beta1DeploymentSpec. - Indicates that the deployment is paused. + """Gets the paused of this AppsV1beta1DeploymentSpec. # noqa: E501 + + Indicates that the deployment is paused. # noqa: E501 - :return: The paused of this AppsV1beta1DeploymentSpec. + :return: The paused of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: bool """ return self._paused @paused.setter def paused(self, paused): - """ - Sets the paused of this AppsV1beta1DeploymentSpec. - Indicates that the deployment is paused. + """Sets the paused of this AppsV1beta1DeploymentSpec. - :param paused: The paused of this AppsV1beta1DeploymentSpec. + Indicates that the deployment is paused. # noqa: E501 + + :param paused: The paused of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: bool """ @@ -136,22 +134,22 @@ def paused(self, paused): @property def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Gets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 - :return: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 + + :return: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._progress_deadline_seconds @progress_deadline_seconds.setter def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Sets the progress_deadline_seconds of this AppsV1beta1DeploymentSpec. - :param progress_deadline_seconds: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 + + :param progress_deadline_seconds: The progress_deadline_seconds of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -159,22 +157,22 @@ def progress_deadline_seconds(self, progress_deadline_seconds): @property def replicas(self): - """ - Gets the replicas of this AppsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Gets the replicas of this AppsV1beta1DeploymentSpec. # noqa: E501 + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :return: The replicas of this AppsV1beta1DeploymentSpec. + :return: The replicas of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Sets the replicas of this AppsV1beta1DeploymentSpec. + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :param replicas: The replicas of this AppsV1beta1DeploymentSpec. + :param replicas: The replicas of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -182,22 +180,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this AppsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + """Gets the revision_history_limit of this AppsV1beta1DeploymentSpec. # noqa: E501 - :return: The revision_history_limit of this AppsV1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. # noqa: E501 + + :return: The revision_history_limit of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this AppsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + """Sets the revision_history_limit of this AppsV1beta1DeploymentSpec. + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this AppsV1beta1DeploymentSpec. + :param revision_history_limit: The revision_history_limit of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -205,22 +203,20 @@ def revision_history_limit(self, revision_history_limit): @property def rollback_to(self): - """ - Gets the rollback_to of this AppsV1beta1DeploymentSpec. - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + """Gets the rollback_to of this AppsV1beta1DeploymentSpec. # noqa: E501 + - :return: The rollback_to of this AppsV1beta1DeploymentSpec. + :return: The rollback_to of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: AppsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this AppsV1beta1DeploymentSpec. - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + """Sets the rollback_to of this AppsV1beta1DeploymentSpec. + - :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec. + :param rollback_to: The rollback_to of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: AppsV1beta1RollbackConfig """ @@ -228,22 +224,20 @@ def rollback_to(self, rollback_to): @property def selector(self): - """ - Gets the selector of this AppsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + """Gets the selector of this AppsV1beta1DeploymentSpec. # noqa: E501 + - :return: The selector of this AppsV1beta1DeploymentSpec. + :return: The selector of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this AppsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + """Sets the selector of this AppsV1beta1DeploymentSpec. - :param selector: The selector of this AppsV1beta1DeploymentSpec. + + :param selector: The selector of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ @@ -251,22 +245,20 @@ def selector(self, selector): @property def strategy(self): - """ - Gets the strategy of this AppsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Gets the strategy of this AppsV1beta1DeploymentSpec. # noqa: E501 + - :return: The strategy of this AppsV1beta1DeploymentSpec. + :return: The strategy of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: AppsV1beta1DeploymentStrategy """ return self._strategy @strategy.setter def strategy(self, strategy): - """ - Sets the strategy of this AppsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Sets the strategy of this AppsV1beta1DeploymentSpec. + - :param strategy: The strategy of this AppsV1beta1DeploymentSpec. + :param strategy: The strategy of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: AppsV1beta1DeploymentStrategy """ @@ -274,36 +266,32 @@ def strategy(self, strategy): @property def template(self): - """ - Gets the template of this AppsV1beta1DeploymentSpec. - Template describes the pods that will be created. + """Gets the template of this AppsV1beta1DeploymentSpec. # noqa: E501 - :return: The template of this AppsV1beta1DeploymentSpec. + + :return: The template of this AppsV1beta1DeploymentSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this AppsV1beta1DeploymentSpec. - Template describes the pods that will be created. + """Sets the template of this AppsV1beta1DeploymentSpec. - :param template: The template of this AppsV1beta1DeploymentSpec. + + :param template: The template of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,28 +312,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_status.py b/kubernetes/client/models/apps_v1beta1_deployment_status.py index 7304464862..f264b0ce7e 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_status.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'collision_count': 'int', 'conditions': 'list[AppsV1beta1DeploymentCondition]', @@ -52,10 +52,8 @@ class AppsV1beta1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - AppsV1beta1DeploymentStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + """AppsV1beta1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._collision_count = None @@ -68,40 +66,40 @@ def __init__(self, available_replicas=None, collision_count=None, conditions=Non self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas if replicas is not None: - self.replicas = replicas + self.replicas = replicas if unavailable_replicas is not None: - self.unavailable_replicas = unavailable_replicas + self.unavailable_replicas = unavailable_replicas if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def available_replicas(self): - """ - Gets the available_replicas of this AppsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Gets the available_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 + + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 - :return: The available_replicas of this AppsV1beta1DeploymentStatus. + :return: The available_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this AppsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Sets the available_replicas of this AppsV1beta1DeploymentStatus. - :param available_replicas: The available_replicas of this AppsV1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 + + :param available_replicas: The available_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -109,22 +107,22 @@ def available_replicas(self, available_replicas): @property def collision_count(self): - """ - Gets the collision_count of this AppsV1beta1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Gets the collision_count of this AppsV1beta1DeploymentStatus. # noqa: E501 + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :return: The collision_count of this AppsV1beta1DeploymentStatus. + :return: The collision_count of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this AppsV1beta1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Sets the collision_count of this AppsV1beta1DeploymentStatus. + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :param collision_count: The collision_count of this AppsV1beta1DeploymentStatus. + :param collision_count: The collision_count of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -132,22 +130,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this AppsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Gets the conditions of this AppsV1beta1DeploymentStatus. # noqa: E501 - :return: The conditions of this AppsV1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. # noqa: E501 + + :return: The conditions of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: list[AppsV1beta1DeploymentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this AppsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Sets the conditions of this AppsV1beta1DeploymentStatus. + + Represents the latest available observations of a deployment's current state. # noqa: E501 - :param conditions: The conditions of this AppsV1beta1DeploymentStatus. + :param conditions: The conditions of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: list[AppsV1beta1DeploymentCondition] """ @@ -155,22 +153,22 @@ def conditions(self, conditions): @property def observed_generation(self): - """ - Gets the observed_generation of this AppsV1beta1DeploymentStatus. - The generation observed by the deployment controller. + """Gets the observed_generation of this AppsV1beta1DeploymentStatus. # noqa: E501 + + The generation observed by the deployment controller. # noqa: E501 - :return: The observed_generation of this AppsV1beta1DeploymentStatus. + :return: The observed_generation of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this AppsV1beta1DeploymentStatus. - The generation observed by the deployment controller. + """Sets the observed_generation of this AppsV1beta1DeploymentStatus. - :param observed_generation: The observed_generation of this AppsV1beta1DeploymentStatus. + The generation observed by the deployment controller. # noqa: E501 + + :param observed_generation: The observed_generation of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -178,22 +176,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this AppsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Gets the ready_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 + + Total number of ready pods targeted by this deployment. # noqa: E501 - :return: The ready_replicas of this AppsV1beta1DeploymentStatus. + :return: The ready_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this AppsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Sets the ready_replicas of this AppsV1beta1DeploymentStatus. + + Total number of ready pods targeted by this deployment. # noqa: E501 - :param ready_replicas: The ready_replicas of this AppsV1beta1DeploymentStatus. + :param ready_replicas: The ready_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -201,22 +199,22 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Gets the replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 - :return: The replicas of this AppsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 + + :return: The replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Sets the replicas of this AppsV1beta1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 - :param replicas: The replicas of this AppsV1beta1DeploymentStatus. + :param replicas: The replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -224,22 +222,22 @@ def replicas(self, replicas): @property def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this AppsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Gets the unavailable_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 + + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 - :return: The unavailable_replicas of this AppsV1beta1DeploymentStatus. + :return: The unavailable_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._unavailable_replicas @unavailable_replicas.setter def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this AppsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Sets the unavailable_replicas of this AppsV1beta1DeploymentStatus. - :param unavailable_replicas: The unavailable_replicas of this AppsV1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 + + :param unavailable_replicas: The unavailable_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -247,34 +245,32 @@ def unavailable_replicas(self, unavailable_replicas): @property def updated_replicas(self): - """ - Gets the updated_replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Gets the updated_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :return: The updated_replicas of this AppsV1beta1DeploymentStatus. + :return: The updated_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this AppsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Sets the updated_replicas of this AppsV1beta1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :param updated_replicas: The updated_replicas of this AppsV1beta1DeploymentStatus. + :param updated_replicas: The updated_replicas of this AppsV1beta1DeploymentStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py index e01d5231c3..6d5017fe14 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'AppsV1beta1RollingUpdateDeployment', 'type': 'str' } @@ -40,38 +40,34 @@ class AppsV1beta1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - AppsV1beta1DeploymentStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """AppsV1beta1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this AppsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Gets the rolling_update of this AppsV1beta1DeploymentStrategy. # noqa: E501 + - :return: The rolling_update of this AppsV1beta1DeploymentStrategy. + :return: The rolling_update of this AppsV1beta1DeploymentStrategy. # noqa: E501 :rtype: AppsV1beta1RollingUpdateDeployment """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this AppsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Sets the rolling_update of this AppsV1beta1DeploymentStrategy. - :param rolling_update: The rolling_update of this AppsV1beta1DeploymentStrategy. + + :param rolling_update: The rolling_update of this AppsV1beta1DeploymentStrategy. # noqa: E501 :type: AppsV1beta1RollingUpdateDeployment """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this AppsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Gets the type of this AppsV1beta1DeploymentStrategy. # noqa: E501 + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :return: The type of this AppsV1beta1DeploymentStrategy. + :return: The type of this AppsV1beta1DeploymentStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this AppsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Sets the type of this AppsV1beta1DeploymentStrategy. + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this AppsV1beta1DeploymentStrategy. + :param type: The type of this AppsV1beta1DeploymentStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1DeploymentStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_rollback_config.py b/kubernetes/client/models/apps_v1beta1_rollback_config.py index fd30018701..27cfad50d3 100644 --- a/kubernetes/client/models/apps_v1beta1_rollback_config.py +++ b/kubernetes/client/models/apps_v1beta1_rollback_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1RollbackConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'revision': 'int' } @@ -38,47 +38,43 @@ class AppsV1beta1RollbackConfig(object): 'revision': 'revision' } - def __init__(self, revision=None): - """ - AppsV1beta1RollbackConfig - a model defined in Swagger - """ + def __init__(self, revision=None): # noqa: E501 + """AppsV1beta1RollbackConfig - a model defined in OpenAPI""" # noqa: E501 self._revision = None self.discriminator = None if revision is not None: - self.revision = revision + self.revision = revision @property def revision(self): - """ - Gets the revision of this AppsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollback to the last revision. + """Gets the revision of this AppsV1beta1RollbackConfig. # noqa: E501 + + The revision to rollback to. If set to 0, rollback to the last revision. # noqa: E501 - :return: The revision of this AppsV1beta1RollbackConfig. + :return: The revision of this AppsV1beta1RollbackConfig. # noqa: E501 :rtype: int """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this AppsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollback to the last revision. + """Sets the revision of this AppsV1beta1RollbackConfig. + + The revision to rollback to. If set to 0, rollback to the last revision. # noqa: E501 - :param revision: The revision of this AppsV1beta1RollbackConfig. + :param revision: The revision of this AppsV1beta1RollbackConfig. # noqa: E501 :type: int """ self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1RollbackConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py index d5e2b65dfb..8962131a59 100644 --- a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_surge': 'object', 'max_unavailable': 'object' } @@ -40,38 +40,36 @@ class AppsV1beta1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): - """ - AppsV1beta1RollingUpdateDeployment - a model defined in Swagger - """ + def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + """AppsV1beta1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 self._max_surge = None self._max_unavailable = None self.discriminator = None if max_surge is not None: - self.max_surge = max_surge + self.max_surge = max_surge if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_surge(self): - """ - Gets the max_surge of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Gets the max_surge of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 - :return: The max_surge of this AppsV1beta1RollingUpdateDeployment. + :return: The max_surge of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_surge @max_surge.setter def max_surge(self, max_surge): - """ - Sets the max_surge of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Sets the max_surge of this AppsV1beta1RollingUpdateDeployment. - :param max_surge: The max_surge of this AppsV1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :param max_surge: The max_surge of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def max_surge(self, max_surge): @property def max_unavailable(self): - """ - Gets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Gets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :return: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. + :return: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Sets the max_unavailable of this AppsV1beta1RollingUpdateDeployment. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :param max_unavailable: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. + :param max_unavailable: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1RollingUpdateDeployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale.py b/kubernetes/client/models/apps_v1beta1_scale.py index e8d6fa4333..efd7cdacf1 100644 --- a/kubernetes/client/models/apps_v1beta1_scale.py +++ b/kubernetes/client/models/apps_v1beta1_scale.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class AppsV1beta1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - AppsV1beta1Scale - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """AppsV1beta1Scale - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this AppsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this AppsV1beta1Scale. # noqa: E501 - :return: The api_version of this AppsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this AppsV1beta1Scale. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this AppsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this AppsV1beta1Scale. - :param api_version: The api_version of this AppsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this AppsV1beta1Scale. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this AppsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this AppsV1beta1Scale. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this AppsV1beta1Scale. + :return: The kind of this AppsV1beta1Scale. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this AppsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this AppsV1beta1Scale. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this AppsV1beta1Scale. + :param kind: The kind of this AppsV1beta1Scale. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this AppsV1beta1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Gets the metadata of this AppsV1beta1Scale. # noqa: E501 + - :return: The metadata of this AppsV1beta1Scale. + :return: The metadata of this AppsV1beta1Scale. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this AppsV1beta1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Sets the metadata of this AppsV1beta1Scale. + - :param metadata: The metadata of this AppsV1beta1Scale. + :param metadata: The metadata of this AppsV1beta1Scale. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this AppsV1beta1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Gets the spec of this AppsV1beta1Scale. # noqa: E501 + - :return: The spec of this AppsV1beta1Scale. + :return: The spec of this AppsV1beta1Scale. # noqa: E501 :rtype: AppsV1beta1ScaleSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this AppsV1beta1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Sets the spec of this AppsV1beta1Scale. - :param spec: The spec of this AppsV1beta1Scale. + + :param spec: The spec of this AppsV1beta1Scale. # noqa: E501 :type: AppsV1beta1ScaleSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this AppsV1beta1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + """Gets the status of this AppsV1beta1Scale. # noqa: E501 - :return: The status of this AppsV1beta1Scale. + + :return: The status of this AppsV1beta1Scale. # noqa: E501 :rtype: AppsV1beta1ScaleStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this AppsV1beta1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + """Sets the status of this AppsV1beta1Scale. - :param status: The status of this AppsV1beta1Scale. + + :param status: The status of this AppsV1beta1Scale. # noqa: E501 :type: AppsV1beta1ScaleStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1Scale): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale_spec.py b/kubernetes/client/models/apps_v1beta1_scale_spec.py index 8fc36dcd8d..cd5f9786ba 100644 --- a/kubernetes/client/models/apps_v1beta1_scale_spec.py +++ b/kubernetes/client/models/apps_v1beta1_scale_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int' } @@ -38,47 +38,43 @@ class AppsV1beta1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): - """ - AppsV1beta1ScaleSpec - a model defined in Swagger - """ + def __init__(self, replicas=None): # noqa: E501 + """AppsV1beta1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self.discriminator = None if replicas is not None: - self.replicas = replicas + self.replicas = replicas @property def replicas(self): - """ - Gets the replicas of this AppsV1beta1ScaleSpec. - desired number of instances for the scaled object. + """Gets the replicas of this AppsV1beta1ScaleSpec. # noqa: E501 + + desired number of instances for the scaled object. # noqa: E501 - :return: The replicas of this AppsV1beta1ScaleSpec. + :return: The replicas of this AppsV1beta1ScaleSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1ScaleSpec. - desired number of instances for the scaled object. + """Sets the replicas of this AppsV1beta1ScaleSpec. + + desired number of instances for the scaled object. # noqa: E501 - :param replicas: The replicas of this AppsV1beta1ScaleSpec. + :param replicas: The replicas of this AppsV1beta1ScaleSpec. # noqa: E501 :type: int """ self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1ScaleSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/apps_v1beta1_scale_status.py b/kubernetes/client/models/apps_v1beta1_scale_status.py index 72e300e521..787862c16b 100644 --- a/kubernetes/client/models/apps_v1beta1_scale_status.py +++ b/kubernetes/client/models/apps_v1beta1_scale_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class AppsV1beta1ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int', 'selector': 'dict(str, str)', 'target_selector': 'str' @@ -42,10 +42,8 @@ class AppsV1beta1ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): - """ - AppsV1beta1ScaleStatus - a model defined in Swagger - """ + def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + """AppsV1beta1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self._selector = None @@ -54,53 +52,53 @@ def __init__(self, replicas=None, selector=None, target_selector=None): self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector if target_selector is not None: - self.target_selector = target_selector + self.target_selector = target_selector @property def replicas(self): - """ - Gets the replicas of this AppsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. + """Gets the replicas of this AppsV1beta1ScaleStatus. # noqa: E501 - :return: The replicas of this AppsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :return: The replicas of this AppsV1beta1ScaleStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this AppsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. + """Sets the replicas of this AppsV1beta1ScaleStatus. - :param replicas: The replicas of this AppsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :param replicas: The replicas of this AppsV1beta1ScaleStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def selector(self): - """ - Gets the selector of this AppsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Gets the selector of this AppsV1beta1ScaleStatus. # noqa: E501 - :return: The selector of this AppsV1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 + + :return: The selector of this AppsV1beta1ScaleStatus. # noqa: E501 :rtype: dict(str, str) """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this AppsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Sets the selector of this AppsV1beta1ScaleStatus. + + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 - :param selector: The selector of this AppsV1beta1ScaleStatus. + :param selector: The selector of this AppsV1beta1ScaleStatus. # noqa: E501 :type: dict(str, str) """ @@ -108,34 +106,32 @@ def selector(self, selector): @property def target_selector(self): - """ - Gets the target_selector of this AppsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the target_selector of this AppsV1beta1ScaleStatus. # noqa: E501 + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :return: The target_selector of this AppsV1beta1ScaleStatus. + :return: The target_selector of this AppsV1beta1ScaleStatus. # noqa: E501 :rtype: str """ return self._target_selector @target_selector.setter def target_selector(self, target_selector): - """ - Sets the target_selector of this AppsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the target_selector of this AppsV1beta1ScaleStatus. + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :param target_selector: The target_selector of this AppsV1beta1ScaleStatus. + :param target_selector: The target_selector of this AppsV1beta1ScaleStatus. # noqa: E501 :type: str """ self._target_selector = target_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AppsV1beta1ScaleStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py b/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py index e417bd0833..47c663e7a9 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1AllowedCSIDriver(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str' } @@ -38,10 +38,8 @@ class ExtensionsV1beta1AllowedCSIDriver(object): 'name': 'name' } - def __init__(self, name=None): - """ - ExtensionsV1beta1AllowedCSIDriver - a model defined in Swagger - """ + def __init__(self, name=None): # noqa: E501 + """ExtensionsV1beta1AllowedCSIDriver - a model defined in OpenAPI""" # noqa: E501 self._name = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, name=None): @property def name(self): - """ - Gets the name of this ExtensionsV1beta1AllowedCSIDriver. - Name is the registered name of the CSI driver + """Gets the name of this ExtensionsV1beta1AllowedCSIDriver. # noqa: E501 + + Name is the registered name of the CSI driver # noqa: E501 - :return: The name of this ExtensionsV1beta1AllowedCSIDriver. + :return: The name of this ExtensionsV1beta1AllowedCSIDriver. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ExtensionsV1beta1AllowedCSIDriver. - Name is the registered name of the CSI driver + """Sets the name of this ExtensionsV1beta1AllowedCSIDriver. + + Name is the registered name of the CSI driver # noqa: E501 - :param name: The name of this ExtensionsV1beta1AllowedCSIDriver. + :param name: The name of this ExtensionsV1beta1AllowedCSIDriver. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1AllowedCSIDriver): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py b/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py index a2f1743fc9..747aa529d9 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1AllowedFlexVolume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'driver': 'str' } @@ -38,10 +38,8 @@ class ExtensionsV1beta1AllowedFlexVolume(object): 'driver': 'driver' } - def __init__(self, driver=None): - """ - ExtensionsV1beta1AllowedFlexVolume - a model defined in Swagger - """ + def __init__(self, driver=None): # noqa: E501 + """ExtensionsV1beta1AllowedFlexVolume - a model defined in OpenAPI""" # noqa: E501 self._driver = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, driver=None): @property def driver(self): - """ - Gets the driver of this ExtensionsV1beta1AllowedFlexVolume. - driver is the name of the Flexvolume driver. + """Gets the driver of this ExtensionsV1beta1AllowedFlexVolume. # noqa: E501 + + driver is the name of the Flexvolume driver. # noqa: E501 - :return: The driver of this ExtensionsV1beta1AllowedFlexVolume. + :return: The driver of this ExtensionsV1beta1AllowedFlexVolume. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this ExtensionsV1beta1AllowedFlexVolume. - driver is the name of the Flexvolume driver. + """Sets the driver of this ExtensionsV1beta1AllowedFlexVolume. + + driver is the name of the Flexvolume driver. # noqa: E501 - :param driver: The driver of this ExtensionsV1beta1AllowedFlexVolume. + :param driver: The driver of this ExtensionsV1beta1AllowedFlexVolume. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1AllowedFlexVolume): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py b/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py index 7658374747..d48cf84f7c 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1AllowedHostPath(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path_prefix': 'str', 'read_only': 'bool' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1AllowedHostPath(object): 'read_only': 'readOnly' } - def __init__(self, path_prefix=None, read_only=None): - """ - ExtensionsV1beta1AllowedHostPath - a model defined in Swagger - """ + def __init__(self, path_prefix=None, read_only=None): # noqa: E501 + """ExtensionsV1beta1AllowedHostPath - a model defined in OpenAPI""" # noqa: E501 self._path_prefix = None self._read_only = None self.discriminator = None if path_prefix is not None: - self.path_prefix = path_prefix + self.path_prefix = path_prefix if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def path_prefix(self): - """ - Gets the path_prefix of this ExtensionsV1beta1AllowedHostPath. - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + """Gets the path_prefix of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 + + pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` # noqa: E501 - :return: The path_prefix of this ExtensionsV1beta1AllowedHostPath. + :return: The path_prefix of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 :rtype: str """ return self._path_prefix @path_prefix.setter def path_prefix(self, path_prefix): - """ - Sets the path_prefix of this ExtensionsV1beta1AllowedHostPath. - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + """Sets the path_prefix of this ExtensionsV1beta1AllowedHostPath. - :param path_prefix: The path_prefix of this ExtensionsV1beta1AllowedHostPath. + pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` # noqa: E501 + + :param path_prefix: The path_prefix of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def path_prefix(self, path_prefix): @property def read_only(self): - """ - Gets the read_only of this ExtensionsV1beta1AllowedHostPath. - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + """Gets the read_only of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 + + when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. # noqa: E501 - :return: The read_only of this ExtensionsV1beta1AllowedHostPath. + :return: The read_only of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this ExtensionsV1beta1AllowedHostPath. - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + """Sets the read_only of this ExtensionsV1beta1AllowedHostPath. + + when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. # noqa: E501 - :param read_only: The read_only of this ExtensionsV1beta1AllowedHostPath. + :param read_only: The read_only of this ExtensionsV1beta1AllowedHostPath. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1AllowedHostPath): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment.py b/kubernetes/client/models/extensions_v1beta1_deployment.py index d9b4d91dc3..683c68621d 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class ExtensionsV1beta1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - ExtensionsV1beta1Deployment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """ExtensionsV1beta1Deployment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1Deployment. # noqa: E501 - :return: The api_version of this ExtensionsV1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this ExtensionsV1beta1Deployment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1Deployment. - :param api_version: The api_version of this ExtensionsV1beta1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this ExtensionsV1beta1Deployment. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1Deployment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1Deployment. + :return: The kind of this ExtensionsV1beta1Deployment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1Deployment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1Deployment. + :param kind: The kind of this ExtensionsV1beta1Deployment. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1Deployment. - Standard object metadata. + """Gets the metadata of this ExtensionsV1beta1Deployment. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1Deployment. + :return: The metadata of this ExtensionsV1beta1Deployment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1Deployment. - Standard object metadata. + """Sets the metadata of this ExtensionsV1beta1Deployment. + - :param metadata: The metadata of this ExtensionsV1beta1Deployment. + :param metadata: The metadata of this ExtensionsV1beta1Deployment. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this ExtensionsV1beta1Deployment. - Specification of the desired behavior of the Deployment. + """Gets the spec of this ExtensionsV1beta1Deployment. # noqa: E501 + - :return: The spec of this ExtensionsV1beta1Deployment. + :return: The spec of this ExtensionsV1beta1Deployment. # noqa: E501 :rtype: ExtensionsV1beta1DeploymentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1Deployment. - Specification of the desired behavior of the Deployment. + """Sets the spec of this ExtensionsV1beta1Deployment. - :param spec: The spec of this ExtensionsV1beta1Deployment. + + :param spec: The spec of this ExtensionsV1beta1Deployment. # noqa: E501 :type: ExtensionsV1beta1DeploymentSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this ExtensionsV1beta1Deployment. - Most recently observed status of the Deployment. + """Gets the status of this ExtensionsV1beta1Deployment. # noqa: E501 - :return: The status of this ExtensionsV1beta1Deployment. + + :return: The status of this ExtensionsV1beta1Deployment. # noqa: E501 :rtype: ExtensionsV1beta1DeploymentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this ExtensionsV1beta1Deployment. - Most recently observed status of the Deployment. + """Sets the status of this ExtensionsV1beta1Deployment. - :param status: The status of this ExtensionsV1beta1Deployment. + + :param status: The status of this ExtensionsV1beta1Deployment. # noqa: E501 :type: ExtensionsV1beta1DeploymentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1Deployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py index 03148e809e..eb55d738df 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'last_update_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class ExtensionsV1beta1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - ExtensionsV1beta1DeploymentCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """ExtensionsV1beta1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._last_update_time = None @@ -62,34 +60,34 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if last_update_time is not None: - self.last_update_time = last_update_time + self.last_update_time = last_update_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. + :return: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this ExtensionsV1beta1DeploymentCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 - :param last_transition_time: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. + :param last_transition_time: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_transition_time(self, last_transition_time): @property def last_update_time(self): - """ - Gets the last_update_time of this ExtensionsV1beta1DeploymentCondition. - The last time this condition was updated. + """Gets the last_update_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 + + The last time this condition was updated. # noqa: E501 - :return: The last_update_time of this ExtensionsV1beta1DeploymentCondition. + :return: The last_update_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_update_time @last_update_time.setter def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this ExtensionsV1beta1DeploymentCondition. - The last time this condition was updated. + """Sets the last_update_time of this ExtensionsV1beta1DeploymentCondition. - :param last_update_time: The last_update_time of this ExtensionsV1beta1DeploymentCondition. + The last time this condition was updated. # noqa: E501 + + :param last_update_time: The last_update_time of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_update_time(self, last_update_time): @property def message(self): - """ - Gets the message of this ExtensionsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. + """Gets the message of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 - :return: The message of this ExtensionsV1beta1DeploymentCondition. + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this ExtensionsV1beta1DeploymentCondition. - A human readable message indicating details about the transition. + """Sets the message of this ExtensionsV1beta1DeploymentCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this ExtensionsV1beta1DeploymentCondition. + :param message: The message of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this ExtensionsV1beta1DeploymentCondition. - The reason for the condition's last transition. + """Gets the reason of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this ExtensionsV1beta1DeploymentCondition. + :return: The reason of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this ExtensionsV1beta1DeploymentCondition. - The reason for the condition's last transition. + """Sets the reason of this ExtensionsV1beta1DeploymentCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this ExtensionsV1beta1DeploymentCondition. + :param reason: The reason of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this ExtensionsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 - :return: The status of this ExtensionsV1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this ExtensionsV1beta1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this ExtensionsV1beta1DeploymentCondition. - :param status: The status of this ExtensionsV1beta1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this ExtensionsV1beta1DeploymentCondition. - Type of deployment condition. + """Gets the type of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 + + Type of deployment condition. # noqa: E501 - :return: The type of this ExtensionsV1beta1DeploymentCondition. + :return: The type of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this ExtensionsV1beta1DeploymentCondition. - Type of deployment condition. + """Sets the type of this ExtensionsV1beta1DeploymentCondition. + + Type of deployment condition. # noqa: E501 - :param type: The type of this ExtensionsV1beta1DeploymentCondition. + :param type: The type of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_list.py b/kubernetes/client/models/extensions_v1beta1_deployment_list.py index ba7a18a4d2..98d5146ff3 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_list.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[ExtensionsV1beta1Deployment]', 'kind': 'str', @@ -44,10 +44,8 @@ class ExtensionsV1beta1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - ExtensionsV1beta1DeploymentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """ExtensionsV1beta1DeploymentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1DeploymentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this ExtensionsV1beta1DeploymentList. + :return: The api_version of this ExtensionsV1beta1DeploymentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1DeploymentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this ExtensionsV1beta1DeploymentList. + :param api_version: The api_version of this ExtensionsV1beta1DeploymentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this ExtensionsV1beta1DeploymentList. - Items is the list of Deployments. + """Gets the items of this ExtensionsV1beta1DeploymentList. # noqa: E501 + + Items is the list of Deployments. # noqa: E501 - :return: The items of this ExtensionsV1beta1DeploymentList. + :return: The items of this ExtensionsV1beta1DeploymentList. # noqa: E501 :rtype: list[ExtensionsV1beta1Deployment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this ExtensionsV1beta1DeploymentList. - Items is the list of Deployments. + """Sets the items of this ExtensionsV1beta1DeploymentList. + + Items is the list of Deployments. # noqa: E501 - :param items: The items of this ExtensionsV1beta1DeploymentList. + :param items: The items of this ExtensionsV1beta1DeploymentList. # noqa: E501 :type: list[ExtensionsV1beta1Deployment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1DeploymentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1DeploymentList. + :return: The kind of this ExtensionsV1beta1DeploymentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1DeploymentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1DeploymentList. + :param kind: The kind of this ExtensionsV1beta1DeploymentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1DeploymentList. - Standard list metadata. + """Gets the metadata of this ExtensionsV1beta1DeploymentList. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1DeploymentList. + :return: The metadata of this ExtensionsV1beta1DeploymentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1DeploymentList. - Standard list metadata. + """Sets the metadata of this ExtensionsV1beta1DeploymentList. + - :param metadata: The metadata of this ExtensionsV1beta1DeploymentList. + :param metadata: The metadata of this ExtensionsV1beta1DeploymentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py index 5ee9cd348d..6ce8000abc 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentRollback(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str', @@ -46,10 +46,8 @@ class ExtensionsV1beta1DeploymentRollback(object): 'updated_annotations': 'updatedAnnotations' } - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): - """ - ExtensionsV1beta1DeploymentRollback - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): # noqa: E501 + """ExtensionsV1beta1DeploymentRollback - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,32 +57,32 @@ def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, upd self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind self.name = name self.rollback_to = rollback_to if updated_annotations is not None: - self.updated_annotations = updated_annotations + self.updated_annotations = updated_annotations @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 - :return: The api_version of this ExtensionsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1DeploymentRollback. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1DeploymentRollback. - :param api_version: The api_version of this ExtensionsV1beta1DeploymentRollback. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: str """ @@ -92,22 +90,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1DeploymentRollback. + :return: The kind of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1DeploymentRollback. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1DeploymentRollback. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1DeploymentRollback. + :param kind: The kind of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: str """ @@ -115,84 +113,80 @@ def kind(self, kind): @property def name(self): - """ - Gets the name of this ExtensionsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. + """Gets the name of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 + + Required: This must match the Name of a deployment. # noqa: E501 - :return: The name of this ExtensionsV1beta1DeploymentRollback. + :return: The name of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ExtensionsV1beta1DeploymentRollback. - Required: This must match the Name of a deployment. + """Sets the name of this ExtensionsV1beta1DeploymentRollback. + + Required: This must match the Name of a deployment. # noqa: E501 - :param name: The name of this ExtensionsV1beta1DeploymentRollback. + :param name: The name of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def rollback_to(self): - """ - Gets the rollback_to of this ExtensionsV1beta1DeploymentRollback. - The config of this deployment rollback. + """Gets the rollback_to of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 + - :return: The rollback_to of this ExtensionsV1beta1DeploymentRollback. + :return: The rollback_to of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :rtype: ExtensionsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this ExtensionsV1beta1DeploymentRollback. - The config of this deployment rollback. + """Sets the rollback_to of this ExtensionsV1beta1DeploymentRollback. - :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentRollback. + + :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: ExtensionsV1beta1RollbackConfig """ if rollback_to is None: - raise ValueError("Invalid value for `rollback_to`, must not be `None`") + raise ValueError("Invalid value for `rollback_to`, must not be `None`") # noqa: E501 self._rollback_to = rollback_to @property def updated_annotations(self): - """ - Gets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. - The annotations to be updated to a deployment + """Gets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 - :return: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. + The annotations to be updated to a deployment # noqa: E501 + + :return: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :rtype: dict(str, str) """ return self._updated_annotations @updated_annotations.setter def updated_annotations(self, updated_annotations): - """ - Sets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. - The annotations to be updated to a deployment + """Sets the updated_annotations of this ExtensionsV1beta1DeploymentRollback. - :param updated_annotations: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. + The annotations to be updated to a deployment # noqa: E501 + + :param updated_annotations: The updated_annotations of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: dict(str, str) """ self._updated_annotations = updated_annotations def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentRollback): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py index f7077d34d2..852125ee74 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'paused': 'bool', 'progress_deadline_seconds': 'int', @@ -54,10 +54,8 @@ class ExtensionsV1beta1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): - """ - ExtensionsV1beta1DeploymentSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): # noqa: E501 + """ExtensionsV1beta1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._paused = None @@ -71,41 +69,41 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if paused is not None: - self.paused = paused + self.paused = paused if progress_deadline_seconds is not None: - self.progress_deadline_seconds = progress_deadline_seconds + self.progress_deadline_seconds = progress_deadline_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit if rollback_to is not None: - self.rollback_to = rollback_to + self.rollback_to = rollback_to if selector is not None: - self.selector = selector + self.selector = selector if strategy is not None: - self.strategy = strategy + self.strategy = strategy self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 - :return: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :return: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. + :param min_ready_seconds: The min_ready_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -113,22 +111,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def paused(self): - """ - Gets the paused of this ExtensionsV1beta1DeploymentSpec. - Indicates that the deployment is paused and will not be processed by the deployment controller. + """Gets the paused of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 + + Indicates that the deployment is paused and will not be processed by the deployment controller. # noqa: E501 - :return: The paused of this ExtensionsV1beta1DeploymentSpec. + :return: The paused of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: bool """ return self._paused @paused.setter def paused(self, paused): - """ - Sets the paused of this ExtensionsV1beta1DeploymentSpec. - Indicates that the deployment is paused and will not be processed by the deployment controller. + """Sets the paused of this ExtensionsV1beta1DeploymentSpec. - :param paused: The paused of this ExtensionsV1beta1DeploymentSpec. + Indicates that the deployment is paused and will not be processed by the deployment controller. # noqa: E501 + + :param paused: The paused of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: bool """ @@ -136,22 +134,22 @@ def paused(self, paused): @property def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". + """Gets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 - :return: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". # noqa: E501 + + :return: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._progress_deadline_seconds @progress_deadline_seconds.setter def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". + """Sets the progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. - :param progress_deadline_seconds: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". # noqa: E501 + + :param progress_deadline_seconds: The progress_deadline_seconds of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -159,22 +157,22 @@ def progress_deadline_seconds(self, progress_deadline_seconds): @property def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Gets the replicas of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :return: The replicas of this ExtensionsV1beta1DeploymentSpec. + :return: The replicas of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Sets the replicas of this ExtensionsV1beta1DeploymentSpec. + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :param replicas: The replicas of this ExtensionsV1beta1DeploymentSpec. + :param replicas: The replicas of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -182,22 +180,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". + """Gets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 - :return: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". # noqa: E501 + + :return: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". + """Sets the revision_history_limit of this ExtensionsV1beta1DeploymentSpec. + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". # noqa: E501 - :param revision_history_limit: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. + :param revision_history_limit: The revision_history_limit of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: int """ @@ -205,22 +203,20 @@ def revision_history_limit(self, revision_history_limit): @property def rollback_to(self): - """ - Gets the rollback_to of this ExtensionsV1beta1DeploymentSpec. - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + """Gets the rollback_to of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 + - :return: The rollback_to of this ExtensionsV1beta1DeploymentSpec. + :return: The rollback_to of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: ExtensionsV1beta1RollbackConfig """ return self._rollback_to @rollback_to.setter def rollback_to(self, rollback_to): - """ - Sets the rollback_to of this ExtensionsV1beta1DeploymentSpec. - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + """Sets the rollback_to of this ExtensionsV1beta1DeploymentSpec. + - :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentSpec. + :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: ExtensionsV1beta1RollbackConfig """ @@ -228,22 +224,20 @@ def rollback_to(self, rollback_to): @property def selector(self): - """ - Gets the selector of this ExtensionsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + """Gets the selector of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 + - :return: The selector of this ExtensionsV1beta1DeploymentSpec. + :return: The selector of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this ExtensionsV1beta1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + """Sets the selector of this ExtensionsV1beta1DeploymentSpec. - :param selector: The selector of this ExtensionsV1beta1DeploymentSpec. + + :param selector: The selector of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ @@ -251,22 +245,20 @@ def selector(self, selector): @property def strategy(self): - """ - Gets the strategy of this ExtensionsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Gets the strategy of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 + - :return: The strategy of this ExtensionsV1beta1DeploymentSpec. + :return: The strategy of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: ExtensionsV1beta1DeploymentStrategy """ return self._strategy @strategy.setter def strategy(self, strategy): - """ - Sets the strategy of this ExtensionsV1beta1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Sets the strategy of this ExtensionsV1beta1DeploymentSpec. + - :param strategy: The strategy of this ExtensionsV1beta1DeploymentSpec. + :param strategy: The strategy of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: ExtensionsV1beta1DeploymentStrategy """ @@ -274,36 +266,32 @@ def strategy(self, strategy): @property def template(self): - """ - Gets the template of this ExtensionsV1beta1DeploymentSpec. - Template describes the pods that will be created. + """Gets the template of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 - :return: The template of this ExtensionsV1beta1DeploymentSpec. + + :return: The template of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this ExtensionsV1beta1DeploymentSpec. - Template describes the pods that will be created. + """Sets the template of this ExtensionsV1beta1DeploymentSpec. - :param template: The template of this ExtensionsV1beta1DeploymentSpec. + + :param template: The template of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,28 +312,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_status.py b/kubernetes/client/models/extensions_v1beta1_deployment_status.py index d8956b0f76..d8b4ba64ef 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_status.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'collision_count': 'int', 'conditions': 'list[ExtensionsV1beta1DeploymentCondition]', @@ -52,10 +52,8 @@ class ExtensionsV1beta1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - ExtensionsV1beta1DeploymentStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + """ExtensionsV1beta1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._collision_count = None @@ -68,40 +66,40 @@ def __init__(self, available_replicas=None, collision_count=None, conditions=Non self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas if replicas is not None: - self.replicas = replicas + self.replicas = replicas if unavailable_replicas is not None: - self.unavailable_replicas = unavailable_replicas + self.unavailable_replicas = unavailable_replicas if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def available_replicas(self): - """ - Gets the available_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Gets the available_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 - :return: The available_replicas of this ExtensionsV1beta1DeploymentStatus. + :return: The available_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Sets the available_replicas of this ExtensionsV1beta1DeploymentStatus. - :param available_replicas: The available_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 + + :param available_replicas: The available_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -109,22 +107,22 @@ def available_replicas(self, available_replicas): @property def collision_count(self): - """ - Gets the collision_count of this ExtensionsV1beta1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Gets the collision_count of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :return: The collision_count of this ExtensionsV1beta1DeploymentStatus. + :return: The collision_count of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this ExtensionsV1beta1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Sets the collision_count of this ExtensionsV1beta1DeploymentStatus. + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :param collision_count: The collision_count of this ExtensionsV1beta1DeploymentStatus. + :param collision_count: The collision_count of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -132,22 +130,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this ExtensionsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Gets the conditions of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 - :return: The conditions of this ExtensionsV1beta1DeploymentStatus. + Represents the latest available observations of a deployment's current state. # noqa: E501 + + :return: The conditions of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: list[ExtensionsV1beta1DeploymentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this ExtensionsV1beta1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Sets the conditions of this ExtensionsV1beta1DeploymentStatus. + + Represents the latest available observations of a deployment's current state. # noqa: E501 - :param conditions: The conditions of this ExtensionsV1beta1DeploymentStatus. + :param conditions: The conditions of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: list[ExtensionsV1beta1DeploymentCondition] """ @@ -155,22 +153,22 @@ def conditions(self, conditions): @property def observed_generation(self): - """ - Gets the observed_generation of this ExtensionsV1beta1DeploymentStatus. - The generation observed by the deployment controller. + """Gets the observed_generation of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + The generation observed by the deployment controller. # noqa: E501 - :return: The observed_generation of this ExtensionsV1beta1DeploymentStatus. + :return: The observed_generation of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this ExtensionsV1beta1DeploymentStatus. - The generation observed by the deployment controller. + """Sets the observed_generation of this ExtensionsV1beta1DeploymentStatus. - :param observed_generation: The observed_generation of this ExtensionsV1beta1DeploymentStatus. + The generation observed by the deployment controller. # noqa: E501 + + :param observed_generation: The observed_generation of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -178,22 +176,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Gets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + Total number of ready pods targeted by this deployment. # noqa: E501 - :return: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. + :return: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Sets the ready_replicas of this ExtensionsV1beta1DeploymentStatus. + + Total number of ready pods targeted by this deployment. # noqa: E501 - :param ready_replicas: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. + :param ready_replicas: The ready_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -201,22 +199,22 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Gets the replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 - :return: The replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 + + :return: The replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Sets the replicas of this ExtensionsV1beta1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 - :param replicas: The replicas of this ExtensionsV1beta1DeploymentStatus. + :param replicas: The replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -224,22 +222,22 @@ def replicas(self, replicas): @property def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Gets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 - :return: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + :return: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._unavailable_replicas @unavailable_replicas.setter def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Sets the unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. - :param unavailable_replicas: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 + + :param unavailable_replicas: The unavailable_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ @@ -247,34 +245,32 @@ def unavailable_replicas(self, unavailable_replicas): @property def updated_replicas(self): - """ - Gets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Gets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :return: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. + :return: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Sets the updated_replicas of this ExtensionsV1beta1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :param updated_replicas: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. + :param updated_replicas: The updated_replicas of this ExtensionsV1beta1DeploymentStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py index 42d2ce8ad5..065ece7561 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'ExtensionsV1beta1RollingUpdateDeployment', 'type': 'str' } @@ -40,38 +40,34 @@ class ExtensionsV1beta1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - ExtensionsV1beta1DeploymentStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """ExtensionsV1beta1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Gets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 + - :return: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. + :return: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 :rtype: ExtensionsV1beta1RollingUpdateDeployment """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Sets the rolling_update of this ExtensionsV1beta1DeploymentStrategy. - :param rolling_update: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. + + :param rolling_update: The rolling_update of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 :type: ExtensionsV1beta1RollingUpdateDeployment """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this ExtensionsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Gets the type of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :return: The type of this ExtensionsV1beta1DeploymentStrategy. + :return: The type of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this ExtensionsV1beta1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Sets the type of this ExtensionsV1beta1DeploymentStrategy. + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this ExtensionsV1beta1DeploymentStrategy. + :param type: The type of this ExtensionsV1beta1DeploymentStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1DeploymentStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py index 15e2875ebb..20bec102fe 100644 --- a/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1FSGroupStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[ExtensionsV1beta1IDRange]', 'rule': 'str' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1FSGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - ExtensionsV1beta1FSGroupStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """ExtensionsV1beta1FSGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges if rule is not None: - self.rule = rule + self.rule = rule @property def ranges(self): - """ - Gets the ranges of this ExtensionsV1beta1FSGroupStrategyOptions. - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this ExtensionsV1beta1FSGroupStrategyOptions. + :return: The ranges of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 :rtype: list[ExtensionsV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this ExtensionsV1beta1FSGroupStrategyOptions. - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this ExtensionsV1beta1FSGroupStrategyOptions. - :param ranges: The ranges of this ExtensionsV1beta1FSGroupStrategyOptions. + ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 :type: list[ExtensionsV1beta1IDRange] """ @@ -79,34 +77,32 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this ExtensionsV1beta1FSGroupStrategyOptions. - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + """Gets the rule of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate what FSGroup is used in the SecurityContext. # noqa: E501 - :return: The rule of this ExtensionsV1beta1FSGroupStrategyOptions. + :return: The rule of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this ExtensionsV1beta1FSGroupStrategyOptions. - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + """Sets the rule of this ExtensionsV1beta1FSGroupStrategyOptions. + + rule is the strategy that will dictate what FSGroup is used in the SecurityContext. # noqa: E501 - :param rule: The rule of this ExtensionsV1beta1FSGroupStrategyOptions. + :param rule: The rule of this ExtensionsV1beta1FSGroupStrategyOptions. # noqa: E501 :type: str """ self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1FSGroupStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_host_port_range.py b/kubernetes/client/models/extensions_v1beta1_host_port_range.py index 96906c99e1..bd493cf3db 100644 --- a/kubernetes/client/models/extensions_v1beta1_host_port_range.py +++ b/kubernetes/client/models/extensions_v1beta1_host_port_range.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1HostPortRange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max': 'int', 'min': 'int' } @@ -40,10 +40,8 @@ class ExtensionsV1beta1HostPortRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): - """ - ExtensionsV1beta1HostPortRange - a model defined in Swagger - """ + def __init__(self, max=None, min=None): # noqa: E501 + """ExtensionsV1beta1HostPortRange - a model defined in OpenAPI""" # noqa: E501 self._max = None self._min = None @@ -54,61 +52,59 @@ def __init__(self, max=None, min=None): @property def max(self): - """ - Gets the max of this ExtensionsV1beta1HostPortRange. - max is the end of the range, inclusive. + """Gets the max of this ExtensionsV1beta1HostPortRange. # noqa: E501 + + max is the end of the range, inclusive. # noqa: E501 - :return: The max of this ExtensionsV1beta1HostPortRange. + :return: The max of this ExtensionsV1beta1HostPortRange. # noqa: E501 :rtype: int """ return self._max @max.setter def max(self, max): - """ - Sets the max of this ExtensionsV1beta1HostPortRange. - max is the end of the range, inclusive. + """Sets the max of this ExtensionsV1beta1HostPortRange. - :param max: The max of this ExtensionsV1beta1HostPortRange. + max is the end of the range, inclusive. # noqa: E501 + + :param max: The max of this ExtensionsV1beta1HostPortRange. # noqa: E501 :type: int """ if max is None: - raise ValueError("Invalid value for `max`, must not be `None`") + raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @property def min(self): - """ - Gets the min of this ExtensionsV1beta1HostPortRange. - min is the start of the range, inclusive. + """Gets the min of this ExtensionsV1beta1HostPortRange. # noqa: E501 + + min is the start of the range, inclusive. # noqa: E501 - :return: The min of this ExtensionsV1beta1HostPortRange. + :return: The min of this ExtensionsV1beta1HostPortRange. # noqa: E501 :rtype: int """ return self._min @min.setter def min(self, min): - """ - Sets the min of this ExtensionsV1beta1HostPortRange. - min is the start of the range, inclusive. + """Sets the min of this ExtensionsV1beta1HostPortRange. + + min is the start of the range, inclusive. # noqa: E501 - :param min: The min of this ExtensionsV1beta1HostPortRange. + :param min: The min of this ExtensionsV1beta1HostPortRange. # noqa: E501 :type: int """ if min is None: - raise ValueError("Invalid value for `min`, must not be `None`") + raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1HostPortRange): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py b/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py index 49fcb3cead..8a0d5e8d85 100644 --- a/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1HTTPIngressPath(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'backend': 'ExtensionsV1beta1IngressBackend', 'path': 'str' } @@ -40,10 +40,8 @@ class ExtensionsV1beta1HTTPIngressPath(object): 'path': 'path' } - def __init__(self, backend=None, path=None): - """ - ExtensionsV1beta1HTTPIngressPath - a model defined in Swagger - """ + def __init__(self, backend=None, path=None): # noqa: E501 + """ExtensionsV1beta1HTTPIngressPath - a model defined in OpenAPI""" # noqa: E501 self._backend = None self._path = None @@ -51,63 +49,59 @@ def __init__(self, backend=None, path=None): self.backend = backend if path is not None: - self.path = path + self.path = path @property def backend(self): - """ - Gets the backend of this ExtensionsV1beta1HTTPIngressPath. - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + """Gets the backend of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 + - :return: The backend of this ExtensionsV1beta1HTTPIngressPath. + :return: The backend of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 :rtype: ExtensionsV1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): - """ - Sets the backend of this ExtensionsV1beta1HTTPIngressPath. - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + """Sets the backend of this ExtensionsV1beta1HTTPIngressPath. - :param backend: The backend of this ExtensionsV1beta1HTTPIngressPath. + + :param backend: The backend of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 :type: ExtensionsV1beta1IngressBackend """ if backend is None: - raise ValueError("Invalid value for `backend`, must not be `None`") + raise ValueError("Invalid value for `backend`, must not be `None`") # noqa: E501 self._backend = backend @property def path(self): - """ - Gets the path of this ExtensionsV1beta1HTTPIngressPath. - Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. + """Gets the path of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 + + Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. # noqa: E501 - :return: The path of this ExtensionsV1beta1HTTPIngressPath. + :return: The path of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this ExtensionsV1beta1HTTPIngressPath. - Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. + """Sets the path of this ExtensionsV1beta1HTTPIngressPath. + + Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. # noqa: E501 - :param path: The path of this ExtensionsV1beta1HTTPIngressPath. + :param path: The path of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 :type: str """ self._path = path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1HTTPIngressPath): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py index ef1e50a75f..e168955aaf 100644 --- a/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1HTTPIngressRuleValue(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'paths': 'list[ExtensionsV1beta1HTTPIngressPath]' } @@ -38,10 +38,8 @@ class ExtensionsV1beta1HTTPIngressRuleValue(object): 'paths': 'paths' } - def __init__(self, paths=None): - """ - ExtensionsV1beta1HTTPIngressRuleValue - a model defined in Swagger - """ + def __init__(self, paths=None): # noqa: E501 + """ExtensionsV1beta1HTTPIngressRuleValue - a model defined in OpenAPI""" # noqa: E501 self._paths = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, paths=None): @property def paths(self): - """ - Gets the paths of this ExtensionsV1beta1HTTPIngressRuleValue. - A collection of paths that map requests to backends. + """Gets the paths of this ExtensionsV1beta1HTTPIngressRuleValue. # noqa: E501 + + A collection of paths that map requests to backends. # noqa: E501 - :return: The paths of this ExtensionsV1beta1HTTPIngressRuleValue. + :return: The paths of this ExtensionsV1beta1HTTPIngressRuleValue. # noqa: E501 :rtype: list[ExtensionsV1beta1HTTPIngressPath] """ return self._paths @paths.setter def paths(self, paths): - """ - Sets the paths of this ExtensionsV1beta1HTTPIngressRuleValue. - A collection of paths that map requests to backends. + """Sets the paths of this ExtensionsV1beta1HTTPIngressRuleValue. + + A collection of paths that map requests to backends. # noqa: E501 - :param paths: The paths of this ExtensionsV1beta1HTTPIngressRuleValue. + :param paths: The paths of this ExtensionsV1beta1HTTPIngressRuleValue. # noqa: E501 :type: list[ExtensionsV1beta1HTTPIngressPath] """ if paths is None: - raise ValueError("Invalid value for `paths`, must not be `None`") + raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1HTTPIngressRuleValue): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_id_range.py b/kubernetes/client/models/extensions_v1beta1_id_range.py index 9a0b954419..eeea27c279 100644 --- a/kubernetes/client/models/extensions_v1beta1_id_range.py +++ b/kubernetes/client/models/extensions_v1beta1_id_range.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IDRange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max': 'int', 'min': 'int' } @@ -40,10 +40,8 @@ class ExtensionsV1beta1IDRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): - """ - ExtensionsV1beta1IDRange - a model defined in Swagger - """ + def __init__(self, max=None, min=None): # noqa: E501 + """ExtensionsV1beta1IDRange - a model defined in OpenAPI""" # noqa: E501 self._max = None self._min = None @@ -54,61 +52,59 @@ def __init__(self, max=None, min=None): @property def max(self): - """ - Gets the max of this ExtensionsV1beta1IDRange. - max is the end of the range, inclusive. + """Gets the max of this ExtensionsV1beta1IDRange. # noqa: E501 + + max is the end of the range, inclusive. # noqa: E501 - :return: The max of this ExtensionsV1beta1IDRange. + :return: The max of this ExtensionsV1beta1IDRange. # noqa: E501 :rtype: int """ return self._max @max.setter def max(self, max): - """ - Sets the max of this ExtensionsV1beta1IDRange. - max is the end of the range, inclusive. + """Sets the max of this ExtensionsV1beta1IDRange. - :param max: The max of this ExtensionsV1beta1IDRange. + max is the end of the range, inclusive. # noqa: E501 + + :param max: The max of this ExtensionsV1beta1IDRange. # noqa: E501 :type: int """ if max is None: - raise ValueError("Invalid value for `max`, must not be `None`") + raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @property def min(self): - """ - Gets the min of this ExtensionsV1beta1IDRange. - min is the start of the range, inclusive. + """Gets the min of this ExtensionsV1beta1IDRange. # noqa: E501 + + min is the start of the range, inclusive. # noqa: E501 - :return: The min of this ExtensionsV1beta1IDRange. + :return: The min of this ExtensionsV1beta1IDRange. # noqa: E501 :rtype: int """ return self._min @min.setter def min(self, min): - """ - Sets the min of this ExtensionsV1beta1IDRange. - min is the start of the range, inclusive. + """Sets the min of this ExtensionsV1beta1IDRange. + + min is the start of the range, inclusive. # noqa: E501 - :param min: The min of this ExtensionsV1beta1IDRange. + :param min: The min of this ExtensionsV1beta1IDRange. # noqa: E501 :type: int """ if min is None: - raise ValueError("Invalid value for `min`, must not be `None`") + raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IDRange): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress.py b/kubernetes/client/models/extensions_v1beta1_ingress.py index c0b5925c06..202c22d4f3 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1Ingress(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class ExtensionsV1beta1Ingress(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - ExtensionsV1beta1Ingress - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """ExtensionsV1beta1Ingress - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1Ingress. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1Ingress. # noqa: E501 - :return: The api_version of this ExtensionsV1beta1Ingress. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this ExtensionsV1beta1Ingress. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1Ingress. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1Ingress. - :param api_version: The api_version of this ExtensionsV1beta1Ingress. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this ExtensionsV1beta1Ingress. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1Ingress. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1Ingress. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1Ingress. + :return: The kind of this ExtensionsV1beta1Ingress. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1Ingress. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1Ingress. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1Ingress. + :param kind: The kind of this ExtensionsV1beta1Ingress. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1Ingress. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this ExtensionsV1beta1Ingress. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1Ingress. + :return: The metadata of this ExtensionsV1beta1Ingress. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1Ingress. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this ExtensionsV1beta1Ingress. + - :param metadata: The metadata of this ExtensionsV1beta1Ingress. + :param metadata: The metadata of this ExtensionsV1beta1Ingress. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this ExtensionsV1beta1Ingress. - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the spec of this ExtensionsV1beta1Ingress. # noqa: E501 + - :return: The spec of this ExtensionsV1beta1Ingress. + :return: The spec of this ExtensionsV1beta1Ingress. # noqa: E501 :rtype: ExtensionsV1beta1IngressSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1Ingress. - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the spec of this ExtensionsV1beta1Ingress. - :param spec: The spec of this ExtensionsV1beta1Ingress. + + :param spec: The spec of this ExtensionsV1beta1Ingress. # noqa: E501 :type: ExtensionsV1beta1IngressSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this ExtensionsV1beta1Ingress. - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the status of this ExtensionsV1beta1Ingress. # noqa: E501 - :return: The status of this ExtensionsV1beta1Ingress. + + :return: The status of this ExtensionsV1beta1Ingress. # noqa: E501 :rtype: ExtensionsV1beta1IngressStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this ExtensionsV1beta1Ingress. - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the status of this ExtensionsV1beta1Ingress. - :param status: The status of this ExtensionsV1beta1Ingress. + + :param status: The status of this ExtensionsV1beta1Ingress. # noqa: E501 :type: ExtensionsV1beta1IngressStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1Ingress): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_backend.py b/kubernetes/client/models/extensions_v1beta1_ingress_backend.py index 41a0fd0879..4dea4954ab 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_backend.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_backend.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressBackend(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'service_name': 'str', 'service_port': 'object' } @@ -40,10 +40,8 @@ class ExtensionsV1beta1IngressBackend(object): 'service_port': 'servicePort' } - def __init__(self, service_name=None, service_port=None): - """ - ExtensionsV1beta1IngressBackend - a model defined in Swagger - """ + def __init__(self, service_name=None, service_port=None): # noqa: E501 + """ExtensionsV1beta1IngressBackend - a model defined in OpenAPI""" # noqa: E501 self._service_name = None self._service_port = None @@ -54,61 +52,59 @@ def __init__(self, service_name=None, service_port=None): @property def service_name(self): - """ - Gets the service_name of this ExtensionsV1beta1IngressBackend. - Specifies the name of the referenced service. + """Gets the service_name of this ExtensionsV1beta1IngressBackend. # noqa: E501 + + Specifies the name of the referenced service. # noqa: E501 - :return: The service_name of this ExtensionsV1beta1IngressBackend. + :return: The service_name of this ExtensionsV1beta1IngressBackend. # noqa: E501 :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): - """ - Sets the service_name of this ExtensionsV1beta1IngressBackend. - Specifies the name of the referenced service. + """Sets the service_name of this ExtensionsV1beta1IngressBackend. - :param service_name: The service_name of this ExtensionsV1beta1IngressBackend. + Specifies the name of the referenced service. # noqa: E501 + + :param service_name: The service_name of this ExtensionsV1beta1IngressBackend. # noqa: E501 :type: str """ if service_name is None: - raise ValueError("Invalid value for `service_name`, must not be `None`") + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @property def service_port(self): - """ - Gets the service_port of this ExtensionsV1beta1IngressBackend. - Specifies the port of the referenced service. + """Gets the service_port of this ExtensionsV1beta1IngressBackend. # noqa: E501 + + Specifies the port of the referenced service. # noqa: E501 - :return: The service_port of this ExtensionsV1beta1IngressBackend. + :return: The service_port of this ExtensionsV1beta1IngressBackend. # noqa: E501 :rtype: object """ return self._service_port @service_port.setter def service_port(self, service_port): - """ - Sets the service_port of this ExtensionsV1beta1IngressBackend. - Specifies the port of the referenced service. + """Sets the service_port of this ExtensionsV1beta1IngressBackend. + + Specifies the port of the referenced service. # noqa: E501 - :param service_port: The service_port of this ExtensionsV1beta1IngressBackend. + :param service_port: The service_port of this ExtensionsV1beta1IngressBackend. # noqa: E501 :type: object """ if service_port is None: - raise ValueError("Invalid value for `service_port`, must not be `None`") + raise ValueError("Invalid value for `service_port`, must not be `None`") # noqa: E501 self._service_port = service_port def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressBackend): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_list.py b/kubernetes/client/models/extensions_v1beta1_ingress_list.py index e804ca549d..b0b4778f33 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_list.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[ExtensionsV1beta1Ingress]', 'kind': 'str', @@ -44,10 +44,8 @@ class ExtensionsV1beta1IngressList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - ExtensionsV1beta1IngressList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """ExtensionsV1beta1IngressList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1IngressList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1IngressList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this ExtensionsV1beta1IngressList. + :return: The api_version of this ExtensionsV1beta1IngressList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1IngressList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1IngressList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this ExtensionsV1beta1IngressList. + :param api_version: The api_version of this ExtensionsV1beta1IngressList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this ExtensionsV1beta1IngressList. - Items is the list of Ingress. + """Gets the items of this ExtensionsV1beta1IngressList. # noqa: E501 + + Items is the list of Ingress. # noqa: E501 - :return: The items of this ExtensionsV1beta1IngressList. + :return: The items of this ExtensionsV1beta1IngressList. # noqa: E501 :rtype: list[ExtensionsV1beta1Ingress] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this ExtensionsV1beta1IngressList. - Items is the list of Ingress. + """Sets the items of this ExtensionsV1beta1IngressList. + + Items is the list of Ingress. # noqa: E501 - :param items: The items of this ExtensionsV1beta1IngressList. + :param items: The items of this ExtensionsV1beta1IngressList. # noqa: E501 :type: list[ExtensionsV1beta1Ingress] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1IngressList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1IngressList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1IngressList. + :return: The kind of this ExtensionsV1beta1IngressList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1IngressList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1IngressList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1IngressList. + :param kind: The kind of this ExtensionsV1beta1IngressList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1IngressList. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this ExtensionsV1beta1IngressList. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1IngressList. + :return: The metadata of this ExtensionsV1beta1IngressList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1IngressList. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this ExtensionsV1beta1IngressList. + - :param metadata: The metadata of this ExtensionsV1beta1IngressList. + :param metadata: The metadata of this ExtensionsV1beta1IngressList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_rule.py b/kubernetes/client/models/extensions_v1beta1_ingress_rule.py index 67a5f18cd6..853e06078a 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_rule.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'host': 'str', 'http': 'ExtensionsV1beta1HTTPIngressRuleValue' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1IngressRule(object): 'http': 'http' } - def __init__(self, host=None, http=None): - """ - ExtensionsV1beta1IngressRule - a model defined in Swagger - """ + def __init__(self, host=None, http=None): # noqa: E501 + """ExtensionsV1beta1IngressRule - a model defined in OpenAPI""" # noqa: E501 self._host = None self._http = None self.discriminator = None if host is not None: - self.host = host + self.host = host if http is not None: - self.http = http + self.http = http @property def host(self): - """ - Gets the host of this ExtensionsV1beta1IngressRule. - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + """Gets the host of this ExtensionsV1beta1IngressRule. # noqa: E501 + + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. # noqa: E501 - :return: The host of this ExtensionsV1beta1IngressRule. + :return: The host of this ExtensionsV1beta1IngressRule. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """ - Sets the host of this ExtensionsV1beta1IngressRule. - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + """Sets the host of this ExtensionsV1beta1IngressRule. - :param host: The host of this ExtensionsV1beta1IngressRule. + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. # noqa: E501 + + :param host: The host of this ExtensionsV1beta1IngressRule. # noqa: E501 :type: str """ @@ -79,32 +77,30 @@ def host(self, host): @property def http(self): - """ - Gets the http of this ExtensionsV1beta1IngressRule. + """Gets the http of this ExtensionsV1beta1IngressRule. # noqa: E501 + - :return: The http of this ExtensionsV1beta1IngressRule. + :return: The http of this ExtensionsV1beta1IngressRule. # noqa: E501 :rtype: ExtensionsV1beta1HTTPIngressRuleValue """ return self._http @http.setter def http(self, http): - """ - Sets the http of this ExtensionsV1beta1IngressRule. + """Sets the http of this ExtensionsV1beta1IngressRule. + - :param http: The http of this ExtensionsV1beta1IngressRule. + :param http: The http of this ExtensionsV1beta1IngressRule. # noqa: E501 :type: ExtensionsV1beta1HTTPIngressRuleValue """ self._http = http def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -125,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_spec.py b/kubernetes/client/models/extensions_v1beta1_ingress_spec.py index d4310173d3..62a62027cb 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'backend': 'ExtensionsV1beta1IngressBackend', 'rules': 'list[ExtensionsV1beta1IngressRule]', 'tls': 'list[ExtensionsV1beta1IngressTLS]' @@ -42,10 +42,8 @@ class ExtensionsV1beta1IngressSpec(object): 'tls': 'tls' } - def __init__(self, backend=None, rules=None, tls=None): - """ - ExtensionsV1beta1IngressSpec - a model defined in Swagger - """ + def __init__(self, backend=None, rules=None, tls=None): # noqa: E501 + """ExtensionsV1beta1IngressSpec - a model defined in OpenAPI""" # noqa: E501 self._backend = None self._rules = None @@ -53,30 +51,28 @@ def __init__(self, backend=None, rules=None, tls=None): self.discriminator = None if backend is not None: - self.backend = backend + self.backend = backend if rules is not None: - self.rules = rules + self.rules = rules if tls is not None: - self.tls = tls + self.tls = tls @property def backend(self): - """ - Gets the backend of this ExtensionsV1beta1IngressSpec. - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + """Gets the backend of this ExtensionsV1beta1IngressSpec. # noqa: E501 - :return: The backend of this ExtensionsV1beta1IngressSpec. + + :return: The backend of this ExtensionsV1beta1IngressSpec. # noqa: E501 :rtype: ExtensionsV1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): - """ - Sets the backend of this ExtensionsV1beta1IngressSpec. - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + """Sets the backend of this ExtensionsV1beta1IngressSpec. - :param backend: The backend of this ExtensionsV1beta1IngressSpec. + + :param backend: The backend of this ExtensionsV1beta1IngressSpec. # noqa: E501 :type: ExtensionsV1beta1IngressBackend """ @@ -84,22 +80,22 @@ def backend(self, backend): @property def rules(self): - """ - Gets the rules of this ExtensionsV1beta1IngressSpec. - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + """Gets the rules of this ExtensionsV1beta1IngressSpec. # noqa: E501 - :return: The rules of this ExtensionsV1beta1IngressSpec. + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. # noqa: E501 + + :return: The rules of this ExtensionsV1beta1IngressSpec. # noqa: E501 :rtype: list[ExtensionsV1beta1IngressRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this ExtensionsV1beta1IngressSpec. - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + """Sets the rules of this ExtensionsV1beta1IngressSpec. + + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. # noqa: E501 - :param rules: The rules of this ExtensionsV1beta1IngressSpec. + :param rules: The rules of this ExtensionsV1beta1IngressSpec. # noqa: E501 :type: list[ExtensionsV1beta1IngressRule] """ @@ -107,34 +103,32 @@ def rules(self, rules): @property def tls(self): - """ - Gets the tls of this ExtensionsV1beta1IngressSpec. - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + """Gets the tls of this ExtensionsV1beta1IngressSpec. # noqa: E501 + + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. # noqa: E501 - :return: The tls of this ExtensionsV1beta1IngressSpec. + :return: The tls of this ExtensionsV1beta1IngressSpec. # noqa: E501 :rtype: list[ExtensionsV1beta1IngressTLS] """ return self._tls @tls.setter def tls(self, tls): - """ - Sets the tls of this ExtensionsV1beta1IngressSpec. - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + """Sets the tls of this ExtensionsV1beta1IngressSpec. + + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. # noqa: E501 - :param tls: The tls of this ExtensionsV1beta1IngressSpec. + :param tls: The tls of this ExtensionsV1beta1IngressSpec. # noqa: E501 :type: list[ExtensionsV1beta1IngressTLS] """ self._tls = tls def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +149,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_status.py b/kubernetes/client/models/extensions_v1beta1_ingress_status.py index 7787a6b9a1..07b6d37dee 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_status.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'load_balancer': 'V1LoadBalancerStatus' } @@ -38,47 +38,41 @@ class ExtensionsV1beta1IngressStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): - """ - ExtensionsV1beta1IngressStatus - a model defined in Swagger - """ + def __init__(self, load_balancer=None): # noqa: E501 + """ExtensionsV1beta1IngressStatus - a model defined in OpenAPI""" # noqa: E501 self._load_balancer = None self.discriminator = None if load_balancer is not None: - self.load_balancer = load_balancer + self.load_balancer = load_balancer @property def load_balancer(self): - """ - Gets the load_balancer of this ExtensionsV1beta1IngressStatus. - LoadBalancer contains the current status of the load-balancer. + """Gets the load_balancer of this ExtensionsV1beta1IngressStatus. # noqa: E501 + - :return: The load_balancer of this ExtensionsV1beta1IngressStatus. + :return: The load_balancer of this ExtensionsV1beta1IngressStatus. # noqa: E501 :rtype: V1LoadBalancerStatus """ return self._load_balancer @load_balancer.setter def load_balancer(self, load_balancer): - """ - Sets the load_balancer of this ExtensionsV1beta1IngressStatus. - LoadBalancer contains the current status of the load-balancer. + """Sets the load_balancer of this ExtensionsV1beta1IngressStatus. + - :param load_balancer: The load_balancer of this ExtensionsV1beta1IngressStatus. + :param load_balancer: The load_balancer of this ExtensionsV1beta1IngressStatus. # noqa: E501 :type: V1LoadBalancerStatus """ self._load_balancer = load_balancer def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_tls.py b/kubernetes/client/models/extensions_v1beta1_ingress_tls.py index f657abd93c..b03928ef4a 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_tls.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_tls.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1IngressTLS(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hosts': 'list[str]', 'secret_name': 'str' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1IngressTLS(object): 'secret_name': 'secretName' } - def __init__(self, hosts=None, secret_name=None): - """ - ExtensionsV1beta1IngressTLS - a model defined in Swagger - """ + def __init__(self, hosts=None, secret_name=None): # noqa: E501 + """ExtensionsV1beta1IngressTLS - a model defined in OpenAPI""" # noqa: E501 self._hosts = None self._secret_name = None self.discriminator = None if hosts is not None: - self.hosts = hosts + self.hosts = hosts if secret_name is not None: - self.secret_name = secret_name + self.secret_name = secret_name @property def hosts(self): - """ - Gets the hosts of this ExtensionsV1beta1IngressTLS. - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + """Gets the hosts of this ExtensionsV1beta1IngressTLS. # noqa: E501 + + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. # noqa: E501 - :return: The hosts of this ExtensionsV1beta1IngressTLS. + :return: The hosts of this ExtensionsV1beta1IngressTLS. # noqa: E501 :rtype: list[str] """ return self._hosts @hosts.setter def hosts(self, hosts): - """ - Sets the hosts of this ExtensionsV1beta1IngressTLS. - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + """Sets the hosts of this ExtensionsV1beta1IngressTLS. - :param hosts: The hosts of this ExtensionsV1beta1IngressTLS. + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. # noqa: E501 + + :param hosts: The hosts of this ExtensionsV1beta1IngressTLS. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def hosts(self, hosts): @property def secret_name(self): - """ - Gets the secret_name of this ExtensionsV1beta1IngressTLS. - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """Gets the secret_name of this ExtensionsV1beta1IngressTLS. # noqa: E501 + + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. # noqa: E501 - :return: The secret_name of this ExtensionsV1beta1IngressTLS. + :return: The secret_name of this ExtensionsV1beta1IngressTLS. # noqa: E501 :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): - """ - Sets the secret_name of this ExtensionsV1beta1IngressTLS. - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """Sets the secret_name of this ExtensionsV1beta1IngressTLS. + + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. # noqa: E501 - :param secret_name: The secret_name of this ExtensionsV1beta1IngressTLS. + :param secret_name: The secret_name of this ExtensionsV1beta1IngressTLS. # noqa: E501 :type: str """ self._secret_name = secret_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1IngressTLS): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py index 8745a86c69..bdfd9bc984 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1PodSecurityPolicy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class ExtensionsV1beta1PodSecurityPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - ExtensionsV1beta1PodSecurityPolicy - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """ExtensionsV1beta1PodSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1PodSecurityPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this ExtensionsV1beta1PodSecurityPolicy. + :return: The api_version of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1PodSecurityPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1PodSecurityPolicy. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this ExtensionsV1beta1PodSecurityPolicy. + :param api_version: The api_version of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1PodSecurityPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1PodSecurityPolicy. + :return: The kind of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1PodSecurityPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1PodSecurityPolicy. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1PodSecurityPolicy. + :param kind: The kind of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1PodSecurityPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1PodSecurityPolicy. + :return: The metadata of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1PodSecurityPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this ExtensionsV1beta1PodSecurityPolicy. + - :param metadata: The metadata of this ExtensionsV1beta1PodSecurityPolicy. + :param metadata: The metadata of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this ExtensionsV1beta1PodSecurityPolicy. - spec defines the policy enforced. + """Gets the spec of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 + - :return: The spec of this ExtensionsV1beta1PodSecurityPolicy. + :return: The spec of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :rtype: ExtensionsV1beta1PodSecurityPolicySpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1PodSecurityPolicy. - spec defines the policy enforced. + """Sets the spec of this ExtensionsV1beta1PodSecurityPolicy. + - :param spec: The spec of this ExtensionsV1beta1PodSecurityPolicy. + :param spec: The spec of this ExtensionsV1beta1PodSecurityPolicy. # noqa: E501 :type: ExtensionsV1beta1PodSecurityPolicySpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1PodSecurityPolicy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py index 5364d74ebf..268173dfb4 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1PodSecurityPolicyList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[ExtensionsV1beta1PodSecurityPolicy]', 'kind': 'str', @@ -44,10 +44,8 @@ class ExtensionsV1beta1PodSecurityPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - ExtensionsV1beta1PodSecurityPolicyList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """ExtensionsV1beta1PodSecurityPolicyList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1PodSecurityPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this ExtensionsV1beta1PodSecurityPolicyList. + :return: The api_version of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1PodSecurityPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1PodSecurityPolicyList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this ExtensionsV1beta1PodSecurityPolicyList. + :param api_version: The api_version of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this ExtensionsV1beta1PodSecurityPolicyList. - items is a list of schema objects. + """Gets the items of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 + + items is a list of schema objects. # noqa: E501 - :return: The items of this ExtensionsV1beta1PodSecurityPolicyList. + :return: The items of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: list[ExtensionsV1beta1PodSecurityPolicy] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this ExtensionsV1beta1PodSecurityPolicyList. - items is a list of schema objects. + """Sets the items of this ExtensionsV1beta1PodSecurityPolicyList. + + items is a list of schema objects. # noqa: E501 - :param items: The items of this ExtensionsV1beta1PodSecurityPolicyList. + :param items: The items of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :type: list[ExtensionsV1beta1PodSecurityPolicy] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1PodSecurityPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1PodSecurityPolicyList. + :return: The kind of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1PodSecurityPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1PodSecurityPolicyList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1PodSecurityPolicyList. + :param kind: The kind of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1PodSecurityPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1PodSecurityPolicyList. + :return: The metadata of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1PodSecurityPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this ExtensionsV1beta1PodSecurityPolicyList. + - :param metadata: The metadata of this ExtensionsV1beta1PodSecurityPolicyList. + :param metadata: The metadata of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1PodSecurityPolicyList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py index 189c19b960..b8f3875a49 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1PodSecurityPolicySpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allow_privilege_escalation': 'bool', 'allowed_csi_drivers': 'list[ExtensionsV1beta1AllowedCSIDriver]', 'allowed_capabilities': 'list[str]', @@ -51,6 +51,7 @@ class ExtensionsV1beta1PodSecurityPolicySpec(object): 'required_drop_capabilities': 'list[str]', 'run_as_group': 'ExtensionsV1beta1RunAsGroupStrategyOptions', 'run_as_user': 'ExtensionsV1beta1RunAsUserStrategyOptions', + 'runtime_class': 'ExtensionsV1beta1RuntimeClassStrategyOptions', 'se_linux': 'ExtensionsV1beta1SELinuxStrategyOptions', 'supplemental_groups': 'ExtensionsV1beta1SupplementalGroupsStrategyOptions', 'volumes': 'list[str]' @@ -77,15 +78,14 @@ class ExtensionsV1beta1PodSecurityPolicySpec(object): 'required_drop_capabilities': 'requiredDropCapabilities', 'run_as_group': 'runAsGroup', 'run_as_user': 'runAsUser', + 'runtime_class': 'runtimeClass', 'se_linux': 'seLinux', 'supplemental_groups': 'supplementalGroups', 'volumes': 'volumes' } - def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, se_linux=None, supplemental_groups=None, volumes=None): - """ - ExtensionsV1beta1PodSecurityPolicySpec - a model defined in Swagger - """ + def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None): # noqa: E501 + """ExtensionsV1beta1PodSecurityPolicySpec - a model defined in OpenAPI""" # noqa: E501 self._allow_privilege_escalation = None self._allowed_csi_drivers = None @@ -107,72 +107,75 @@ def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, al self._required_drop_capabilities = None self._run_as_group = None self._run_as_user = None + self._runtime_class = None self._se_linux = None self._supplemental_groups = None self._volumes = None self.discriminator = None if allow_privilege_escalation is not None: - self.allow_privilege_escalation = allow_privilege_escalation + self.allow_privilege_escalation = allow_privilege_escalation if allowed_csi_drivers is not None: - self.allowed_csi_drivers = allowed_csi_drivers + self.allowed_csi_drivers = allowed_csi_drivers if allowed_capabilities is not None: - self.allowed_capabilities = allowed_capabilities + self.allowed_capabilities = allowed_capabilities if allowed_flex_volumes is not None: - self.allowed_flex_volumes = allowed_flex_volumes + self.allowed_flex_volumes = allowed_flex_volumes if allowed_host_paths is not None: - self.allowed_host_paths = allowed_host_paths + self.allowed_host_paths = allowed_host_paths if allowed_proc_mount_types is not None: - self.allowed_proc_mount_types = allowed_proc_mount_types + self.allowed_proc_mount_types = allowed_proc_mount_types if allowed_unsafe_sysctls is not None: - self.allowed_unsafe_sysctls = allowed_unsafe_sysctls + self.allowed_unsafe_sysctls = allowed_unsafe_sysctls if default_add_capabilities is not None: - self.default_add_capabilities = default_add_capabilities + self.default_add_capabilities = default_add_capabilities if default_allow_privilege_escalation is not None: - self.default_allow_privilege_escalation = default_allow_privilege_escalation + self.default_allow_privilege_escalation = default_allow_privilege_escalation if forbidden_sysctls is not None: - self.forbidden_sysctls = forbidden_sysctls + self.forbidden_sysctls = forbidden_sysctls self.fs_group = fs_group if host_ipc is not None: - self.host_ipc = host_ipc + self.host_ipc = host_ipc if host_network is not None: - self.host_network = host_network + self.host_network = host_network if host_pid is not None: - self.host_pid = host_pid + self.host_pid = host_pid if host_ports is not None: - self.host_ports = host_ports + self.host_ports = host_ports if privileged is not None: - self.privileged = privileged + self.privileged = privileged if read_only_root_filesystem is not None: - self.read_only_root_filesystem = read_only_root_filesystem + self.read_only_root_filesystem = read_only_root_filesystem if required_drop_capabilities is not None: - self.required_drop_capabilities = required_drop_capabilities + self.required_drop_capabilities = required_drop_capabilities if run_as_group is not None: - self.run_as_group = run_as_group + self.run_as_group = run_as_group self.run_as_user = run_as_user + if runtime_class is not None: + self.runtime_class = runtime_class self.se_linux = se_linux self.supplemental_groups = supplemental_groups if volumes is not None: - self.volumes = volumes + self.volumes = volumes @property def allow_privilege_escalation(self): - """ - Gets the allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + """Gets the allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. # noqa: E501 - :return: The allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._allow_privilege_escalation @allow_privilege_escalation.setter def allow_privilege_escalation(self, allow_privilege_escalation): - """ - Sets the allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + """Sets the allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + + allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. # noqa: E501 - :param allow_privilege_escalation: The allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + :param allow_privilege_escalation: The allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -180,22 +183,22 @@ def allow_privilege_escalation(self, allow_privilege_escalation): @property def allowed_csi_drivers(self): - """ - Gets the allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + """Gets the allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. # noqa: E501 - :return: The allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[ExtensionsV1beta1AllowedCSIDriver] """ return self._allowed_csi_drivers @allowed_csi_drivers.setter def allowed_csi_drivers(self, allowed_csi_drivers): - """ - Sets the allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + """Sets the allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. + + AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. # noqa: E501 - :param allowed_csi_drivers: The allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. + :param allowed_csi_drivers: The allowed_csi_drivers of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[ExtensionsV1beta1AllowedCSIDriver] """ @@ -203,22 +206,22 @@ def allowed_csi_drivers(self, allowed_csi_drivers): @property def allowed_capabilities(self): - """ - Gets the allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + """Gets the allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. # noqa: E501 + + :return: The allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_capabilities @allowed_capabilities.setter def allowed_capabilities(self, allowed_capabilities): - """ - Sets the allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + """Sets the allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - :param allowed_capabilities: The allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. # noqa: E501 + + :param allowed_capabilities: The allowed_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -226,22 +229,22 @@ def allowed_capabilities(self, allowed_capabilities): @property def allowed_flex_volumes(self): - """ - Gets the allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. + """Gets the allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. # noqa: E501 + + :return: The allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[ExtensionsV1beta1AllowedFlexVolume] """ return self._allowed_flex_volumes @allowed_flex_volumes.setter def allowed_flex_volumes(self, allowed_flex_volumes): - """ - Sets the allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. + """Sets the allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. - :param allowed_flex_volumes: The allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. # noqa: E501 + + :param allowed_flex_volumes: The allowed_flex_volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[ExtensionsV1beta1AllowedFlexVolume] """ @@ -249,22 +252,22 @@ def allowed_flex_volumes(self, allowed_flex_volumes): @property def allowed_host_paths(self): - """ - Gets the allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + """Gets the allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. # noqa: E501 + + :return: The allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[ExtensionsV1beta1AllowedHostPath] """ return self._allowed_host_paths @allowed_host_paths.setter def allowed_host_paths(self, allowed_host_paths): - """ - Sets the allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + """Sets the allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. - :param allowed_host_paths: The allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. + allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. # noqa: E501 + + :param allowed_host_paths: The allowed_host_paths of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[ExtensionsV1beta1AllowedHostPath] """ @@ -272,22 +275,22 @@ def allowed_host_paths(self, allowed_host_paths): @property def allowed_proc_mount_types(self): - """ - Gets the allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + """Gets the allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. + AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. # noqa: E501 + + :return: The allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_proc_mount_types @allowed_proc_mount_types.setter def allowed_proc_mount_types(self, allowed_proc_mount_types): - """ - Sets the allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + """Sets the allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. + + AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. # noqa: E501 - :param allowed_proc_mount_types: The allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. + :param allowed_proc_mount_types: The allowed_proc_mount_types of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -295,22 +298,22 @@ def allowed_proc_mount_types(self, allowed_proc_mount_types): @property def allowed_unsafe_sysctls(self): - """ - Gets the allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. + """Gets the allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :return: The allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_unsafe_sysctls @allowed_unsafe_sysctls.setter def allowed_unsafe_sysctls(self, allowed_unsafe_sysctls): - """ - Sets the allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. + """Sets the allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. + + allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :param allowed_unsafe_sysctls: The allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. + :param allowed_unsafe_sysctls: The allowed_unsafe_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -318,22 +321,22 @@ def allowed_unsafe_sysctls(self, allowed_unsafe_sysctls): @property def default_add_capabilities(self): - """ - Gets the default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + """Gets the default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. # noqa: E501 - :return: The default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._default_add_capabilities @default_add_capabilities.setter def default_add_capabilities(self, default_add_capabilities): - """ - Sets the default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + """Sets the default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + + defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. # noqa: E501 - :param default_add_capabilities: The default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + :param default_add_capabilities: The default_add_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -341,22 +344,22 @@ def default_add_capabilities(self, default_add_capabilities): @property def default_allow_privilege_escalation(self): - """ - Gets the default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + """Gets the default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. # noqa: E501 - :return: The default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._default_allow_privilege_escalation @default_allow_privilege_escalation.setter def default_allow_privilege_escalation(self, default_allow_privilege_escalation): - """ - Sets the default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + """Sets the default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + + defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. # noqa: E501 - :param default_allow_privilege_escalation: The default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. + :param default_allow_privilege_escalation: The default_allow_privilege_escalation of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -364,22 +367,22 @@ def default_allow_privilege_escalation(self, default_allow_privilege_escalation) @property def forbidden_sysctls(self): - """ - Gets the forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. + """Gets the forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :return: The forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._forbidden_sysctls @forbidden_sysctls.setter def forbidden_sysctls(self, forbidden_sysctls): - """ - Sets the forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. + """Sets the forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. - :param forbidden_sysctls: The forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. + forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. # noqa: E501 + + :param forbidden_sysctls: The forbidden_sysctls of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -387,47 +390,45 @@ def forbidden_sysctls(self, forbidden_sysctls): @property def fs_group(self): - """ - Gets the fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + """Gets the fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. + + :return: The fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: ExtensionsV1beta1FSGroupStrategyOptions """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): - """ - Sets the fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + """Sets the fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. - :param fs_group: The fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. + + :param fs_group: The fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1FSGroupStrategyOptions """ if fs_group is None: - raise ValueError("Invalid value for `fs_group`, must not be `None`") + raise ValueError("Invalid value for `fs_group`, must not be `None`") # noqa: E501 self._fs_group = fs_group @property def host_ipc(self): - """ - Gets the host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + """Gets the host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + hostIPC determines if the policy allows the use of HostIPC in the pod spec. # noqa: E501 - :return: The host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): - """ - Sets the host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + """Sets the host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. + + hostIPC determines if the policy allows the use of HostIPC in the pod spec. # noqa: E501 - :param host_ipc: The host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. + :param host_ipc: The host_ipc of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -435,22 +436,22 @@ def host_ipc(self, host_ipc): @property def host_network(self): - """ - Gets the host_network of this ExtensionsV1beta1PodSecurityPolicySpec. - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + """Gets the host_network of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. # noqa: E501 - :return: The host_network of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The host_network of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): - """ - Sets the host_network of this ExtensionsV1beta1PodSecurityPolicySpec. - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + """Sets the host_network of this ExtensionsV1beta1PodSecurityPolicySpec. + + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. # noqa: E501 - :param host_network: The host_network of this ExtensionsV1beta1PodSecurityPolicySpec. + :param host_network: The host_network of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -458,22 +459,22 @@ def host_network(self, host_network): @property def host_pid(self): - """ - Gets the host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. - hostPID determines if the policy allows the use of HostPID in the pod spec. + """Gets the host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. # noqa: E501 + + :return: The host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): - """ - Sets the host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. - hostPID determines if the policy allows the use of HostPID in the pod spec. + """Sets the host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. - :param host_pid: The host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. # noqa: E501 + + :param host_pid: The host_pid of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -481,22 +482,22 @@ def host_pid(self, host_pid): @property def host_ports(self): - """ - Gets the host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. - hostPorts determines which host port ranges are allowed to be exposed. + """Gets the host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. # noqa: E501 + + :return: The host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[ExtensionsV1beta1HostPortRange] """ return self._host_ports @host_ports.setter def host_ports(self, host_ports): - """ - Sets the host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. - hostPorts determines which host port ranges are allowed to be exposed. + """Sets the host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. - :param host_ports: The host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. # noqa: E501 + + :param host_ports: The host_ports of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[ExtensionsV1beta1HostPortRange] """ @@ -504,22 +505,22 @@ def host_ports(self, host_ports): @property def privileged(self): - """ - Gets the privileged of this ExtensionsV1beta1PodSecurityPolicySpec. - privileged determines if a pod can request to be run as privileged. + """Gets the privileged of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The privileged of this ExtensionsV1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. # noqa: E501 + + :return: The privileged of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): - """ - Sets the privileged of this ExtensionsV1beta1PodSecurityPolicySpec. - privileged determines if a pod can request to be run as privileged. + """Sets the privileged of this ExtensionsV1beta1PodSecurityPolicySpec. - :param privileged: The privileged of this ExtensionsV1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. # noqa: E501 + + :param privileged: The privileged of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -527,22 +528,22 @@ def privileged(self, privileged): @property def read_only_root_filesystem(self): - """ - Gets the read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + """Gets the read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. + readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. # noqa: E501 + + :return: The read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._read_only_root_filesystem @read_only_root_filesystem.setter def read_only_root_filesystem(self, read_only_root_filesystem): - """ - Sets the read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + """Sets the read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. + + readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. # noqa: E501 - :param read_only_root_filesystem: The read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. + :param read_only_root_filesystem: The read_only_root_filesystem of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -550,22 +551,22 @@ def read_only_root_filesystem(self, read_only_root_filesystem): @property def required_drop_capabilities(self): - """ - Gets the required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + """Gets the required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. # noqa: E501 - :return: The required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._required_drop_capabilities @required_drop_capabilities.setter def required_drop_capabilities(self, required_drop_capabilities): - """ - Sets the required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + """Sets the required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + + requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. # noqa: E501 - :param required_drop_capabilities: The required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. + :param required_drop_capabilities: The required_drop_capabilities of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -573,22 +574,20 @@ def required_drop_capabilities(self, required_drop_capabilities): @property def run_as_group(self): - """ - Gets the run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + """Gets the run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + - :return: The run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: ExtensionsV1beta1RunAsGroupStrategyOptions """ return self._run_as_group @run_as_group.setter def run_as_group(self, run_as_group): - """ - Sets the run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + """Sets the run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. + - :param run_as_group: The run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. + :param run_as_group: The run_as_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1RunAsGroupStrategyOptions """ @@ -596,109 +595,122 @@ def run_as_group(self, run_as_group): @property def run_as_user(self): - """ - Gets the run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + """Gets the run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + - :return: The run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: ExtensionsV1beta1RunAsUserStrategyOptions """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): - """ - Sets the run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + """Sets the run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. + - :param run_as_user: The run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. + :param run_as_user: The run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1RunAsUserStrategyOptions """ if run_as_user is None: - raise ValueError("Invalid value for `run_as_user`, must not be `None`") + raise ValueError("Invalid value for `run_as_user`, must not be `None`") # noqa: E501 self._run_as_user = run_as_user @property - def se_linux(self): + def runtime_class(self): + """Gets the runtime_class of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + + :return: The runtime_class of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + :rtype: ExtensionsV1beta1RuntimeClassStrategyOptions """ - Gets the se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. - seLinux is the strategy that will dictate the allowable labels that may be set. + return self._runtime_class - :return: The se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. + @runtime_class.setter + def runtime_class(self, runtime_class): + """Sets the runtime_class of this ExtensionsV1beta1PodSecurityPolicySpec. + + + :param runtime_class: The runtime_class of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + :type: ExtensionsV1beta1RuntimeClassStrategyOptions + """ + + self._runtime_class = runtime_class + + @property + def se_linux(self): + """Gets the se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + + :return: The se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: ExtensionsV1beta1SELinuxStrategyOptions """ return self._se_linux @se_linux.setter def se_linux(self, se_linux): - """ - Sets the se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. - seLinux is the strategy that will dictate the allowable labels that may be set. + """Sets the se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. - :param se_linux: The se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. + + :param se_linux: The se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1SELinuxStrategyOptions """ if se_linux is None: - raise ValueError("Invalid value for `se_linux`, must not be `None`") + raise ValueError("Invalid value for `se_linux`, must not be `None`") # noqa: E501 self._se_linux = se_linux @property def supplemental_groups(self): - """ - Gets the supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + """Gets the supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. + + :return: The supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: ExtensionsV1beta1SupplementalGroupsStrategyOptions """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): - """ - Sets the supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + """Sets the supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. + - :param supplemental_groups: The supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. + :param supplemental_groups: The supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1SupplementalGroupsStrategyOptions """ if supplemental_groups is None: - raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") + raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") # noqa: E501 self._supplemental_groups = supplemental_groups @property def volumes(self): - """ - Gets the volumes of this ExtensionsV1beta1PodSecurityPolicySpec. - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """Gets the volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 + + volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. # noqa: E501 - :return: The volumes of this ExtensionsV1beta1PodSecurityPolicySpec. + :return: The volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._volumes @volumes.setter def volumes(self, volumes): - """ - Sets the volumes of this ExtensionsV1beta1PodSecurityPolicySpec. - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """Sets the volumes of this ExtensionsV1beta1PodSecurityPolicySpec. + + volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. # noqa: E501 - :param volumes: The volumes of this ExtensionsV1beta1PodSecurityPolicySpec. + :param volumes: The volumes of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ self._volumes = volumes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -719,28 +731,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1PodSecurityPolicySpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_rollback_config.py b/kubernetes/client/models/extensions_v1beta1_rollback_config.py index 89dc393592..17a06ff0a2 100644 --- a/kubernetes/client/models/extensions_v1beta1_rollback_config.py +++ b/kubernetes/client/models/extensions_v1beta1_rollback_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1RollbackConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'revision': 'int' } @@ -38,47 +38,43 @@ class ExtensionsV1beta1RollbackConfig(object): 'revision': 'revision' } - def __init__(self, revision=None): - """ - ExtensionsV1beta1RollbackConfig - a model defined in Swagger - """ + def __init__(self, revision=None): # noqa: E501 + """ExtensionsV1beta1RollbackConfig - a model defined in OpenAPI""" # noqa: E501 self._revision = None self.discriminator = None if revision is not None: - self.revision = revision + self.revision = revision @property def revision(self): - """ - Gets the revision of this ExtensionsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollback to the last revision. + """Gets the revision of this ExtensionsV1beta1RollbackConfig. # noqa: E501 + + The revision to rollback to. If set to 0, rollback to the last revision. # noqa: E501 - :return: The revision of this ExtensionsV1beta1RollbackConfig. + :return: The revision of this ExtensionsV1beta1RollbackConfig. # noqa: E501 :rtype: int """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this ExtensionsV1beta1RollbackConfig. - The revision to rollback to. If set to 0, rollback to the last revision. + """Sets the revision of this ExtensionsV1beta1RollbackConfig. + + The revision to rollback to. If set to 0, rollback to the last revision. # noqa: E501 - :param revision: The revision of this ExtensionsV1beta1RollbackConfig. + :param revision: The revision of this ExtensionsV1beta1RollbackConfig. # noqa: E501 :type: int """ self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1RollbackConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py index 51b1f6759c..299e5aeaa0 100644 --- a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_surge': 'object', 'max_unavailable': 'object' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): - """ - ExtensionsV1beta1RollingUpdateDeployment - a model defined in Swagger - """ + def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + """ExtensionsV1beta1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 self._max_surge = None self._max_unavailable = None self.discriminator = None if max_surge is not None: - self.max_surge = max_surge + self.max_surge = max_surge if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_surge(self): - """ - Gets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Gets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 - :return: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. + :return: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_surge @max_surge.setter def max_surge(self, max_surge): - """ - Sets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Sets the max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - :param max_surge: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :param max_surge: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def max_surge(self, max_surge): @property def max_unavailable(self): - """ - Gets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Gets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :return: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. + :return: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Sets the max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :param max_unavailable: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. + :param max_unavailable: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1RollingUpdateDeployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py index 9d748bbb7e..966e5345bd 100644 --- a/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1RunAsGroupStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[ExtensionsV1beta1IDRange]', 'rule': 'str' } @@ -40,37 +40,35 @@ class ExtensionsV1beta1RunAsGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - ExtensionsV1beta1RunAsGroupStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """ExtensionsV1beta1RunAsGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges self.rule = rule @property def ranges(self): - """ - Gets the ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. + :return: The ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 :rtype: list[ExtensionsV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. - :param ranges: The ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. + ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: list[ExtensionsV1beta1IDRange] """ @@ -78,36 +76,34 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + """Gets the rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable RunAsGroup values that may be set. # noqa: E501 - :return: The rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. + :return: The rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + """Sets the rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. + + rule is the strategy that will dictate the allowable RunAsGroup values that may be set. # noqa: E501 - :param rule: The rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. + :param rule: The rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1RunAsGroupStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py index d54de1a51c..fa8eafe9e0 100644 --- a/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1RunAsUserStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[ExtensionsV1beta1IDRange]', 'rule': 'str' } @@ -40,37 +40,35 @@ class ExtensionsV1beta1RunAsUserStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - ExtensionsV1beta1RunAsUserStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """ExtensionsV1beta1RunAsUserStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges self.rule = rule @property def ranges(self): - """ - Gets the ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. + :return: The ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 :rtype: list[ExtensionsV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. - :param ranges: The ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. + ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: list[ExtensionsV1beta1IDRange] """ @@ -78,36 +76,34 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this ExtensionsV1beta1RunAsUserStrategyOptions. - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + """Gets the rule of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable RunAsUser values that may be set. # noqa: E501 - :return: The rule of this ExtensionsV1beta1RunAsUserStrategyOptions. + :return: The rule of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this ExtensionsV1beta1RunAsUserStrategyOptions. - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + """Sets the rule of this ExtensionsV1beta1RunAsUserStrategyOptions. + + rule is the strategy that will dictate the allowable RunAsUser values that may be set. # noqa: E501 - :param rule: The rule of this ExtensionsV1beta1RunAsUserStrategyOptions. + :param rule: The rule of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1RunAsUserStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py new file mode 100644 index 0000000000..072fee24fe --- /dev/null +++ b/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExtensionsV1beta1RuntimeClassStrategyOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'allowed_runtime_class_names': 'list[str]', + 'default_runtime_class_name': 'str' + } + + attribute_map = { + 'allowed_runtime_class_names': 'allowedRuntimeClassNames', + 'default_runtime_class_name': 'defaultRuntimeClassName' + } + + def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None): # noqa: E501 + """ExtensionsV1beta1RuntimeClassStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + + self._allowed_runtime_class_names = None + self._default_runtime_class_name = None + self.discriminator = None + + self.allowed_runtime_class_names = allowed_runtime_class_names + if default_runtime_class_name is not None: + self.default_runtime_class_name = default_runtime_class_name + + @property + def allowed_runtime_class_names(self): + """Gets the allowed_runtime_class_names of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + + allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. # noqa: E501 + + :return: The allowed_runtime_class_names of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :rtype: list[str] + """ + return self._allowed_runtime_class_names + + @allowed_runtime_class_names.setter + def allowed_runtime_class_names(self, allowed_runtime_class_names): + """Sets the allowed_runtime_class_names of this ExtensionsV1beta1RuntimeClassStrategyOptions. + + allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. # noqa: E501 + + :param allowed_runtime_class_names: The allowed_runtime_class_names of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :type: list[str] + """ + if allowed_runtime_class_names is None: + raise ValueError("Invalid value for `allowed_runtime_class_names`, must not be `None`") # noqa: E501 + + self._allowed_runtime_class_names = allowed_runtime_class_names + + @property + def default_runtime_class_name(self): + """Gets the default_runtime_class_name of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + + defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. # noqa: E501 + + :return: The default_runtime_class_name of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :rtype: str + """ + return self._default_runtime_class_name + + @default_runtime_class_name.setter + def default_runtime_class_name(self, default_runtime_class_name): + """Sets the default_runtime_class_name of this ExtensionsV1beta1RuntimeClassStrategyOptions. + + defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. # noqa: E501 + + :param default_runtime_class_name: The default_runtime_class_name of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :type: str + """ + + self._default_runtime_class_name = default_runtime_class_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExtensionsV1beta1RuntimeClassStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale.py b/kubernetes/client/models/extensions_v1beta1_scale.py index 3157270e79..1cefb09e81 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale.py +++ b/kubernetes/client/models/extensions_v1beta1_scale.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class ExtensionsV1beta1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - ExtensionsV1beta1Scale - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """ExtensionsV1beta1Scale - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this ExtensionsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this ExtensionsV1beta1Scale. # noqa: E501 - :return: The api_version of this ExtensionsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this ExtensionsV1beta1Scale. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this ExtensionsV1beta1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this ExtensionsV1beta1Scale. - :param api_version: The api_version of this ExtensionsV1beta1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this ExtensionsV1beta1Scale. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this ExtensionsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this ExtensionsV1beta1Scale. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this ExtensionsV1beta1Scale. + :return: The kind of this ExtensionsV1beta1Scale. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this ExtensionsV1beta1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this ExtensionsV1beta1Scale. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this ExtensionsV1beta1Scale. + :param kind: The kind of this ExtensionsV1beta1Scale. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this ExtensionsV1beta1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """Gets the metadata of this ExtensionsV1beta1Scale. # noqa: E501 + - :return: The metadata of this ExtensionsV1beta1Scale. + :return: The metadata of this ExtensionsV1beta1Scale. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this ExtensionsV1beta1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """Sets the metadata of this ExtensionsV1beta1Scale. + - :param metadata: The metadata of this ExtensionsV1beta1Scale. + :param metadata: The metadata of this ExtensionsV1beta1Scale. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this ExtensionsV1beta1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """Gets the spec of this ExtensionsV1beta1Scale. # noqa: E501 + - :return: The spec of this ExtensionsV1beta1Scale. + :return: The spec of this ExtensionsV1beta1Scale. # noqa: E501 :rtype: ExtensionsV1beta1ScaleSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this ExtensionsV1beta1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """Sets the spec of this ExtensionsV1beta1Scale. - :param spec: The spec of this ExtensionsV1beta1Scale. + + :param spec: The spec of this ExtensionsV1beta1Scale. # noqa: E501 :type: ExtensionsV1beta1ScaleSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this ExtensionsV1beta1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + """Gets the status of this ExtensionsV1beta1Scale. # noqa: E501 - :return: The status of this ExtensionsV1beta1Scale. + + :return: The status of this ExtensionsV1beta1Scale. # noqa: E501 :rtype: ExtensionsV1beta1ScaleStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this ExtensionsV1beta1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + """Sets the status of this ExtensionsV1beta1Scale. - :param status: The status of this ExtensionsV1beta1Scale. + + :param status: The status of this ExtensionsV1beta1Scale. # noqa: E501 :type: ExtensionsV1beta1ScaleStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1Scale): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale_spec.py b/kubernetes/client/models/extensions_v1beta1_scale_spec.py index d9eb1a0bf5..2c48cdc864 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_scale_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int' } @@ -38,47 +38,43 @@ class ExtensionsV1beta1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): - """ - ExtensionsV1beta1ScaleSpec - a model defined in Swagger - """ + def __init__(self, replicas=None): # noqa: E501 + """ExtensionsV1beta1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self.discriminator = None if replicas is not None: - self.replicas = replicas + self.replicas = replicas @property def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1ScaleSpec. - desired number of instances for the scaled object. + """Gets the replicas of this ExtensionsV1beta1ScaleSpec. # noqa: E501 + + desired number of instances for the scaled object. # noqa: E501 - :return: The replicas of this ExtensionsV1beta1ScaleSpec. + :return: The replicas of this ExtensionsV1beta1ScaleSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1ScaleSpec. - desired number of instances for the scaled object. + """Sets the replicas of this ExtensionsV1beta1ScaleSpec. + + desired number of instances for the scaled object. # noqa: E501 - :param replicas: The replicas of this ExtensionsV1beta1ScaleSpec. + :param replicas: The replicas of this ExtensionsV1beta1ScaleSpec. # noqa: E501 :type: int """ self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1ScaleSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_scale_status.py b/kubernetes/client/models/extensions_v1beta1_scale_status.py index 91fd78d979..670d9307d9 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale_status.py +++ b/kubernetes/client/models/extensions_v1beta1_scale_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int', 'selector': 'dict(str, str)', 'target_selector': 'str' @@ -42,10 +42,8 @@ class ExtensionsV1beta1ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): - """ - ExtensionsV1beta1ScaleStatus - a model defined in Swagger - """ + def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + """ExtensionsV1beta1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self._selector = None @@ -54,53 +52,53 @@ def __init__(self, replicas=None, selector=None, target_selector=None): self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector if target_selector is not None: - self.target_selector = target_selector + self.target_selector = target_selector @property def replicas(self): - """ - Gets the replicas of this ExtensionsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. + """Gets the replicas of this ExtensionsV1beta1ScaleStatus. # noqa: E501 - :return: The replicas of this ExtensionsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :return: The replicas of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this ExtensionsV1beta1ScaleStatus. - actual number of observed instances of the scaled object. + """Sets the replicas of this ExtensionsV1beta1ScaleStatus. - :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def selector(self): - """ - Gets the selector of this ExtensionsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Gets the selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 - :return: The selector of this ExtensionsV1beta1ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 + + :return: The selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :rtype: dict(str, str) """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this ExtensionsV1beta1ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Sets the selector of this ExtensionsV1beta1ScaleStatus. + + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 - :param selector: The selector of this ExtensionsV1beta1ScaleStatus. + :param selector: The selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :type: dict(str, str) """ @@ -108,34 +106,32 @@ def selector(self, selector): @property def target_selector(self): - """ - Gets the target_selector of this ExtensionsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the target_selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :return: The target_selector of this ExtensionsV1beta1ScaleStatus. + :return: The target_selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :rtype: str """ return self._target_selector @target_selector.setter def target_selector(self, target_selector): - """ - Sets the target_selector of this ExtensionsV1beta1ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the target_selector of this ExtensionsV1beta1ScaleStatus. + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :param target_selector: The target_selector of this ExtensionsV1beta1ScaleStatus. + :param target_selector: The target_selector of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :type: str """ self._target_selector = target_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1ScaleStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py index c821a34af0..c702ac1c67 100644 --- a/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1SELinuxStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rule': 'str', 'se_linux_options': 'V1SELinuxOptions' } @@ -40,10 +40,8 @@ class ExtensionsV1beta1SELinuxStrategyOptions(object): 'se_linux_options': 'seLinuxOptions' } - def __init__(self, rule=None, se_linux_options=None): - """ - ExtensionsV1beta1SELinuxStrategyOptions - a model defined in Swagger - """ + def __init__(self, rule=None, se_linux_options=None): # noqa: E501 + """ExtensionsV1beta1SELinuxStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._rule = None self._se_linux_options = None @@ -51,63 +49,59 @@ def __init__(self, rule=None, se_linux_options=None): self.rule = rule if se_linux_options is not None: - self.se_linux_options = se_linux_options + self.se_linux_options = se_linux_options @property def rule(self): - """ - Gets the rule of this ExtensionsV1beta1SELinuxStrategyOptions. - rule is the strategy that will dictate the allowable labels that may be set. + """Gets the rule of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable labels that may be set. # noqa: E501 - :return: The rule of this ExtensionsV1beta1SELinuxStrategyOptions. + :return: The rule of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this ExtensionsV1beta1SELinuxStrategyOptions. - rule is the strategy that will dictate the allowable labels that may be set. + """Sets the rule of this ExtensionsV1beta1SELinuxStrategyOptions. - :param rule: The rule of this ExtensionsV1beta1SELinuxStrategyOptions. + rule is the strategy that will dictate the allowable labels that may be set. # noqa: E501 + + :param rule: The rule of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @property def se_linux_options(self): - """ - Gets the se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Gets the se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 + - :return: The se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. + :return: The se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): - """ - Sets the se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Sets the se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. + - :param se_linux_options: The se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. + :param se_linux_options: The se_linux_options of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1SELinuxStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py index 69e14c7165..49185656cc 100644 --- a/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class ExtensionsV1beta1SupplementalGroupsStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[ExtensionsV1beta1IDRange]', 'rule': 'str' } @@ -40,38 +40,36 @@ class ExtensionsV1beta1SupplementalGroupsStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - ExtensionsV1beta1SupplementalGroupsStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """ExtensionsV1beta1SupplementalGroupsStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges if rule is not None: - self.rule = rule + self.rule = rule @property def ranges(self): - """ - Gets the ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. + :return: The ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :rtype: list[ExtensionsV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. - :param ranges: The ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. + ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :type: list[ExtensionsV1beta1IDRange] """ @@ -79,34 +77,32 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + """Gets the rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. # noqa: E501 - :return: The rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. + :return: The rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + """Sets the rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. + + rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. # noqa: E501 - :param rule: The rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. + :param rule: The rule of this ExtensionsV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :type: str """ self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ExtensionsV1beta1SupplementalGroupsStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_http_ingress_path.py b/kubernetes/client/models/networking_v1beta1_http_ingress_path.py index 38b07eff5a..5c83924b02 100644 --- a/kubernetes/client/models/networking_v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/networking_v1beta1_http_ingress_path.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1HTTPIngressPath(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'backend': 'NetworkingV1beta1IngressBackend', 'path': 'str' } @@ -40,10 +40,8 @@ class NetworkingV1beta1HTTPIngressPath(object): 'path': 'path' } - def __init__(self, backend=None, path=None): - """ - NetworkingV1beta1HTTPIngressPath - a model defined in Swagger - """ + def __init__(self, backend=None, path=None): # noqa: E501 + """NetworkingV1beta1HTTPIngressPath - a model defined in OpenAPI""" # noqa: E501 self._backend = None self._path = None @@ -51,63 +49,59 @@ def __init__(self, backend=None, path=None): self.backend = backend if path is not None: - self.path = path + self.path = path @property def backend(self): - """ - Gets the backend of this NetworkingV1beta1HTTPIngressPath. - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + """Gets the backend of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 + - :return: The backend of this NetworkingV1beta1HTTPIngressPath. + :return: The backend of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 :rtype: NetworkingV1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): - """ - Sets the backend of this NetworkingV1beta1HTTPIngressPath. - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + """Sets the backend of this NetworkingV1beta1HTTPIngressPath. - :param backend: The backend of this NetworkingV1beta1HTTPIngressPath. + + :param backend: The backend of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 :type: NetworkingV1beta1IngressBackend """ if backend is None: - raise ValueError("Invalid value for `backend`, must not be `None`") + raise ValueError("Invalid value for `backend`, must not be `None`") # noqa: E501 self._backend = backend @property def path(self): - """ - Gets the path of this NetworkingV1beta1HTTPIngressPath. - Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. + """Gets the path of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 + + Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. # noqa: E501 - :return: The path of this NetworkingV1beta1HTTPIngressPath. + :return: The path of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this NetworkingV1beta1HTTPIngressPath. - Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. + """Sets the path of this NetworkingV1beta1HTTPIngressPath. + + Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. # noqa: E501 - :param path: The path of this NetworkingV1beta1HTTPIngressPath. + :param path: The path of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 :type: str """ self._path = path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1HTTPIngressPath): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py index 9d8f1cdce8..d9fd94912b 100644 --- a/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1HTTPIngressRuleValue(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'paths': 'list[NetworkingV1beta1HTTPIngressPath]' } @@ -38,10 +38,8 @@ class NetworkingV1beta1HTTPIngressRuleValue(object): 'paths': 'paths' } - def __init__(self, paths=None): - """ - NetworkingV1beta1HTTPIngressRuleValue - a model defined in Swagger - """ + def __init__(self, paths=None): # noqa: E501 + """NetworkingV1beta1HTTPIngressRuleValue - a model defined in OpenAPI""" # noqa: E501 self._paths = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, paths=None): @property def paths(self): - """ - Gets the paths of this NetworkingV1beta1HTTPIngressRuleValue. - A collection of paths that map requests to backends. + """Gets the paths of this NetworkingV1beta1HTTPIngressRuleValue. # noqa: E501 + + A collection of paths that map requests to backends. # noqa: E501 - :return: The paths of this NetworkingV1beta1HTTPIngressRuleValue. + :return: The paths of this NetworkingV1beta1HTTPIngressRuleValue. # noqa: E501 :rtype: list[NetworkingV1beta1HTTPIngressPath] """ return self._paths @paths.setter def paths(self, paths): - """ - Sets the paths of this NetworkingV1beta1HTTPIngressRuleValue. - A collection of paths that map requests to backends. + """Sets the paths of this NetworkingV1beta1HTTPIngressRuleValue. + + A collection of paths that map requests to backends. # noqa: E501 - :param paths: The paths of this NetworkingV1beta1HTTPIngressRuleValue. + :param paths: The paths of this NetworkingV1beta1HTTPIngressRuleValue. # noqa: E501 :type: list[NetworkingV1beta1HTTPIngressPath] """ if paths is None: - raise ValueError("Invalid value for `paths`, must not be `None`") + raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1HTTPIngressRuleValue): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress.py b/kubernetes/client/models/networking_v1beta1_ingress.py index 3282fa8292..b70f894c9f 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress.py +++ b/kubernetes/client/models/networking_v1beta1_ingress.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1Ingress(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class NetworkingV1beta1Ingress(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - NetworkingV1beta1Ingress - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """NetworkingV1beta1Ingress - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this NetworkingV1beta1Ingress. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this NetworkingV1beta1Ingress. # noqa: E501 - :return: The api_version of this NetworkingV1beta1Ingress. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this NetworkingV1beta1Ingress. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this NetworkingV1beta1Ingress. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this NetworkingV1beta1Ingress. - :param api_version: The api_version of this NetworkingV1beta1Ingress. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this NetworkingV1beta1Ingress. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this NetworkingV1beta1Ingress. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this NetworkingV1beta1Ingress. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this NetworkingV1beta1Ingress. + :return: The kind of this NetworkingV1beta1Ingress. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this NetworkingV1beta1Ingress. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this NetworkingV1beta1Ingress. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this NetworkingV1beta1Ingress. + :param kind: The kind of this NetworkingV1beta1Ingress. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this NetworkingV1beta1Ingress. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this NetworkingV1beta1Ingress. # noqa: E501 + - :return: The metadata of this NetworkingV1beta1Ingress. + :return: The metadata of this NetworkingV1beta1Ingress. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this NetworkingV1beta1Ingress. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this NetworkingV1beta1Ingress. + - :param metadata: The metadata of this NetworkingV1beta1Ingress. + :param metadata: The metadata of this NetworkingV1beta1Ingress. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this NetworkingV1beta1Ingress. - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this NetworkingV1beta1Ingress. # noqa: E501 + - :return: The spec of this NetworkingV1beta1Ingress. + :return: The spec of this NetworkingV1beta1Ingress. # noqa: E501 :rtype: NetworkingV1beta1IngressSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this NetworkingV1beta1Ingress. - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this NetworkingV1beta1Ingress. - :param spec: The spec of this NetworkingV1beta1Ingress. + + :param spec: The spec of this NetworkingV1beta1Ingress. # noqa: E501 :type: NetworkingV1beta1IngressSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this NetworkingV1beta1Ingress. - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this NetworkingV1beta1Ingress. # noqa: E501 - :return: The status of this NetworkingV1beta1Ingress. + + :return: The status of this NetworkingV1beta1Ingress. # noqa: E501 :rtype: NetworkingV1beta1IngressStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this NetworkingV1beta1Ingress. - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this NetworkingV1beta1Ingress. - :param status: The status of this NetworkingV1beta1Ingress. + + :param status: The status of this NetworkingV1beta1Ingress. # noqa: E501 :type: NetworkingV1beta1IngressStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1Ingress): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_backend.py b/kubernetes/client/models/networking_v1beta1_ingress_backend.py index 6aa6b68e3c..4026cb65b8 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_backend.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_backend.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressBackend(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'service_name': 'str', 'service_port': 'object' } @@ -40,10 +40,8 @@ class NetworkingV1beta1IngressBackend(object): 'service_port': 'servicePort' } - def __init__(self, service_name=None, service_port=None): - """ - NetworkingV1beta1IngressBackend - a model defined in Swagger - """ + def __init__(self, service_name=None, service_port=None): # noqa: E501 + """NetworkingV1beta1IngressBackend - a model defined in OpenAPI""" # noqa: E501 self._service_name = None self._service_port = None @@ -54,61 +52,59 @@ def __init__(self, service_name=None, service_port=None): @property def service_name(self): - """ - Gets the service_name of this NetworkingV1beta1IngressBackend. - Specifies the name of the referenced service. + """Gets the service_name of this NetworkingV1beta1IngressBackend. # noqa: E501 + + Specifies the name of the referenced service. # noqa: E501 - :return: The service_name of this NetworkingV1beta1IngressBackend. + :return: The service_name of this NetworkingV1beta1IngressBackend. # noqa: E501 :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): - """ - Sets the service_name of this NetworkingV1beta1IngressBackend. - Specifies the name of the referenced service. + """Sets the service_name of this NetworkingV1beta1IngressBackend. - :param service_name: The service_name of this NetworkingV1beta1IngressBackend. + Specifies the name of the referenced service. # noqa: E501 + + :param service_name: The service_name of this NetworkingV1beta1IngressBackend. # noqa: E501 :type: str """ if service_name is None: - raise ValueError("Invalid value for `service_name`, must not be `None`") + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @property def service_port(self): - """ - Gets the service_port of this NetworkingV1beta1IngressBackend. - Specifies the port of the referenced service. + """Gets the service_port of this NetworkingV1beta1IngressBackend. # noqa: E501 + + Specifies the port of the referenced service. # noqa: E501 - :return: The service_port of this NetworkingV1beta1IngressBackend. + :return: The service_port of this NetworkingV1beta1IngressBackend. # noqa: E501 :rtype: object """ return self._service_port @service_port.setter def service_port(self, service_port): - """ - Sets the service_port of this NetworkingV1beta1IngressBackend. - Specifies the port of the referenced service. + """Sets the service_port of this NetworkingV1beta1IngressBackend. + + Specifies the port of the referenced service. # noqa: E501 - :param service_port: The service_port of this NetworkingV1beta1IngressBackend. + :param service_port: The service_port of this NetworkingV1beta1IngressBackend. # noqa: E501 :type: object """ if service_port is None: - raise ValueError("Invalid value for `service_port`, must not be `None`") + raise ValueError("Invalid value for `service_port`, must not be `None`") # noqa: E501 self._service_port = service_port def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressBackend): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_list.py b/kubernetes/client/models/networking_v1beta1_ingress_list.py index b8a009e527..40f4ca91a8 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_list.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[NetworkingV1beta1Ingress]', 'kind': 'str', @@ -44,10 +44,8 @@ class NetworkingV1beta1IngressList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - NetworkingV1beta1IngressList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """NetworkingV1beta1IngressList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this NetworkingV1beta1IngressList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this NetworkingV1beta1IngressList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this NetworkingV1beta1IngressList. + :return: The api_version of this NetworkingV1beta1IngressList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this NetworkingV1beta1IngressList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this NetworkingV1beta1IngressList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this NetworkingV1beta1IngressList. + :param api_version: The api_version of this NetworkingV1beta1IngressList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this NetworkingV1beta1IngressList. - Items is the list of Ingress. + """Gets the items of this NetworkingV1beta1IngressList. # noqa: E501 + + Items is the list of Ingress. # noqa: E501 - :return: The items of this NetworkingV1beta1IngressList. + :return: The items of this NetworkingV1beta1IngressList. # noqa: E501 :rtype: list[NetworkingV1beta1Ingress] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this NetworkingV1beta1IngressList. - Items is the list of Ingress. + """Sets the items of this NetworkingV1beta1IngressList. + + Items is the list of Ingress. # noqa: E501 - :param items: The items of this NetworkingV1beta1IngressList. + :param items: The items of this NetworkingV1beta1IngressList. # noqa: E501 :type: list[NetworkingV1beta1Ingress] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this NetworkingV1beta1IngressList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this NetworkingV1beta1IngressList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this NetworkingV1beta1IngressList. + :return: The kind of this NetworkingV1beta1IngressList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this NetworkingV1beta1IngressList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this NetworkingV1beta1IngressList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this NetworkingV1beta1IngressList. + :param kind: The kind of this NetworkingV1beta1IngressList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this NetworkingV1beta1IngressList. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this NetworkingV1beta1IngressList. # noqa: E501 + - :return: The metadata of this NetworkingV1beta1IngressList. + :return: The metadata of this NetworkingV1beta1IngressList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this NetworkingV1beta1IngressList. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this NetworkingV1beta1IngressList. + - :param metadata: The metadata of this NetworkingV1beta1IngressList. + :param metadata: The metadata of this NetworkingV1beta1IngressList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_rule.py b/kubernetes/client/models/networking_v1beta1_ingress_rule.py index 44a9cf9e02..7a77326f08 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_rule.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'host': 'str', 'http': 'NetworkingV1beta1HTTPIngressRuleValue' } @@ -40,38 +40,36 @@ class NetworkingV1beta1IngressRule(object): 'http': 'http' } - def __init__(self, host=None, http=None): - """ - NetworkingV1beta1IngressRule - a model defined in Swagger - """ + def __init__(self, host=None, http=None): # noqa: E501 + """NetworkingV1beta1IngressRule - a model defined in OpenAPI""" # noqa: E501 self._host = None self._http = None self.discriminator = None if host is not None: - self.host = host + self.host = host if http is not None: - self.http = http + self.http = http @property def host(self): - """ - Gets the host of this NetworkingV1beta1IngressRule. - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + """Gets the host of this NetworkingV1beta1IngressRule. # noqa: E501 + + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. # noqa: E501 - :return: The host of this NetworkingV1beta1IngressRule. + :return: The host of this NetworkingV1beta1IngressRule. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """ - Sets the host of this NetworkingV1beta1IngressRule. - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + """Sets the host of this NetworkingV1beta1IngressRule. - :param host: The host of this NetworkingV1beta1IngressRule. + Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. # noqa: E501 + + :param host: The host of this NetworkingV1beta1IngressRule. # noqa: E501 :type: str """ @@ -79,32 +77,30 @@ def host(self, host): @property def http(self): - """ - Gets the http of this NetworkingV1beta1IngressRule. + """Gets the http of this NetworkingV1beta1IngressRule. # noqa: E501 + - :return: The http of this NetworkingV1beta1IngressRule. + :return: The http of this NetworkingV1beta1IngressRule. # noqa: E501 :rtype: NetworkingV1beta1HTTPIngressRuleValue """ return self._http @http.setter def http(self, http): - """ - Sets the http of this NetworkingV1beta1IngressRule. + """Sets the http of this NetworkingV1beta1IngressRule. + - :param http: The http of this NetworkingV1beta1IngressRule. + :param http: The http of this NetworkingV1beta1IngressRule. # noqa: E501 :type: NetworkingV1beta1HTTPIngressRuleValue """ self._http = http def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -125,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_spec.py b/kubernetes/client/models/networking_v1beta1_ingress_spec.py index 14faf132ff..5f613d83ba 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_spec.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'backend': 'NetworkingV1beta1IngressBackend', 'rules': 'list[NetworkingV1beta1IngressRule]', 'tls': 'list[NetworkingV1beta1IngressTLS]' @@ -42,10 +42,8 @@ class NetworkingV1beta1IngressSpec(object): 'tls': 'tls' } - def __init__(self, backend=None, rules=None, tls=None): - """ - NetworkingV1beta1IngressSpec - a model defined in Swagger - """ + def __init__(self, backend=None, rules=None, tls=None): # noqa: E501 + """NetworkingV1beta1IngressSpec - a model defined in OpenAPI""" # noqa: E501 self._backend = None self._rules = None @@ -53,30 +51,28 @@ def __init__(self, backend=None, rules=None, tls=None): self.discriminator = None if backend is not None: - self.backend = backend + self.backend = backend if rules is not None: - self.rules = rules + self.rules = rules if tls is not None: - self.tls = tls + self.tls = tls @property def backend(self): - """ - Gets the backend of this NetworkingV1beta1IngressSpec. - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + """Gets the backend of this NetworkingV1beta1IngressSpec. # noqa: E501 - :return: The backend of this NetworkingV1beta1IngressSpec. + + :return: The backend of this NetworkingV1beta1IngressSpec. # noqa: E501 :rtype: NetworkingV1beta1IngressBackend """ return self._backend @backend.setter def backend(self, backend): - """ - Sets the backend of this NetworkingV1beta1IngressSpec. - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + """Sets the backend of this NetworkingV1beta1IngressSpec. - :param backend: The backend of this NetworkingV1beta1IngressSpec. + + :param backend: The backend of this NetworkingV1beta1IngressSpec. # noqa: E501 :type: NetworkingV1beta1IngressBackend """ @@ -84,22 +80,22 @@ def backend(self, backend): @property def rules(self): - """ - Gets the rules of this NetworkingV1beta1IngressSpec. - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + """Gets the rules of this NetworkingV1beta1IngressSpec. # noqa: E501 - :return: The rules of this NetworkingV1beta1IngressSpec. + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. # noqa: E501 + + :return: The rules of this NetworkingV1beta1IngressSpec. # noqa: E501 :rtype: list[NetworkingV1beta1IngressRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this NetworkingV1beta1IngressSpec. - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + """Sets the rules of this NetworkingV1beta1IngressSpec. + + A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. # noqa: E501 - :param rules: The rules of this NetworkingV1beta1IngressSpec. + :param rules: The rules of this NetworkingV1beta1IngressSpec. # noqa: E501 :type: list[NetworkingV1beta1IngressRule] """ @@ -107,34 +103,32 @@ def rules(self, rules): @property def tls(self): - """ - Gets the tls of this NetworkingV1beta1IngressSpec. - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + """Gets the tls of this NetworkingV1beta1IngressSpec. # noqa: E501 + + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. # noqa: E501 - :return: The tls of this NetworkingV1beta1IngressSpec. + :return: The tls of this NetworkingV1beta1IngressSpec. # noqa: E501 :rtype: list[NetworkingV1beta1IngressTLS] """ return self._tls @tls.setter def tls(self, tls): - """ - Sets the tls of this NetworkingV1beta1IngressSpec. - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + """Sets the tls of this NetworkingV1beta1IngressSpec. + + TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. # noqa: E501 - :param tls: The tls of this NetworkingV1beta1IngressSpec. + :param tls: The tls of this NetworkingV1beta1IngressSpec. # noqa: E501 :type: list[NetworkingV1beta1IngressTLS] """ self._tls = tls def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +149,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_status.py b/kubernetes/client/models/networking_v1beta1_ingress_status.py index 8feb8d909e..7a5cad0e87 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_status.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'load_balancer': 'V1LoadBalancerStatus' } @@ -38,47 +38,41 @@ class NetworkingV1beta1IngressStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): - """ - NetworkingV1beta1IngressStatus - a model defined in Swagger - """ + def __init__(self, load_balancer=None): # noqa: E501 + """NetworkingV1beta1IngressStatus - a model defined in OpenAPI""" # noqa: E501 self._load_balancer = None self.discriminator = None if load_balancer is not None: - self.load_balancer = load_balancer + self.load_balancer = load_balancer @property def load_balancer(self): - """ - Gets the load_balancer of this NetworkingV1beta1IngressStatus. - LoadBalancer contains the current status of the load-balancer. + """Gets the load_balancer of this NetworkingV1beta1IngressStatus. # noqa: E501 + - :return: The load_balancer of this NetworkingV1beta1IngressStatus. + :return: The load_balancer of this NetworkingV1beta1IngressStatus. # noqa: E501 :rtype: V1LoadBalancerStatus """ return self._load_balancer @load_balancer.setter def load_balancer(self, load_balancer): - """ - Sets the load_balancer of this NetworkingV1beta1IngressStatus. - LoadBalancer contains the current status of the load-balancer. + """Sets the load_balancer of this NetworkingV1beta1IngressStatus. + - :param load_balancer: The load_balancer of this NetworkingV1beta1IngressStatus. + :param load_balancer: The load_balancer of this NetworkingV1beta1IngressStatus. # noqa: E501 :type: V1LoadBalancerStatus """ self._load_balancer = load_balancer def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/networking_v1beta1_ingress_tls.py b/kubernetes/client/models/networking_v1beta1_ingress_tls.py index c81d66549e..5d7f0f3b16 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_tls.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_tls.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class NetworkingV1beta1IngressTLS(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hosts': 'list[str]', 'secret_name': 'str' } @@ -40,38 +40,36 @@ class NetworkingV1beta1IngressTLS(object): 'secret_name': 'secretName' } - def __init__(self, hosts=None, secret_name=None): - """ - NetworkingV1beta1IngressTLS - a model defined in Swagger - """ + def __init__(self, hosts=None, secret_name=None): # noqa: E501 + """NetworkingV1beta1IngressTLS - a model defined in OpenAPI""" # noqa: E501 self._hosts = None self._secret_name = None self.discriminator = None if hosts is not None: - self.hosts = hosts + self.hosts = hosts if secret_name is not None: - self.secret_name = secret_name + self.secret_name = secret_name @property def hosts(self): - """ - Gets the hosts of this NetworkingV1beta1IngressTLS. - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + """Gets the hosts of this NetworkingV1beta1IngressTLS. # noqa: E501 + + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. # noqa: E501 - :return: The hosts of this NetworkingV1beta1IngressTLS. + :return: The hosts of this NetworkingV1beta1IngressTLS. # noqa: E501 :rtype: list[str] """ return self._hosts @hosts.setter def hosts(self, hosts): - """ - Sets the hosts of this NetworkingV1beta1IngressTLS. - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + """Sets the hosts of this NetworkingV1beta1IngressTLS. - :param hosts: The hosts of this NetworkingV1beta1IngressTLS. + Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. # noqa: E501 + + :param hosts: The hosts of this NetworkingV1beta1IngressTLS. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def hosts(self, hosts): @property def secret_name(self): - """ - Gets the secret_name of this NetworkingV1beta1IngressTLS. - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """Gets the secret_name of this NetworkingV1beta1IngressTLS. # noqa: E501 + + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. # noqa: E501 - :return: The secret_name of this NetworkingV1beta1IngressTLS. + :return: The secret_name of this NetworkingV1beta1IngressTLS. # noqa: E501 :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): - """ - Sets the secret_name of this NetworkingV1beta1IngressTLS. - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """Sets the secret_name of this NetworkingV1beta1IngressTLS. + + SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. # noqa: E501 - :param secret_name: The secret_name of this NetworkingV1beta1IngressTLS. + :param secret_name: The secret_name of this NetworkingV1beta1IngressTLS. # noqa: E501 :type: str """ self._secret_name = secret_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, NetworkingV1beta1IngressTLS): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py b/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py index eb20952238..ff61096982 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1AllowedCSIDriver(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str' } @@ -38,10 +38,8 @@ class PolicyV1beta1AllowedCSIDriver(object): 'name': 'name' } - def __init__(self, name=None): - """ - PolicyV1beta1AllowedCSIDriver - a model defined in Swagger - """ + def __init__(self, name=None): # noqa: E501 + """PolicyV1beta1AllowedCSIDriver - a model defined in OpenAPI""" # noqa: E501 self._name = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, name=None): @property def name(self): - """ - Gets the name of this PolicyV1beta1AllowedCSIDriver. - Name is the registered name of the CSI driver + """Gets the name of this PolicyV1beta1AllowedCSIDriver. # noqa: E501 + + Name is the registered name of the CSI driver # noqa: E501 - :return: The name of this PolicyV1beta1AllowedCSIDriver. + :return: The name of this PolicyV1beta1AllowedCSIDriver. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PolicyV1beta1AllowedCSIDriver. - Name is the registered name of the CSI driver + """Sets the name of this PolicyV1beta1AllowedCSIDriver. + + Name is the registered name of the CSI driver # noqa: E501 - :param name: The name of this PolicyV1beta1AllowedCSIDriver. + :param name: The name of this PolicyV1beta1AllowedCSIDriver. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1AllowedCSIDriver): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py b/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py index ab7b42a951..0c51415c5d 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1AllowedFlexVolume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'driver': 'str' } @@ -38,10 +38,8 @@ class PolicyV1beta1AllowedFlexVolume(object): 'driver': 'driver' } - def __init__(self, driver=None): - """ - PolicyV1beta1AllowedFlexVolume - a model defined in Swagger - """ + def __init__(self, driver=None): # noqa: E501 + """PolicyV1beta1AllowedFlexVolume - a model defined in OpenAPI""" # noqa: E501 self._driver = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, driver=None): @property def driver(self): - """ - Gets the driver of this PolicyV1beta1AllowedFlexVolume. - driver is the name of the Flexvolume driver. + """Gets the driver of this PolicyV1beta1AllowedFlexVolume. # noqa: E501 + + driver is the name of the Flexvolume driver. # noqa: E501 - :return: The driver of this PolicyV1beta1AllowedFlexVolume. + :return: The driver of this PolicyV1beta1AllowedFlexVolume. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this PolicyV1beta1AllowedFlexVolume. - driver is the name of the Flexvolume driver. + """Sets the driver of this PolicyV1beta1AllowedFlexVolume. + + driver is the name of the Flexvolume driver. # noqa: E501 - :param driver: The driver of this PolicyV1beta1AllowedFlexVolume. + :param driver: The driver of this PolicyV1beta1AllowedFlexVolume. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1AllowedFlexVolume): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_allowed_host_path.py b/kubernetes/client/models/policy_v1beta1_allowed_host_path.py index 6d638077dd..a3beecc44e 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_host_path.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_host_path.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1AllowedHostPath(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path_prefix': 'str', 'read_only': 'bool' } @@ -40,38 +40,36 @@ class PolicyV1beta1AllowedHostPath(object): 'read_only': 'readOnly' } - def __init__(self, path_prefix=None, read_only=None): - """ - PolicyV1beta1AllowedHostPath - a model defined in Swagger - """ + def __init__(self, path_prefix=None, read_only=None): # noqa: E501 + """PolicyV1beta1AllowedHostPath - a model defined in OpenAPI""" # noqa: E501 self._path_prefix = None self._read_only = None self.discriminator = None if path_prefix is not None: - self.path_prefix = path_prefix + self.path_prefix = path_prefix if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def path_prefix(self): - """ - Gets the path_prefix of this PolicyV1beta1AllowedHostPath. - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + """Gets the path_prefix of this PolicyV1beta1AllowedHostPath. # noqa: E501 + + pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` # noqa: E501 - :return: The path_prefix of this PolicyV1beta1AllowedHostPath. + :return: The path_prefix of this PolicyV1beta1AllowedHostPath. # noqa: E501 :rtype: str """ return self._path_prefix @path_prefix.setter def path_prefix(self, path_prefix): - """ - Sets the path_prefix of this PolicyV1beta1AllowedHostPath. - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + """Sets the path_prefix of this PolicyV1beta1AllowedHostPath. - :param path_prefix: The path_prefix of this PolicyV1beta1AllowedHostPath. + pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` # noqa: E501 + + :param path_prefix: The path_prefix of this PolicyV1beta1AllowedHostPath. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def path_prefix(self, path_prefix): @property def read_only(self): - """ - Gets the read_only of this PolicyV1beta1AllowedHostPath. - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + """Gets the read_only of this PolicyV1beta1AllowedHostPath. # noqa: E501 + + when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. # noqa: E501 - :return: The read_only of this PolicyV1beta1AllowedHostPath. + :return: The read_only of this PolicyV1beta1AllowedHostPath. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this PolicyV1beta1AllowedHostPath. - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + """Sets the read_only of this PolicyV1beta1AllowedHostPath. + + when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. # noqa: E501 - :param read_only: The read_only of this PolicyV1beta1AllowedHostPath. + :param read_only: The read_only of this PolicyV1beta1AllowedHostPath. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1AllowedHostPath): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py index 78dc2e5d03..c0bcf29a5d 100644 --- a/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1FSGroupStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[PolicyV1beta1IDRange]', 'rule': 'str' } @@ -40,38 +40,36 @@ class PolicyV1beta1FSGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - PolicyV1beta1FSGroupStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """PolicyV1beta1FSGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges if rule is not None: - self.rule = rule + self.rule = rule @property def ranges(self): - """ - Gets the ranges of this PolicyV1beta1FSGroupStrategyOptions. - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this PolicyV1beta1FSGroupStrategyOptions. + :return: The ranges of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 :rtype: list[PolicyV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this PolicyV1beta1FSGroupStrategyOptions. - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this PolicyV1beta1FSGroupStrategyOptions. - :param ranges: The ranges of this PolicyV1beta1FSGroupStrategyOptions. + ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 :type: list[PolicyV1beta1IDRange] """ @@ -79,34 +77,32 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this PolicyV1beta1FSGroupStrategyOptions. - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + """Gets the rule of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate what FSGroup is used in the SecurityContext. # noqa: E501 - :return: The rule of this PolicyV1beta1FSGroupStrategyOptions. + :return: The rule of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this PolicyV1beta1FSGroupStrategyOptions. - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + """Sets the rule of this PolicyV1beta1FSGroupStrategyOptions. + + rule is the strategy that will dictate what FSGroup is used in the SecurityContext. # noqa: E501 - :param rule: The rule of this PolicyV1beta1FSGroupStrategyOptions. + :param rule: The rule of this PolicyV1beta1FSGroupStrategyOptions. # noqa: E501 :type: str """ self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1FSGroupStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_host_port_range.py b/kubernetes/client/models/policy_v1beta1_host_port_range.py index 5adc6cb91f..782ae397ae 100644 --- a/kubernetes/client/models/policy_v1beta1_host_port_range.py +++ b/kubernetes/client/models/policy_v1beta1_host_port_range.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1HostPortRange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max': 'int', 'min': 'int' } @@ -40,10 +40,8 @@ class PolicyV1beta1HostPortRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): - """ - PolicyV1beta1HostPortRange - a model defined in Swagger - """ + def __init__(self, max=None, min=None): # noqa: E501 + """PolicyV1beta1HostPortRange - a model defined in OpenAPI""" # noqa: E501 self._max = None self._min = None @@ -54,61 +52,59 @@ def __init__(self, max=None, min=None): @property def max(self): - """ - Gets the max of this PolicyV1beta1HostPortRange. - max is the end of the range, inclusive. + """Gets the max of this PolicyV1beta1HostPortRange. # noqa: E501 + + max is the end of the range, inclusive. # noqa: E501 - :return: The max of this PolicyV1beta1HostPortRange. + :return: The max of this PolicyV1beta1HostPortRange. # noqa: E501 :rtype: int """ return self._max @max.setter def max(self, max): - """ - Sets the max of this PolicyV1beta1HostPortRange. - max is the end of the range, inclusive. + """Sets the max of this PolicyV1beta1HostPortRange. - :param max: The max of this PolicyV1beta1HostPortRange. + max is the end of the range, inclusive. # noqa: E501 + + :param max: The max of this PolicyV1beta1HostPortRange. # noqa: E501 :type: int """ if max is None: - raise ValueError("Invalid value for `max`, must not be `None`") + raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @property def min(self): - """ - Gets the min of this PolicyV1beta1HostPortRange. - min is the start of the range, inclusive. + """Gets the min of this PolicyV1beta1HostPortRange. # noqa: E501 + + min is the start of the range, inclusive. # noqa: E501 - :return: The min of this PolicyV1beta1HostPortRange. + :return: The min of this PolicyV1beta1HostPortRange. # noqa: E501 :rtype: int """ return self._min @min.setter def min(self, min): - """ - Sets the min of this PolicyV1beta1HostPortRange. - min is the start of the range, inclusive. + """Sets the min of this PolicyV1beta1HostPortRange. + + min is the start of the range, inclusive. # noqa: E501 - :param min: The min of this PolicyV1beta1HostPortRange. + :param min: The min of this PolicyV1beta1HostPortRange. # noqa: E501 :type: int """ if min is None: - raise ValueError("Invalid value for `min`, must not be `None`") + raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1HostPortRange): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_id_range.py b/kubernetes/client/models/policy_v1beta1_id_range.py index 31ea122600..91ee58561f 100644 --- a/kubernetes/client/models/policy_v1beta1_id_range.py +++ b/kubernetes/client/models/policy_v1beta1_id_range.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1IDRange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max': 'int', 'min': 'int' } @@ -40,10 +40,8 @@ class PolicyV1beta1IDRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): - """ - PolicyV1beta1IDRange - a model defined in Swagger - """ + def __init__(self, max=None, min=None): # noqa: E501 + """PolicyV1beta1IDRange - a model defined in OpenAPI""" # noqa: E501 self._max = None self._min = None @@ -54,61 +52,59 @@ def __init__(self, max=None, min=None): @property def max(self): - """ - Gets the max of this PolicyV1beta1IDRange. - max is the end of the range, inclusive. + """Gets the max of this PolicyV1beta1IDRange. # noqa: E501 + + max is the end of the range, inclusive. # noqa: E501 - :return: The max of this PolicyV1beta1IDRange. + :return: The max of this PolicyV1beta1IDRange. # noqa: E501 :rtype: int """ return self._max @max.setter def max(self, max): - """ - Sets the max of this PolicyV1beta1IDRange. - max is the end of the range, inclusive. + """Sets the max of this PolicyV1beta1IDRange. - :param max: The max of this PolicyV1beta1IDRange. + max is the end of the range, inclusive. # noqa: E501 + + :param max: The max of this PolicyV1beta1IDRange. # noqa: E501 :type: int """ if max is None: - raise ValueError("Invalid value for `max`, must not be `None`") + raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @property def min(self): - """ - Gets the min of this PolicyV1beta1IDRange. - min is the start of the range, inclusive. + """Gets the min of this PolicyV1beta1IDRange. # noqa: E501 + + min is the start of the range, inclusive. # noqa: E501 - :return: The min of this PolicyV1beta1IDRange. + :return: The min of this PolicyV1beta1IDRange. # noqa: E501 :rtype: int """ return self._min @min.setter def min(self, min): - """ - Sets the min of this PolicyV1beta1IDRange. - min is the start of the range, inclusive. + """Sets the min of this PolicyV1beta1IDRange. + + min is the start of the range, inclusive. # noqa: E501 - :param min: The min of this PolicyV1beta1IDRange. + :param min: The min of this PolicyV1beta1IDRange. # noqa: E501 :type: int """ if min is None: - raise ValueError("Invalid value for `min`, must not be `None`") + raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1IDRange): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy.py index b23196f018..3267ef0ab3 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1PodSecurityPolicy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class PolicyV1beta1PodSecurityPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - PolicyV1beta1PodSecurityPolicy - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """PolicyV1beta1PodSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this PolicyV1beta1PodSecurityPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this PolicyV1beta1PodSecurityPolicy. + :return: The api_version of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this PolicyV1beta1PodSecurityPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this PolicyV1beta1PodSecurityPolicy. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this PolicyV1beta1PodSecurityPolicy. + :param api_version: The api_version of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this PolicyV1beta1PodSecurityPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this PolicyV1beta1PodSecurityPolicy. + :return: The kind of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this PolicyV1beta1PodSecurityPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this PolicyV1beta1PodSecurityPolicy. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this PolicyV1beta1PodSecurityPolicy. + :param kind: The kind of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this PolicyV1beta1PodSecurityPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 + - :return: The metadata of this PolicyV1beta1PodSecurityPolicy. + :return: The metadata of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this PolicyV1beta1PodSecurityPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this PolicyV1beta1PodSecurityPolicy. + - :param metadata: The metadata of this PolicyV1beta1PodSecurityPolicy. + :param metadata: The metadata of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this PolicyV1beta1PodSecurityPolicy. - spec defines the policy enforced. + """Gets the spec of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 + - :return: The spec of this PolicyV1beta1PodSecurityPolicy. + :return: The spec of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :rtype: PolicyV1beta1PodSecurityPolicySpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this PolicyV1beta1PodSecurityPolicy. - spec defines the policy enforced. + """Sets the spec of this PolicyV1beta1PodSecurityPolicy. + - :param spec: The spec of this PolicyV1beta1PodSecurityPolicy. + :param spec: The spec of this PolicyV1beta1PodSecurityPolicy. # noqa: E501 :type: PolicyV1beta1PodSecurityPolicySpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1PodSecurityPolicy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py index eb9f9131ab..61ed5525bc 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1PodSecurityPolicyList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[PolicyV1beta1PodSecurityPolicy]', 'kind': 'str', @@ -44,10 +44,8 @@ class PolicyV1beta1PodSecurityPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - PolicyV1beta1PodSecurityPolicyList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """PolicyV1beta1PodSecurityPolicyList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this PolicyV1beta1PodSecurityPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this PolicyV1beta1PodSecurityPolicyList. + :return: The api_version of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this PolicyV1beta1PodSecurityPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this PolicyV1beta1PodSecurityPolicyList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this PolicyV1beta1PodSecurityPolicyList. + :param api_version: The api_version of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this PolicyV1beta1PodSecurityPolicyList. - items is a list of schema objects. + """Gets the items of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 + + items is a list of schema objects. # noqa: E501 - :return: The items of this PolicyV1beta1PodSecurityPolicyList. + :return: The items of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: list[PolicyV1beta1PodSecurityPolicy] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this PolicyV1beta1PodSecurityPolicyList. - items is a list of schema objects. + """Sets the items of this PolicyV1beta1PodSecurityPolicyList. + + items is a list of schema objects. # noqa: E501 - :param items: The items of this PolicyV1beta1PodSecurityPolicyList. + :param items: The items of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :type: list[PolicyV1beta1PodSecurityPolicy] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this PolicyV1beta1PodSecurityPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this PolicyV1beta1PodSecurityPolicyList. + :return: The kind of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this PolicyV1beta1PodSecurityPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this PolicyV1beta1PodSecurityPolicyList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this PolicyV1beta1PodSecurityPolicyList. + :param kind: The kind of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this PolicyV1beta1PodSecurityPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 + - :return: The metadata of this PolicyV1beta1PodSecurityPolicyList. + :return: The metadata of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this PolicyV1beta1PodSecurityPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this PolicyV1beta1PodSecurityPolicyList. + - :param metadata: The metadata of this PolicyV1beta1PodSecurityPolicyList. + :param metadata: The metadata of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1PodSecurityPolicyList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py index 18ac8b113f..2ecc947bf6 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1PodSecurityPolicySpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allow_privilege_escalation': 'bool', 'allowed_csi_drivers': 'list[PolicyV1beta1AllowedCSIDriver]', 'allowed_capabilities': 'list[str]', @@ -51,6 +51,7 @@ class PolicyV1beta1PodSecurityPolicySpec(object): 'required_drop_capabilities': 'list[str]', 'run_as_group': 'PolicyV1beta1RunAsGroupStrategyOptions', 'run_as_user': 'PolicyV1beta1RunAsUserStrategyOptions', + 'runtime_class': 'PolicyV1beta1RuntimeClassStrategyOptions', 'se_linux': 'PolicyV1beta1SELinuxStrategyOptions', 'supplemental_groups': 'PolicyV1beta1SupplementalGroupsStrategyOptions', 'volumes': 'list[str]' @@ -77,15 +78,14 @@ class PolicyV1beta1PodSecurityPolicySpec(object): 'required_drop_capabilities': 'requiredDropCapabilities', 'run_as_group': 'runAsGroup', 'run_as_user': 'runAsUser', + 'runtime_class': 'runtimeClass', 'se_linux': 'seLinux', 'supplemental_groups': 'supplementalGroups', 'volumes': 'volumes' } - def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, se_linux=None, supplemental_groups=None, volumes=None): - """ - PolicyV1beta1PodSecurityPolicySpec - a model defined in Swagger - """ + def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None): # noqa: E501 + """PolicyV1beta1PodSecurityPolicySpec - a model defined in OpenAPI""" # noqa: E501 self._allow_privilege_escalation = None self._allowed_csi_drivers = None @@ -107,72 +107,75 @@ def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, al self._required_drop_capabilities = None self._run_as_group = None self._run_as_user = None + self._runtime_class = None self._se_linux = None self._supplemental_groups = None self._volumes = None self.discriminator = None if allow_privilege_escalation is not None: - self.allow_privilege_escalation = allow_privilege_escalation + self.allow_privilege_escalation = allow_privilege_escalation if allowed_csi_drivers is not None: - self.allowed_csi_drivers = allowed_csi_drivers + self.allowed_csi_drivers = allowed_csi_drivers if allowed_capabilities is not None: - self.allowed_capabilities = allowed_capabilities + self.allowed_capabilities = allowed_capabilities if allowed_flex_volumes is not None: - self.allowed_flex_volumes = allowed_flex_volumes + self.allowed_flex_volumes = allowed_flex_volumes if allowed_host_paths is not None: - self.allowed_host_paths = allowed_host_paths + self.allowed_host_paths = allowed_host_paths if allowed_proc_mount_types is not None: - self.allowed_proc_mount_types = allowed_proc_mount_types + self.allowed_proc_mount_types = allowed_proc_mount_types if allowed_unsafe_sysctls is not None: - self.allowed_unsafe_sysctls = allowed_unsafe_sysctls + self.allowed_unsafe_sysctls = allowed_unsafe_sysctls if default_add_capabilities is not None: - self.default_add_capabilities = default_add_capabilities + self.default_add_capabilities = default_add_capabilities if default_allow_privilege_escalation is not None: - self.default_allow_privilege_escalation = default_allow_privilege_escalation + self.default_allow_privilege_escalation = default_allow_privilege_escalation if forbidden_sysctls is not None: - self.forbidden_sysctls = forbidden_sysctls + self.forbidden_sysctls = forbidden_sysctls self.fs_group = fs_group if host_ipc is not None: - self.host_ipc = host_ipc + self.host_ipc = host_ipc if host_network is not None: - self.host_network = host_network + self.host_network = host_network if host_pid is not None: - self.host_pid = host_pid + self.host_pid = host_pid if host_ports is not None: - self.host_ports = host_ports + self.host_ports = host_ports if privileged is not None: - self.privileged = privileged + self.privileged = privileged if read_only_root_filesystem is not None: - self.read_only_root_filesystem = read_only_root_filesystem + self.read_only_root_filesystem = read_only_root_filesystem if required_drop_capabilities is not None: - self.required_drop_capabilities = required_drop_capabilities + self.required_drop_capabilities = required_drop_capabilities if run_as_group is not None: - self.run_as_group = run_as_group + self.run_as_group = run_as_group self.run_as_user = run_as_user + if runtime_class is not None: + self.runtime_class = runtime_class self.se_linux = se_linux self.supplemental_groups = supplemental_groups if volumes is not None: - self.volumes = volumes + self.volumes = volumes @property def allow_privilege_escalation(self): - """ - Gets the allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + """Gets the allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. # noqa: E501 - :return: The allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + :return: The allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._allow_privilege_escalation @allow_privilege_escalation.setter def allow_privilege_escalation(self, allow_privilege_escalation): - """ - Sets the allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + """Sets the allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + + allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. # noqa: E501 - :param allow_privilege_escalation: The allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + :param allow_privilege_escalation: The allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -180,22 +183,22 @@ def allow_privilege_escalation(self, allow_privilege_escalation): @property def allowed_csi_drivers(self): - """ - Gets the allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + """Gets the allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. # noqa: E501 - :return: The allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. + :return: The allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[PolicyV1beta1AllowedCSIDriver] """ return self._allowed_csi_drivers @allowed_csi_drivers.setter def allowed_csi_drivers(self, allowed_csi_drivers): - """ - Sets the allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + """Sets the allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. + + AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. # noqa: E501 - :param allowed_csi_drivers: The allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. + :param allowed_csi_drivers: The allowed_csi_drivers of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[PolicyV1beta1AllowedCSIDriver] """ @@ -203,22 +206,22 @@ def allowed_csi_drivers(self, allowed_csi_drivers): @property def allowed_capabilities(self): - """ - Gets the allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + """Gets the allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. # noqa: E501 + + :return: The allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_capabilities @allowed_capabilities.setter def allowed_capabilities(self, allowed_capabilities): - """ - Sets the allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + """Sets the allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - :param allowed_capabilities: The allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. # noqa: E501 + + :param allowed_capabilities: The allowed_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -226,22 +229,22 @@ def allowed_capabilities(self, allowed_capabilities): @property def allowed_flex_volumes(self): - """ - Gets the allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. + """Gets the allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. + allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. # noqa: E501 + + :return: The allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[PolicyV1beta1AllowedFlexVolume] """ return self._allowed_flex_volumes @allowed_flex_volumes.setter def allowed_flex_volumes(self, allowed_flex_volumes): - """ - Sets the allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. + """Sets the allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. - :param allowed_flex_volumes: The allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. + allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. # noqa: E501 + + :param allowed_flex_volumes: The allowed_flex_volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[PolicyV1beta1AllowedFlexVolume] """ @@ -249,22 +252,22 @@ def allowed_flex_volumes(self, allowed_flex_volumes): @property def allowed_host_paths(self): - """ - Gets the allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + """Gets the allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. + allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. # noqa: E501 + + :return: The allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[PolicyV1beta1AllowedHostPath] """ return self._allowed_host_paths @allowed_host_paths.setter def allowed_host_paths(self, allowed_host_paths): - """ - Sets the allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + """Sets the allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. - :param allowed_host_paths: The allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. + allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. # noqa: E501 + + :param allowed_host_paths: The allowed_host_paths of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[PolicyV1beta1AllowedHostPath] """ @@ -272,22 +275,22 @@ def allowed_host_paths(self, allowed_host_paths): @property def allowed_proc_mount_types(self): - """ - Gets the allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + """Gets the allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. + AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. # noqa: E501 + + :return: The allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_proc_mount_types @allowed_proc_mount_types.setter def allowed_proc_mount_types(self, allowed_proc_mount_types): - """ - Sets the allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + """Sets the allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. + + AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. # noqa: E501 - :param allowed_proc_mount_types: The allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. + :param allowed_proc_mount_types: The allowed_proc_mount_types of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -295,22 +298,22 @@ def allowed_proc_mount_types(self, allowed_proc_mount_types): @property def allowed_unsafe_sysctls(self): - """ - Gets the allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. + """Gets the allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :return: The allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. + :return: The allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._allowed_unsafe_sysctls @allowed_unsafe_sysctls.setter def allowed_unsafe_sysctls(self, allowed_unsafe_sysctls): - """ - Sets the allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. + """Sets the allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. + + allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :param allowed_unsafe_sysctls: The allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. + :param allowed_unsafe_sysctls: The allowed_unsafe_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -318,22 +321,22 @@ def allowed_unsafe_sysctls(self, allowed_unsafe_sysctls): @property def default_add_capabilities(self): - """ - Gets the default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + """Gets the default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. # noqa: E501 - :return: The default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + :return: The default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._default_add_capabilities @default_add_capabilities.setter def default_add_capabilities(self, default_add_capabilities): - """ - Sets the default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + """Sets the default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + + defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. # noqa: E501 - :param default_add_capabilities: The default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + :param default_add_capabilities: The default_add_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -341,22 +344,22 @@ def default_add_capabilities(self, default_add_capabilities): @property def default_allow_privilege_escalation(self): - """ - Gets the default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + """Gets the default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. # noqa: E501 - :return: The default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + :return: The default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._default_allow_privilege_escalation @default_allow_privilege_escalation.setter def default_allow_privilege_escalation(self, default_allow_privilege_escalation): - """ - Sets the default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + """Sets the default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + + defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. # noqa: E501 - :param default_allow_privilege_escalation: The default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. + :param default_allow_privilege_escalation: The default_allow_privilege_escalation of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -364,22 +367,22 @@ def default_allow_privilege_escalation(self, default_allow_privilege_escalation) @property def forbidden_sysctls(self): - """ - Gets the forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. + """Gets the forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. # noqa: E501 - :return: The forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. + :return: The forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._forbidden_sysctls @forbidden_sysctls.setter def forbidden_sysctls(self, forbidden_sysctls): - """ - Sets the forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. + """Sets the forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. - :param forbidden_sysctls: The forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. + forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. # noqa: E501 + + :param forbidden_sysctls: The forbidden_sysctls of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -387,47 +390,45 @@ def forbidden_sysctls(self, forbidden_sysctls): @property def fs_group(self): - """ - Gets the fs_group of this PolicyV1beta1PodSecurityPolicySpec. - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + """Gets the fs_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The fs_group of this PolicyV1beta1PodSecurityPolicySpec. + + :return: The fs_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: PolicyV1beta1FSGroupStrategyOptions """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): - """ - Sets the fs_group of this PolicyV1beta1PodSecurityPolicySpec. - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + """Sets the fs_group of this PolicyV1beta1PodSecurityPolicySpec. - :param fs_group: The fs_group of this PolicyV1beta1PodSecurityPolicySpec. + + :param fs_group: The fs_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1FSGroupStrategyOptions """ if fs_group is None: - raise ValueError("Invalid value for `fs_group`, must not be `None`") + raise ValueError("Invalid value for `fs_group`, must not be `None`") # noqa: E501 self._fs_group = fs_group @property def host_ipc(self): - """ - Gets the host_ipc of this PolicyV1beta1PodSecurityPolicySpec. - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + """Gets the host_ipc of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + hostIPC determines if the policy allows the use of HostIPC in the pod spec. # noqa: E501 - :return: The host_ipc of this PolicyV1beta1PodSecurityPolicySpec. + :return: The host_ipc of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): - """ - Sets the host_ipc of this PolicyV1beta1PodSecurityPolicySpec. - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + """Sets the host_ipc of this PolicyV1beta1PodSecurityPolicySpec. + + hostIPC determines if the policy allows the use of HostIPC in the pod spec. # noqa: E501 - :param host_ipc: The host_ipc of this PolicyV1beta1PodSecurityPolicySpec. + :param host_ipc: The host_ipc of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -435,22 +436,22 @@ def host_ipc(self, host_ipc): @property def host_network(self): - """ - Gets the host_network of this PolicyV1beta1PodSecurityPolicySpec. - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + """Gets the host_network of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. # noqa: E501 - :return: The host_network of this PolicyV1beta1PodSecurityPolicySpec. + :return: The host_network of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): - """ - Sets the host_network of this PolicyV1beta1PodSecurityPolicySpec. - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + """Sets the host_network of this PolicyV1beta1PodSecurityPolicySpec. + + hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. # noqa: E501 - :param host_network: The host_network of this PolicyV1beta1PodSecurityPolicySpec. + :param host_network: The host_network of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -458,22 +459,22 @@ def host_network(self, host_network): @property def host_pid(self): - """ - Gets the host_pid of this PolicyV1beta1PodSecurityPolicySpec. - hostPID determines if the policy allows the use of HostPID in the pod spec. + """Gets the host_pid of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The host_pid of this PolicyV1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. # noqa: E501 + + :return: The host_pid of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): - """ - Sets the host_pid of this PolicyV1beta1PodSecurityPolicySpec. - hostPID determines if the policy allows the use of HostPID in the pod spec. + """Sets the host_pid of this PolicyV1beta1PodSecurityPolicySpec. - :param host_pid: The host_pid of this PolicyV1beta1PodSecurityPolicySpec. + hostPID determines if the policy allows the use of HostPID in the pod spec. # noqa: E501 + + :param host_pid: The host_pid of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -481,22 +482,22 @@ def host_pid(self, host_pid): @property def host_ports(self): - """ - Gets the host_ports of this PolicyV1beta1PodSecurityPolicySpec. - hostPorts determines which host port ranges are allowed to be exposed. + """Gets the host_ports of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The host_ports of this PolicyV1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. # noqa: E501 + + :return: The host_ports of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[PolicyV1beta1HostPortRange] """ return self._host_ports @host_ports.setter def host_ports(self, host_ports): - """ - Sets the host_ports of this PolicyV1beta1PodSecurityPolicySpec. - hostPorts determines which host port ranges are allowed to be exposed. + """Sets the host_ports of this PolicyV1beta1PodSecurityPolicySpec. - :param host_ports: The host_ports of this PolicyV1beta1PodSecurityPolicySpec. + hostPorts determines which host port ranges are allowed to be exposed. # noqa: E501 + + :param host_ports: The host_ports of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[PolicyV1beta1HostPortRange] """ @@ -504,22 +505,22 @@ def host_ports(self, host_ports): @property def privileged(self): - """ - Gets the privileged of this PolicyV1beta1PodSecurityPolicySpec. - privileged determines if a pod can request to be run as privileged. + """Gets the privileged of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The privileged of this PolicyV1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. # noqa: E501 + + :return: The privileged of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): - """ - Sets the privileged of this PolicyV1beta1PodSecurityPolicySpec. - privileged determines if a pod can request to be run as privileged. + """Sets the privileged of this PolicyV1beta1PodSecurityPolicySpec. - :param privileged: The privileged of this PolicyV1beta1PodSecurityPolicySpec. + privileged determines if a pod can request to be run as privileged. # noqa: E501 + + :param privileged: The privileged of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -527,22 +528,22 @@ def privileged(self, privileged): @property def read_only_root_filesystem(self): - """ - Gets the read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + """Gets the read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. + readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. # noqa: E501 + + :return: The read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: bool """ return self._read_only_root_filesystem @read_only_root_filesystem.setter def read_only_root_filesystem(self, read_only_root_filesystem): - """ - Sets the read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + """Sets the read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. + + readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. # noqa: E501 - :param read_only_root_filesystem: The read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. + :param read_only_root_filesystem: The read_only_root_filesystem of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: bool """ @@ -550,22 +551,22 @@ def read_only_root_filesystem(self, read_only_root_filesystem): @property def required_drop_capabilities(self): - """ - Gets the required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + """Gets the required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. # noqa: E501 - :return: The required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + :return: The required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._required_drop_capabilities @required_drop_capabilities.setter def required_drop_capabilities(self, required_drop_capabilities): - """ - Sets the required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + """Sets the required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + + requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. # noqa: E501 - :param required_drop_capabilities: The required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. + :param required_drop_capabilities: The required_drop_capabilities of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ @@ -573,22 +574,20 @@ def required_drop_capabilities(self, required_drop_capabilities): @property def run_as_group(self): - """ - Gets the run_as_group of this PolicyV1beta1PodSecurityPolicySpec. - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + """Gets the run_as_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + - :return: The run_as_group of this PolicyV1beta1PodSecurityPolicySpec. + :return: The run_as_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: PolicyV1beta1RunAsGroupStrategyOptions """ return self._run_as_group @run_as_group.setter def run_as_group(self, run_as_group): - """ - Sets the run_as_group of this PolicyV1beta1PodSecurityPolicySpec. - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + """Sets the run_as_group of this PolicyV1beta1PodSecurityPolicySpec. + - :param run_as_group: The run_as_group of this PolicyV1beta1PodSecurityPolicySpec. + :param run_as_group: The run_as_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1RunAsGroupStrategyOptions """ @@ -596,109 +595,122 @@ def run_as_group(self, run_as_group): @property def run_as_user(self): - """ - Gets the run_as_user of this PolicyV1beta1PodSecurityPolicySpec. - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + """Gets the run_as_user of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + - :return: The run_as_user of this PolicyV1beta1PodSecurityPolicySpec. + :return: The run_as_user of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: PolicyV1beta1RunAsUserStrategyOptions """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): - """ - Sets the run_as_user of this PolicyV1beta1PodSecurityPolicySpec. - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + """Sets the run_as_user of this PolicyV1beta1PodSecurityPolicySpec. + - :param run_as_user: The run_as_user of this PolicyV1beta1PodSecurityPolicySpec. + :param run_as_user: The run_as_user of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1RunAsUserStrategyOptions """ if run_as_user is None: - raise ValueError("Invalid value for `run_as_user`, must not be `None`") + raise ValueError("Invalid value for `run_as_user`, must not be `None`") # noqa: E501 self._run_as_user = run_as_user @property - def se_linux(self): + def runtime_class(self): + """Gets the runtime_class of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + + :return: The runtime_class of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + :rtype: PolicyV1beta1RuntimeClassStrategyOptions """ - Gets the se_linux of this PolicyV1beta1PodSecurityPolicySpec. - seLinux is the strategy that will dictate the allowable labels that may be set. + return self._runtime_class - :return: The se_linux of this PolicyV1beta1PodSecurityPolicySpec. + @runtime_class.setter + def runtime_class(self, runtime_class): + """Sets the runtime_class of this PolicyV1beta1PodSecurityPolicySpec. + + + :param runtime_class: The runtime_class of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + :type: PolicyV1beta1RuntimeClassStrategyOptions + """ + + self._runtime_class = runtime_class + + @property + def se_linux(self): + """Gets the se_linux of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + + :return: The se_linux of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: PolicyV1beta1SELinuxStrategyOptions """ return self._se_linux @se_linux.setter def se_linux(self, se_linux): - """ - Sets the se_linux of this PolicyV1beta1PodSecurityPolicySpec. - seLinux is the strategy that will dictate the allowable labels that may be set. + """Sets the se_linux of this PolicyV1beta1PodSecurityPolicySpec. - :param se_linux: The se_linux of this PolicyV1beta1PodSecurityPolicySpec. + + :param se_linux: The se_linux of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1SELinuxStrategyOptions """ if se_linux is None: - raise ValueError("Invalid value for `se_linux`, must not be `None`") + raise ValueError("Invalid value for `se_linux`, must not be `None`") # noqa: E501 self._se_linux = se_linux @property def supplemental_groups(self): - """ - Gets the supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + """Gets the supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 - :return: The supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. + + :return: The supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: PolicyV1beta1SupplementalGroupsStrategyOptions """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): - """ - Sets the supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + """Sets the supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. + - :param supplemental_groups: The supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. + :param supplemental_groups: The supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1SupplementalGroupsStrategyOptions """ if supplemental_groups is None: - raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") + raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") # noqa: E501 self._supplemental_groups = supplemental_groups @property def volumes(self): - """ - Gets the volumes of this PolicyV1beta1PodSecurityPolicySpec. - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """Gets the volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 + + volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. # noqa: E501 - :return: The volumes of this PolicyV1beta1PodSecurityPolicySpec. + :return: The volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :rtype: list[str] """ return self._volumes @volumes.setter def volumes(self, volumes): - """ - Sets the volumes of this PolicyV1beta1PodSecurityPolicySpec. - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """Sets the volumes of this PolicyV1beta1PodSecurityPolicySpec. + + volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. # noqa: E501 - :param volumes: The volumes of this PolicyV1beta1PodSecurityPolicySpec. + :param volumes: The volumes of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: list[str] """ self._volumes = volumes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -719,28 +731,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1PodSecurityPolicySpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py b/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py index 4ac95ff955..10fdafa096 100644 --- a/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1RunAsGroupStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[PolicyV1beta1IDRange]', 'rule': 'str' } @@ -40,37 +40,35 @@ class PolicyV1beta1RunAsGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - PolicyV1beta1RunAsGroupStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """PolicyV1beta1RunAsGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges self.rule = rule @property def ranges(self): - """ - Gets the ranges of this PolicyV1beta1RunAsGroupStrategyOptions. - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this PolicyV1beta1RunAsGroupStrategyOptions. + :return: The ranges of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 :rtype: list[PolicyV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this PolicyV1beta1RunAsGroupStrategyOptions. - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this PolicyV1beta1RunAsGroupStrategyOptions. - :param ranges: The ranges of this PolicyV1beta1RunAsGroupStrategyOptions. + ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: list[PolicyV1beta1IDRange] """ @@ -78,36 +76,34 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this PolicyV1beta1RunAsGroupStrategyOptions. - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + """Gets the rule of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable RunAsGroup values that may be set. # noqa: E501 - :return: The rule of this PolicyV1beta1RunAsGroupStrategyOptions. + :return: The rule of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this PolicyV1beta1RunAsGroupStrategyOptions. - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + """Sets the rule of this PolicyV1beta1RunAsGroupStrategyOptions. + + rule is the strategy that will dictate the allowable RunAsGroup values that may be set. # noqa: E501 - :param rule: The rule of this PolicyV1beta1RunAsGroupStrategyOptions. + :param rule: The rule of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1RunAsGroupStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py index 1137eedb3f..2ca6edc71b 100644 --- a/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1RunAsUserStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[PolicyV1beta1IDRange]', 'rule': 'str' } @@ -40,37 +40,35 @@ class PolicyV1beta1RunAsUserStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - PolicyV1beta1RunAsUserStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """PolicyV1beta1RunAsUserStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges self.rule = rule @property def ranges(self): - """ - Gets the ranges of this PolicyV1beta1RunAsUserStrategyOptions. - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this PolicyV1beta1RunAsUserStrategyOptions. + :return: The ranges of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 :rtype: list[PolicyV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this PolicyV1beta1RunAsUserStrategyOptions. - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this PolicyV1beta1RunAsUserStrategyOptions. - :param ranges: The ranges of this PolicyV1beta1RunAsUserStrategyOptions. + ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: list[PolicyV1beta1IDRange] """ @@ -78,36 +76,34 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this PolicyV1beta1RunAsUserStrategyOptions. - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + """Gets the rule of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable RunAsUser values that may be set. # noqa: E501 - :return: The rule of this PolicyV1beta1RunAsUserStrategyOptions. + :return: The rule of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this PolicyV1beta1RunAsUserStrategyOptions. - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + """Sets the rule of this PolicyV1beta1RunAsUserStrategyOptions. + + rule is the strategy that will dictate the allowable RunAsUser values that may be set. # noqa: E501 - :param rule: The rule of this PolicyV1beta1RunAsUserStrategyOptions. + :param rule: The rule of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1RunAsUserStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py b/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py new file mode 100644 index 0000000000..752745fe86 --- /dev/null +++ b/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PolicyV1beta1RuntimeClassStrategyOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'allowed_runtime_class_names': 'list[str]', + 'default_runtime_class_name': 'str' + } + + attribute_map = { + 'allowed_runtime_class_names': 'allowedRuntimeClassNames', + 'default_runtime_class_name': 'defaultRuntimeClassName' + } + + def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None): # noqa: E501 + """PolicyV1beta1RuntimeClassStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + + self._allowed_runtime_class_names = None + self._default_runtime_class_name = None + self.discriminator = None + + self.allowed_runtime_class_names = allowed_runtime_class_names + if default_runtime_class_name is not None: + self.default_runtime_class_name = default_runtime_class_name + + @property + def allowed_runtime_class_names(self): + """Gets the allowed_runtime_class_names of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + + allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. # noqa: E501 + + :return: The allowed_runtime_class_names of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :rtype: list[str] + """ + return self._allowed_runtime_class_names + + @allowed_runtime_class_names.setter + def allowed_runtime_class_names(self, allowed_runtime_class_names): + """Sets the allowed_runtime_class_names of this PolicyV1beta1RuntimeClassStrategyOptions. + + allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. # noqa: E501 + + :param allowed_runtime_class_names: The allowed_runtime_class_names of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :type: list[str] + """ + if allowed_runtime_class_names is None: + raise ValueError("Invalid value for `allowed_runtime_class_names`, must not be `None`") # noqa: E501 + + self._allowed_runtime_class_names = allowed_runtime_class_names + + @property + def default_runtime_class_name(self): + """Gets the default_runtime_class_name of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + + defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. # noqa: E501 + + :return: The default_runtime_class_name of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :rtype: str + """ + return self._default_runtime_class_name + + @default_runtime_class_name.setter + def default_runtime_class_name(self, default_runtime_class_name): + """Sets the default_runtime_class_name of this PolicyV1beta1RuntimeClassStrategyOptions. + + defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. # noqa: E501 + + :param default_runtime_class_name: The default_runtime_class_name of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 + :type: str + """ + + self._default_runtime_class_name = default_runtime_class_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyV1beta1RuntimeClassStrategyOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py index dac36c294b..ea66aaf1e8 100644 --- a/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1SELinuxStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rule': 'str', 'se_linux_options': 'V1SELinuxOptions' } @@ -40,10 +40,8 @@ class PolicyV1beta1SELinuxStrategyOptions(object): 'se_linux_options': 'seLinuxOptions' } - def __init__(self, rule=None, se_linux_options=None): - """ - PolicyV1beta1SELinuxStrategyOptions - a model defined in Swagger - """ + def __init__(self, rule=None, se_linux_options=None): # noqa: E501 + """PolicyV1beta1SELinuxStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._rule = None self._se_linux_options = None @@ -51,63 +49,59 @@ def __init__(self, rule=None, se_linux_options=None): self.rule = rule if se_linux_options is not None: - self.se_linux_options = se_linux_options + self.se_linux_options = se_linux_options @property def rule(self): - """ - Gets the rule of this PolicyV1beta1SELinuxStrategyOptions. - rule is the strategy that will dictate the allowable labels that may be set. + """Gets the rule of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate the allowable labels that may be set. # noqa: E501 - :return: The rule of this PolicyV1beta1SELinuxStrategyOptions. + :return: The rule of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this PolicyV1beta1SELinuxStrategyOptions. - rule is the strategy that will dictate the allowable labels that may be set. + """Sets the rule of this PolicyV1beta1SELinuxStrategyOptions. - :param rule: The rule of this PolicyV1beta1SELinuxStrategyOptions. + rule is the strategy that will dictate the allowable labels that may be set. # noqa: E501 + + :param rule: The rule of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 :type: str """ if rule is None: - raise ValueError("Invalid value for `rule`, must not be `None`") + raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @property def se_linux_options(self): - """ - Gets the se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Gets the se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 + - :return: The se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. + :return: The se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): - """ - Sets the se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Sets the se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. + - :param se_linux_options: The se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. + :param se_linux_options: The se_linux_options of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1SELinuxStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py index 95a2bc47ec..fad024c9d6 100644 --- a/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class PolicyV1beta1SupplementalGroupsStrategyOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ranges': 'list[PolicyV1beta1IDRange]', 'rule': 'str' } @@ -40,38 +40,36 @@ class PolicyV1beta1SupplementalGroupsStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): - """ - PolicyV1beta1SupplementalGroupsStrategyOptions - a model defined in Swagger - """ + def __init__(self, ranges=None, rule=None): # noqa: E501 + """PolicyV1beta1SupplementalGroupsStrategyOptions - a model defined in OpenAPI""" # noqa: E501 self._ranges = None self._rule = None self.discriminator = None if ranges is not None: - self.ranges = ranges + self.ranges = ranges if rule is not None: - self.rule = rule + self.rule = rule @property def ranges(self): - """ - Gets the ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + """Gets the ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 + + ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 - :return: The ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. + :return: The ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :rtype: list[PolicyV1beta1IDRange] """ return self._ranges @ranges.setter def ranges(self, ranges): - """ - Sets the ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + """Sets the ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. - :param ranges: The ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. + ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. # noqa: E501 + + :param ranges: The ranges of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :type: list[PolicyV1beta1IDRange] """ @@ -79,34 +77,32 @@ def ranges(self, ranges): @property def rule(self): - """ - Gets the rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + """Gets the rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 + + rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. # noqa: E501 - :return: The rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. + :return: The rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :rtype: str """ return self._rule @rule.setter def rule(self, rule): - """ - Sets the rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + """Sets the rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. + + rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. # noqa: E501 - :param rule: The rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. + :param rule: The rule of this PolicyV1beta1SupplementalGroupsStrategyOptions. # noqa: E501 :type: str """ self._rule = rule def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PolicyV1beta1SupplementalGroupsStrategyOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/runtime_raw_extension.py b/kubernetes/client/models/runtime_raw_extension.py index a4f4d24b88..be196ecf02 100644 --- a/kubernetes/client/models/runtime_raw_extension.py +++ b/kubernetes/client/models/runtime_raw_extension.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class RuntimeRawExtension(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'raw': 'str' } @@ -38,10 +38,8 @@ class RuntimeRawExtension(object): 'raw': 'Raw' } - def __init__(self, raw=None): - """ - RuntimeRawExtension - a model defined in Swagger - """ + def __init__(self, raw=None): # noqa: E501 + """RuntimeRawExtension - a model defined in OpenAPI""" # noqa: E501 self._raw = None self.discriminator = None @@ -50,38 +48,36 @@ def __init__(self, raw=None): @property def raw(self): - """ - Gets the raw of this RuntimeRawExtension. - Raw is the underlying serialization of this object. + """Gets the raw of this RuntimeRawExtension. # noqa: E501 + + Raw is the underlying serialization of this object. # noqa: E501 - :return: The raw of this RuntimeRawExtension. + :return: The raw of this RuntimeRawExtension. # noqa: E501 :rtype: str """ return self._raw @raw.setter def raw(self, raw): - """ - Sets the raw of this RuntimeRawExtension. - Raw is the underlying serialization of this object. + """Sets the raw of this RuntimeRawExtension. + + Raw is the underlying serialization of this object. # noqa: E501 - :param raw: The raw of this RuntimeRawExtension. + :param raw: The raw of this RuntimeRawExtension. # noqa: E501 :type: str """ if raw is None: - raise ValueError("Invalid value for `raw`, must not be `None`") - if raw is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', raw): - raise ValueError("Invalid value for `raw`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + raise ValueError("Invalid value for `raw`, must not be `None`") # noqa: E501 + if raw is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', raw): # noqa: E501 + raise ValueError(r"Invalid value for `raw`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._raw = raw def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -102,28 +98,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RuntimeRawExtension): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py index c5a9bed94e..bf315341f5 100644 --- a/kubernetes/client/models/v1_affinity.py +++ b/kubernetes/client/models/v1_affinity.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Affinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'node_affinity': 'V1NodeAffinity', 'pod_affinity': 'V1PodAffinity', 'pod_anti_affinity': 'V1PodAntiAffinity' @@ -42,10 +42,8 @@ class V1Affinity(object): 'pod_anti_affinity': 'podAntiAffinity' } - def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): - """ - V1Affinity - a model defined in Swagger - """ + def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): # noqa: E501 + """V1Affinity - a model defined in OpenAPI""" # noqa: E501 self._node_affinity = None self._pod_affinity = None @@ -53,30 +51,28 @@ def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None self.discriminator = None if node_affinity is not None: - self.node_affinity = node_affinity + self.node_affinity = node_affinity if pod_affinity is not None: - self.pod_affinity = pod_affinity + self.pod_affinity = pod_affinity if pod_anti_affinity is not None: - self.pod_anti_affinity = pod_anti_affinity + self.pod_anti_affinity = pod_anti_affinity @property def node_affinity(self): - """ - Gets the node_affinity of this V1Affinity. - Describes node affinity scheduling rules for the pod. + """Gets the node_affinity of this V1Affinity. # noqa: E501 - :return: The node_affinity of this V1Affinity. + + :return: The node_affinity of this V1Affinity. # noqa: E501 :rtype: V1NodeAffinity """ return self._node_affinity @node_affinity.setter def node_affinity(self, node_affinity): - """ - Sets the node_affinity of this V1Affinity. - Describes node affinity scheduling rules for the pod. + """Sets the node_affinity of this V1Affinity. - :param node_affinity: The node_affinity of this V1Affinity. + + :param node_affinity: The node_affinity of this V1Affinity. # noqa: E501 :type: V1NodeAffinity """ @@ -84,22 +80,20 @@ def node_affinity(self, node_affinity): @property def pod_affinity(self): - """ - Gets the pod_affinity of this V1Affinity. - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + """Gets the pod_affinity of this V1Affinity. # noqa: E501 - :return: The pod_affinity of this V1Affinity. + + :return: The pod_affinity of this V1Affinity. # noqa: E501 :rtype: V1PodAffinity """ return self._pod_affinity @pod_affinity.setter def pod_affinity(self, pod_affinity): - """ - Sets the pod_affinity of this V1Affinity. - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + """Sets the pod_affinity of this V1Affinity. + - :param pod_affinity: The pod_affinity of this V1Affinity. + :param pod_affinity: The pod_affinity of this V1Affinity. # noqa: E501 :type: V1PodAffinity """ @@ -107,34 +101,30 @@ def pod_affinity(self, pod_affinity): @property def pod_anti_affinity(self): - """ - Gets the pod_anti_affinity of this V1Affinity. - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + """Gets the pod_anti_affinity of this V1Affinity. # noqa: E501 + - :return: The pod_anti_affinity of this V1Affinity. + :return: The pod_anti_affinity of this V1Affinity. # noqa: E501 :rtype: V1PodAntiAffinity """ return self._pod_anti_affinity @pod_anti_affinity.setter def pod_anti_affinity(self, pod_anti_affinity): - """ - Sets the pod_anti_affinity of this V1Affinity. - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + """Sets the pod_anti_affinity of this V1Affinity. + - :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. + :param pod_anti_affinity: The pod_anti_affinity of this V1Affinity. # noqa: E501 :type: V1PodAntiAffinity """ self._pod_anti_affinity = pod_anti_affinity def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +145,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Affinity): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_aggregation_rule.py b/kubernetes/client/models/v1_aggregation_rule.py index a1c304a6b5..f5fc488d3b 100644 --- a/kubernetes/client/models/v1_aggregation_rule.py +++ b/kubernetes/client/models/v1_aggregation_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AggregationRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cluster_role_selectors': 'list[V1LabelSelector]' } @@ -38,47 +38,43 @@ class V1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): - """ - V1AggregationRule - a model defined in Swagger - """ + def __init__(self, cluster_role_selectors=None): # noqa: E501 + """V1AggregationRule - a model defined in OpenAPI""" # noqa: E501 self._cluster_role_selectors = None self.discriminator = None if cluster_role_selectors is not None: - self.cluster_role_selectors = cluster_role_selectors + self.cluster_role_selectors = cluster_role_selectors @property def cluster_role_selectors(self): - """ - Gets the cluster_role_selectors of this V1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Gets the cluster_role_selectors of this V1AggregationRule. # noqa: E501 + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :return: The cluster_role_selectors of this V1AggregationRule. + :return: The cluster_role_selectors of this V1AggregationRule. # noqa: E501 :rtype: list[V1LabelSelector] """ return self._cluster_role_selectors @cluster_role_selectors.setter def cluster_role_selectors(self, cluster_role_selectors): - """ - Sets the cluster_role_selectors of this V1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Sets the cluster_role_selectors of this V1AggregationRule. + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :param cluster_role_selectors: The cluster_role_selectors of this V1AggregationRule. + :param cluster_role_selectors: The cluster_role_selectors of this V1AggregationRule. # noqa: E501 :type: list[V1LabelSelector] """ self._cluster_role_selectors = cluster_role_selectors def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AggregationRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_group.py b/kubernetes/client/models/v1_api_group.py index 7910c333f9..012c73b066 100644 --- a/kubernetes/client/models/v1_api_group.py +++ b/kubernetes/client/models/v1_api_group.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIGroup(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str', @@ -48,10 +48,8 @@ class V1APIGroup(object): 'versions': 'versions' } - def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): - """ - V1APIGroup - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): # noqa: E501 + """V1APIGroup - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -62,34 +60,34 @@ def __init__(self, api_version=None, kind=None, name=None, preferred_version=Non self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind self.name = name if preferred_version is not None: - self.preferred_version = preferred_version + self.preferred_version = preferred_version if server_address_by_client_cid_rs is not None: - self.server_address_by_client_cid_rs = server_address_by_client_cid_rs + self.server_address_by_client_cid_rs = server_address_by_client_cid_rs self.versions = versions @property def api_version(self): - """ - Gets the api_version of this V1APIGroup. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIGroup. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1APIGroup. + :return: The api_version of this V1APIGroup. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIGroup. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIGroup. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1APIGroup. + :param api_version: The api_version of this V1APIGroup. # noqa: E501 :type: str """ @@ -97,22 +95,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1APIGroup. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIGroup. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIGroup. + :return: The kind of this V1APIGroup. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIGroup. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIGroup. - :param kind: The kind of this V1APIGroup. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1APIGroup. # noqa: E501 :type: str """ @@ -120,47 +118,45 @@ def kind(self, kind): @property def name(self): - """ - Gets the name of this V1APIGroup. - name is the name of the group. + """Gets the name of this V1APIGroup. # noqa: E501 - :return: The name of this V1APIGroup. + name is the name of the group. # noqa: E501 + + :return: The name of this V1APIGroup. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1APIGroup. - name is the name of the group. + """Sets the name of this V1APIGroup. + + name is the name of the group. # noqa: E501 - :param name: The name of this V1APIGroup. + :param name: The name of this V1APIGroup. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def preferred_version(self): - """ - Gets the preferred_version of this V1APIGroup. - preferredVersion is the version preferred by the API server, which probably is the storage version. + """Gets the preferred_version of this V1APIGroup. # noqa: E501 + - :return: The preferred_version of this V1APIGroup. + :return: The preferred_version of this V1APIGroup. # noqa: E501 :rtype: V1GroupVersionForDiscovery """ return self._preferred_version @preferred_version.setter def preferred_version(self, preferred_version): - """ - Sets the preferred_version of this V1APIGroup. - preferredVersion is the version preferred by the API server, which probably is the storage version. + """Sets the preferred_version of this V1APIGroup. + - :param preferred_version: The preferred_version of this V1APIGroup. + :param preferred_version: The preferred_version of this V1APIGroup. # noqa: E501 :type: V1GroupVersionForDiscovery """ @@ -168,22 +164,22 @@ def preferred_version(self, preferred_version): @property def server_address_by_client_cid_rs(self): - """ - Gets the server_address_by_client_cid_rs of this V1APIGroup. - a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + """Gets the server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501 - :return: The server_address_by_client_cid_rs of this V1APIGroup. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501 + + :return: The server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501 :rtype: list[V1ServerAddressByClientCIDR] """ return self._server_address_by_client_cid_rs @server_address_by_client_cid_rs.setter def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): - """ - Sets the server_address_by_client_cid_rs of this V1APIGroup. - a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + """Sets the server_address_by_client_cid_rs of this V1APIGroup. - :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501 + + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIGroup. # noqa: E501 :type: list[V1ServerAddressByClientCIDR] """ @@ -191,36 +187,34 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): @property def versions(self): - """ - Gets the versions of this V1APIGroup. - versions are the versions supported in this group. + """Gets the versions of this V1APIGroup. # noqa: E501 + + versions are the versions supported in this group. # noqa: E501 - :return: The versions of this V1APIGroup. + :return: The versions of this V1APIGroup. # noqa: E501 :rtype: list[V1GroupVersionForDiscovery] """ return self._versions @versions.setter def versions(self, versions): - """ - Sets the versions of this V1APIGroup. - versions are the versions supported in this group. + """Sets the versions of this V1APIGroup. + + versions are the versions supported in this group. # noqa: E501 - :param versions: The versions of this V1APIGroup. + :param versions: The versions of this V1APIGroup. # noqa: E501 :type: list[V1GroupVersionForDiscovery] """ if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") + raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 self._versions = versions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +235,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIGroup): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py index 8f618146be..940b0aeaa1 100644 --- a/kubernetes/client/models/v1_api_group_list.py +++ b/kubernetes/client/models/v1_api_group_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIGroupList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'groups': 'list[V1APIGroup]', 'kind': 'str' @@ -42,10 +42,8 @@ class V1APIGroupList(object): 'kind': 'kind' } - def __init__(self, api_version=None, groups=None, kind=None): - """ - V1APIGroupList - a model defined in Swagger - """ + def __init__(self, api_version=None, groups=None, kind=None): # noqa: E501 + """V1APIGroupList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._groups = None @@ -53,29 +51,29 @@ def __init__(self, api_version=None, groups=None, kind=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.groups = groups if kind is not None: - self.kind = kind + self.kind = kind @property def api_version(self): - """ - Gets the api_version of this V1APIGroupList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIGroupList. # noqa: E501 - :return: The api_version of this V1APIGroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1APIGroupList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIGroupList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIGroupList. - :param api_version: The api_version of this V1APIGroupList. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1APIGroupList. # noqa: E501 :type: str """ @@ -83,59 +81,57 @@ def api_version(self, api_version): @property def groups(self): - """ - Gets the groups of this V1APIGroupList. - groups is a list of APIGroup. + """Gets the groups of this V1APIGroupList. # noqa: E501 - :return: The groups of this V1APIGroupList. + groups is a list of APIGroup. # noqa: E501 + + :return: The groups of this V1APIGroupList. # noqa: E501 :rtype: list[V1APIGroup] """ return self._groups @groups.setter def groups(self, groups): - """ - Sets the groups of this V1APIGroupList. - groups is a list of APIGroup. + """Sets the groups of this V1APIGroupList. + + groups is a list of APIGroup. # noqa: E501 - :param groups: The groups of this V1APIGroupList. + :param groups: The groups of this V1APIGroupList. # noqa: E501 :type: list[V1APIGroup] """ if groups is None: - raise ValueError("Invalid value for `groups`, must not be `None`") + raise ValueError("Invalid value for `groups`, must not be `None`") # noqa: E501 self._groups = groups @property def kind(self): - """ - Gets the kind of this V1APIGroupList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIGroupList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIGroupList. + :return: The kind of this V1APIGroupList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIGroupList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIGroupList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1APIGroupList. + :param kind: The kind of this V1APIGroupList. # noqa: E501 :type: str """ self._kind = kind def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIGroupList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py index 626459484c..bc7fdcba91 100644 --- a/kubernetes/client/models/v1_api_resource.py +++ b/kubernetes/client/models/v1_api_resource.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIResource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'categories': 'list[str]', 'group': 'str', 'kind': 'str', @@ -56,10 +56,8 @@ class V1APIResource(object): 'version': 'version' } - def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): - """ - V1APIResource - a model defined in Swagger - """ + def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): # noqa: E501 + """V1APIResource - a model defined in OpenAPI""" # noqa: E501 self._categories = None self._group = None @@ -74,39 +72,39 @@ def __init__(self, categories=None, group=None, kind=None, name=None, namespaced self.discriminator = None if categories is not None: - self.categories = categories + self.categories = categories if group is not None: - self.group = group + self.group = group self.kind = kind self.name = name self.namespaced = namespaced if short_names is not None: - self.short_names = short_names + self.short_names = short_names self.singular_name = singular_name if storage_version_hash is not None: - self.storage_version_hash = storage_version_hash + self.storage_version_hash = storage_version_hash self.verbs = verbs if version is not None: - self.version = version + self.version = version @property def categories(self): - """ - Gets the categories of this V1APIResource. - categories is a list of the grouped resources this resource belongs to (e.g. 'all') + """Gets the categories of this V1APIResource. # noqa: E501 - :return: The categories of this V1APIResource. + categories is a list of the grouped resources this resource belongs to (e.g. 'all') # noqa: E501 + + :return: The categories of this V1APIResource. # noqa: E501 :rtype: list[str] """ return self._categories @categories.setter def categories(self, categories): - """ - Sets the categories of this V1APIResource. - categories is a list of the grouped resources this resource belongs to (e.g. 'all') + """Sets the categories of this V1APIResource. - :param categories: The categories of this V1APIResource. + categories is a list of the grouped resources this resource belongs to (e.g. 'all') # noqa: E501 + + :param categories: The categories of this V1APIResource. # noqa: E501 :type: list[str] """ @@ -114,22 +112,22 @@ def categories(self, categories): @property def group(self): - """ - Gets the group of this V1APIResource. - group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". + """Gets the group of this V1APIResource. # noqa: E501 - :return: The group of this V1APIResource. + group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". # noqa: E501 + + :return: The group of this V1APIResource. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1APIResource. - group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". + """Sets the group of this V1APIResource. + + group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". # noqa: E501 - :param group: The group of this V1APIResource. + :param group: The group of this V1APIResource. # noqa: E501 :type: str """ @@ -137,97 +135,97 @@ def group(self, group): @property def kind(self): - """ - Gets the kind of this V1APIResource. - kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + """Gets the kind of this V1APIResource. # noqa: E501 + + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') # noqa: E501 - :return: The kind of this V1APIResource. + :return: The kind of this V1APIResource. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIResource. - kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + """Sets the kind of this V1APIResource. + + kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') # noqa: E501 - :param kind: The kind of this V1APIResource. + :param kind: The kind of this V1APIResource. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1APIResource. - name is the plural name of the resource. + """Gets the name of this V1APIResource. # noqa: E501 + + name is the plural name of the resource. # noqa: E501 - :return: The name of this V1APIResource. + :return: The name of this V1APIResource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1APIResource. - name is the plural name of the resource. + """Sets the name of this V1APIResource. - :param name: The name of this V1APIResource. + name is the plural name of the resource. # noqa: E501 + + :param name: The name of this V1APIResource. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespaced(self): - """ - Gets the namespaced of this V1APIResource. - namespaced indicates if a resource is namespaced or not. + """Gets the namespaced of this V1APIResource. # noqa: E501 - :return: The namespaced of this V1APIResource. + namespaced indicates if a resource is namespaced or not. # noqa: E501 + + :return: The namespaced of this V1APIResource. # noqa: E501 :rtype: bool """ return self._namespaced @namespaced.setter def namespaced(self, namespaced): - """ - Sets the namespaced of this V1APIResource. - namespaced indicates if a resource is namespaced or not. + """Sets the namespaced of this V1APIResource. - :param namespaced: The namespaced of this V1APIResource. + namespaced indicates if a resource is namespaced or not. # noqa: E501 + + :param namespaced: The namespaced of this V1APIResource. # noqa: E501 :type: bool """ if namespaced is None: - raise ValueError("Invalid value for `namespaced`, must not be `None`") + raise ValueError("Invalid value for `namespaced`, must not be `None`") # noqa: E501 self._namespaced = namespaced @property def short_names(self): - """ - Gets the short_names of this V1APIResource. - shortNames is a list of suggested short names of the resource. + """Gets the short_names of this V1APIResource. # noqa: E501 + + shortNames is a list of suggested short names of the resource. # noqa: E501 - :return: The short_names of this V1APIResource. + :return: The short_names of this V1APIResource. # noqa: E501 :rtype: list[str] """ return self._short_names @short_names.setter def short_names(self, short_names): - """ - Sets the short_names of this V1APIResource. - shortNames is a list of suggested short names of the resource. + """Sets the short_names of this V1APIResource. + + shortNames is a list of suggested short names of the resource. # noqa: E501 - :param short_names: The short_names of this V1APIResource. + :param short_names: The short_names of this V1APIResource. # noqa: E501 :type: list[str] """ @@ -235,47 +233,47 @@ def short_names(self, short_names): @property def singular_name(self): - """ - Gets the singular_name of this V1APIResource. - singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + """Gets the singular_name of this V1APIResource. # noqa: E501 + + singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. # noqa: E501 - :return: The singular_name of this V1APIResource. + :return: The singular_name of this V1APIResource. # noqa: E501 :rtype: str """ return self._singular_name @singular_name.setter def singular_name(self, singular_name): - """ - Sets the singular_name of this V1APIResource. - singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + """Sets the singular_name of this V1APIResource. + + singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. # noqa: E501 - :param singular_name: The singular_name of this V1APIResource. + :param singular_name: The singular_name of this V1APIResource. # noqa: E501 :type: str """ if singular_name is None: - raise ValueError("Invalid value for `singular_name`, must not be `None`") + raise ValueError("Invalid value for `singular_name`, must not be `None`") # noqa: E501 self._singular_name = singular_name @property def storage_version_hash(self): - """ - Gets the storage_version_hash of this V1APIResource. - The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + """Gets the storage_version_hash of this V1APIResource. # noqa: E501 - :return: The storage_version_hash of this V1APIResource. + The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. # noqa: E501 + + :return: The storage_version_hash of this V1APIResource. # noqa: E501 :rtype: str """ return self._storage_version_hash @storage_version_hash.setter def storage_version_hash(self, storage_version_hash): - """ - Sets the storage_version_hash of this V1APIResource. - The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + """Sets the storage_version_hash of this V1APIResource. - :param storage_version_hash: The storage_version_hash of this V1APIResource. + The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. # noqa: E501 + + :param storage_version_hash: The storage_version_hash of this V1APIResource. # noqa: E501 :type: str """ @@ -283,59 +281,57 @@ def storage_version_hash(self, storage_version_hash): @property def verbs(self): - """ - Gets the verbs of this V1APIResource. - verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + """Gets the verbs of this V1APIResource. # noqa: E501 - :return: The verbs of this V1APIResource. + verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) # noqa: E501 + + :return: The verbs of this V1APIResource. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1APIResource. - verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + """Sets the verbs of this V1APIResource. + + verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) # noqa: E501 - :param verbs: The verbs of this V1APIResource. + :param verbs: The verbs of this V1APIResource. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @property def version(self): - """ - Gets the version of this V1APIResource. - version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". + """Gets the version of this V1APIResource. # noqa: E501 + + version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". # noqa: E501 - :return: The version of this V1APIResource. + :return: The version of this V1APIResource. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1APIResource. - version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". + """Sets the version of this V1APIResource. + + version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". # noqa: E501 - :param version: The version of this V1APIResource. + :param version: The version of this V1APIResource. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -356,28 +352,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIResource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py index 79d8333867..c099faf69b 100644 --- a/kubernetes/client/models/v1_api_resource_list.py +++ b/kubernetes/client/models/v1_api_resource_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIResourceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'group_version': 'str', 'kind': 'str', @@ -44,10 +44,8 @@ class V1APIResourceList(object): 'resources': 'resources' } - def __init__(self, api_version=None, group_version=None, kind=None, resources=None): - """ - V1APIResourceList - a model defined in Swagger - """ + def __init__(self, api_version=None, group_version=None, kind=None, resources=None): # noqa: E501 + """V1APIResourceList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._group_version = None @@ -56,30 +54,30 @@ def __init__(self, api_version=None, group_version=None, kind=None, resources=No self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.group_version = group_version if kind is not None: - self.kind = kind + self.kind = kind self.resources = resources @property def api_version(self): - """ - Gets the api_version of this V1APIResourceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIResourceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1APIResourceList. + :return: The api_version of this V1APIResourceList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIResourceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIResourceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1APIResourceList. + :param api_version: The api_version of this V1APIResourceList. # noqa: E501 :type: str """ @@ -87,47 +85,47 @@ def api_version(self, api_version): @property def group_version(self): - """ - Gets the group_version of this V1APIResourceList. - groupVersion is the group and version this APIResourceList is for. + """Gets the group_version of this V1APIResourceList. # noqa: E501 + + groupVersion is the group and version this APIResourceList is for. # noqa: E501 - :return: The group_version of this V1APIResourceList. + :return: The group_version of this V1APIResourceList. # noqa: E501 :rtype: str """ return self._group_version @group_version.setter def group_version(self, group_version): - """ - Sets the group_version of this V1APIResourceList. - groupVersion is the group and version this APIResourceList is for. + """Sets the group_version of this V1APIResourceList. + + groupVersion is the group and version this APIResourceList is for. # noqa: E501 - :param group_version: The group_version of this V1APIResourceList. + :param group_version: The group_version of this V1APIResourceList. # noqa: E501 :type: str """ if group_version is None: - raise ValueError("Invalid value for `group_version`, must not be `None`") + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 self._group_version = group_version @property def kind(self): - """ - Gets the kind of this V1APIResourceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIResourceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIResourceList. + :return: The kind of this V1APIResourceList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIResourceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIResourceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1APIResourceList. + :param kind: The kind of this V1APIResourceList. # noqa: E501 :type: str """ @@ -135,36 +133,34 @@ def kind(self, kind): @property def resources(self): - """ - Gets the resources of this V1APIResourceList. - resources contains the name of the resources and if they are namespaced. + """Gets the resources of this V1APIResourceList. # noqa: E501 + + resources contains the name of the resources and if they are namespaced. # noqa: E501 - :return: The resources of this V1APIResourceList. + :return: The resources of this V1APIResourceList. # noqa: E501 :rtype: list[V1APIResource] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1APIResourceList. - resources contains the name of the resources and if they are namespaced. + """Sets the resources of this V1APIResourceList. + + resources contains the name of the resources and if they are namespaced. # noqa: E501 - :param resources: The resources of this V1APIResourceList. + :param resources: The resources of this V1APIResourceList. # noqa: E501 :type: list[V1APIResource] """ if resources is None: - raise ValueError("Invalid value for `resources`, must not be `None`") + raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 self._resources = resources def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIResourceList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_service.py b/kubernetes/client/models/v1_api_service.py index 980d8c96f9..1235100b9b 100644 --- a/kubernetes/client/models/v1_api_service.py +++ b/kubernetes/client/models/v1_api_service.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIService(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1APIService(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1APIService - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1APIService - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1APIService. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIService. # noqa: E501 - :return: The api_version of this V1APIService. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1APIService. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIService. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIService. - :param api_version: The api_version of this V1APIService. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1APIService. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1APIService. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIService. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIService. + :return: The kind of this V1APIService. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIService. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIService. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1APIService. + :param kind: The kind of this V1APIService. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1APIService. + """Gets the metadata of this V1APIService. # noqa: E501 + - :return: The metadata of this V1APIService. + :return: The metadata of this V1APIService. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1APIService. + """Sets the metadata of this V1APIService. + - :param metadata: The metadata of this V1APIService. + :param metadata: The metadata of this V1APIService. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1APIService. - Spec contains information for locating and communicating with a server + """Gets the spec of this V1APIService. # noqa: E501 + - :return: The spec of this V1APIService. + :return: The spec of this V1APIService. # noqa: E501 :rtype: V1APIServiceSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1APIService. - Spec contains information for locating and communicating with a server + """Sets the spec of this V1APIService. - :param spec: The spec of this V1APIService. + + :param spec: The spec of this V1APIService. # noqa: E501 :type: V1APIServiceSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1APIService. - Status contains derived information about an API server + """Gets the status of this V1APIService. # noqa: E501 - :return: The status of this V1APIService. + + :return: The status of this V1APIService. # noqa: E501 :rtype: V1APIServiceStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1APIService. - Status contains derived information about an API server + """Sets the status of this V1APIService. - :param status: The status of this V1APIService. + + :param status: The status of this V1APIService. # noqa: E501 :type: V1APIServiceStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIService): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_service_condition.py b/kubernetes/client/models/v1_api_service_condition.py index be61cc8d79..c649425fb5 100644 --- a/kubernetes/client/models/v1_api_service_condition.py +++ b/kubernetes/client/models/v1_api_service_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIServiceCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1APIServiceCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1APIServiceCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1APIServiceCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1APIServiceCondition. # noqa: E501 - :return: The last_transition_time of this V1APIServiceCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1APIServiceCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1APIServiceCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1APIServiceCondition. - :param last_transition_time: The last_transition_time of this V1APIServiceCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1APIServiceCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1APIServiceCondition. - Human-readable message indicating details about last transition. + """Gets the message of this V1APIServiceCondition. # noqa: E501 + + Human-readable message indicating details about last transition. # noqa: E501 - :return: The message of this V1APIServiceCondition. + :return: The message of this V1APIServiceCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1APIServiceCondition. - Human-readable message indicating details about last transition. + """Sets the message of this V1APIServiceCondition. + + Human-readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1APIServiceCondition. + :param message: The message of this V1APIServiceCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1APIServiceCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Gets the reason of this V1APIServiceCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1APIServiceCondition. + :return: The reason of this V1APIServiceCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1APIServiceCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Sets the reason of this V1APIServiceCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1APIServiceCondition. + :param reason: The reason of this V1APIServiceCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1APIServiceCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Gets the status of this V1APIServiceCondition. # noqa: E501 + + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 - :return: The status of this V1APIServiceCondition. + :return: The status of this V1APIServiceCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1APIServiceCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Sets the status of this V1APIServiceCondition. - :param status: The status of this V1APIServiceCondition. + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 + + :param status: The status of this V1APIServiceCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1APIServiceCondition. - Type is the type of the condition. + """Gets the type of this V1APIServiceCondition. # noqa: E501 - :return: The type of this V1APIServiceCondition. + Type is the type of the condition. # noqa: E501 + + :return: The type of this V1APIServiceCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1APIServiceCondition. - Type is the type of the condition. + """Sets the type of this V1APIServiceCondition. - :param type: The type of this V1APIServiceCondition. + Type is the type of the condition. # noqa: E501 + + :param type: The type of this V1APIServiceCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIServiceCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_service_list.py b/kubernetes/client/models/v1_api_service_list.py index ea7c9b16aa..9f89c8d5b6 100644 --- a/kubernetes/client/models/v1_api_service_list.py +++ b/kubernetes/client/models/v1_api_service_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIServiceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1APIService]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1APIServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1APIServiceList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1APIServiceList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1APIServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIServiceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1APIServiceList. + :return: The api_version of this V1APIServiceList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIServiceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1APIServiceList. + :param api_version: The api_version of this V1APIServiceList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1APIServiceList. + """Gets the items of this V1APIServiceList. # noqa: E501 + - :return: The items of this V1APIServiceList. + :return: The items of this V1APIServiceList. # noqa: E501 :rtype: list[V1APIService] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1APIServiceList. + """Sets the items of this V1APIServiceList. + - :param items: The items of this V1APIServiceList. + :param items: The items of this V1APIServiceList. # noqa: E501 :type: list[V1APIService] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1APIServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIServiceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIServiceList. + :return: The kind of this V1APIServiceList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIServiceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1APIServiceList. + :param kind: The kind of this V1APIServiceList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1APIServiceList. + """Gets the metadata of this V1APIServiceList. # noqa: E501 + - :return: The metadata of this V1APIServiceList. + :return: The metadata of this V1APIServiceList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1APIServiceList. + """Sets the metadata of this V1APIServiceList. + - :param metadata: The metadata of this V1APIServiceList. + :param metadata: The metadata of this V1APIServiceList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIServiceList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_service_spec.py b/kubernetes/client/models/v1_api_service_spec.py index 7e93dd67fa..74ac031b45 100644 --- a/kubernetes/client/models/v1_api_service_spec.py +++ b/kubernetes/client/models/v1_api_service_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIServiceSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ca_bundle': 'str', 'group': 'str', 'group_priority_minimum': 'int', @@ -50,10 +50,8 @@ class V1APIServiceSpec(object): 'version_priority': 'versionPriority' } - def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): - """ - V1APIServiceSpec - a model defined in Swagger - """ + def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): # noqa: E501 + """V1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501 self._ca_bundle = None self._group = None @@ -65,60 +63,60 @@ def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, inse self.discriminator = None if ca_bundle is not None: - self.ca_bundle = ca_bundle + self.ca_bundle = ca_bundle if group is not None: - self.group = group + self.group = group self.group_priority_minimum = group_priority_minimum if insecure_skip_tls_verify is not None: - self.insecure_skip_tls_verify = insecure_skip_tls_verify + self.insecure_skip_tls_verify = insecure_skip_tls_verify self.service = service if version is not None: - self.version = version + self.version = version self.version_priority = version_priority @property def ca_bundle(self): - """ - Gets the ca_bundle of this V1APIServiceSpec. - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + """Gets the ca_bundle of this V1APIServiceSpec. # noqa: E501 + + CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 - :return: The ca_bundle of this V1APIServiceSpec. + :return: The ca_bundle of this V1APIServiceSpec. # noqa: E501 :rtype: str """ return self._ca_bundle @ca_bundle.setter def ca_bundle(self, ca_bundle): - """ - Sets the ca_bundle of this V1APIServiceSpec. - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + """Sets the ca_bundle of this V1APIServiceSpec. - :param ca_bundle: The ca_bundle of this V1APIServiceSpec. + CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :param ca_bundle: The ca_bundle of this V1APIServiceSpec. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): - raise ValueError("Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @property def group(self): - """ - Gets the group of this V1APIServiceSpec. - Group is the API group name this server hosts + """Gets the group of this V1APIServiceSpec. # noqa: E501 - :return: The group of this V1APIServiceSpec. + Group is the API group name this server hosts # noqa: E501 + + :return: The group of this V1APIServiceSpec. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1APIServiceSpec. - Group is the API group name this server hosts + """Sets the group of this V1APIServiceSpec. + + Group is the API group name this server hosts # noqa: E501 - :param group: The group of this V1APIServiceSpec. + :param group: The group of this V1APIServiceSpec. # noqa: E501 :type: str """ @@ -126,47 +124,47 @@ def group(self, group): @property def group_priority_minimum(self): - """ - Gets the group_priority_minimum of this V1APIServiceSpec. - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + """Gets the group_priority_minimum of this V1APIServiceSpec. # noqa: E501 + + GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501 - :return: The group_priority_minimum of this V1APIServiceSpec. + :return: The group_priority_minimum of this V1APIServiceSpec. # noqa: E501 :rtype: int """ return self._group_priority_minimum @group_priority_minimum.setter def group_priority_minimum(self, group_priority_minimum): - """ - Sets the group_priority_minimum of this V1APIServiceSpec. - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + """Sets the group_priority_minimum of this V1APIServiceSpec. - :param group_priority_minimum: The group_priority_minimum of this V1APIServiceSpec. + GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501 + + :param group_priority_minimum: The group_priority_minimum of this V1APIServiceSpec. # noqa: E501 :type: int """ if group_priority_minimum is None: - raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") + raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") # noqa: E501 self._group_priority_minimum = group_priority_minimum @property def insecure_skip_tls_verify(self): - """ - Gets the insecure_skip_tls_verify of this V1APIServiceSpec. - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + """Gets the insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501 + + InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501 - :return: The insecure_skip_tls_verify of this V1APIServiceSpec. + :return: The insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501 :rtype: bool """ return self._insecure_skip_tls_verify @insecure_skip_tls_verify.setter def insecure_skip_tls_verify(self, insecure_skip_tls_verify): - """ - Sets the insecure_skip_tls_verify of this V1APIServiceSpec. - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + """Sets the insecure_skip_tls_verify of this V1APIServiceSpec. + + InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501 - :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this V1APIServiceSpec. + :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this V1APIServiceSpec. # noqa: E501 :type: bool """ @@ -174,47 +172,45 @@ def insecure_skip_tls_verify(self, insecure_skip_tls_verify): @property def service(self): - """ - Gets the service of this V1APIServiceSpec. - Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + """Gets the service of this V1APIServiceSpec. # noqa: E501 + - :return: The service of this V1APIServiceSpec. + :return: The service of this V1APIServiceSpec. # noqa: E501 :rtype: V1ServiceReference """ return self._service @service.setter def service(self, service): - """ - Sets the service of this V1APIServiceSpec. - Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + """Sets the service of this V1APIServiceSpec. - :param service: The service of this V1APIServiceSpec. + + :param service: The service of this V1APIServiceSpec. # noqa: E501 :type: V1ServiceReference """ if service is None: - raise ValueError("Invalid value for `service`, must not be `None`") + raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 self._service = service @property def version(self): - """ - Gets the version of this V1APIServiceSpec. - Version is the API version this server hosts. For example, \"v1\" + """Gets the version of this V1APIServiceSpec. # noqa: E501 + + Version is the API version this server hosts. For example, \"v1\" # noqa: E501 - :return: The version of this V1APIServiceSpec. + :return: The version of this V1APIServiceSpec. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1APIServiceSpec. - Version is the API version this server hosts. For example, \"v1\" + """Sets the version of this V1APIServiceSpec. + + Version is the API version this server hosts. For example, \"v1\" # noqa: E501 - :param version: The version of this V1APIServiceSpec. + :param version: The version of this V1APIServiceSpec. # noqa: E501 :type: str """ @@ -222,36 +218,34 @@ def version(self, version): @property def version_priority(self): - """ - Gets the version_priority of this V1APIServiceSpec. - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Gets the version_priority of this V1APIServiceSpec. # noqa: E501 - :return: The version_priority of this V1APIServiceSpec. + VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :return: The version_priority of this V1APIServiceSpec. # noqa: E501 :rtype: int """ return self._version_priority @version_priority.setter def version_priority(self, version_priority): - """ - Sets the version_priority of this V1APIServiceSpec. - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Sets the version_priority of this V1APIServiceSpec. - :param version_priority: The version_priority of this V1APIServiceSpec. + VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :param version_priority: The version_priority of this V1APIServiceSpec. # noqa: E501 :type: int """ if version_priority is None: - raise ValueError("Invalid value for `version_priority`, must not be `None`") + raise ValueError("Invalid value for `version_priority`, must not be `None`") # noqa: E501 self._version_priority = version_priority def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -272,28 +266,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIServiceSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_service_status.py b/kubernetes/client/models/v1_api_service_status.py index 32afefc70b..5344baf327 100644 --- a/kubernetes/client/models/v1_api_service_status.py +++ b/kubernetes/client/models/v1_api_service_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIServiceStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conditions': 'list[V1APIServiceCondition]' } @@ -38,47 +38,43 @@ class V1APIServiceStatus(object): 'conditions': 'conditions' } - def __init__(self, conditions=None): - """ - V1APIServiceStatus - a model defined in Swagger - """ + def __init__(self, conditions=None): # noqa: E501 + """V1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501 self._conditions = None self.discriminator = None if conditions is not None: - self.conditions = conditions + self.conditions = conditions @property def conditions(self): - """ - Gets the conditions of this V1APIServiceStatus. - Current service state of apiService. + """Gets the conditions of this V1APIServiceStatus. # noqa: E501 + + Current service state of apiService. # noqa: E501 - :return: The conditions of this V1APIServiceStatus. + :return: The conditions of this V1APIServiceStatus. # noqa: E501 :rtype: list[V1APIServiceCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1APIServiceStatus. - Current service state of apiService. + """Sets the conditions of this V1APIServiceStatus. + + Current service state of apiService. # noqa: E501 - :param conditions: The conditions of this V1APIServiceStatus. + :param conditions: The conditions of this V1APIServiceStatus. # noqa: E501 :type: list[V1APIServiceCondition] """ self._conditions = conditions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIServiceStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_api_versions.py b/kubernetes/client/models/v1_api_versions.py index 046daf4ad9..846c2d4e10 100644 --- a/kubernetes/client/models/v1_api_versions.py +++ b/kubernetes/client/models/v1_api_versions.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1APIVersions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'server_address_by_client_cid_rs': 'list[V1ServerAddressByClientCIDR]', @@ -44,10 +44,8 @@ class V1APIVersions(object): 'versions': 'versions' } - def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None): - """ - V1APIVersions - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None): # noqa: E501 + """V1APIVersions - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,30 +54,30 @@ def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs= self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind self.server_address_by_client_cid_rs = server_address_by_client_cid_rs self.versions = versions @property def api_version(self): - """ - Gets the api_version of this V1APIVersions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1APIVersions. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1APIVersions. + :return: The api_version of this V1APIVersions. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1APIVersions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1APIVersions. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1APIVersions. + :param api_version: The api_version of this V1APIVersions. # noqa: E501 :type: str """ @@ -87,22 +85,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1APIVersions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1APIVersions. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1APIVersions. + :return: The kind of this V1APIVersions. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1APIVersions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1APIVersions. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1APIVersions. + :param kind: The kind of this V1APIVersions. # noqa: E501 :type: str """ @@ -110,61 +108,59 @@ def kind(self, kind): @property def server_address_by_client_cid_rs(self): - """ - Gets the server_address_by_client_cid_rs of this V1APIVersions. - a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + """Gets the server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501 + + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501 - :return: The server_address_by_client_cid_rs of this V1APIVersions. + :return: The server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501 :rtype: list[V1ServerAddressByClientCIDR] """ return self._server_address_by_client_cid_rs @server_address_by_client_cid_rs.setter def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): - """ - Sets the server_address_by_client_cid_rs of this V1APIVersions. - a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + """Sets the server_address_by_client_cid_rs of this V1APIVersions. + + a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. # noqa: E501 - :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. + :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501 :type: list[V1ServerAddressByClientCIDR] """ if server_address_by_client_cid_rs is None: - raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") + raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") # noqa: E501 self._server_address_by_client_cid_rs = server_address_by_client_cid_rs @property def versions(self): - """ - Gets the versions of this V1APIVersions. - versions are the api versions that are available. + """Gets the versions of this V1APIVersions. # noqa: E501 + + versions are the api versions that are available. # noqa: E501 - :return: The versions of this V1APIVersions. + :return: The versions of this V1APIVersions. # noqa: E501 :rtype: list[str] """ return self._versions @versions.setter def versions(self, versions): - """ - Sets the versions of this V1APIVersions. - versions are the api versions that are available. + """Sets the versions of this V1APIVersions. + + versions are the api versions that are available. # noqa: E501 - :param versions: The versions of this V1APIVersions. + :param versions: The versions of this V1APIVersions. # noqa: E501 :type: list[str] """ if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") + raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 self._versions = versions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1APIVersions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index b1d511f7f7..b532703dd4 100644 --- a/kubernetes/client/models/v1_attached_volume.py +++ b/kubernetes/client/models/v1_attached_volume.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AttachedVolume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'device_path': 'str', 'name': 'str' } @@ -40,10 +40,8 @@ class V1AttachedVolume(object): 'name': 'name' } - def __init__(self, device_path=None, name=None): - """ - V1AttachedVolume - a model defined in Swagger - """ + def __init__(self, device_path=None, name=None): # noqa: E501 + """V1AttachedVolume - a model defined in OpenAPI""" # noqa: E501 self._device_path = None self._name = None @@ -54,61 +52,59 @@ def __init__(self, device_path=None, name=None): @property def device_path(self): - """ - Gets the device_path of this V1AttachedVolume. - DevicePath represents the device path where the volume should be available + """Gets the device_path of this V1AttachedVolume. # noqa: E501 + + DevicePath represents the device path where the volume should be available # noqa: E501 - :return: The device_path of this V1AttachedVolume. + :return: The device_path of this V1AttachedVolume. # noqa: E501 :rtype: str """ return self._device_path @device_path.setter def device_path(self, device_path): - """ - Sets the device_path of this V1AttachedVolume. - DevicePath represents the device path where the volume should be available + """Sets the device_path of this V1AttachedVolume. - :param device_path: The device_path of this V1AttachedVolume. + DevicePath represents the device path where the volume should be available # noqa: E501 + + :param device_path: The device_path of this V1AttachedVolume. # noqa: E501 :type: str """ if device_path is None: - raise ValueError("Invalid value for `device_path`, must not be `None`") + raise ValueError("Invalid value for `device_path`, must not be `None`") # noqa: E501 self._device_path = device_path @property def name(self): - """ - Gets the name of this V1AttachedVolume. - Name of the attached volume + """Gets the name of this V1AttachedVolume. # noqa: E501 + + Name of the attached volume # noqa: E501 - :return: The name of this V1AttachedVolume. + :return: The name of this V1AttachedVolume. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1AttachedVolume. - Name of the attached volume + """Sets the name of this V1AttachedVolume. + + Name of the attached volume # noqa: E501 - :param name: The name of this V1AttachedVolume. + :param name: The name of this V1AttachedVolume. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AttachedVolume): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py index 2b56af3edd..bf50db07b1 100644 --- a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AWSElasticBlockStoreVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool', @@ -44,10 +44,8 @@ class V1AWSElasticBlockStoreVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None): - """ - V1AWSElasticBlockStoreVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None): # noqa: E501 + """V1AWSElasticBlockStoreVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._partition = None @@ -56,31 +54,31 @@ def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None) self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if partition is not None: - self.partition = partition + self.partition = partition if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.volume_id = volume_id @property def fs_type(self): - """ - Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Gets the fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. + :return: The fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Sets the fs_type of this V1AWSElasticBlockStoreVolumeSource. + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. + :param fs_type: The fs_type of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def fs_type(self, fs_type): @property def partition(self): - """ - Gets the partition of this V1AWSElasticBlockStoreVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). + """Gets the partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 + + The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). # noqa: E501 - :return: The partition of this V1AWSElasticBlockStoreVolumeSource. + :return: The partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: int """ return self._partition @partition.setter def partition(self, partition): - """ - Sets the partition of this V1AWSElasticBlockStoreVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). + """Sets the partition of this V1AWSElasticBlockStoreVolumeSource. + + The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). # noqa: E501 - :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. + :param partition: The partition of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: int """ @@ -111,22 +109,22 @@ def partition(self, partition): @property def read_only(self): - """ - Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. - Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Gets the read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 + + Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. + :return: The read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. - Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Sets the read_only of this V1AWSElasticBlockStoreVolumeSource. + + Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. + :param read_only: The read_only of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: bool """ @@ -134,36 +132,34 @@ def read_only(self, read_only): @property def volume_id(self): - """ - Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Gets the volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 + + Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. + :return: The volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): - """ - Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Sets the volume_id of this V1AWSElasticBlockStoreVolumeSource. + + Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 - :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. + :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: str """ if volume_id is None: - raise ValueError("Invalid value for `volume_id`, must not be `None`") + raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AWSElasticBlockStoreVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index 653ee27e0f..2454752737 100644 --- a/kubernetes/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/client/models/v1_azure_disk_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AzureDiskVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'caching_mode': 'str', 'disk_name': 'str', 'disk_uri': 'str', @@ -48,10 +48,8 @@ class V1AzureDiskVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None): - """ - V1AzureDiskVolumeSource - a model defined in Swagger - """ + def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None): # noqa: E501 + """V1AzureDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._caching_mode = None self._disk_name = None @@ -62,34 +60,34 @@ def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=Non self.discriminator = None if caching_mode is not None: - self.caching_mode = caching_mode + self.caching_mode = caching_mode self.disk_name = disk_name self.disk_uri = disk_uri if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if kind is not None: - self.kind = kind + self.kind = kind if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def caching_mode(self): - """ - Gets the caching_mode of this V1AzureDiskVolumeSource. - Host Caching mode: None, Read Only, Read Write. + """Gets the caching_mode of this V1AzureDiskVolumeSource. # noqa: E501 + + Host Caching mode: None, Read Only, Read Write. # noqa: E501 - :return: The caching_mode of this V1AzureDiskVolumeSource. + :return: The caching_mode of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: str """ return self._caching_mode @caching_mode.setter def caching_mode(self, caching_mode): - """ - Sets the caching_mode of this V1AzureDiskVolumeSource. - Host Caching mode: None, Read Only, Read Write. + """Sets the caching_mode of this V1AzureDiskVolumeSource. + + Host Caching mode: None, Read Only, Read Write. # noqa: E501 - :param caching_mode: The caching_mode of this V1AzureDiskVolumeSource. + :param caching_mode: The caching_mode of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ @@ -97,72 +95,72 @@ def caching_mode(self, caching_mode): @property def disk_name(self): - """ - Gets the disk_name of this V1AzureDiskVolumeSource. - The Name of the data disk in the blob storage + """Gets the disk_name of this V1AzureDiskVolumeSource. # noqa: E501 + + The Name of the data disk in the blob storage # noqa: E501 - :return: The disk_name of this V1AzureDiskVolumeSource. + :return: The disk_name of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: str """ return self._disk_name @disk_name.setter def disk_name(self, disk_name): - """ - Sets the disk_name of this V1AzureDiskVolumeSource. - The Name of the data disk in the blob storage + """Sets the disk_name of this V1AzureDiskVolumeSource. - :param disk_name: The disk_name of this V1AzureDiskVolumeSource. + The Name of the data disk in the blob storage # noqa: E501 + + :param disk_name: The disk_name of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ if disk_name is None: - raise ValueError("Invalid value for `disk_name`, must not be `None`") + raise ValueError("Invalid value for `disk_name`, must not be `None`") # noqa: E501 self._disk_name = disk_name @property def disk_uri(self): - """ - Gets the disk_uri of this V1AzureDiskVolumeSource. - The URI the data disk in the blob storage + """Gets the disk_uri of this V1AzureDiskVolumeSource. # noqa: E501 - :return: The disk_uri of this V1AzureDiskVolumeSource. + The URI the data disk in the blob storage # noqa: E501 + + :return: The disk_uri of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: str """ return self._disk_uri @disk_uri.setter def disk_uri(self, disk_uri): - """ - Sets the disk_uri of this V1AzureDiskVolumeSource. - The URI the data disk in the blob storage + """Sets the disk_uri of this V1AzureDiskVolumeSource. + + The URI the data disk in the blob storage # noqa: E501 - :param disk_uri: The disk_uri of this V1AzureDiskVolumeSource. + :param disk_uri: The disk_uri of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ if disk_uri is None: - raise ValueError("Invalid value for `disk_uri`, must not be `None`") + raise ValueError("Invalid value for `disk_uri`, must not be `None`") # noqa: E501 self._disk_uri = disk_uri @property def fs_type(self): - """ - Gets the fs_type of this V1AzureDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1AzureDiskVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 - :return: The fs_type of this V1AzureDiskVolumeSource. + :return: The fs_type of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1AzureDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1AzureDiskVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 - :param fs_type: The fs_type of this V1AzureDiskVolumeSource. + :param fs_type: The fs_type of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ @@ -170,22 +168,22 @@ def fs_type(self, fs_type): @property def kind(self): - """ - Gets the kind of this V1AzureDiskVolumeSource. - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + """Gets the kind of this V1AzureDiskVolumeSource. # noqa: E501 - :return: The kind of this V1AzureDiskVolumeSource. + Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared # noqa: E501 + + :return: The kind of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1AzureDiskVolumeSource. - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + """Sets the kind of this V1AzureDiskVolumeSource. - :param kind: The kind of this V1AzureDiskVolumeSource. + Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared # noqa: E501 + + :param kind: The kind of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ @@ -193,34 +191,32 @@ def kind(self, kind): @property def read_only(self): - """ - Gets the read_only of this V1AzureDiskVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1AzureDiskVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1AzureDiskVolumeSource. + :return: The read_only of this V1AzureDiskVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1AzureDiskVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1AzureDiskVolumeSource. + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1AzureDiskVolumeSource. + :param read_only: The read_only of this V1AzureDiskVolumeSource. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AzureDiskVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py index 00b833dc7b..da92b55e74 100644 --- a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AzureFilePersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'read_only': 'bool', 'secret_name': 'str', 'secret_namespace': 'str', @@ -44,10 +44,8 @@ class V1AzureFilePersistentVolumeSource(object): 'share_name': 'shareName' } - def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None): - """ - V1AzureFilePersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None): # noqa: E501 + """V1AzureFilePersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._read_only = None self._secret_name = None @@ -56,30 +54,30 @@ def __init__(self, read_only=None, secret_name=None, secret_namespace=None, shar self.discriminator = None if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.secret_name = secret_name if secret_namespace is not None: - self.secret_namespace = secret_namespace + self.secret_namespace = secret_namespace self.share_name = share_name @property def read_only(self): - """ - Gets the read_only of this V1AzureFilePersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1AzureFilePersistentVolumeSource. + :return: The read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1AzureFilePersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1AzureFilePersistentVolumeSource. + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1AzureFilePersistentVolumeSource. + :param read_only: The read_only of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: bool """ @@ -87,47 +85,47 @@ def read_only(self, read_only): @property def secret_name(self): - """ - Gets the secret_name of this V1AzureFilePersistentVolumeSource. - the name of secret that contains Azure Storage Account Name and Key + """Gets the secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 + + the name of secret that contains Azure Storage Account Name and Key # noqa: E501 - :return: The secret_name of this V1AzureFilePersistentVolumeSource. + :return: The secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): - """ - Sets the secret_name of this V1AzureFilePersistentVolumeSource. - the name of secret that contains Azure Storage Account Name and Key + """Sets the secret_name of this V1AzureFilePersistentVolumeSource. + + the name of secret that contains Azure Storage Account Name and Key # noqa: E501 - :param secret_name: The secret_name of this V1AzureFilePersistentVolumeSource. + :param secret_name: The secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: str """ if secret_name is None: - raise ValueError("Invalid value for `secret_name`, must not be `None`") + raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501 self._secret_name = secret_name @property def secret_namespace(self): - """ - Gets the secret_namespace of this V1AzureFilePersistentVolumeSource. - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + """Gets the secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501 + + the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod # noqa: E501 - :return: The secret_namespace of this V1AzureFilePersistentVolumeSource. + :return: The secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501 :rtype: str """ return self._secret_namespace @secret_namespace.setter def secret_namespace(self, secret_namespace): - """ - Sets the secret_namespace of this V1AzureFilePersistentVolumeSource. - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + """Sets the secret_namespace of this V1AzureFilePersistentVolumeSource. + + the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod # noqa: E501 - :param secret_namespace: The secret_namespace of this V1AzureFilePersistentVolumeSource. + :param secret_namespace: The secret_namespace of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: str """ @@ -135,36 +133,34 @@ def secret_namespace(self, secret_namespace): @property def share_name(self): - """ - Gets the share_name of this V1AzureFilePersistentVolumeSource. - Share Name + """Gets the share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 + + Share Name # noqa: E501 - :return: The share_name of this V1AzureFilePersistentVolumeSource. + :return: The share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :rtype: str """ return self._share_name @share_name.setter def share_name(self, share_name): - """ - Sets the share_name of this V1AzureFilePersistentVolumeSource. - Share Name + """Sets the share_name of this V1AzureFilePersistentVolumeSource. + + Share Name # noqa: E501 - :param share_name: The share_name of this V1AzureFilePersistentVolumeSource. + :param share_name: The share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: str """ if share_name is None: - raise ValueError("Invalid value for `share_name`, must not be `None`") + raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501 self._share_name = share_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AzureFilePersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index aba5f4c5d3..7f845dd0f3 100644 --- a/kubernetes/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1AzureFileVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'read_only': 'bool', 'secret_name': 'str', 'share_name': 'str' @@ -42,10 +42,8 @@ class V1AzureFileVolumeSource(object): 'share_name': 'shareName' } - def __init__(self, read_only=None, secret_name=None, share_name=None): - """ - V1AzureFileVolumeSource - a model defined in Swagger - """ + def __init__(self, read_only=None, secret_name=None, share_name=None): # noqa: E501 + """V1AzureFileVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._read_only = None self._secret_name = None @@ -53,28 +51,28 @@ def __init__(self, read_only=None, secret_name=None, share_name=None): self.discriminator = None if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.secret_name = secret_name self.share_name = share_name @property def read_only(self): - """ - Gets the read_only of this V1AzureFileVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1AzureFileVolumeSource. # noqa: E501 - :return: The read_only of this V1AzureFileVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1AzureFileVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1AzureFileVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1AzureFileVolumeSource. - :param read_only: The read_only of this V1AzureFileVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1AzureFileVolumeSource. # noqa: E501 :type: bool """ @@ -82,61 +80,59 @@ def read_only(self, read_only): @property def secret_name(self): - """ - Gets the secret_name of this V1AzureFileVolumeSource. - the name of secret that contains Azure Storage Account Name and Key + """Gets the secret_name of this V1AzureFileVolumeSource. # noqa: E501 - :return: The secret_name of this V1AzureFileVolumeSource. + the name of secret that contains Azure Storage Account Name and Key # noqa: E501 + + :return: The secret_name of this V1AzureFileVolumeSource. # noqa: E501 :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): - """ - Sets the secret_name of this V1AzureFileVolumeSource. - the name of secret that contains Azure Storage Account Name and Key + """Sets the secret_name of this V1AzureFileVolumeSource. + + the name of secret that contains Azure Storage Account Name and Key # noqa: E501 - :param secret_name: The secret_name of this V1AzureFileVolumeSource. + :param secret_name: The secret_name of this V1AzureFileVolumeSource. # noqa: E501 :type: str """ if secret_name is None: - raise ValueError("Invalid value for `secret_name`, must not be `None`") + raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501 self._secret_name = secret_name @property def share_name(self): - """ - Gets the share_name of this V1AzureFileVolumeSource. - Share Name + """Gets the share_name of this V1AzureFileVolumeSource. # noqa: E501 + + Share Name # noqa: E501 - :return: The share_name of this V1AzureFileVolumeSource. + :return: The share_name of this V1AzureFileVolumeSource. # noqa: E501 :rtype: str """ return self._share_name @share_name.setter def share_name(self, share_name): - """ - Sets the share_name of this V1AzureFileVolumeSource. - Share Name + """Sets the share_name of this V1AzureFileVolumeSource. + + Share Name # noqa: E501 - :param share_name: The share_name of this V1AzureFileVolumeSource. + :param share_name: The share_name of this V1AzureFileVolumeSource. # noqa: E501 :type: str """ if share_name is None: - raise ValueError("Invalid value for `share_name`, must not be `None`") + raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501 self._share_name = share_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1AzureFileVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index b54e3e9984..eb743e938f 100644 --- a/kubernetes/client/models/v1_binding.py +++ b/kubernetes/client/models/v1_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Binding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1Binding(object): 'target': 'target' } - def __init__(self, api_version=None, kind=None, metadata=None, target=None): - """ - V1Binding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, target=None): # noqa: E501 + """V1Binding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, kind=None, metadata=None, target=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.target = target @property def api_version(self): - """ - Gets the api_version of this V1Binding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Binding. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Binding. + :return: The api_version of this V1Binding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Binding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Binding. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Binding. + :param api_version: The api_version of this V1Binding. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Binding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Binding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Binding. + :return: The kind of this V1Binding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Binding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Binding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Binding. + :param kind: The kind of this V1Binding. # noqa: E501 :type: str """ @@ -111,22 +109,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Binding. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Binding. # noqa: E501 + - :return: The metadata of this V1Binding. + :return: The metadata of this V1Binding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Binding. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Binding. + - :param metadata: The metadata of this V1Binding. + :param metadata: The metadata of this V1Binding. # noqa: E501 :type: V1ObjectMeta """ @@ -134,36 +130,32 @@ def metadata(self, metadata): @property def target(self): - """ - Gets the target of this V1Binding. - The target object that you want to bind to the standard object. + """Gets the target of this V1Binding. # noqa: E501 + - :return: The target of this V1Binding. + :return: The target of this V1Binding. # noqa: E501 :rtype: V1ObjectReference """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V1Binding. - The target object that you want to bind to the standard object. + """Sets the target of this V1Binding. + - :param target: The target of this V1Binding. + :param target: The target of this V1Binding. # noqa: E501 :type: V1ObjectReference """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Binding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index 8ff75f7c7b..fc4cb06767 100644 --- a/kubernetes/client/models/v1_capabilities.py +++ b/kubernetes/client/models/v1_capabilities.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Capabilities(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'add': 'list[str]', 'drop': 'list[str]' } @@ -40,38 +40,36 @@ class V1Capabilities(object): 'drop': 'drop' } - def __init__(self, add=None, drop=None): - """ - V1Capabilities - a model defined in Swagger - """ + def __init__(self, add=None, drop=None): # noqa: E501 + """V1Capabilities - a model defined in OpenAPI""" # noqa: E501 self._add = None self._drop = None self.discriminator = None if add is not None: - self.add = add + self.add = add if drop is not None: - self.drop = drop + self.drop = drop @property def add(self): - """ - Gets the add of this V1Capabilities. - Added capabilities + """Gets the add of this V1Capabilities. # noqa: E501 + + Added capabilities # noqa: E501 - :return: The add of this V1Capabilities. + :return: The add of this V1Capabilities. # noqa: E501 :rtype: list[str] """ return self._add @add.setter def add(self, add): - """ - Sets the add of this V1Capabilities. - Added capabilities + """Sets the add of this V1Capabilities. - :param add: The add of this V1Capabilities. + Added capabilities # noqa: E501 + + :param add: The add of this V1Capabilities. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def add(self, add): @property def drop(self): - """ - Gets the drop of this V1Capabilities. - Removed capabilities + """Gets the drop of this V1Capabilities. # noqa: E501 + + Removed capabilities # noqa: E501 - :return: The drop of this V1Capabilities. + :return: The drop of this V1Capabilities. # noqa: E501 :rtype: list[str] """ return self._drop @drop.setter def drop(self, drop): - """ - Sets the drop of this V1Capabilities. - Removed capabilities + """Sets the drop of this V1Capabilities. + + Removed capabilities # noqa: E501 - :param drop: The drop of this V1Capabilities. + :param drop: The drop of this V1Capabilities. # noqa: E501 :type: list[str] """ self._drop = drop def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Capabilities): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py index a6c1801124..3656e7eccc 100644 --- a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CephFSPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'monitors': 'list[str]', 'path': 'str', 'read_only': 'bool', @@ -48,10 +48,8 @@ class V1CephFSPersistentVolumeSource(object): 'user': 'user' } - def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): - """ - V1CephFSPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): # noqa: E501 + """V1CephFSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._monitors = None self._path = None @@ -63,59 +61,59 @@ def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, s self.monitors = monitors if path is not None: - self.path = path + self.path = path if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_file is not None: - self.secret_file = secret_file + self.secret_file = secret_file if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if user is not None: - self.user = user + self.user = user @property def monitors(self): - """ - Gets the monitors of this V1CephFSPersistentVolumeSource. - Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the monitors of this V1CephFSPersistentVolumeSource. # noqa: E501 + + Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The monitors of this V1CephFSPersistentVolumeSource. + :return: The monitors of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): - """ - Sets the monitors of this V1CephFSPersistentVolumeSource. - Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the monitors of this V1CephFSPersistentVolumeSource. + + Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param monitors: The monitors of this V1CephFSPersistentVolumeSource. + :param monitors: The monitors of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: list[str] """ if monitors is None: - raise ValueError("Invalid value for `monitors`, must not be `None`") + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @property def path(self): - """ - Gets the path of this V1CephFSPersistentVolumeSource. - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + """Gets the path of this V1CephFSPersistentVolumeSource. # noqa: E501 + + Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501 - :return: The path of this V1CephFSPersistentVolumeSource. + :return: The path of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1CephFSPersistentVolumeSource. - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + """Sets the path of this V1CephFSPersistentVolumeSource. - :param path: The path of this V1CephFSPersistentVolumeSource. + Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501 + + :param path: The path of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: str """ @@ -123,22 +121,22 @@ def path(self, path): @property def read_only(self): - """ - Gets the read_only of this V1CephFSPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the read_only of this V1CephFSPersistentVolumeSource. # noqa: E501 - :return: The read_only of this V1CephFSPersistentVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CephFSPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the read_only of this V1CephFSPersistentVolumeSource. + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param read_only: The read_only of this V1CephFSPersistentVolumeSource. + :param read_only: The read_only of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -146,22 +144,22 @@ def read_only(self, read_only): @property def secret_file(self): - """ - Gets the secret_file of this V1CephFSPersistentVolumeSource. - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501 + + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The secret_file of this V1CephFSPersistentVolumeSource. + :return: The secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._secret_file @secret_file.setter def secret_file(self, secret_file): - """ - Sets the secret_file of this V1CephFSPersistentVolumeSource. - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the secret_file of this V1CephFSPersistentVolumeSource. + + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param secret_file: The secret_file of this V1CephFSPersistentVolumeSource. + :param secret_file: The secret_file of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: str """ @@ -169,22 +167,20 @@ def secret_file(self, secret_file): @property def secret_ref(self): - """ - Gets the secret_ref of this V1CephFSPersistentVolumeSource. - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501 - :return: The secret_ref of this V1CephFSPersistentVolumeSource. + + :return: The secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1CephFSPersistentVolumeSource. - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the secret_ref of this V1CephFSPersistentVolumeSource. - :param secret_ref: The secret_ref of this V1CephFSPersistentVolumeSource. + + :param secret_ref: The secret_ref of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -192,34 +188,32 @@ def secret_ref(self, secret_ref): @property def user(self): - """ - Gets the user of this V1CephFSPersistentVolumeSource. - Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the user of this V1CephFSPersistentVolumeSource. # noqa: E501 + + Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The user of this V1CephFSPersistentVolumeSource. + :return: The user of this V1CephFSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1CephFSPersistentVolumeSource. - Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the user of this V1CephFSPersistentVolumeSource. + + Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param user: The user of this V1CephFSPersistentVolumeSource. + :param user: The user of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +234,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CephFSPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index e9ae2ce9fb..20394b6654 100644 --- a/kubernetes/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CephFSVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'monitors': 'list[str]', 'path': 'str', 'read_only': 'bool', @@ -48,10 +48,8 @@ class V1CephFSVolumeSource(object): 'user': 'user' } - def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): - """ - V1CephFSVolumeSource - a model defined in Swagger - """ + def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): # noqa: E501 + """V1CephFSVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._monitors = None self._path = None @@ -63,59 +61,59 @@ def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, s self.monitors = monitors if path is not None: - self.path = path + self.path = path if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_file is not None: - self.secret_file = secret_file + self.secret_file = secret_file if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if user is not None: - self.user = user + self.user = user @property def monitors(self): - """ - Gets the monitors of this V1CephFSVolumeSource. - Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the monitors of this V1CephFSVolumeSource. # noqa: E501 + + Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The monitors of this V1CephFSVolumeSource. + :return: The monitors of this V1CephFSVolumeSource. # noqa: E501 :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): - """ - Sets the monitors of this V1CephFSVolumeSource. - Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the monitors of this V1CephFSVolumeSource. + + Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param monitors: The monitors of this V1CephFSVolumeSource. + :param monitors: The monitors of this V1CephFSVolumeSource. # noqa: E501 :type: list[str] """ if monitors is None: - raise ValueError("Invalid value for `monitors`, must not be `None`") + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @property def path(self): - """ - Gets the path of this V1CephFSVolumeSource. - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + """Gets the path of this V1CephFSVolumeSource. # noqa: E501 + + Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501 - :return: The path of this V1CephFSVolumeSource. + :return: The path of this V1CephFSVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1CephFSVolumeSource. - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + """Sets the path of this V1CephFSVolumeSource. - :param path: The path of this V1CephFSVolumeSource. + Optional: Used as the mounted root, rather than the full Ceph tree, default is / # noqa: E501 + + :param path: The path of this V1CephFSVolumeSource. # noqa: E501 :type: str """ @@ -123,22 +121,22 @@ def path(self, path): @property def read_only(self): - """ - Gets the read_only of this V1CephFSVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the read_only of this V1CephFSVolumeSource. # noqa: E501 - :return: The read_only of this V1CephFSVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1CephFSVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CephFSVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the read_only of this V1CephFSVolumeSource. + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param read_only: The read_only of this V1CephFSVolumeSource. + :param read_only: The read_only of this V1CephFSVolumeSource. # noqa: E501 :type: bool """ @@ -146,22 +144,22 @@ def read_only(self, read_only): @property def secret_file(self): - """ - Gets the secret_file of this V1CephFSVolumeSource. - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the secret_file of this V1CephFSVolumeSource. # noqa: E501 + + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The secret_file of this V1CephFSVolumeSource. + :return: The secret_file of this V1CephFSVolumeSource. # noqa: E501 :rtype: str """ return self._secret_file @secret_file.setter def secret_file(self, secret_file): - """ - Sets the secret_file of this V1CephFSVolumeSource. - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the secret_file of this V1CephFSVolumeSource. + + Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param secret_file: The secret_file of this V1CephFSVolumeSource. + :param secret_file: The secret_file of this V1CephFSVolumeSource. # noqa: E501 :type: str """ @@ -169,22 +167,20 @@ def secret_file(self, secret_file): @property def secret_ref(self): - """ - Gets the secret_ref of this V1CephFSVolumeSource. - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the secret_ref of this V1CephFSVolumeSource. # noqa: E501 - :return: The secret_ref of this V1CephFSVolumeSource. + + :return: The secret_ref of this V1CephFSVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1CephFSVolumeSource. - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the secret_ref of this V1CephFSVolumeSource. - :param secret_ref: The secret_ref of this V1CephFSVolumeSource. + + :param secret_ref: The secret_ref of this V1CephFSVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -192,34 +188,32 @@ def secret_ref(self, secret_ref): @property def user(self): - """ - Gets the user of this V1CephFSVolumeSource. - Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Gets the user of this V1CephFSVolumeSource. # noqa: E501 + + Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :return: The user of this V1CephFSVolumeSource. + :return: The user of this V1CephFSVolumeSource. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1CephFSVolumeSource. - Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + """Sets the user of this V1CephFSVolumeSource. + + Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it # noqa: E501 - :param user: The user of this V1CephFSVolumeSource. + :param user: The user of this V1CephFSVolumeSource. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +234,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CephFSVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cinder_persistent_volume_source.py b/kubernetes/client/models/v1_cinder_persistent_volume_source.py index fd1bdb5ff4..4ba772b68b 100644 --- a/kubernetes/client/models/v1_cinder_persistent_volume_source.py +++ b/kubernetes/client/models/v1_cinder_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CinderPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'read_only': 'bool', 'secret_ref': 'V1SecretReference', @@ -44,10 +44,8 @@ class V1CinderPersistentVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): - """ - V1CinderPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): # noqa: E501 + """V1CinderPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._read_only = None @@ -56,31 +54,31 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref self.volume_id = volume_id @property def fs_type(self): - """ - Gets the fs_type of this V1CinderPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the fs_type of this V1CinderPersistentVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The fs_type of this V1CinderPersistentVolumeSource. + :return: The fs_type of this V1CinderPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1CinderPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the fs_type of this V1CinderPersistentVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param fs_type: The fs_type of this V1CinderPersistentVolumeSource. + :param fs_type: The fs_type of this V1CinderPersistentVolumeSource. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def fs_type(self, fs_type): @property def read_only(self): - """ - Gets the read_only of this V1CinderPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the read_only of this V1CinderPersistentVolumeSource. # noqa: E501 + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The read_only of this V1CinderPersistentVolumeSource. + :return: The read_only of this V1CinderPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CinderPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the read_only of this V1CinderPersistentVolumeSource. + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param read_only: The read_only of this V1CinderPersistentVolumeSource. + :param read_only: The read_only of this V1CinderPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -111,22 +109,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1CinderPersistentVolumeSource. - Optional: points to a secret object containing parameters used to connect to OpenStack. + """Gets the secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1CinderPersistentVolumeSource. + :return: The secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1CinderPersistentVolumeSource. - Optional: points to a secret object containing parameters used to connect to OpenStack. + """Sets the secret_ref of this V1CinderPersistentVolumeSource. + - :param secret_ref: The secret_ref of this V1CinderPersistentVolumeSource. + :param secret_ref: The secret_ref of this V1CinderPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -134,36 +130,34 @@ def secret_ref(self, secret_ref): @property def volume_id(self): - """ - Gets the volume_id of this V1CinderPersistentVolumeSource. - volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the volume_id of this V1CinderPersistentVolumeSource. # noqa: E501 + + volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The volume_id of this V1CinderPersistentVolumeSource. + :return: The volume_id of this V1CinderPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): - """ - Sets the volume_id of this V1CinderPersistentVolumeSource. - volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the volume_id of this V1CinderPersistentVolumeSource. + + volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param volume_id: The volume_id of this V1CinderPersistentVolumeSource. + :param volume_id: The volume_id of this V1CinderPersistentVolumeSource. # noqa: E501 :type: str """ if volume_id is None: - raise ValueError("Invalid value for `volume_id`, must not be `None`") + raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CinderPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index 5271be55b8..e530ddc2e1 100644 --- a/kubernetes/client/models/v1_cinder_volume_source.py +++ b/kubernetes/client/models/v1_cinder_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CinderVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference', @@ -44,10 +44,8 @@ class V1CinderVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): - """ - V1CinderVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): # noqa: E501 + """V1CinderVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._read_only = None @@ -56,31 +54,31 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref self.volume_id = volume_id @property def fs_type(self): - """ - Gets the fs_type of this V1CinderVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the fs_type of this V1CinderVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The fs_type of this V1CinderVolumeSource. + :return: The fs_type of this V1CinderVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1CinderVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the fs_type of this V1CinderVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param fs_type: The fs_type of this V1CinderVolumeSource. + :param fs_type: The fs_type of this V1CinderVolumeSource. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def fs_type(self, fs_type): @property def read_only(self): - """ - Gets the read_only of this V1CinderVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the read_only of this V1CinderVolumeSource. # noqa: E501 + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The read_only of this V1CinderVolumeSource. + :return: The read_only of this V1CinderVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CinderVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the read_only of this V1CinderVolumeSource. + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param read_only: The read_only of this V1CinderVolumeSource. + :param read_only: The read_only of this V1CinderVolumeSource. # noqa: E501 :type: bool """ @@ -111,22 +109,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1CinderVolumeSource. - Optional: points to a secret object containing parameters used to connect to OpenStack. + """Gets the secret_ref of this V1CinderVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1CinderVolumeSource. + :return: The secret_ref of this V1CinderVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1CinderVolumeSource. - Optional: points to a secret object containing parameters used to connect to OpenStack. + """Sets the secret_ref of this V1CinderVolumeSource. + - :param secret_ref: The secret_ref of this V1CinderVolumeSource. + :param secret_ref: The secret_ref of this V1CinderVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -134,36 +130,34 @@ def secret_ref(self, secret_ref): @property def volume_id(self): - """ - Gets the volume_id of this V1CinderVolumeSource. - volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the volume_id of this V1CinderVolumeSource. # noqa: E501 + + volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :return: The volume_id of this V1CinderVolumeSource. + :return: The volume_id of this V1CinderVolumeSource. # noqa: E501 :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): - """ - Sets the volume_id of this V1CinderVolumeSource. - volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the volume_id of this V1CinderVolumeSource. + + volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md # noqa: E501 - :param volume_id: The volume_id of this V1CinderVolumeSource. + :param volume_id: The volume_id of this V1CinderVolumeSource. # noqa: E501 :type: str """ if volume_id is None: - raise ValueError("Invalid value for `volume_id`, must not be `None`") + raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CinderVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_client_ip_config.py b/kubernetes/client/models/v1_client_ip_config.py index af4e26ce5a..15ec78501e 100644 --- a/kubernetes/client/models/v1_client_ip_config.py +++ b/kubernetes/client/models/v1_client_ip_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ClientIPConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'timeout_seconds': 'int' } @@ -38,47 +38,43 @@ class V1ClientIPConfig(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, timeout_seconds=None): - """ - V1ClientIPConfig - a model defined in Swagger - """ + def __init__(self, timeout_seconds=None): # noqa: E501 + """V1ClientIPConfig - a model defined in OpenAPI""" # noqa: E501 self._timeout_seconds = None self.discriminator = None if timeout_seconds is not None: - self.timeout_seconds = timeout_seconds + self.timeout_seconds = timeout_seconds @property def timeout_seconds(self): - """ - Gets the timeout_seconds of this V1ClientIPConfig. - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). + """Gets the timeout_seconds of this V1ClientIPConfig. # noqa: E501 + + timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). # noqa: E501 - :return: The timeout_seconds of this V1ClientIPConfig. + :return: The timeout_seconds of this V1ClientIPConfig. # noqa: E501 :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): - """ - Sets the timeout_seconds of this V1ClientIPConfig. - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). + """Sets the timeout_seconds of this V1ClientIPConfig. + + timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). # noqa: E501 - :param timeout_seconds: The timeout_seconds of this V1ClientIPConfig. + :param timeout_seconds: The timeout_seconds of this V1ClientIPConfig. # noqa: E501 :type: int """ self._timeout_seconds = timeout_seconds def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ClientIPConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cluster_role.py b/kubernetes/client/models/v1_cluster_role.py index 1d976e1a79..eb9e4e11e2 100644 --- a/kubernetes/client/models/v1_cluster_role.py +++ b/kubernetes/client/models/v1_cluster_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ClusterRole(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'aggregation_rule': 'V1AggregationRule', 'api_version': 'str', 'kind': 'str', @@ -46,10 +46,8 @@ class V1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): - """ - V1ClusterRole - a model defined in Swagger - """ + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1ClusterRole - a model defined in OpenAPI""" # noqa: E501 self._aggregation_rule = None self._api_version = None @@ -59,34 +57,32 @@ def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata= self.discriminator = None if aggregation_rule is not None: - self.aggregation_rule = aggregation_rule + self.aggregation_rule = aggregation_rule if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def aggregation_rule(self): - """ - Gets the aggregation_rule of this V1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Gets the aggregation_rule of this V1ClusterRole. # noqa: E501 - :return: The aggregation_rule of this V1ClusterRole. + + :return: The aggregation_rule of this V1ClusterRole. # noqa: E501 :rtype: V1AggregationRule """ return self._aggregation_rule @aggregation_rule.setter def aggregation_rule(self, aggregation_rule): - """ - Sets the aggregation_rule of this V1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Sets the aggregation_rule of this V1ClusterRole. - :param aggregation_rule: The aggregation_rule of this V1ClusterRole. + + :param aggregation_rule: The aggregation_rule of this V1ClusterRole. # noqa: E501 :type: V1AggregationRule """ @@ -94,22 +90,22 @@ def aggregation_rule(self, aggregation_rule): @property def api_version(self): - """ - Gets the api_version of this V1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ClusterRole. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ClusterRole. + :return: The api_version of this V1ClusterRole. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ClusterRole. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ClusterRole. + :param api_version: The api_version of this V1ClusterRole. # noqa: E501 :type: str """ @@ -117,22 +113,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ClusterRole. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ClusterRole. + :return: The kind of this V1ClusterRole. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ClusterRole. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ClusterRole. + :param kind: The kind of this V1ClusterRole. # noqa: E501 :type: str """ @@ -140,22 +136,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ClusterRole. - Standard object's metadata. + """Gets the metadata of this V1ClusterRole. # noqa: E501 + - :return: The metadata of this V1ClusterRole. + :return: The metadata of this V1ClusterRole. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ClusterRole. - Standard object's metadata. + """Sets the metadata of this V1ClusterRole. - :param metadata: The metadata of this V1ClusterRole. + + :param metadata: The metadata of this V1ClusterRole. # noqa: E501 :type: V1ObjectMeta """ @@ -163,34 +157,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Gets the rules of this V1ClusterRole. # noqa: E501 - :return: The rules of this V1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :return: The rules of this V1ClusterRole. # noqa: E501 :rtype: list[V1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Sets the rules of this V1ClusterRole. - :param rules: The rules of this V1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :param rules: The rules of this V1ClusterRole. # noqa: E501 :type: list[V1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +203,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ClusterRole): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_binding.py b/kubernetes/client/models/v1_cluster_role_binding.py index 00a5bb3c3d..0cfa9b1e18 100644 --- a/kubernetes/client/models/v1_cluster_role_binding.py +++ b/kubernetes/client/models/v1_cluster_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ClusterRoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1ClusterRoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ClusterRoleBinding. # noqa: E501 - :return: The api_version of this V1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ClusterRoleBinding. - :param api_version: The api_version of this V1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ClusterRoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ClusterRoleBinding. + :return: The kind of this V1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ClusterRoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ClusterRoleBinding. + :param kind: The kind of this V1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ClusterRoleBinding. - Standard object's metadata. + """Gets the metadata of this V1ClusterRoleBinding. # noqa: E501 + - :return: The metadata of this V1ClusterRoleBinding. + :return: The metadata of this V1ClusterRoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ClusterRoleBinding. - Standard object's metadata. + """Sets the metadata of this V1ClusterRoleBinding. + - :param metadata: The metadata of this V1ClusterRoleBinding. + :param metadata: The metadata of this V1ClusterRoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1ClusterRoleBinding. # noqa: E501 + - :return: The role_ref of this V1ClusterRoleBinding. + :return: The role_ref of this V1ClusterRoleBinding. # noqa: E501 :rtype: V1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1ClusterRoleBinding. - :param role_ref: The role_ref of this V1ClusterRoleBinding. + + :param role_ref: The role_ref of this V1ClusterRoleBinding. # noqa: E501 :type: V1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1ClusterRoleBinding. # noqa: E501 - :return: The subjects of this V1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1ClusterRoleBinding. # noqa: E501 :rtype: list[V1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1ClusterRoleBinding. - :param subjects: The subjects of this V1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1ClusterRoleBinding. # noqa: E501 :type: list[V1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ClusterRoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_binding_list.py b/kubernetes/client/models/v1_cluster_role_binding_list.py index fcd2dee893..5d8d7a11e9 100644 --- a/kubernetes/client/models/v1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1_cluster_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ClusterRoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ClusterRoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ClusterRoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ClusterRoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ClusterRoleBindingList. + :return: The api_version of this V1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ClusterRoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ClusterRoleBindingList. + :param api_version: The api_version of this V1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Gets the items of this V1ClusterRoleBindingList. # noqa: E501 + + Items is a list of ClusterRoleBindings # noqa: E501 - :return: The items of this V1ClusterRoleBindingList. + :return: The items of this V1ClusterRoleBindingList. # noqa: E501 :rtype: list[V1ClusterRoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Sets the items of this V1ClusterRoleBindingList. + + Items is a list of ClusterRoleBindings # noqa: E501 - :param items: The items of this V1ClusterRoleBindingList. + :param items: The items of this V1ClusterRoleBindingList. # noqa: E501 :type: list[V1ClusterRoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ClusterRoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ClusterRoleBindingList. + :return: The kind of this V1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ClusterRoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ClusterRoleBindingList. + :param kind: The kind of this V1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ClusterRoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1ClusterRoleBindingList. # noqa: E501 + - :return: The metadata of this V1ClusterRoleBindingList. + :return: The metadata of this V1ClusterRoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ClusterRoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1ClusterRoleBindingList. + - :param metadata: The metadata of this V1ClusterRoleBindingList. + :param metadata: The metadata of this V1ClusterRoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ClusterRoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cluster_role_list.py b/kubernetes/client/models/v1_cluster_role_list.py index be032bacff..09f5f8417d 100644 --- a/kubernetes/client/models/v1_cluster_role_list.py +++ b/kubernetes/client/models/v1_cluster_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ClusterRoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ClusterRole]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ClusterRoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ClusterRoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ClusterRoleList. + :return: The api_version of this V1ClusterRoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ClusterRoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ClusterRoleList. + :param api_version: The api_version of this V1ClusterRoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ClusterRoleList. - Items is a list of ClusterRoles + """Gets the items of this V1ClusterRoleList. # noqa: E501 + + Items is a list of ClusterRoles # noqa: E501 - :return: The items of this V1ClusterRoleList. + :return: The items of this V1ClusterRoleList. # noqa: E501 :rtype: list[V1ClusterRole] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ClusterRoleList. - Items is a list of ClusterRoles + """Sets the items of this V1ClusterRoleList. + + Items is a list of ClusterRoles # noqa: E501 - :param items: The items of this V1ClusterRoleList. + :param items: The items of this V1ClusterRoleList. # noqa: E501 :type: list[V1ClusterRole] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ClusterRoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ClusterRoleList. + :return: The kind of this V1ClusterRoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ClusterRoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ClusterRoleList. + :param kind: The kind of this V1ClusterRoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ClusterRoleList. - Standard object's metadata. + """Gets the metadata of this V1ClusterRoleList. # noqa: E501 + - :return: The metadata of this V1ClusterRoleList. + :return: The metadata of this V1ClusterRoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ClusterRoleList. - Standard object's metadata. + """Sets the metadata of this V1ClusterRoleList. + - :param metadata: The metadata of this V1ClusterRoleList. + :param metadata: The metadata of this V1ClusterRoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ClusterRoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 5cd4e41c5d..22d86b1faa 100644 --- a/kubernetes/client/models/v1_component_condition.py +++ b/kubernetes/client/models/v1_component_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ComponentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'error': 'str', 'message': 'str', 'status': 'str', @@ -44,10 +44,8 @@ class V1ComponentCondition(object): 'type': 'type' } - def __init__(self, error=None, message=None, status=None, type=None): - """ - V1ComponentCondition - a model defined in Swagger - """ + def __init__(self, error=None, message=None, status=None, type=None): # noqa: E501 + """V1ComponentCondition - a model defined in OpenAPI""" # noqa: E501 self._error = None self._message = None @@ -56,30 +54,30 @@ def __init__(self, error=None, message=None, status=None, type=None): self.discriminator = None if error is not None: - self.error = error + self.error = error if message is not None: - self.message = message + self.message = message self.status = status self.type = type @property def error(self): - """ - Gets the error of this V1ComponentCondition. - Condition error code for a component. For example, a health check error code. + """Gets the error of this V1ComponentCondition. # noqa: E501 + + Condition error code for a component. For example, a health check error code. # noqa: E501 - :return: The error of this V1ComponentCondition. + :return: The error of this V1ComponentCondition. # noqa: E501 :rtype: str """ return self._error @error.setter def error(self, error): - """ - Sets the error of this V1ComponentCondition. - Condition error code for a component. For example, a health check error code. + """Sets the error of this V1ComponentCondition. + + Condition error code for a component. For example, a health check error code. # noqa: E501 - :param error: The error of this V1ComponentCondition. + :param error: The error of this V1ComponentCondition. # noqa: E501 :type: str """ @@ -87,22 +85,22 @@ def error(self, error): @property def message(self): - """ - Gets the message of this V1ComponentCondition. - Message about the condition for a component. For example, information about a health check. + """Gets the message of this V1ComponentCondition. # noqa: E501 + + Message about the condition for a component. For example, information about a health check. # noqa: E501 - :return: The message of this V1ComponentCondition. + :return: The message of this V1ComponentCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1ComponentCondition. - Message about the condition for a component. For example, information about a health check. + """Sets the message of this V1ComponentCondition. + + Message about the condition for a component. For example, information about a health check. # noqa: E501 - :param message: The message of this V1ComponentCondition. + :param message: The message of this V1ComponentCondition. # noqa: E501 :type: str """ @@ -110,61 +108,59 @@ def message(self, message): @property def status(self): - """ - Gets the status of this V1ComponentCondition. - Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". + """Gets the status of this V1ComponentCondition. # noqa: E501 + + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". # noqa: E501 - :return: The status of this V1ComponentCondition. + :return: The status of this V1ComponentCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ComponentCondition. - Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". + """Sets the status of this V1ComponentCondition. + + Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\". # noqa: E501 - :param status: The status of this V1ComponentCondition. + :param status: The status of this V1ComponentCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1ComponentCondition. - Type of condition for a component. Valid value: \"Healthy\" + """Gets the type of this V1ComponentCondition. # noqa: E501 + + Type of condition for a component. Valid value: \"Healthy\" # noqa: E501 - :return: The type of this V1ComponentCondition. + :return: The type of this V1ComponentCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1ComponentCondition. - Type of condition for a component. Valid value: \"Healthy\" + """Sets the type of this V1ComponentCondition. + + Type of condition for a component. Valid value: \"Healthy\" # noqa: E501 - :param type: The type of this V1ComponentCondition. + :param type: The type of this V1ComponentCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ComponentCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index 3d930c6d36..01b0cf8665 100644 --- a/kubernetes/client/models/v1_component_status.py +++ b/kubernetes/client/models/v1_component_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ComponentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'conditions': 'list[V1ComponentCondition]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ComponentStatus(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, conditions=None, kind=None, metadata=None): - """ - V1ComponentStatus - a model defined in Swagger - """ + def __init__(self, api_version=None, conditions=None, kind=None, metadata=None): # noqa: E501 + """V1ComponentStatus - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._conditions = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, conditions=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if conditions is not None: - self.conditions = conditions + self.conditions = conditions if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ComponentStatus. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ComponentStatus. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ComponentStatus. + :return: The api_version of this V1ComponentStatus. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ComponentStatus. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ComponentStatus. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ComponentStatus. + :param api_version: The api_version of this V1ComponentStatus. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def conditions(self): - """ - Gets the conditions of this V1ComponentStatus. - List of component conditions observed + """Gets the conditions of this V1ComponentStatus. # noqa: E501 + + List of component conditions observed # noqa: E501 - :return: The conditions of this V1ComponentStatus. + :return: The conditions of this V1ComponentStatus. # noqa: E501 :rtype: list[V1ComponentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1ComponentStatus. - List of component conditions observed + """Sets the conditions of this V1ComponentStatus. + + List of component conditions observed # noqa: E501 - :param conditions: The conditions of this V1ComponentStatus. + :param conditions: The conditions of this V1ComponentStatus. # noqa: E501 :type: list[V1ComponentCondition] """ @@ -112,22 +110,22 @@ def conditions(self, conditions): @property def kind(self): - """ - Gets the kind of this V1ComponentStatus. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ComponentStatus. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ComponentStatus. + :return: The kind of this V1ComponentStatus. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ComponentStatus. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ComponentStatus. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ComponentStatus. + :param kind: The kind of this V1ComponentStatus. # noqa: E501 :type: str """ @@ -135,34 +133,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ComponentStatus. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ComponentStatus. # noqa: E501 + - :return: The metadata of this V1ComponentStatus. + :return: The metadata of this V1ComponentStatus. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ComponentStatus. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ComponentStatus. + - :param metadata: The metadata of this V1ComponentStatus. + :param metadata: The metadata of this V1ComponentStatus. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ComponentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index e80d2d4ae1..6d53047e0a 100644 --- a/kubernetes/client/models/v1_component_status_list.py +++ b/kubernetes/client/models/v1_component_status_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ComponentStatusList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ComponentStatus]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ComponentStatusList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ComponentStatusList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ComponentStatusList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ComponentStatusList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ComponentStatusList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ComponentStatusList. + :return: The api_version of this V1ComponentStatusList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ComponentStatusList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ComponentStatusList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ComponentStatusList. + :param api_version: The api_version of this V1ComponentStatusList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ComponentStatusList. - List of ComponentStatus objects. + """Gets the items of this V1ComponentStatusList. # noqa: E501 + + List of ComponentStatus objects. # noqa: E501 - :return: The items of this V1ComponentStatusList. + :return: The items of this V1ComponentStatusList. # noqa: E501 :rtype: list[V1ComponentStatus] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ComponentStatusList. - List of ComponentStatus objects. + """Sets the items of this V1ComponentStatusList. + + List of ComponentStatus objects. # noqa: E501 - :param items: The items of this V1ComponentStatusList. + :param items: The items of this V1ComponentStatusList. # noqa: E501 :type: list[V1ComponentStatus] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ComponentStatusList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ComponentStatusList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ComponentStatusList. + :return: The kind of this V1ComponentStatusList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ComponentStatusList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ComponentStatusList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ComponentStatusList. + :param kind: The kind of this V1ComponentStatusList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ComponentStatusList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ComponentStatusList. # noqa: E501 + - :return: The metadata of this V1ComponentStatusList. + :return: The metadata of this V1ComponentStatusList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ComponentStatusList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ComponentStatusList. + - :param metadata: The metadata of this V1ComponentStatusList. + :param metadata: The metadata of this V1ComponentStatusList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ComponentStatusList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index d64d1428d7..9319098170 100644 --- a/kubernetes/client/models/v1_config_map.py +++ b/kubernetes/client/models/v1_config_map.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMap(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'binary_data': 'dict(str, str)', 'data': 'dict(str, str)', @@ -46,10 +46,8 @@ class V1ConfigMap(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, binary_data=None, data=None, kind=None, metadata=None): - """ - V1ConfigMap - a model defined in Swagger - """ + def __init__(self, api_version=None, binary_data=None, data=None, kind=None, metadata=None): # noqa: E501 + """V1ConfigMap - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._binary_data = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, binary_data=None, data=None, kind=None, met self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if binary_data is not None: - self.binary_data = binary_data + self.binary_data = binary_data if data is not None: - self.data = data + self.data = data if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ConfigMap. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ConfigMap. # noqa: E501 - :return: The api_version of this V1ConfigMap. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ConfigMap. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ConfigMap. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ConfigMap. - :param api_version: The api_version of this V1ConfigMap. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ConfigMap. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def binary_data(self): - """ - Gets the binary_data of this V1ConfigMap. - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + """Gets the binary_data of this V1ConfigMap. # noqa: E501 + + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. # noqa: E501 - :return: The binary_data of this V1ConfigMap. + :return: The binary_data of this V1ConfigMap. # noqa: E501 :rtype: dict(str, str) """ return self._binary_data @binary_data.setter def binary_data(self, binary_data): - """ - Sets the binary_data of this V1ConfigMap. - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + """Sets the binary_data of this V1ConfigMap. + + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. # noqa: E501 - :param binary_data: The binary_data of this V1ConfigMap. + :param binary_data: The binary_data of this V1ConfigMap. # noqa: E501 :type: dict(str, str) """ @@ -117,22 +115,22 @@ def binary_data(self, binary_data): @property def data(self): - """ - Gets the data of this V1ConfigMap. - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + """Gets the data of this V1ConfigMap. # noqa: E501 + + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. # noqa: E501 - :return: The data of this V1ConfigMap. + :return: The data of this V1ConfigMap. # noqa: E501 :rtype: dict(str, str) """ return self._data @data.setter def data(self, data): - """ - Sets the data of this V1ConfigMap. - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + """Sets the data of this V1ConfigMap. + + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. # noqa: E501 - :param data: The data of this V1ConfigMap. + :param data: The data of this V1ConfigMap. # noqa: E501 :type: dict(str, str) """ @@ -140,22 +138,22 @@ def data(self, data): @property def kind(self): - """ - Gets the kind of this V1ConfigMap. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ConfigMap. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ConfigMap. + :return: The kind of this V1ConfigMap. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ConfigMap. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ConfigMap. - :param kind: The kind of this V1ConfigMap. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ConfigMap. # noqa: E501 :type: str """ @@ -163,34 +161,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ConfigMap. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ConfigMap. # noqa: E501 - :return: The metadata of this V1ConfigMap. + + :return: The metadata of this V1ConfigMap. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ConfigMap. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ConfigMap. - :param metadata: The metadata of this V1ConfigMap. + + :param metadata: The metadata of this V1ConfigMap. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +205,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMap): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py index aec52ca795..5f0d27b6b4 100644 --- a/kubernetes/client/models/v1_config_map_env_source.py +++ b/kubernetes/client/models/v1_config_map_env_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapEnvSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'optional': 'bool' } @@ -40,38 +40,36 @@ class V1ConfigMapEnvSource(object): 'optional': 'optional' } - def __init__(self, name=None, optional=None): - """ - V1ConfigMapEnvSource - a model defined in Swagger - """ + def __init__(self, name=None, optional=None): # noqa: E501 + """V1ConfigMapEnvSource - a model defined in OpenAPI""" # noqa: E501 self._name = None self._optional = None self.discriminator = None if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def name(self): - """ - Gets the name of this V1ConfigMapEnvSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1ConfigMapEnvSource. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :return: The name of this V1ConfigMapEnvSource. + :return: The name of this V1ConfigMapEnvSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ConfigMapEnvSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1ConfigMapEnvSource. - :param name: The name of this V1ConfigMapEnvSource. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1ConfigMapEnvSource. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1ConfigMapEnvSource. - Specify whether the ConfigMap must be defined + """Gets the optional of this V1ConfigMapEnvSource. # noqa: E501 + + Specify whether the ConfigMap must be defined # noqa: E501 - :return: The optional of this V1ConfigMapEnvSource. + :return: The optional of this V1ConfigMapEnvSource. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1ConfigMapEnvSource. - Specify whether the ConfigMap must be defined + """Sets the optional of this V1ConfigMapEnvSource. + + Specify whether the ConfigMap must be defined # noqa: E501 - :param optional: The optional of this V1ConfigMapEnvSource. + :param optional: The optional of this V1ConfigMapEnvSource. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapEnvSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index f18b4e8157..741d4b4403 100644 --- a/kubernetes/client/models/v1_config_map_key_selector.py +++ b/kubernetes/client/models/v1_config_map_key_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapKeySelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'name': 'str', 'optional': 'bool' @@ -42,10 +42,8 @@ class V1ConfigMapKeySelector(object): 'optional': 'optional' } - def __init__(self, key=None, name=None, optional=None): - """ - V1ConfigMapKeySelector - a model defined in Swagger - """ + def __init__(self, key=None, name=None, optional=None): # noqa: E501 + """V1ConfigMapKeySelector - a model defined in OpenAPI""" # noqa: E501 self._key = None self._name = None @@ -54,53 +52,53 @@ def __init__(self, key=None, name=None, optional=None): self.key = key if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def key(self): - """ - Gets the key of this V1ConfigMapKeySelector. - The key to select. + """Gets the key of this V1ConfigMapKeySelector. # noqa: E501 - :return: The key of this V1ConfigMapKeySelector. + The key to select. # noqa: E501 + + :return: The key of this V1ConfigMapKeySelector. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1ConfigMapKeySelector. - The key to select. + """Sets the key of this V1ConfigMapKeySelector. - :param key: The key of this V1ConfigMapKeySelector. + The key to select. # noqa: E501 + + :param key: The key of this V1ConfigMapKeySelector. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def name(self): - """ - Gets the name of this V1ConfigMapKeySelector. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1ConfigMapKeySelector. # noqa: E501 - :return: The name of this V1ConfigMapKeySelector. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1ConfigMapKeySelector. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ConfigMapKeySelector. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1ConfigMapKeySelector. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1ConfigMapKeySelector. + :param name: The name of this V1ConfigMapKeySelector. # noqa: E501 :type: str """ @@ -108,34 +106,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1ConfigMapKeySelector. - Specify whether the ConfigMap or it's key must be defined + """Gets the optional of this V1ConfigMapKeySelector. # noqa: E501 + + Specify whether the ConfigMap or its key must be defined # noqa: E501 - :return: The optional of this V1ConfigMapKeySelector. + :return: The optional of this V1ConfigMapKeySelector. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1ConfigMapKeySelector. - Specify whether the ConfigMap or it's key must be defined + """Sets the optional of this V1ConfigMapKeySelector. + + Specify whether the ConfigMap or its key must be defined # noqa: E501 - :param optional: The optional of this V1ConfigMapKeySelector. + :param optional: The optional of this V1ConfigMapKeySelector. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapKeySelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index 67cb048074..636df6faf0 100644 --- a/kubernetes/client/models/v1_config_map_list.py +++ b/kubernetes/client/models/v1_config_map_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ConfigMap]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ConfigMapList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ConfigMapList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ConfigMapList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ConfigMapList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ConfigMapList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ConfigMapList. + :return: The api_version of this V1ConfigMapList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ConfigMapList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ConfigMapList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ConfigMapList. + :param api_version: The api_version of this V1ConfigMapList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ConfigMapList. - Items is the list of ConfigMaps. + """Gets the items of this V1ConfigMapList. # noqa: E501 + + Items is the list of ConfigMaps. # noqa: E501 - :return: The items of this V1ConfigMapList. + :return: The items of this V1ConfigMapList. # noqa: E501 :rtype: list[V1ConfigMap] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ConfigMapList. - Items is the list of ConfigMaps. + """Sets the items of this V1ConfigMapList. + + Items is the list of ConfigMaps. # noqa: E501 - :param items: The items of this V1ConfigMapList. + :param items: The items of this V1ConfigMapList. # noqa: E501 :type: list[V1ConfigMap] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ConfigMapList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ConfigMapList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ConfigMapList. + :return: The kind of this V1ConfigMapList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ConfigMapList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ConfigMapList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ConfigMapList. + :param kind: The kind of this V1ConfigMapList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ConfigMapList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ConfigMapList. # noqa: E501 + - :return: The metadata of this V1ConfigMapList. + :return: The metadata of this V1ConfigMapList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ConfigMapList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ConfigMapList. + - :param metadata: The metadata of this V1ConfigMapList. + :param metadata: The metadata of this V1ConfigMapList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_node_config_source.py b/kubernetes/client/models/v1_config_map_node_config_source.py index e75fac87c6..4e3cdf13cf 100644 --- a/kubernetes/client/models/v1_config_map_node_config_source.py +++ b/kubernetes/client/models/v1_config_map_node_config_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapNodeConfigSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'kubelet_config_key': 'str', 'name': 'str', 'namespace': 'str', @@ -46,10 +46,8 @@ class V1ConfigMapNodeConfigSource(object): 'uid': 'uid' } - def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_version=None, uid=None): - """ - V1ConfigMapNodeConfigSource - a model defined in Swagger - """ + def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_version=None, uid=None): # noqa: E501 + """V1ConfigMapNodeConfigSource - a model defined in OpenAPI""" # noqa: E501 self._kubelet_config_key = None self._name = None @@ -62,103 +60,103 @@ def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_ self.name = name self.namespace = namespace if resource_version is not None: - self.resource_version = resource_version + self.resource_version = resource_version if uid is not None: - self.uid = uid + self.uid = uid @property def kubelet_config_key(self): - """ - Gets the kubelet_config_key of this V1ConfigMapNodeConfigSource. - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + """Gets the kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501 - :return: The kubelet_config_key of this V1ConfigMapNodeConfigSource. + KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. # noqa: E501 + + :return: The kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501 :rtype: str """ return self._kubelet_config_key @kubelet_config_key.setter def kubelet_config_key(self, kubelet_config_key): - """ - Sets the kubelet_config_key of this V1ConfigMapNodeConfigSource. - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + """Sets the kubelet_config_key of this V1ConfigMapNodeConfigSource. - :param kubelet_config_key: The kubelet_config_key of this V1ConfigMapNodeConfigSource. + KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. # noqa: E501 + + :param kubelet_config_key: The kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ if kubelet_config_key is None: - raise ValueError("Invalid value for `kubelet_config_key`, must not be `None`") + raise ValueError("Invalid value for `kubelet_config_key`, must not be `None`") # noqa: E501 self._kubelet_config_key = kubelet_config_key @property def name(self): - """ - Gets the name of this V1ConfigMapNodeConfigSource. - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + """Gets the name of this V1ConfigMapNodeConfigSource. # noqa: E501 + + Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. # noqa: E501 - :return: The name of this V1ConfigMapNodeConfigSource. + :return: The name of this V1ConfigMapNodeConfigSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ConfigMapNodeConfigSource. - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + """Sets the name of this V1ConfigMapNodeConfigSource. + + Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. # noqa: E501 - :param name: The name of this V1ConfigMapNodeConfigSource. + :param name: The name of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this V1ConfigMapNodeConfigSource. - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + """Gets the namespace of this V1ConfigMapNodeConfigSource. # noqa: E501 + + Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. # noqa: E501 - :return: The namespace of this V1ConfigMapNodeConfigSource. + :return: The namespace of this V1ConfigMapNodeConfigSource. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1ConfigMapNodeConfigSource. - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + """Sets the namespace of this V1ConfigMapNodeConfigSource. + + Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. # noqa: E501 - :param namespace: The namespace of this V1ConfigMapNodeConfigSource. + :param namespace: The namespace of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ if namespace is None: - raise ValueError("Invalid value for `namespace`, must not be `None`") + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @property def resource_version(self): - """ - Gets the resource_version of this V1ConfigMapNodeConfigSource. - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + """Gets the resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501 + + ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501 - :return: The resource_version of this V1ConfigMapNodeConfigSource. + :return: The resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501 :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): - """ - Sets the resource_version of this V1ConfigMapNodeConfigSource. - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + """Sets the resource_version of this V1ConfigMapNodeConfigSource. - :param resource_version: The resource_version of this V1ConfigMapNodeConfigSource. + ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501 + + :param resource_version: The resource_version of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ @@ -166,34 +164,32 @@ def resource_version(self, resource_version): @property def uid(self): - """ - Gets the uid of this V1ConfigMapNodeConfigSource. - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + """Gets the uid of this V1ConfigMapNodeConfigSource. # noqa: E501 - :return: The uid of this V1ConfigMapNodeConfigSource. + UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501 + + :return: The uid of this V1ConfigMapNodeConfigSource. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1ConfigMapNodeConfigSource. - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + """Sets the uid of this V1ConfigMapNodeConfigSource. - :param uid: The uid of this V1ConfigMapNodeConfigSource. + UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. # noqa: E501 + + :param uid: The uid of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -214,28 +210,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapNodeConfigSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py index cf00c51b6e..adc00bff41 100644 --- a/kubernetes/client/models/v1_config_map_projection.py +++ b/kubernetes/client/models/v1_config_map_projection.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'items': 'list[V1KeyToPath]', 'name': 'str', 'optional': 'bool' @@ -42,10 +42,8 @@ class V1ConfigMapProjection(object): 'optional': 'optional' } - def __init__(self, items=None, name=None, optional=None): - """ - V1ConfigMapProjection - a model defined in Swagger - """ + def __init__(self, items=None, name=None, optional=None): # noqa: E501 + """V1ConfigMapProjection - a model defined in OpenAPI""" # noqa: E501 self._items = None self._name = None @@ -53,30 +51,30 @@ def __init__(self, items=None, name=None, optional=None): self.discriminator = None if items is not None: - self.items = items + self.items = items if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def items(self): - """ - Gets the items of this V1ConfigMapProjection. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Gets the items of this V1ConfigMapProjection. # noqa: E501 - :return: The items of this V1ConfigMapProjection. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :return: The items of this V1ConfigMapProjection. # noqa: E501 :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ConfigMapProjection. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Sets the items of this V1ConfigMapProjection. - :param items: The items of this V1ConfigMapProjection. + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :param items: The items of this V1ConfigMapProjection. # noqa: E501 :type: list[V1KeyToPath] """ @@ -84,22 +82,22 @@ def items(self, items): @property def name(self): - """ - Gets the name of this V1ConfigMapProjection. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1ConfigMapProjection. # noqa: E501 - :return: The name of this V1ConfigMapProjection. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1ConfigMapProjection. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ConfigMapProjection. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1ConfigMapProjection. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1ConfigMapProjection. + :param name: The name of this V1ConfigMapProjection. # noqa: E501 :type: str """ @@ -107,34 +105,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1ConfigMapProjection. - Specify whether the ConfigMap or it's keys must be defined + """Gets the optional of this V1ConfigMapProjection. # noqa: E501 + + Specify whether the ConfigMap or its keys must be defined # noqa: E501 - :return: The optional of this V1ConfigMapProjection. + :return: The optional of this V1ConfigMapProjection. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1ConfigMapProjection. - Specify whether the ConfigMap or it's keys must be defined + """Sets the optional of this V1ConfigMapProjection. + + Specify whether the ConfigMap or its keys must be defined # noqa: E501 - :param optional: The optional of this V1ConfigMapProjection. + :param optional: The optional of this V1ConfigMapProjection. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapProjection): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index dd3c42b1b0..493aa2fc2f 100644 --- a/kubernetes/client/models/v1_config_map_volume_source.py +++ b/kubernetes/client/models/v1_config_map_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ConfigMapVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', 'name': 'str', @@ -44,10 +44,8 @@ class V1ConfigMapVolumeSource(object): 'optional': 'optional' } - def __init__(self, default_mode=None, items=None, name=None, optional=None): - """ - V1ConfigMapVolumeSource - a model defined in Swagger - """ + def __init__(self, default_mode=None, items=None, name=None, optional=None): # noqa: E501 + """V1ConfigMapVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._default_mode = None self._items = None @@ -56,32 +54,32 @@ def __init__(self, default_mode=None, items=None, name=None, optional=None): self.discriminator = None if default_mode is not None: - self.default_mode = default_mode + self.default_mode = default_mode if items is not None: - self.items = items + self.items = items if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def default_mode(self): - """ - Gets the default_mode of this V1ConfigMapVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the default_mode of this V1ConfigMapVolumeSource. # noqa: E501 + + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :return: The default_mode of this V1ConfigMapVolumeSource. + :return: The default_mode of this V1ConfigMapVolumeSource. # noqa: E501 :rtype: int """ return self._default_mode @default_mode.setter def default_mode(self, default_mode): - """ - Sets the default_mode of this V1ConfigMapVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the default_mode of this V1ConfigMapVolumeSource. + + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :param default_mode: The default_mode of this V1ConfigMapVolumeSource. + :param default_mode: The default_mode of this V1ConfigMapVolumeSource. # noqa: E501 :type: int """ @@ -89,22 +87,22 @@ def default_mode(self, default_mode): @property def items(self): - """ - Gets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Gets the items of this V1ConfigMapVolumeSource. # noqa: E501 + + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 - :return: The items of this V1ConfigMapVolumeSource. + :return: The items of this V1ConfigMapVolumeSource. # noqa: E501 :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Sets the items of this V1ConfigMapVolumeSource. + + If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 - :param items: The items of this V1ConfigMapVolumeSource. + :param items: The items of this V1ConfigMapVolumeSource. # noqa: E501 :type: list[V1KeyToPath] """ @@ -112,22 +110,22 @@ def items(self, items): @property def name(self): - """ - Gets the name of this V1ConfigMapVolumeSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1ConfigMapVolumeSource. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :return: The name of this V1ConfigMapVolumeSource. + :return: The name of this V1ConfigMapVolumeSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ConfigMapVolumeSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1ConfigMapVolumeSource. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1ConfigMapVolumeSource. + :param name: The name of this V1ConfigMapVolumeSource. # noqa: E501 :type: str """ @@ -135,34 +133,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined + """Gets the optional of this V1ConfigMapVolumeSource. # noqa: E501 + + Specify whether the ConfigMap or its keys must be defined # noqa: E501 - :return: The optional of this V1ConfigMapVolumeSource. + :return: The optional of this V1ConfigMapVolumeSource. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1ConfigMapVolumeSource. - Specify whether the ConfigMap or it's keys must be defined + """Sets the optional of this V1ConfigMapVolumeSource. + + Specify whether the ConfigMap or its keys must be defined # noqa: E501 - :param optional: The optional of this V1ConfigMapVolumeSource. + :param optional: The optional of this V1ConfigMapVolumeSource. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ConfigMapVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index f973f8d359..576abf35b1 100644 --- a/kubernetes/client/models/v1_container.py +++ b/kubernetes/client/models/v1_container.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Container(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'args': 'list[str]', 'command': 'list[str]', 'env': 'list[V1EnvVar]', @@ -78,10 +78,8 @@ class V1Container(object): 'working_dir': 'workingDir' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None): - """ - V1Container - a model defined in Swagger - """ + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None): # noqa: E501 + """V1Container - a model defined in OpenAPI""" # noqa: E501 self._args = None self._command = None @@ -107,65 +105,65 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.discriminator = None if args is not None: - self.args = args + self.args = args if command is not None: - self.command = command + self.command = command if env is not None: - self.env = env + self.env = env if env_from is not None: - self.env_from = env_from + self.env_from = env_from if image is not None: - self.image = image + self.image = image if image_pull_policy is not None: - self.image_pull_policy = image_pull_policy + self.image_pull_policy = image_pull_policy if lifecycle is not None: - self.lifecycle = lifecycle + self.lifecycle = lifecycle if liveness_probe is not None: - self.liveness_probe = liveness_probe + self.liveness_probe = liveness_probe self.name = name if ports is not None: - self.ports = ports + self.ports = ports if readiness_probe is not None: - self.readiness_probe = readiness_probe + self.readiness_probe = readiness_probe if resources is not None: - self.resources = resources + self.resources = resources if security_context is not None: - self.security_context = security_context + self.security_context = security_context if stdin is not None: - self.stdin = stdin + self.stdin = stdin if stdin_once is not None: - self.stdin_once = stdin_once + self.stdin_once = stdin_once if termination_message_path is not None: - self.termination_message_path = termination_message_path + self.termination_message_path = termination_message_path if termination_message_policy is not None: - self.termination_message_policy = termination_message_policy + self.termination_message_policy = termination_message_policy if tty is not None: - self.tty = tty + self.tty = tty if volume_devices is not None: - self.volume_devices = volume_devices + self.volume_devices = volume_devices if volume_mounts is not None: - self.volume_mounts = volume_mounts + self.volume_mounts = volume_mounts if working_dir is not None: - self.working_dir = working_dir + self.working_dir = working_dir @property def args(self): - """ - Gets the args of this V1Container. - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + """Gets the args of this V1Container. # noqa: E501 - :return: The args of this V1Container. + Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501 + + :return: The args of this V1Container. # noqa: E501 :rtype: list[str] """ return self._args @args.setter def args(self, args): - """ - Sets the args of this V1Container. - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + """Sets the args of this V1Container. + + Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501 - :param args: The args of this V1Container. + :param args: The args of this V1Container. # noqa: E501 :type: list[str] """ @@ -173,22 +171,22 @@ def args(self, args): @property def command(self): - """ - Gets the command of this V1Container. - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + """Gets the command of this V1Container. # noqa: E501 + + Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501 - :return: The command of this V1Container. + :return: The command of this V1Container. # noqa: E501 :rtype: list[str] """ return self._command @command.setter def command(self, command): - """ - Sets the command of this V1Container. - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + """Sets the command of this V1Container. - :param command: The command of this V1Container. + Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell # noqa: E501 + + :param command: The command of this V1Container. # noqa: E501 :type: list[str] """ @@ -196,22 +194,22 @@ def command(self, command): @property def env(self): - """ - Gets the env of this V1Container. - List of environment variables to set in the container. Cannot be updated. + """Gets the env of this V1Container. # noqa: E501 + + List of environment variables to set in the container. Cannot be updated. # noqa: E501 - :return: The env of this V1Container. + :return: The env of this V1Container. # noqa: E501 :rtype: list[V1EnvVar] """ return self._env @env.setter def env(self, env): - """ - Sets the env of this V1Container. - List of environment variables to set in the container. Cannot be updated. + """Sets the env of this V1Container. + + List of environment variables to set in the container. Cannot be updated. # noqa: E501 - :param env: The env of this V1Container. + :param env: The env of this V1Container. # noqa: E501 :type: list[V1EnvVar] """ @@ -219,22 +217,22 @@ def env(self, env): @property def env_from(self): - """ - Gets the env_from of this V1Container. - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + """Gets the env_from of this V1Container. # noqa: E501 - :return: The env_from of this V1Container. + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 + + :return: The env_from of this V1Container. # noqa: E501 :rtype: list[V1EnvFromSource] """ return self._env_from @env_from.setter def env_from(self, env_from): - """ - Sets the env_from of this V1Container. - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + """Sets the env_from of this V1Container. + + List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501 - :param env_from: The env_from of this V1Container. + :param env_from: The env_from of this V1Container. # noqa: E501 :type: list[V1EnvFromSource] """ @@ -242,22 +240,22 @@ def env_from(self, env_from): @property def image(self): - """ - Gets the image of this V1Container. - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + """Gets the image of this V1Container. # noqa: E501 + + Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501 - :return: The image of this V1Container. + :return: The image of this V1Container. # noqa: E501 :rtype: str """ return self._image @image.setter def image(self, image): - """ - Sets the image of this V1Container. - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + """Sets the image of this V1Container. - :param image: The image of this V1Container. + Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. # noqa: E501 + + :param image: The image of this V1Container. # noqa: E501 :type: str """ @@ -265,22 +263,22 @@ def image(self, image): @property def image_pull_policy(self): - """ - Gets the image_pull_policy of this V1Container. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + """Gets the image_pull_policy of this V1Container. # noqa: E501 - :return: The image_pull_policy of this V1Container. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501 + + :return: The image_pull_policy of this V1Container. # noqa: E501 :rtype: str """ return self._image_pull_policy @image_pull_policy.setter def image_pull_policy(self, image_pull_policy): - """ - Sets the image_pull_policy of this V1Container. - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + """Sets the image_pull_policy of this V1Container. - :param image_pull_policy: The image_pull_policy of this V1Container. + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501 + + :param image_pull_policy: The image_pull_policy of this V1Container. # noqa: E501 :type: str """ @@ -288,22 +286,20 @@ def image_pull_policy(self, image_pull_policy): @property def lifecycle(self): - """ - Gets the lifecycle of this V1Container. - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + """Gets the lifecycle of this V1Container. # noqa: E501 + - :return: The lifecycle of this V1Container. + :return: The lifecycle of this V1Container. # noqa: E501 :rtype: V1Lifecycle """ return self._lifecycle @lifecycle.setter def lifecycle(self, lifecycle): - """ - Sets the lifecycle of this V1Container. - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + """Sets the lifecycle of this V1Container. + - :param lifecycle: The lifecycle of this V1Container. + :param lifecycle: The lifecycle of this V1Container. # noqa: E501 :type: V1Lifecycle """ @@ -311,22 +307,20 @@ def lifecycle(self, lifecycle): @property def liveness_probe(self): - """ - Gets the liveness_probe of this V1Container. - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Gets the liveness_probe of this V1Container. # noqa: E501 - :return: The liveness_probe of this V1Container. + + :return: The liveness_probe of this V1Container. # noqa: E501 :rtype: V1Probe """ return self._liveness_probe @liveness_probe.setter def liveness_probe(self, liveness_probe): - """ - Sets the liveness_probe of this V1Container. - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Sets the liveness_probe of this V1Container. + - :param liveness_probe: The liveness_probe of this V1Container. + :param liveness_probe: The liveness_probe of this V1Container. # noqa: E501 :type: V1Probe """ @@ -334,47 +328,47 @@ def liveness_probe(self, liveness_probe): @property def name(self): - """ - Gets the name of this V1Container. - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + """Gets the name of this V1Container. # noqa: E501 + + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501 - :return: The name of this V1Container. + :return: The name of this V1Container. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1Container. - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + """Sets the name of this V1Container. - :param name: The name of this V1Container. + Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. # noqa: E501 + + :param name: The name of this V1Container. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def ports(self): - """ - Gets the ports of this V1Container. - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. + """Gets the ports of this V1Container. # noqa: E501 + + List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. # noqa: E501 - :return: The ports of this V1Container. + :return: The ports of this V1Container. # noqa: E501 :rtype: list[V1ContainerPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1Container. - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. + """Sets the ports of this V1Container. + + List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. # noqa: E501 - :param ports: The ports of this V1Container. + :param ports: The ports of this V1Container. # noqa: E501 :type: list[V1ContainerPort] """ @@ -382,22 +376,20 @@ def ports(self, ports): @property def readiness_probe(self): - """ - Gets the readiness_probe of this V1Container. - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Gets the readiness_probe of this V1Container. # noqa: E501 - :return: The readiness_probe of this V1Container. + + :return: The readiness_probe of this V1Container. # noqa: E501 :rtype: V1Probe """ return self._readiness_probe @readiness_probe.setter def readiness_probe(self, readiness_probe): - """ - Sets the readiness_probe of this V1Container. - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Sets the readiness_probe of this V1Container. + - :param readiness_probe: The readiness_probe of this V1Container. + :param readiness_probe: The readiness_probe of this V1Container. # noqa: E501 :type: V1Probe """ @@ -405,22 +397,20 @@ def readiness_probe(self, readiness_probe): @property def resources(self): - """ - Gets the resources of this V1Container. - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Gets the resources of this V1Container. # noqa: E501 + - :return: The resources of this V1Container. + :return: The resources of this V1Container. # noqa: E501 :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1Container. - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Sets the resources of this V1Container. + - :param resources: The resources of this V1Container. + :param resources: The resources of this V1Container. # noqa: E501 :type: V1ResourceRequirements """ @@ -428,22 +418,20 @@ def resources(self, resources): @property def security_context(self): - """ - Gets the security_context of this V1Container. - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Gets the security_context of this V1Container. # noqa: E501 + - :return: The security_context of this V1Container. + :return: The security_context of this V1Container. # noqa: E501 :rtype: V1SecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): - """ - Sets the security_context of this V1Container. - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + """Sets the security_context of this V1Container. - :param security_context: The security_context of this V1Container. + + :param security_context: The security_context of this V1Container. # noqa: E501 :type: V1SecurityContext """ @@ -451,22 +439,22 @@ def security_context(self, security_context): @property def stdin(self): - """ - Gets the stdin of this V1Container. - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + """Gets the stdin of this V1Container. # noqa: E501 + + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501 - :return: The stdin of this V1Container. + :return: The stdin of this V1Container. # noqa: E501 :rtype: bool """ return self._stdin @stdin.setter def stdin(self, stdin): - """ - Sets the stdin of this V1Container. - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + """Sets the stdin of this V1Container. + + Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. # noqa: E501 - :param stdin: The stdin of this V1Container. + :param stdin: The stdin of this V1Container. # noqa: E501 :type: bool """ @@ -474,22 +462,22 @@ def stdin(self, stdin): @property def stdin_once(self): - """ - Gets the stdin_once of this V1Container. - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + """Gets the stdin_once of this V1Container. # noqa: E501 - :return: The stdin_once of this V1Container. + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501 + + :return: The stdin_once of this V1Container. # noqa: E501 :rtype: bool """ return self._stdin_once @stdin_once.setter def stdin_once(self, stdin_once): - """ - Sets the stdin_once of this V1Container. - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + """Sets the stdin_once of this V1Container. + + Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false # noqa: E501 - :param stdin_once: The stdin_once of this V1Container. + :param stdin_once: The stdin_once of this V1Container. # noqa: E501 :type: bool """ @@ -497,22 +485,22 @@ def stdin_once(self, stdin_once): @property def termination_message_path(self): - """ - Gets the termination_message_path of this V1Container. - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + """Gets the termination_message_path of this V1Container. # noqa: E501 + + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501 - :return: The termination_message_path of this V1Container. + :return: The termination_message_path of this V1Container. # noqa: E501 :rtype: str """ return self._termination_message_path @termination_message_path.setter def termination_message_path(self, termination_message_path): - """ - Sets the termination_message_path of this V1Container. - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + """Sets the termination_message_path of this V1Container. - :param termination_message_path: The termination_message_path of this V1Container. + Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. # noqa: E501 + + :param termination_message_path: The termination_message_path of this V1Container. # noqa: E501 :type: str """ @@ -520,22 +508,22 @@ def termination_message_path(self, termination_message_path): @property def termination_message_policy(self): - """ - Gets the termination_message_policy of this V1Container. - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + """Gets the termination_message_policy of this V1Container. # noqa: E501 + + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501 - :return: The termination_message_policy of this V1Container. + :return: The termination_message_policy of this V1Container. # noqa: E501 :rtype: str """ return self._termination_message_policy @termination_message_policy.setter def termination_message_policy(self, termination_message_policy): - """ - Sets the termination_message_policy of this V1Container. - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + """Sets the termination_message_policy of this V1Container. + + Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501 - :param termination_message_policy: The termination_message_policy of this V1Container. + :param termination_message_policy: The termination_message_policy of this V1Container. # noqa: E501 :type: str """ @@ -543,22 +531,22 @@ def termination_message_policy(self, termination_message_policy): @property def tty(self): - """ - Gets the tty of this V1Container. - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + """Gets the tty of this V1Container. # noqa: E501 - :return: The tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501 + + :return: The tty of this V1Container. # noqa: E501 :rtype: bool """ return self._tty @tty.setter def tty(self, tty): - """ - Sets the tty of this V1Container. - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + """Sets the tty of this V1Container. - :param tty: The tty of this V1Container. + Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. # noqa: E501 + + :param tty: The tty of this V1Container. # noqa: E501 :type: bool """ @@ -566,22 +554,22 @@ def tty(self, tty): @property def volume_devices(self): - """ - Gets the volume_devices of this V1Container. - volumeDevices is the list of block devices to be used by the container. This is a beta feature. + """Gets the volume_devices of this V1Container. # noqa: E501 - :return: The volume_devices of this V1Container. + volumeDevices is the list of block devices to be used by the container. This is a beta feature. # noqa: E501 + + :return: The volume_devices of this V1Container. # noqa: E501 :rtype: list[V1VolumeDevice] """ return self._volume_devices @volume_devices.setter def volume_devices(self, volume_devices): - """ - Sets the volume_devices of this V1Container. - volumeDevices is the list of block devices to be used by the container. This is a beta feature. + """Sets the volume_devices of this V1Container. + + volumeDevices is the list of block devices to be used by the container. This is a beta feature. # noqa: E501 - :param volume_devices: The volume_devices of this V1Container. + :param volume_devices: The volume_devices of this V1Container. # noqa: E501 :type: list[V1VolumeDevice] """ @@ -589,22 +577,22 @@ def volume_devices(self, volume_devices): @property def volume_mounts(self): - """ - Gets the volume_mounts of this V1Container. - Pod volumes to mount into the container's filesystem. Cannot be updated. + """Gets the volume_mounts of this V1Container. # noqa: E501 + + Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501 - :return: The volume_mounts of this V1Container. + :return: The volume_mounts of this V1Container. # noqa: E501 :rtype: list[V1VolumeMount] """ return self._volume_mounts @volume_mounts.setter def volume_mounts(self, volume_mounts): - """ - Sets the volume_mounts of this V1Container. - Pod volumes to mount into the container's filesystem. Cannot be updated. + """Sets the volume_mounts of this V1Container. - :param volume_mounts: The volume_mounts of this V1Container. + Pod volumes to mount into the container's filesystem. Cannot be updated. # noqa: E501 + + :param volume_mounts: The volume_mounts of this V1Container. # noqa: E501 :type: list[V1VolumeMount] """ @@ -612,34 +600,32 @@ def volume_mounts(self, volume_mounts): @property def working_dir(self): - """ - Gets the working_dir of this V1Container. - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + """Gets the working_dir of this V1Container. # noqa: E501 + + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501 - :return: The working_dir of this V1Container. + :return: The working_dir of this V1Container. # noqa: E501 :rtype: str """ return self._working_dir @working_dir.setter def working_dir(self, working_dir): - """ - Sets the working_dir of this V1Container. - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + """Sets the working_dir of this V1Container. + + Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. # noqa: E501 - :param working_dir: The working_dir of this V1Container. + :param working_dir: The working_dir of this V1Container. # noqa: E501 :type: str """ self._working_dir = working_dir def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -660,28 +646,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Container): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 57fad0708e..8f0c32e9be 100644 --- a/kubernetes/client/models/v1_container_image.py +++ b/kubernetes/client/models/v1_container_image.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerImage(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'names': 'list[str]', 'size_bytes': 'int' } @@ -40,10 +40,8 @@ class V1ContainerImage(object): 'size_bytes': 'sizeBytes' } - def __init__(self, names=None, size_bytes=None): - """ - V1ContainerImage - a model defined in Swagger - """ + def __init__(self, names=None, size_bytes=None): # noqa: E501 + """V1ContainerImage - a model defined in OpenAPI""" # noqa: E501 self._names = None self._size_bytes = None @@ -51,63 +49,61 @@ def __init__(self, names=None, size_bytes=None): self.names = names if size_bytes is not None: - self.size_bytes = size_bytes + self.size_bytes = size_bytes @property def names(self): - """ - Gets the names of this V1ContainerImage. - Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + """Gets the names of this V1ContainerImage. # noqa: E501 + + Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] # noqa: E501 - :return: The names of this V1ContainerImage. + :return: The names of this V1ContainerImage. # noqa: E501 :rtype: list[str] """ return self._names @names.setter def names(self, names): - """ - Sets the names of this V1ContainerImage. - Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + """Sets the names of this V1ContainerImage. - :param names: The names of this V1ContainerImage. + Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] # noqa: E501 + + :param names: The names of this V1ContainerImage. # noqa: E501 :type: list[str] """ if names is None: - raise ValueError("Invalid value for `names`, must not be `None`") + raise ValueError("Invalid value for `names`, must not be `None`") # noqa: E501 self._names = names @property def size_bytes(self): - """ - Gets the size_bytes of this V1ContainerImage. - The size of the image in bytes. + """Gets the size_bytes of this V1ContainerImage. # noqa: E501 + + The size of the image in bytes. # noqa: E501 - :return: The size_bytes of this V1ContainerImage. + :return: The size_bytes of this V1ContainerImage. # noqa: E501 :rtype: int """ return self._size_bytes @size_bytes.setter def size_bytes(self, size_bytes): - """ - Sets the size_bytes of this V1ContainerImage. - The size of the image in bytes. + """Sets the size_bytes of this V1ContainerImage. + + The size of the image in bytes. # noqa: E501 - :param size_bytes: The size_bytes of this V1ContainerImage. + :param size_bytes: The size_bytes of this V1ContainerImage. # noqa: E501 :type: int """ self._size_bytes = size_bytes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerImage): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index 5ab30c5f8f..69c4dd6648 100644 --- a/kubernetes/client/models/v1_container_port.py +++ b/kubernetes/client/models/v1_container_port.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerPort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'container_port': 'int', 'host_ip': 'str', 'host_port': 'int', @@ -46,10 +46,8 @@ class V1ContainerPort(object): 'protocol': 'protocol' } - def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None): - """ - V1ContainerPort - a model defined in Swagger - """ + def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None): # noqa: E501 + """V1ContainerPort - a model defined in OpenAPI""" # noqa: E501 self._container_port = None self._host_ip = None @@ -60,57 +58,57 @@ def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, self.container_port = container_port if host_ip is not None: - self.host_ip = host_ip + self.host_ip = host_ip if host_port is not None: - self.host_port = host_port + self.host_port = host_port if name is not None: - self.name = name + self.name = name if protocol is not None: - self.protocol = protocol + self.protocol = protocol @property def container_port(self): - """ - Gets the container_port of this V1ContainerPort. - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + """Gets the container_port of this V1ContainerPort. # noqa: E501 - :return: The container_port of this V1ContainerPort. + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :return: The container_port of this V1ContainerPort. # noqa: E501 :rtype: int """ return self._container_port @container_port.setter def container_port(self, container_port): - """ - Sets the container_port of this V1ContainerPort. - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + """Sets the container_port of this V1ContainerPort. - :param container_port: The container_port of this V1ContainerPort. + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :param container_port: The container_port of this V1ContainerPort. # noqa: E501 :type: int """ if container_port is None: - raise ValueError("Invalid value for `container_port`, must not be `None`") + raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 self._container_port = container_port @property def host_ip(self): - """ - Gets the host_ip of this V1ContainerPort. - What host IP to bind the external port to. + """Gets the host_ip of this V1ContainerPort. # noqa: E501 + + What host IP to bind the external port to. # noqa: E501 - :return: The host_ip of this V1ContainerPort. + :return: The host_ip of this V1ContainerPort. # noqa: E501 :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): - """ - Sets the host_ip of this V1ContainerPort. - What host IP to bind the external port to. + """Sets the host_ip of this V1ContainerPort. + + What host IP to bind the external port to. # noqa: E501 - :param host_ip: The host_ip of this V1ContainerPort. + :param host_ip: The host_ip of this V1ContainerPort. # noqa: E501 :type: str """ @@ -118,22 +116,22 @@ def host_ip(self, host_ip): @property def host_port(self): - """ - Gets the host_port of this V1ContainerPort. - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + """Gets the host_port of this V1ContainerPort. # noqa: E501 + + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. # noqa: E501 - :return: The host_port of this V1ContainerPort. + :return: The host_port of this V1ContainerPort. # noqa: E501 :rtype: int """ return self._host_port @host_port.setter def host_port(self, host_port): - """ - Sets the host_port of this V1ContainerPort. - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + """Sets the host_port of this V1ContainerPort. + + Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. # noqa: E501 - :param host_port: The host_port of this V1ContainerPort. + :param host_port: The host_port of this V1ContainerPort. # noqa: E501 :type: int """ @@ -141,22 +139,22 @@ def host_port(self, host_port): @property def name(self): - """ - Gets the name of this V1ContainerPort. - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + """Gets the name of this V1ContainerPort. # noqa: E501 + + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. # noqa: E501 - :return: The name of this V1ContainerPort. + :return: The name of this V1ContainerPort. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ContainerPort. - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + """Sets the name of this V1ContainerPort. - :param name: The name of this V1ContainerPort. + If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. # noqa: E501 + + :param name: The name of this V1ContainerPort. # noqa: E501 :type: str """ @@ -164,34 +162,32 @@ def name(self, name): @property def protocol(self): - """ - Gets the protocol of this V1ContainerPort. - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". + """Gets the protocol of this V1ContainerPort. # noqa: E501 - :return: The protocol of this V1ContainerPort. + Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501 + + :return: The protocol of this V1ContainerPort. # noqa: E501 :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): - """ - Sets the protocol of this V1ContainerPort. - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". + """Sets the protocol of this V1ContainerPort. - :param protocol: The protocol of this V1ContainerPort. + Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501 + + :param protocol: The protocol of this V1ContainerPort. # noqa: E501 :type: str """ self._protocol = protocol def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerPort): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index c6b196d9cd..e6c73e8951 100644 --- a/kubernetes/client/models/v1_container_state.py +++ b/kubernetes/client/models/v1_container_state.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerState(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'running': 'V1ContainerStateRunning', 'terminated': 'V1ContainerStateTerminated', 'waiting': 'V1ContainerStateWaiting' @@ -42,10 +42,8 @@ class V1ContainerState(object): 'waiting': 'waiting' } - def __init__(self, running=None, terminated=None, waiting=None): - """ - V1ContainerState - a model defined in Swagger - """ + def __init__(self, running=None, terminated=None, waiting=None): # noqa: E501 + """V1ContainerState - a model defined in OpenAPI""" # noqa: E501 self._running = None self._terminated = None @@ -53,30 +51,28 @@ def __init__(self, running=None, terminated=None, waiting=None): self.discriminator = None if running is not None: - self.running = running + self.running = running if terminated is not None: - self.terminated = terminated + self.terminated = terminated if waiting is not None: - self.waiting = waiting + self.waiting = waiting @property def running(self): - """ - Gets the running of this V1ContainerState. - Details about a running container + """Gets the running of this V1ContainerState. # noqa: E501 - :return: The running of this V1ContainerState. + + :return: The running of this V1ContainerState. # noqa: E501 :rtype: V1ContainerStateRunning """ return self._running @running.setter def running(self, running): - """ - Sets the running of this V1ContainerState. - Details about a running container + """Sets the running of this V1ContainerState. - :param running: The running of this V1ContainerState. + + :param running: The running of this V1ContainerState. # noqa: E501 :type: V1ContainerStateRunning """ @@ -84,22 +80,20 @@ def running(self, running): @property def terminated(self): - """ - Gets the terminated of this V1ContainerState. - Details about a terminated container + """Gets the terminated of this V1ContainerState. # noqa: E501 - :return: The terminated of this V1ContainerState. + + :return: The terminated of this V1ContainerState. # noqa: E501 :rtype: V1ContainerStateTerminated """ return self._terminated @terminated.setter def terminated(self, terminated): - """ - Sets the terminated of this V1ContainerState. - Details about a terminated container + """Sets the terminated of this V1ContainerState. + - :param terminated: The terminated of this V1ContainerState. + :param terminated: The terminated of this V1ContainerState. # noqa: E501 :type: V1ContainerStateTerminated """ @@ -107,34 +101,30 @@ def terminated(self, terminated): @property def waiting(self): - """ - Gets the waiting of this V1ContainerState. - Details about a waiting container + """Gets the waiting of this V1ContainerState. # noqa: E501 + - :return: The waiting of this V1ContainerState. + :return: The waiting of this V1ContainerState. # noqa: E501 :rtype: V1ContainerStateWaiting """ return self._waiting @waiting.setter def waiting(self, waiting): - """ - Sets the waiting of this V1ContainerState. - Details about a waiting container + """Sets the waiting of this V1ContainerState. + - :param waiting: The waiting of this V1ContainerState. + :param waiting: The waiting of this V1ContainerState. # noqa: E501 :type: V1ContainerStateWaiting """ self._waiting = waiting def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +145,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerState): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index 739668fb56..7efd8760ed 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerStateRunning(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'started_at': 'datetime' } @@ -38,47 +38,43 @@ class V1ContainerStateRunning(object): 'started_at': 'startedAt' } - def __init__(self, started_at=None): - """ - V1ContainerStateRunning - a model defined in Swagger - """ + def __init__(self, started_at=None): # noqa: E501 + """V1ContainerStateRunning - a model defined in OpenAPI""" # noqa: E501 self._started_at = None self.discriminator = None if started_at is not None: - self.started_at = started_at + self.started_at = started_at @property def started_at(self): - """ - Gets the started_at of this V1ContainerStateRunning. - Time at which the container was last (re-)started + """Gets the started_at of this V1ContainerStateRunning. # noqa: E501 + + Time at which the container was last (re-)started # noqa: E501 - :return: The started_at of this V1ContainerStateRunning. + :return: The started_at of this V1ContainerStateRunning. # noqa: E501 :rtype: datetime """ return self._started_at @started_at.setter def started_at(self, started_at): - """ - Sets the started_at of this V1ContainerStateRunning. - Time at which the container was last (re-)started + """Sets the started_at of this V1ContainerStateRunning. + + Time at which the container was last (re-)started # noqa: E501 - :param started_at: The started_at of this V1ContainerStateRunning. + :param started_at: The started_at of this V1ContainerStateRunning. # noqa: E501 :type: datetime """ self._started_at = started_at def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerStateRunning): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 1b0d25e5b7..1ce2d0e0ea 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerStateTerminated(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'container_id': 'str', 'exit_code': 'int', 'finished_at': 'datetime', @@ -50,10 +50,8 @@ class V1ContainerStateTerminated(object): 'started_at': 'startedAt' } - def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None): - """ - V1ContainerStateTerminated - a model defined in Swagger - """ + def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None): # noqa: E501 + """V1ContainerStateTerminated - a model defined in OpenAPI""" # noqa: E501 self._container_id = None self._exit_code = None @@ -65,37 +63,37 @@ def __init__(self, container_id=None, exit_code=None, finished_at=None, message= self.discriminator = None if container_id is not None: - self.container_id = container_id + self.container_id = container_id self.exit_code = exit_code if finished_at is not None: - self.finished_at = finished_at + self.finished_at = finished_at if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason if signal is not None: - self.signal = signal + self.signal = signal if started_at is not None: - self.started_at = started_at + self.started_at = started_at @property def container_id(self): - """ - Gets the container_id of this V1ContainerStateTerminated. - Container's ID in the format 'docker://' + """Gets the container_id of this V1ContainerStateTerminated. # noqa: E501 + + Container's ID in the format 'docker://' # noqa: E501 - :return: The container_id of this V1ContainerStateTerminated. + :return: The container_id of this V1ContainerStateTerminated. # noqa: E501 :rtype: str """ return self._container_id @container_id.setter def container_id(self, container_id): - """ - Sets the container_id of this V1ContainerStateTerminated. - Container's ID in the format 'docker://' + """Sets the container_id of this V1ContainerStateTerminated. - :param container_id: The container_id of this V1ContainerStateTerminated. + Container's ID in the format 'docker://' # noqa: E501 + + :param container_id: The container_id of this V1ContainerStateTerminated. # noqa: E501 :type: str """ @@ -103,47 +101,47 @@ def container_id(self, container_id): @property def exit_code(self): - """ - Gets the exit_code of this V1ContainerStateTerminated. - Exit status from the last termination of the container + """Gets the exit_code of this V1ContainerStateTerminated. # noqa: E501 - :return: The exit_code of this V1ContainerStateTerminated. + Exit status from the last termination of the container # noqa: E501 + + :return: The exit_code of this V1ContainerStateTerminated. # noqa: E501 :rtype: int """ return self._exit_code @exit_code.setter def exit_code(self, exit_code): - """ - Sets the exit_code of this V1ContainerStateTerminated. - Exit status from the last termination of the container + """Sets the exit_code of this V1ContainerStateTerminated. + + Exit status from the last termination of the container # noqa: E501 - :param exit_code: The exit_code of this V1ContainerStateTerminated. + :param exit_code: The exit_code of this V1ContainerStateTerminated. # noqa: E501 :type: int """ if exit_code is None: - raise ValueError("Invalid value for `exit_code`, must not be `None`") + raise ValueError("Invalid value for `exit_code`, must not be `None`") # noqa: E501 self._exit_code = exit_code @property def finished_at(self): - """ - Gets the finished_at of this V1ContainerStateTerminated. - Time at which the container last terminated + """Gets the finished_at of this V1ContainerStateTerminated. # noqa: E501 + + Time at which the container last terminated # noqa: E501 - :return: The finished_at of this V1ContainerStateTerminated. + :return: The finished_at of this V1ContainerStateTerminated. # noqa: E501 :rtype: datetime """ return self._finished_at @finished_at.setter def finished_at(self, finished_at): - """ - Sets the finished_at of this V1ContainerStateTerminated. - Time at which the container last terminated + """Sets the finished_at of this V1ContainerStateTerminated. - :param finished_at: The finished_at of this V1ContainerStateTerminated. + Time at which the container last terminated # noqa: E501 + + :param finished_at: The finished_at of this V1ContainerStateTerminated. # noqa: E501 :type: datetime """ @@ -151,22 +149,22 @@ def finished_at(self, finished_at): @property def message(self): - """ - Gets the message of this V1ContainerStateTerminated. - Message regarding the last termination of the container + """Gets the message of this V1ContainerStateTerminated. # noqa: E501 + + Message regarding the last termination of the container # noqa: E501 - :return: The message of this V1ContainerStateTerminated. + :return: The message of this V1ContainerStateTerminated. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1ContainerStateTerminated. - Message regarding the last termination of the container + """Sets the message of this V1ContainerStateTerminated. + + Message regarding the last termination of the container # noqa: E501 - :param message: The message of this V1ContainerStateTerminated. + :param message: The message of this V1ContainerStateTerminated. # noqa: E501 :type: str """ @@ -174,22 +172,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1ContainerStateTerminated. - (brief) reason from the last termination of the container + """Gets the reason of this V1ContainerStateTerminated. # noqa: E501 + + (brief) reason from the last termination of the container # noqa: E501 - :return: The reason of this V1ContainerStateTerminated. + :return: The reason of this V1ContainerStateTerminated. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1ContainerStateTerminated. - (brief) reason from the last termination of the container + """Sets the reason of this V1ContainerStateTerminated. - :param reason: The reason of this V1ContainerStateTerminated. + (brief) reason from the last termination of the container # noqa: E501 + + :param reason: The reason of this V1ContainerStateTerminated. # noqa: E501 :type: str """ @@ -197,22 +195,22 @@ def reason(self, reason): @property def signal(self): - """ - Gets the signal of this V1ContainerStateTerminated. - Signal from the last termination of the container + """Gets the signal of this V1ContainerStateTerminated. # noqa: E501 + + Signal from the last termination of the container # noqa: E501 - :return: The signal of this V1ContainerStateTerminated. + :return: The signal of this V1ContainerStateTerminated. # noqa: E501 :rtype: int """ return self._signal @signal.setter def signal(self, signal): - """ - Sets the signal of this V1ContainerStateTerminated. - Signal from the last termination of the container + """Sets the signal of this V1ContainerStateTerminated. + + Signal from the last termination of the container # noqa: E501 - :param signal: The signal of this V1ContainerStateTerminated. + :param signal: The signal of this V1ContainerStateTerminated. # noqa: E501 :type: int """ @@ -220,34 +218,32 @@ def signal(self, signal): @property def started_at(self): - """ - Gets the started_at of this V1ContainerStateTerminated. - Time at which previous execution of the container started + """Gets the started_at of this V1ContainerStateTerminated. # noqa: E501 - :return: The started_at of this V1ContainerStateTerminated. + Time at which previous execution of the container started # noqa: E501 + + :return: The started_at of this V1ContainerStateTerminated. # noqa: E501 :rtype: datetime """ return self._started_at @started_at.setter def started_at(self, started_at): - """ - Sets the started_at of this V1ContainerStateTerminated. - Time at which previous execution of the container started + """Sets the started_at of this V1ContainerStateTerminated. - :param started_at: The started_at of this V1ContainerStateTerminated. + Time at which previous execution of the container started # noqa: E501 + + :param started_at: The started_at of this V1ContainerStateTerminated. # noqa: E501 :type: datetime """ self._started_at = started_at def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -268,28 +264,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerStateTerminated): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index f0dc9780a1..2150842bb4 100644 --- a/kubernetes/client/models/v1_container_state_waiting.py +++ b/kubernetes/client/models/v1_container_state_waiting.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerStateWaiting(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'message': 'str', 'reason': 'str' } @@ -40,38 +40,36 @@ class V1ContainerStateWaiting(object): 'reason': 'reason' } - def __init__(self, message=None, reason=None): - """ - V1ContainerStateWaiting - a model defined in Swagger - """ + def __init__(self, message=None, reason=None): # noqa: E501 + """V1ContainerStateWaiting - a model defined in OpenAPI""" # noqa: E501 self._message = None self._reason = None self.discriminator = None if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason @property def message(self): - """ - Gets the message of this V1ContainerStateWaiting. - Message regarding why the container is not yet running. + """Gets the message of this V1ContainerStateWaiting. # noqa: E501 + + Message regarding why the container is not yet running. # noqa: E501 - :return: The message of this V1ContainerStateWaiting. + :return: The message of this V1ContainerStateWaiting. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1ContainerStateWaiting. - Message regarding why the container is not yet running. + """Sets the message of this V1ContainerStateWaiting. - :param message: The message of this V1ContainerStateWaiting. + Message regarding why the container is not yet running. # noqa: E501 + + :param message: The message of this V1ContainerStateWaiting. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1ContainerStateWaiting. - (brief) reason the container is not yet running. + """Gets the reason of this V1ContainerStateWaiting. # noqa: E501 + + (brief) reason the container is not yet running. # noqa: E501 - :return: The reason of this V1ContainerStateWaiting. + :return: The reason of this V1ContainerStateWaiting. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1ContainerStateWaiting. - (brief) reason the container is not yet running. + """Sets the reason of this V1ContainerStateWaiting. + + (brief) reason the container is not yet running. # noqa: E501 - :param reason: The reason of this V1ContainerStateWaiting. + :param reason: The reason of this V1ContainerStateWaiting. # noqa: E501 :type: str """ self._reason = reason def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerStateWaiting): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index dac937de97..a023604bf4 100644 --- a/kubernetes/client/models/v1_container_status.py +++ b/kubernetes/client/models/v1_container_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ContainerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'container_id': 'str', 'image': 'str', 'image_id': 'str', @@ -52,10 +52,8 @@ class V1ContainerStatus(object): 'state': 'state' } - def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, state=None): - """ - V1ContainerStatus - a model defined in Swagger - """ + def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, state=None): # noqa: E501 + """V1ContainerStatus - a model defined in OpenAPI""" # noqa: E501 self._container_id = None self._image = None @@ -68,35 +66,35 @@ def __init__(self, container_id=None, image=None, image_id=None, last_state=None self.discriminator = None if container_id is not None: - self.container_id = container_id + self.container_id = container_id self.image = image self.image_id = image_id if last_state is not None: - self.last_state = last_state + self.last_state = last_state self.name = name self.ready = ready self.restart_count = restart_count if state is not None: - self.state = state + self.state = state @property def container_id(self): - """ - Gets the container_id of this V1ContainerStatus. - Container's ID in the format 'docker://'. + """Gets the container_id of this V1ContainerStatus. # noqa: E501 + + Container's ID in the format 'docker://'. # noqa: E501 - :return: The container_id of this V1ContainerStatus. + :return: The container_id of this V1ContainerStatus. # noqa: E501 :rtype: str """ return self._container_id @container_id.setter def container_id(self, container_id): - """ - Sets the container_id of this V1ContainerStatus. - Container's ID in the format 'docker://'. + """Sets the container_id of this V1ContainerStatus. - :param container_id: The container_id of this V1ContainerStatus. + Container's ID in the format 'docker://'. # noqa: E501 + + :param container_id: The container_id of this V1ContainerStatus. # noqa: E501 :type: str """ @@ -104,72 +102,70 @@ def container_id(self, container_id): @property def image(self): - """ - Gets the image of this V1ContainerStatus. - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + """Gets the image of this V1ContainerStatus. # noqa: E501 + + The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 - :return: The image of this V1ContainerStatus. + :return: The image of this V1ContainerStatus. # noqa: E501 :rtype: str """ return self._image @image.setter def image(self, image): - """ - Sets the image of this V1ContainerStatus. - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + """Sets the image of this V1ContainerStatus. + + The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 - :param image: The image of this V1ContainerStatus. + :param image: The image of this V1ContainerStatus. # noqa: E501 :type: str """ if image is None: - raise ValueError("Invalid value for `image`, must not be `None`") + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @property def image_id(self): - """ - Gets the image_id of this V1ContainerStatus. - ImageID of the container's image. + """Gets the image_id of this V1ContainerStatus. # noqa: E501 - :return: The image_id of this V1ContainerStatus. + ImageID of the container's image. # noqa: E501 + + :return: The image_id of this V1ContainerStatus. # noqa: E501 :rtype: str """ return self._image_id @image_id.setter def image_id(self, image_id): - """ - Sets the image_id of this V1ContainerStatus. - ImageID of the container's image. + """Sets the image_id of this V1ContainerStatus. + + ImageID of the container's image. # noqa: E501 - :param image_id: The image_id of this V1ContainerStatus. + :param image_id: The image_id of this V1ContainerStatus. # noqa: E501 :type: str """ if image_id is None: - raise ValueError("Invalid value for `image_id`, must not be `None`") + raise ValueError("Invalid value for `image_id`, must not be `None`") # noqa: E501 self._image_id = image_id @property def last_state(self): - """ - Gets the last_state of this V1ContainerStatus. - Details about the container's last termination condition. + """Gets the last_state of this V1ContainerStatus. # noqa: E501 + - :return: The last_state of this V1ContainerStatus. + :return: The last_state of this V1ContainerStatus. # noqa: E501 :rtype: V1ContainerState """ return self._last_state @last_state.setter def last_state(self, last_state): - """ - Sets the last_state of this V1ContainerStatus. - Details about the container's last termination condition. + """Sets the last_state of this V1ContainerStatus. - :param last_state: The last_state of this V1ContainerStatus. + + :param last_state: The last_state of this V1ContainerStatus. # noqa: E501 :type: V1ContainerState """ @@ -177,109 +173,105 @@ def last_state(self, last_state): @property def name(self): - """ - Gets the name of this V1ContainerStatus. - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + """Gets the name of this V1ContainerStatus. # noqa: E501 + + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. # noqa: E501 - :return: The name of this V1ContainerStatus. + :return: The name of this V1ContainerStatus. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ContainerStatus. - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + """Sets the name of this V1ContainerStatus. + + This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. # noqa: E501 - :param name: The name of this V1ContainerStatus. + :param name: The name of this V1ContainerStatus. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def ready(self): - """ - Gets the ready of this V1ContainerStatus. - Specifies whether the container has passed its readiness probe. + """Gets the ready of this V1ContainerStatus. # noqa: E501 - :return: The ready of this V1ContainerStatus. + Specifies whether the container has passed its readiness probe. # noqa: E501 + + :return: The ready of this V1ContainerStatus. # noqa: E501 :rtype: bool """ return self._ready @ready.setter def ready(self, ready): - """ - Sets the ready of this V1ContainerStatus. - Specifies whether the container has passed its readiness probe. + """Sets the ready of this V1ContainerStatus. + + Specifies whether the container has passed its readiness probe. # noqa: E501 - :param ready: The ready of this V1ContainerStatus. + :param ready: The ready of this V1ContainerStatus. # noqa: E501 :type: bool """ if ready is None: - raise ValueError("Invalid value for `ready`, must not be `None`") + raise ValueError("Invalid value for `ready`, must not be `None`") # noqa: E501 self._ready = ready @property def restart_count(self): - """ - Gets the restart_count of this V1ContainerStatus. - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + """Gets the restart_count of this V1ContainerStatus. # noqa: E501 + + The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. # noqa: E501 - :return: The restart_count of this V1ContainerStatus. + :return: The restart_count of this V1ContainerStatus. # noqa: E501 :rtype: int """ return self._restart_count @restart_count.setter def restart_count(self, restart_count): - """ - Sets the restart_count of this V1ContainerStatus. - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + """Sets the restart_count of this V1ContainerStatus. - :param restart_count: The restart_count of this V1ContainerStatus. + The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. # noqa: E501 + + :param restart_count: The restart_count of this V1ContainerStatus. # noqa: E501 :type: int """ if restart_count is None: - raise ValueError("Invalid value for `restart_count`, must not be `None`") + raise ValueError("Invalid value for `restart_count`, must not be `None`") # noqa: E501 self._restart_count = restart_count @property def state(self): - """ - Gets the state of this V1ContainerStatus. - Details about the container's current condition. + """Gets the state of this V1ContainerStatus. # noqa: E501 + - :return: The state of this V1ContainerStatus. + :return: The state of this V1ContainerStatus. # noqa: E501 :rtype: V1ContainerState """ return self._state @state.setter def state(self, state): - """ - Sets the state of this V1ContainerStatus. - Details about the container's current condition. + """Sets the state of this V1ContainerStatus. + - :param state: The state of this V1ContainerStatus. + :param state: The state of this V1ContainerStatus. # noqa: E501 :type: V1ContainerState """ self._state = state def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -300,28 +292,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ContainerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_controller_revision.py b/kubernetes/client/models/v1_controller_revision.py index cf97f3e982..45681c931c 100644 --- a/kubernetes/client/models/v1_controller_revision.py +++ b/kubernetes/client/models/v1_controller_revision.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ControllerRevision(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'data': 'RuntimeRawExtension', 'kind': 'str', @@ -46,10 +46,8 @@ class V1ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): - """ - V1ControllerRevision - a model defined in Swagger - """ + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + """V1ControllerRevision - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._data = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, data=None, kind=None, metadata=None, revisi self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if data is not None: - self.data = data + self.data = data if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.revision = revision @property def api_version(self): - """ - Gets the api_version of this V1ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ControllerRevision. # noqa: E501 - :return: The api_version of this V1ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ControllerRevision. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ControllerRevision. - :param api_version: The api_version of this V1ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ControllerRevision. # noqa: E501 :type: str """ @@ -93,22 +91,20 @@ def api_version(self, api_version): @property def data(self): - """ - Gets the data of this V1ControllerRevision. - Data is the serialized representation of the state. + """Gets the data of this V1ControllerRevision. # noqa: E501 + - :return: The data of this V1ControllerRevision. + :return: The data of this V1ControllerRevision. # noqa: E501 :rtype: RuntimeRawExtension """ return self._data @data.setter def data(self, data): - """ - Sets the data of this V1ControllerRevision. - Data is the serialized representation of the state. + """Sets the data of this V1ControllerRevision. + - :param data: The data of this V1ControllerRevision. + :param data: The data of this V1ControllerRevision. # noqa: E501 :type: RuntimeRawExtension """ @@ -116,22 +112,22 @@ def data(self, data): @property def kind(self): - """ - Gets the kind of this V1ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ControllerRevision. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ControllerRevision. + :return: The kind of this V1ControllerRevision. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ControllerRevision. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ControllerRevision. + :param kind: The kind of this V1ControllerRevision. # noqa: E501 :type: str """ @@ -139,22 +135,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ControllerRevision. # noqa: E501 + - :return: The metadata of this V1ControllerRevision. + :return: The metadata of this V1ControllerRevision. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ControllerRevision. - :param metadata: The metadata of this V1ControllerRevision. + + :param metadata: The metadata of this V1ControllerRevision. # noqa: E501 :type: V1ObjectMeta """ @@ -162,36 +156,34 @@ def metadata(self, metadata): @property def revision(self): - """ - Gets the revision of this V1ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Gets the revision of this V1ControllerRevision. # noqa: E501 - :return: The revision of this V1ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :return: The revision of this V1ControllerRevision. # noqa: E501 :rtype: int """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this V1ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Sets the revision of this V1ControllerRevision. - :param revision: The revision of this V1ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :param revision: The revision of this V1ControllerRevision. # noqa: E501 :type: int """ if revision is None: - raise ValueError("Invalid value for `revision`, must not be `None`") + raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ControllerRevision): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_controller_revision_list.py b/kubernetes/client/models/v1_controller_revision_list.py index 3b94dee60e..29b22751c2 100644 --- a/kubernetes/client/models/v1_controller_revision_list.py +++ b/kubernetes/client/models/v1_controller_revision_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ControllerRevisionList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ControllerRevision]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ControllerRevisionList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ControllerRevisionList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ControllerRevisionList. + :return: The api_version of this V1ControllerRevisionList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ControllerRevisionList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ControllerRevisionList. + :param api_version: The api_version of this V1ControllerRevisionList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ControllerRevisionList. - Items is the list of ControllerRevisions + """Gets the items of this V1ControllerRevisionList. # noqa: E501 + + Items is the list of ControllerRevisions # noqa: E501 - :return: The items of this V1ControllerRevisionList. + :return: The items of this V1ControllerRevisionList. # noqa: E501 :rtype: list[V1ControllerRevision] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ControllerRevisionList. - Items is the list of ControllerRevisions + """Sets the items of this V1ControllerRevisionList. + + Items is the list of ControllerRevisions # noqa: E501 - :param items: The items of this V1ControllerRevisionList. + :param items: The items of this V1ControllerRevisionList. # noqa: E501 :type: list[V1ControllerRevision] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ControllerRevisionList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ControllerRevisionList. + :return: The kind of this V1ControllerRevisionList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ControllerRevisionList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ControllerRevisionList. + :param kind: The kind of this V1ControllerRevisionList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ControllerRevisionList. # noqa: E501 + - :return: The metadata of this V1ControllerRevisionList. + :return: The metadata of this V1ControllerRevisionList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ControllerRevisionList. + - :param metadata: The metadata of this V1ControllerRevisionList. + :param metadata: The metadata of this V1ControllerRevisionList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ControllerRevisionList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index 1cfbfd0c48..17ee9e57d0 100644 --- a/kubernetes/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/client/models/v1_cross_version_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CrossVersionObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V1CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): - """ - V1CrossVersionObjectReference - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + """V1CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -53,28 +51,28 @@ def __init__(self, api_version=None, kind=None, name=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.kind = kind self.name = name @property def api_version(self): - """ - Gets the api_version of this V1CrossVersionObjectReference. - API version of the referent + """Gets the api_version of this V1CrossVersionObjectReference. # noqa: E501 - :return: The api_version of this V1CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :return: The api_version of this V1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1CrossVersionObjectReference. - API version of the referent + """Sets the api_version of this V1CrossVersionObjectReference. - :param api_version: The api_version of this V1CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :param api_version: The api_version of this V1CrossVersionObjectReference. # noqa: E501 :type: str """ @@ -82,61 +80,59 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Gets the kind of this V1CrossVersionObjectReference. # noqa: E501 - :return: The kind of this V1CrossVersionObjectReference. + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 + + :return: The kind of this V1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Sets the kind of this V1CrossVersionObjectReference. + + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 - :param kind: The kind of this V1CrossVersionObjectReference. + :param kind: The kind of this V1CrossVersionObjectReference. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Gets the name of this V1CrossVersionObjectReference. # noqa: E501 + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :return: The name of this V1CrossVersionObjectReference. + :return: The name of this V1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Sets the name of this V1CrossVersionObjectReference. + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :param name: The name of this V1CrossVersionObjectReference. + :param name: The name of this V1CrossVersionObjectReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CrossVersionObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_csi_persistent_volume_source.py b/kubernetes/client/models/v1_csi_persistent_volume_source.py index f52bb83e87..7e464b8d76 100644 --- a/kubernetes/client/models/v1_csi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_csi_persistent_volume_source.py @@ -3,34 +3,35 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CSIPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { + 'controller_expand_secret_ref': 'V1SecretReference', 'controller_publish_secret_ref': 'V1SecretReference', 'driver': 'str', 'fs_type': 'str', @@ -42,6 +43,7 @@ class V1CSIPersistentVolumeSource(object): } attribute_map = { + 'controller_expand_secret_ref': 'controllerExpandSecretRef', 'controller_publish_secret_ref': 'controllerPublishSecretRef', 'driver': 'driver', 'fs_type': 'fsType', @@ -52,11 +54,10 @@ class V1CSIPersistentVolumeSource(object): 'volume_handle': 'volumeHandle' } - def __init__(self, controller_publish_secret_ref=None, driver=None, fs_type=None, node_publish_secret_ref=None, node_stage_secret_ref=None, read_only=None, volume_attributes=None, volume_handle=None): - """ - V1CSIPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, controller_expand_secret_ref=None, controller_publish_secret_ref=None, driver=None, fs_type=None, node_publish_secret_ref=None, node_stage_secret_ref=None, read_only=None, volume_attributes=None, volume_handle=None): # noqa: E501 + """V1CSIPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + self._controller_expand_secret_ref = None self._controller_publish_secret_ref = None self._driver = None self._fs_type = None @@ -67,39 +68,60 @@ def __init__(self, controller_publish_secret_ref=None, driver=None, fs_type=None self._volume_handle = None self.discriminator = None + if controller_expand_secret_ref is not None: + self.controller_expand_secret_ref = controller_expand_secret_ref if controller_publish_secret_ref is not None: - self.controller_publish_secret_ref = controller_publish_secret_ref + self.controller_publish_secret_ref = controller_publish_secret_ref self.driver = driver if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if node_publish_secret_ref is not None: - self.node_publish_secret_ref = node_publish_secret_ref + self.node_publish_secret_ref = node_publish_secret_ref if node_stage_secret_ref is not None: - self.node_stage_secret_ref = node_stage_secret_ref + self.node_stage_secret_ref = node_stage_secret_ref if read_only is not None: - self.read_only = read_only + self.read_only = read_only if volume_attributes is not None: - self.volume_attributes = volume_attributes + self.volume_attributes = volume_attributes self.volume_handle = volume_handle @property - def controller_publish_secret_ref(self): + def controller_expand_secret_ref(self): + """Gets the controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + + + :return: The controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + :rtype: V1SecretReference + """ + return self._controller_expand_secret_ref + + @controller_expand_secret_ref.setter + def controller_expand_secret_ref(self, controller_expand_secret_ref): + """Sets the controller_expand_secret_ref of this V1CSIPersistentVolumeSource. + + + :param controller_expand_secret_ref: The controller_expand_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + :type: V1SecretReference """ - Gets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource. - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - :return: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. + self._controller_expand_secret_ref = controller_expand_secret_ref + + @property + def controller_publish_secret_ref(self): + """Gets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + + + :return: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._controller_publish_secret_ref @controller_publish_secret_ref.setter def controller_publish_secret_ref(self, controller_publish_secret_ref): - """ - Sets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource. - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + """Sets the controller_publish_secret_ref of this V1CSIPersistentVolumeSource. - :param controller_publish_secret_ref: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. + + :param controller_publish_secret_ref: The controller_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -107,47 +129,47 @@ def controller_publish_secret_ref(self, controller_publish_secret_ref): @property def driver(self): - """ - Gets the driver of this V1CSIPersistentVolumeSource. - Driver is the name of the driver to use for this volume. Required. + """Gets the driver of this V1CSIPersistentVolumeSource. # noqa: E501 - :return: The driver of this V1CSIPersistentVolumeSource. + Driver is the name of the driver to use for this volume. Required. # noqa: E501 + + :return: The driver of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this V1CSIPersistentVolumeSource. - Driver is the name of the driver to use for this volume. Required. + """Sets the driver of this V1CSIPersistentVolumeSource. - :param driver: The driver of this V1CSIPersistentVolumeSource. + Driver is the name of the driver to use for this volume. Required. # noqa: E501 + + :param driver: The driver of this V1CSIPersistentVolumeSource. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @property def fs_type(self): - """ - Gets the fs_type of this V1CSIPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". + """Gets the fs_type of this V1CSIPersistentVolumeSource. # noqa: E501 - :return: The fs_type of this V1CSIPersistentVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". # noqa: E501 + + :return: The fs_type of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1CSIPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". + """Sets the fs_type of this V1CSIPersistentVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". # noqa: E501 - :param fs_type: The fs_type of this V1CSIPersistentVolumeSource. + :param fs_type: The fs_type of this V1CSIPersistentVolumeSource. # noqa: E501 :type: str """ @@ -155,22 +177,20 @@ def fs_type(self, fs_type): @property def node_publish_secret_ref(self): - """ - Gets the node_publish_secret_ref of this V1CSIPersistentVolumeSource. - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + """Gets the node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + - :return: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. + :return: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._node_publish_secret_ref @node_publish_secret_ref.setter def node_publish_secret_ref(self, node_publish_secret_ref): - """ - Sets the node_publish_secret_ref of this V1CSIPersistentVolumeSource. - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + """Sets the node_publish_secret_ref of this V1CSIPersistentVolumeSource. + - :param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. + :param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -178,22 +198,20 @@ def node_publish_secret_ref(self, node_publish_secret_ref): @property def node_stage_secret_ref(self): - """ - Gets the node_stage_secret_ref of this V1CSIPersistentVolumeSource. - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + """Gets the node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 + - :return: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. + :return: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._node_stage_secret_ref @node_stage_secret_ref.setter def node_stage_secret_ref(self, node_stage_secret_ref): - """ - Sets the node_stage_secret_ref of this V1CSIPersistentVolumeSource. - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + """Sets the node_stage_secret_ref of this V1CSIPersistentVolumeSource. + - :param node_stage_secret_ref: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. + :param node_stage_secret_ref: The node_stage_secret_ref of this V1CSIPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -201,22 +219,22 @@ def node_stage_secret_ref(self, node_stage_secret_ref): @property def read_only(self): - """ - Gets the read_only of this V1CSIPersistentVolumeSource. - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + """Gets the read_only of this V1CSIPersistentVolumeSource. # noqa: E501 + + Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). # noqa: E501 - :return: The read_only of this V1CSIPersistentVolumeSource. + :return: The read_only of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CSIPersistentVolumeSource. - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + """Sets the read_only of this V1CSIPersistentVolumeSource. + + Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). # noqa: E501 - :param read_only: The read_only of this V1CSIPersistentVolumeSource. + :param read_only: The read_only of this V1CSIPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -224,22 +242,22 @@ def read_only(self, read_only): @property def volume_attributes(self): - """ - Gets the volume_attributes of this V1CSIPersistentVolumeSource. - Attributes of the volume to publish. + """Gets the volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501 + + Attributes of the volume to publish. # noqa: E501 - :return: The volume_attributes of this V1CSIPersistentVolumeSource. + :return: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: dict(str, str) """ return self._volume_attributes @volume_attributes.setter def volume_attributes(self, volume_attributes): - """ - Sets the volume_attributes of this V1CSIPersistentVolumeSource. - Attributes of the volume to publish. + """Sets the volume_attributes of this V1CSIPersistentVolumeSource. - :param volume_attributes: The volume_attributes of this V1CSIPersistentVolumeSource. + Attributes of the volume to publish. # noqa: E501 + + :param volume_attributes: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501 :type: dict(str, str) """ @@ -247,36 +265,34 @@ def volume_attributes(self, volume_attributes): @property def volume_handle(self): - """ - Gets the volume_handle of this V1CSIPersistentVolumeSource. - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + """Gets the volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501 - :return: The volume_handle of this V1CSIPersistentVolumeSource. + VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. # noqa: E501 + + :return: The volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._volume_handle @volume_handle.setter def volume_handle(self, volume_handle): - """ - Sets the volume_handle of this V1CSIPersistentVolumeSource. - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + """Sets the volume_handle of this V1CSIPersistentVolumeSource. - :param volume_handle: The volume_handle of this V1CSIPersistentVolumeSource. + VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. # noqa: E501 + + :param volume_handle: The volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501 :type: str """ if volume_handle is None: - raise ValueError("Invalid value for `volume_handle`, must not be `None`") + raise ValueError("Invalid value for `volume_handle`, must not be `None`") # noqa: E501 self._volume_handle = volume_handle def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +313,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CSIPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_csi_volume_source.py b/kubernetes/client/models/v1_csi_volume_source.py index f2beeb09e8..33689decf8 100644 --- a/kubernetes/client/models/v1_csi_volume_source.py +++ b/kubernetes/client/models/v1_csi_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1CSIVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'driver': 'str', 'fs_type': 'str', 'node_publish_secret_ref': 'V1LocalObjectReference', @@ -46,10 +46,8 @@ class V1CSIVolumeSource(object): 'volume_attributes': 'volumeAttributes' } - def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=None): - """ - V1CSIVolumeSource - a model defined in Swagger - """ + def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=None): # noqa: E501 + """V1CSIVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._driver = None self._fs_type = None @@ -60,57 +58,57 @@ def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read self.driver = driver if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if node_publish_secret_ref is not None: - self.node_publish_secret_ref = node_publish_secret_ref + self.node_publish_secret_ref = node_publish_secret_ref if read_only is not None: - self.read_only = read_only + self.read_only = read_only if volume_attributes is not None: - self.volume_attributes = volume_attributes + self.volume_attributes = volume_attributes @property def driver(self): - """ - Gets the driver of this V1CSIVolumeSource. - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + """Gets the driver of this V1CSIVolumeSource. # noqa: E501 - :return: The driver of this V1CSIVolumeSource. + Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 + + :return: The driver of this V1CSIVolumeSource. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this V1CSIVolumeSource. - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + """Sets the driver of this V1CSIVolumeSource. - :param driver: The driver of this V1CSIVolumeSource. + Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 + + :param driver: The driver of this V1CSIVolumeSource. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @property def fs_type(self): - """ - Gets the fs_type of this V1CSIVolumeSource. - Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + """Gets the fs_type of this V1CSIVolumeSource. # noqa: E501 + + Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. # noqa: E501 - :return: The fs_type of this V1CSIVolumeSource. + :return: The fs_type of this V1CSIVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1CSIVolumeSource. - Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + """Sets the fs_type of this V1CSIVolumeSource. + + Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. # noqa: E501 - :param fs_type: The fs_type of this V1CSIVolumeSource. + :param fs_type: The fs_type of this V1CSIVolumeSource. # noqa: E501 :type: str """ @@ -118,22 +116,20 @@ def fs_type(self, fs_type): @property def node_publish_secret_ref(self): - """ - Gets the node_publish_secret_ref of this V1CSIVolumeSource. - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + """Gets the node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501 + - :return: The node_publish_secret_ref of this V1CSIVolumeSource. + :return: The node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._node_publish_secret_ref @node_publish_secret_ref.setter def node_publish_secret_ref(self, node_publish_secret_ref): - """ - Sets the node_publish_secret_ref of this V1CSIVolumeSource. - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + """Sets the node_publish_secret_ref of this V1CSIVolumeSource. + - :param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIVolumeSource. + :param node_publish_secret_ref: The node_publish_secret_ref of this V1CSIVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -141,22 +137,22 @@ def node_publish_secret_ref(self, node_publish_secret_ref): @property def read_only(self): - """ - Gets the read_only of this V1CSIVolumeSource. - Specifies a read-only configuration for the volume. Defaults to false (read/write). + """Gets the read_only of this V1CSIVolumeSource. # noqa: E501 + + Specifies a read-only configuration for the volume. Defaults to false (read/write). # noqa: E501 - :return: The read_only of this V1CSIVolumeSource. + :return: The read_only of this V1CSIVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1CSIVolumeSource. - Specifies a read-only configuration for the volume. Defaults to false (read/write). + """Sets the read_only of this V1CSIVolumeSource. - :param read_only: The read_only of this V1CSIVolumeSource. + Specifies a read-only configuration for the volume. Defaults to false (read/write). # noqa: E501 + + :param read_only: The read_only of this V1CSIVolumeSource. # noqa: E501 :type: bool """ @@ -164,34 +160,32 @@ def read_only(self, read_only): @property def volume_attributes(self): - """ - Gets the volume_attributes of this V1CSIVolumeSource. - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + """Gets the volume_attributes of this V1CSIVolumeSource. # noqa: E501 - :return: The volume_attributes of this V1CSIVolumeSource. + VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501 + + :return: The volume_attributes of this V1CSIVolumeSource. # noqa: E501 :rtype: dict(str, str) """ return self._volume_attributes @volume_attributes.setter def volume_attributes(self, volume_attributes): - """ - Sets the volume_attributes of this V1CSIVolumeSource. - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + """Sets the volume_attributes of this V1CSIVolumeSource. - :param volume_attributes: The volume_attributes of this V1CSIVolumeSource. + VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501 + + :param volume_attributes: The volume_attributes of this V1CSIVolumeSource. # noqa: E501 :type: dict(str, str) """ self._volume_attributes = volume_attributes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +206,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1CSIVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index a4b3770910..8e22e9c660 100644 --- a/kubernetes/client/models/v1_daemon_endpoint.py +++ b/kubernetes/client/models/v1_daemon_endpoint.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonEndpoint(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'port': 'int' } @@ -38,10 +38,8 @@ class V1DaemonEndpoint(object): 'port': 'Port' } - def __init__(self, port=None): - """ - V1DaemonEndpoint - a model defined in Swagger - """ + def __init__(self, port=None): # noqa: E501 + """V1DaemonEndpoint - a model defined in OpenAPI""" # noqa: E501 self._port = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, port=None): @property def port(self): - """ - Gets the port of this V1DaemonEndpoint. - Port number of the given endpoint. + """Gets the port of this V1DaemonEndpoint. # noqa: E501 + + Port number of the given endpoint. # noqa: E501 - :return: The port of this V1DaemonEndpoint. + :return: The port of this V1DaemonEndpoint. # noqa: E501 :rtype: int """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1DaemonEndpoint. - Port number of the given endpoint. + """Sets the port of this V1DaemonEndpoint. + + Port number of the given endpoint. # noqa: E501 - :param port: The port of this V1DaemonEndpoint. + :param port: The port of this V1DaemonEndpoint. # noqa: E501 :type: int """ if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonEndpoint): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set.py b/kubernetes/client/models/v1_daemon_set.py index 52254cae4a..42b40e0e01 100644 --- a/kubernetes/client/models/v1_daemon_set.py +++ b/kubernetes/client/models/v1_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1DaemonSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1DaemonSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1DaemonSet. # noqa: E501 - :return: The api_version of this V1DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1DaemonSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1DaemonSet. - :param api_version: The api_version of this V1DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1DaemonSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1DaemonSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1DaemonSet. + :return: The kind of this V1DaemonSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1DaemonSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1DaemonSet. + :param kind: The kind of this V1DaemonSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1DaemonSet. # noqa: E501 + - :return: The metadata of this V1DaemonSet. + :return: The metadata of this V1DaemonSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1DaemonSet. + - :param metadata: The metadata of this V1DaemonSet. + :param metadata: The metadata of this V1DaemonSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1DaemonSet. # noqa: E501 + - :return: The spec of this V1DaemonSet. + :return: The spec of this V1DaemonSet. # noqa: E501 :rtype: V1DaemonSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1DaemonSet. - :param spec: The spec of this V1DaemonSet. + + :param spec: The spec of this V1DaemonSet. # noqa: E501 :type: V1DaemonSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1DaemonSet. # noqa: E501 - :return: The status of this V1DaemonSet. + + :return: The status of this V1DaemonSet. # noqa: E501 :rtype: V1DaemonSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1DaemonSet. - :param status: The status of this V1DaemonSet. + + :param status: The status of this V1DaemonSet. # noqa: E501 :type: V1DaemonSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set_condition.py b/kubernetes/client/models/v1_daemon_set_condition.py index fb2e843812..423b441acf 100644 --- a/kubernetes/client/models/v1_daemon_set_condition.py +++ b/kubernetes/client/models/v1_daemon_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1DaemonSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1DaemonSetCondition. # noqa: E501 - :return: The last_transition_time of this V1DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1DaemonSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1DaemonSetCondition. - :param last_transition_time: The last_transition_time of this V1DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1DaemonSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1DaemonSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1DaemonSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1DaemonSetCondition. + :return: The message of this V1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1DaemonSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1DaemonSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1DaemonSetCondition. + :param message: The message of this V1DaemonSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1DaemonSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1DaemonSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1DaemonSetCondition. + :return: The reason of this V1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1DaemonSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1DaemonSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1DaemonSetCondition. + :param reason: The reason of this V1DaemonSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1DaemonSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1DaemonSetCondition. + :return: The status of this V1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1DaemonSetCondition. - :param status: The status of this V1DaemonSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1DaemonSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1DaemonSetCondition. - Type of DaemonSet condition. + """Gets the type of this V1DaemonSetCondition. # noqa: E501 - :return: The type of this V1DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :return: The type of this V1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1DaemonSetCondition. - Type of DaemonSet condition. + """Sets the type of this V1DaemonSetCondition. - :param type: The type of this V1DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :param type: The type of this V1DaemonSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set_list.py b/kubernetes/client/models/v1_daemon_set_list.py index fd031f3056..39230b04ae 100644 --- a/kubernetes/client/models/v1_daemon_set_list.py +++ b/kubernetes/client/models/v1_daemon_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1DaemonSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1DaemonSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1DaemonSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1DaemonSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1DaemonSetList. + :return: The api_version of this V1DaemonSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1DaemonSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1DaemonSetList. + :param api_version: The api_version of this V1DaemonSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1DaemonSetList. - A list of daemon sets. + """Gets the items of this V1DaemonSetList. # noqa: E501 + + A list of daemon sets. # noqa: E501 - :return: The items of this V1DaemonSetList. + :return: The items of this V1DaemonSetList. # noqa: E501 :rtype: list[V1DaemonSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1DaemonSetList. - A list of daemon sets. + """Sets the items of this V1DaemonSetList. + + A list of daemon sets. # noqa: E501 - :param items: The items of this V1DaemonSetList. + :param items: The items of this V1DaemonSetList. # noqa: E501 :type: list[V1DaemonSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1DaemonSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1DaemonSetList. + :return: The kind of this V1DaemonSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1DaemonSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1DaemonSetList. + :param kind: The kind of this V1DaemonSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1DaemonSetList. # noqa: E501 + - :return: The metadata of this V1DaemonSetList. + :return: The metadata of this V1DaemonSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1DaemonSetList. + - :param metadata: The metadata of this V1DaemonSetList. + :param metadata: The metadata of this V1DaemonSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set_spec.py b/kubernetes/client/models/v1_daemon_set_spec.py index aacbcae2ca..531022d34e 100644 --- a/kubernetes/client/models/v1_daemon_set_spec.py +++ b/kubernetes/client/models/v1_daemon_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', @@ -46,10 +46,8 @@ class V1DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): - """ - V1DaemonSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): # noqa: E501 + """V1DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._revision_history_limit = None @@ -59,32 +57,32 @@ def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector self.template = template if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Gets the min_ready_seconds of this V1DaemonSetSpec. # noqa: E501 - :return: The min_ready_seconds of this V1DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 + + :return: The min_ready_seconds of this V1DaemonSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Sets the min_ready_seconds of this V1DaemonSetSpec. - :param min_ready_seconds: The min_ready_seconds of this V1DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1DaemonSetSpec. # noqa: E501 :type: int """ @@ -92,22 +90,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Gets the revision_history_limit of this V1DaemonSetSpec. # noqa: E501 + + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :return: The revision_history_limit of this V1DaemonSetSpec. + :return: The revision_history_limit of this V1DaemonSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Sets the revision_history_limit of this V1DaemonSetSpec. + + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1DaemonSetSpec. + :param revision_history_limit: The revision_history_limit of this V1DaemonSetSpec. # noqa: E501 :type: int """ @@ -115,84 +113,76 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1DaemonSetSpec. # noqa: E501 + - :return: The selector of this V1DaemonSetSpec. + :return: The selector of this V1DaemonSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1DaemonSetSpec. + - :param selector: The selector of this V1DaemonSetSpec. + :param selector: The selector of this V1DaemonSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def template(self): - """ - Gets the template of this V1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1DaemonSetSpec. # noqa: E501 + - :return: The template of this V1DaemonSetSpec. + :return: The template of this V1DaemonSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1DaemonSetSpec. - :param template: The template of this V1DaemonSetSpec. + + :param template: The template of this V1DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def update_strategy(self): - """ - Gets the update_strategy of this V1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Gets the update_strategy of this V1DaemonSetSpec. # noqa: E501 - :return: The update_strategy of this V1DaemonSetSpec. + + :return: The update_strategy of this V1DaemonSetSpec. # noqa: E501 :rtype: V1DaemonSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Sets the update_strategy of this V1DaemonSetSpec. - :param update_strategy: The update_strategy of this V1DaemonSetSpec. + + :param update_strategy: The update_strategy of this V1DaemonSetSpec. # noqa: E501 :type: V1DaemonSetUpdateStrategy """ self._update_strategy = update_strategy def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +203,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set_status.py b/kubernetes/client/models/v1_daemon_set_status.py index 77c7b3361b..59060cc094 100644 --- a/kubernetes/client/models/v1_daemon_set_status.py +++ b/kubernetes/client/models/v1_daemon_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1DaemonSetCondition]', 'current_number_scheduled': 'int', @@ -56,10 +56,8 @@ class V1DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): - """ - V1DaemonSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + """V1DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -74,40 +72,40 @@ def __init__(self, collision_count=None, conditions=None, current_number_schedul self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions self.current_number_scheduled = current_number_scheduled self.desired_number_scheduled = desired_number_scheduled if number_available is not None: - self.number_available = number_available + self.number_available = number_available self.number_misscheduled = number_misscheduled self.number_ready = number_ready if number_unavailable is not None: - self.number_unavailable = number_unavailable + self.number_unavailable = number_unavailable if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if updated_number_scheduled is not None: - self.updated_number_scheduled = updated_number_scheduled + self.updated_number_scheduled = updated_number_scheduled @property def collision_count(self): - """ - Gets the collision_count of this V1DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1DaemonSetStatus. # noqa: E501 - :return: The collision_count of this V1DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1DaemonSetStatus. - :param collision_count: The collision_count of this V1DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :param collision_count: The collision_count of this V1DaemonSetStatus. # noqa: E501 :type: int """ @@ -115,22 +113,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Gets the conditions of this V1DaemonSetStatus. # noqa: E501 - :return: The conditions of this V1DaemonSetStatus. + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 + + :return: The conditions of this V1DaemonSetStatus. # noqa: E501 :rtype: list[V1DaemonSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Sets the conditions of this V1DaemonSetStatus. + + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 - :param conditions: The conditions of this V1DaemonSetStatus. + :param conditions: The conditions of this V1DaemonSetStatus. # noqa: E501 :type: list[V1DaemonSetCondition] """ @@ -138,72 +136,72 @@ def conditions(self, conditions): @property def current_number_scheduled(self): - """ - Gets the current_number_scheduled of this V1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the current_number_scheduled of this V1DaemonSetStatus. # noqa: E501 + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The current_number_scheduled of this V1DaemonSetStatus. + :return: The current_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._current_number_scheduled @current_number_scheduled.setter def current_number_scheduled(self, current_number_scheduled): - """ - Sets the current_number_scheduled of this V1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the current_number_scheduled of this V1DaemonSetStatus. + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param current_number_scheduled: The current_number_scheduled of this V1DaemonSetStatus. + :param current_number_scheduled: The current_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ if current_number_scheduled is None: - raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @property def desired_number_scheduled(self): - """ - Gets the desired_number_scheduled of this V1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the desired_number_scheduled of this V1DaemonSetStatus. # noqa: E501 + + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The desired_number_scheduled of this V1DaemonSetStatus. + :return: The desired_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._desired_number_scheduled @desired_number_scheduled.setter def desired_number_scheduled(self, desired_number_scheduled): - """ - Sets the desired_number_scheduled of this V1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the desired_number_scheduled of this V1DaemonSetStatus. - :param desired_number_scheduled: The desired_number_scheduled of this V1DaemonSetStatus. + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 + + :param desired_number_scheduled: The desired_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ if desired_number_scheduled is None: - raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @property def number_available(self): - """ - Gets the number_available of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_available of this V1DaemonSetStatus. # noqa: E501 - :return: The number_available of this V1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_available of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_available @number_available.setter def number_available(self, number_available): - """ - Sets the number_available of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_available of this V1DaemonSetStatus. - :param number_available: The number_available of this V1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_available: The number_available of this V1DaemonSetStatus. # noqa: E501 :type: int """ @@ -211,72 +209,72 @@ def number_available(self, number_available): @property def number_misscheduled(self): - """ - Gets the number_misscheduled of this V1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the number_misscheduled of this V1DaemonSetStatus. # noqa: E501 + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The number_misscheduled of this V1DaemonSetStatus. + :return: The number_misscheduled of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_misscheduled @number_misscheduled.setter def number_misscheduled(self, number_misscheduled): - """ - Sets the number_misscheduled of this V1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the number_misscheduled of this V1DaemonSetStatus. + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param number_misscheduled: The number_misscheduled of this V1DaemonSetStatus. + :param number_misscheduled: The number_misscheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ if number_misscheduled is None: - raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") + raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @property def number_ready(self): - """ - Gets the number_ready of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Gets the number_ready of this V1DaemonSetStatus. # noqa: E501 + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :return: The number_ready of this V1DaemonSetStatus. + :return: The number_ready of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_ready @number_ready.setter def number_ready(self, number_ready): - """ - Sets the number_ready of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Sets the number_ready of this V1DaemonSetStatus. + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :param number_ready: The number_ready of this V1DaemonSetStatus. + :param number_ready: The number_ready of this V1DaemonSetStatus. # noqa: E501 :type: int """ if number_ready is None: - raise ValueError("Invalid value for `number_ready`, must not be `None`") + raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @property def number_unavailable(self): - """ - Gets the number_unavailable of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_unavailable of this V1DaemonSetStatus. # noqa: E501 - :return: The number_unavailable of this V1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_unavailable of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_unavailable @number_unavailable.setter def number_unavailable(self, number_unavailable): - """ - Sets the number_unavailable of this V1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_unavailable of this V1DaemonSetStatus. - :param number_unavailable: The number_unavailable of this V1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_unavailable: The number_unavailable of this V1DaemonSetStatus. # noqa: E501 :type: int """ @@ -284,22 +282,22 @@ def number_unavailable(self, number_unavailable): @property def observed_generation(self): - """ - Gets the observed_generation of this V1DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Gets the observed_generation of this V1DaemonSetStatus. # noqa: E501 - :return: The observed_generation of this V1DaemonSetStatus. + The most recent generation observed by the daemon set controller. # noqa: E501 + + :return: The observed_generation of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Sets the observed_generation of this V1DaemonSetStatus. + + The most recent generation observed by the daemon set controller. # noqa: E501 - :param observed_generation: The observed_generation of this V1DaemonSetStatus. + :param observed_generation: The observed_generation of this V1DaemonSetStatus. # noqa: E501 :type: int """ @@ -307,34 +305,32 @@ def observed_generation(self, observed_generation): @property def updated_number_scheduled(self): - """ - Gets the updated_number_scheduled of this V1DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Gets the updated_number_scheduled of this V1DaemonSetStatus. # noqa: E501 + + The total number of nodes that are running updated daemon pod # noqa: E501 - :return: The updated_number_scheduled of this V1DaemonSetStatus. + :return: The updated_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._updated_number_scheduled @updated_number_scheduled.setter def updated_number_scheduled(self, updated_number_scheduled): - """ - Sets the updated_number_scheduled of this V1DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Sets the updated_number_scheduled of this V1DaemonSetStatus. + + The total number of nodes that are running updated daemon pod # noqa: E501 - :param updated_number_scheduled: The updated_number_scheduled of this V1DaemonSetStatus. + :param updated_number_scheduled: The updated_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ self._updated_number_scheduled = updated_number_scheduled def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -355,28 +351,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_daemon_set_update_strategy.py b/kubernetes/client/models/v1_daemon_set_update_strategy.py index c0b838f7e8..69fd05affd 100644 --- a/kubernetes/client/models/v1_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1_daemon_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DaemonSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1RollingUpdateDaemonSet', 'type': 'str' } @@ -40,38 +40,34 @@ class V1DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1DaemonSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Gets the rolling_update of this V1DaemonSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1DaemonSetUpdateStrategy. + :return: The rolling_update of this V1DaemonSetUpdateStrategy. # noqa: E501 :rtype: V1RollingUpdateDaemonSet """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Sets the rolling_update of this V1DaemonSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1DaemonSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1DaemonSetUpdateStrategy. # noqa: E501 :type: V1RollingUpdateDaemonSet """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. + """Gets the type of this V1DaemonSetUpdateStrategy. # noqa: E501 + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501 - :return: The type of this V1DaemonSetUpdateStrategy. + :return: The type of this V1DaemonSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. + """Sets the type of this V1DaemonSetUpdateStrategy. + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1DaemonSetUpdateStrategy. + :param type: The type of this V1DaemonSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DaemonSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index d02852de8f..23a200a69d 100644 --- a/kubernetes/client/models/v1_delete_options.py +++ b/kubernetes/client/models/v1_delete_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeleteOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'dry_run': 'list[str]', 'grace_period_seconds': 'int', @@ -50,10 +50,8 @@ class V1DeleteOptions(object): 'propagation_policy': 'propagationPolicy' } - def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): - """ - V1DeleteOptions - a model defined in Swagger - """ + def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): # noqa: E501 + """V1DeleteOptions - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._dry_run = None @@ -65,38 +63,38 @@ def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, ki self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if dry_run is not None: - self.dry_run = dry_run + self.dry_run = dry_run if grace_period_seconds is not None: - self.grace_period_seconds = grace_period_seconds + self.grace_period_seconds = grace_period_seconds if kind is not None: - self.kind = kind + self.kind = kind if orphan_dependents is not None: - self.orphan_dependents = orphan_dependents + self.orphan_dependents = orphan_dependents if preconditions is not None: - self.preconditions = preconditions + self.preconditions = preconditions if propagation_policy is not None: - self.propagation_policy = propagation_policy + self.propagation_policy = propagation_policy @property def api_version(self): - """ - Gets the api_version of this V1DeleteOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1DeleteOptions. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1DeleteOptions. + :return: The api_version of this V1DeleteOptions. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1DeleteOptions. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1DeleteOptions. - :param api_version: The api_version of this V1DeleteOptions. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1DeleteOptions. # noqa: E501 :type: str """ @@ -104,22 +102,22 @@ def api_version(self, api_version): @property def dry_run(self): - """ - Gets the dry_run of this V1DeleteOptions. - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + """Gets the dry_run of this V1DeleteOptions. # noqa: E501 - :return: The dry_run of this V1DeleteOptions. + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # noqa: E501 + + :return: The dry_run of this V1DeleteOptions. # noqa: E501 :rtype: list[str] """ return self._dry_run @dry_run.setter def dry_run(self, dry_run): - """ - Sets the dry_run of this V1DeleteOptions. - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + """Sets the dry_run of this V1DeleteOptions. + + When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # noqa: E501 - :param dry_run: The dry_run of this V1DeleteOptions. + :param dry_run: The dry_run of this V1DeleteOptions. # noqa: E501 :type: list[str] """ @@ -127,22 +125,22 @@ def dry_run(self, dry_run): @property def grace_period_seconds(self): - """ - Gets the grace_period_seconds of this V1DeleteOptions. - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + """Gets the grace_period_seconds of this V1DeleteOptions. # noqa: E501 + + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # noqa: E501 - :return: The grace_period_seconds of this V1DeleteOptions. + :return: The grace_period_seconds of this V1DeleteOptions. # noqa: E501 :rtype: int """ return self._grace_period_seconds @grace_period_seconds.setter def grace_period_seconds(self, grace_period_seconds): - """ - Sets the grace_period_seconds of this V1DeleteOptions. - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + """Sets the grace_period_seconds of this V1DeleteOptions. - :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. + The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # noqa: E501 + + :param grace_period_seconds: The grace_period_seconds of this V1DeleteOptions. # noqa: E501 :type: int """ @@ -150,22 +148,22 @@ def grace_period_seconds(self, grace_period_seconds): @property def kind(self): - """ - Gets the kind of this V1DeleteOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1DeleteOptions. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1DeleteOptions. + :return: The kind of this V1DeleteOptions. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1DeleteOptions. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1DeleteOptions. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1DeleteOptions. + :param kind: The kind of this V1DeleteOptions. # noqa: E501 :type: str """ @@ -173,22 +171,22 @@ def kind(self, kind): @property def orphan_dependents(self): - """ - Gets the orphan_dependents of this V1DeleteOptions. - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + """Gets the orphan_dependents of this V1DeleteOptions. # noqa: E501 + + Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # noqa: E501 - :return: The orphan_dependents of this V1DeleteOptions. + :return: The orphan_dependents of this V1DeleteOptions. # noqa: E501 :rtype: bool """ return self._orphan_dependents @orphan_dependents.setter def orphan_dependents(self, orphan_dependents): - """ - Sets the orphan_dependents of this V1DeleteOptions. - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + """Sets the orphan_dependents of this V1DeleteOptions. - :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. + Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # noqa: E501 + + :param orphan_dependents: The orphan_dependents of this V1DeleteOptions. # noqa: E501 :type: bool """ @@ -196,22 +194,20 @@ def orphan_dependents(self, orphan_dependents): @property def preconditions(self): - """ - Gets the preconditions of this V1DeleteOptions. - Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + """Gets the preconditions of this V1DeleteOptions. # noqa: E501 + - :return: The preconditions of this V1DeleteOptions. + :return: The preconditions of this V1DeleteOptions. # noqa: E501 :rtype: V1Preconditions """ return self._preconditions @preconditions.setter def preconditions(self, preconditions): - """ - Sets the preconditions of this V1DeleteOptions. - Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + """Sets the preconditions of this V1DeleteOptions. + - :param preconditions: The preconditions of this V1DeleteOptions. + :param preconditions: The preconditions of this V1DeleteOptions. # noqa: E501 :type: V1Preconditions """ @@ -219,34 +215,32 @@ def preconditions(self, preconditions): @property def propagation_policy(self): - """ - Gets the propagation_policy of this V1DeleteOptions. - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + """Gets the propagation_policy of this V1DeleteOptions. # noqa: E501 - :return: The propagation_policy of this V1DeleteOptions. + Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # noqa: E501 + + :return: The propagation_policy of this V1DeleteOptions. # noqa: E501 :rtype: str """ return self._propagation_policy @propagation_policy.setter def propagation_policy(self, propagation_policy): - """ - Sets the propagation_policy of this V1DeleteOptions. - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + """Sets the propagation_policy of this V1DeleteOptions. - :param propagation_policy: The propagation_policy of this V1DeleteOptions. + Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # noqa: E501 + + :param propagation_policy: The propagation_policy of this V1DeleteOptions. # noqa: E501 :type: str """ self._propagation_policy = propagation_policy def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +261,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeleteOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment.py b/kubernetes/client/models/v1_deployment.py index 7b203bc693..d312cd3cf6 100644 --- a/kubernetes/client/models/v1_deployment.py +++ b/kubernetes/client/models/v1_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Deployment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Deployment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Deployment. # noqa: E501 - :return: The api_version of this V1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Deployment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Deployment. - :param api_version: The api_version of this V1Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Deployment. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Deployment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Deployment. + :return: The kind of this V1Deployment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Deployment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Deployment. + :param kind: The kind of this V1Deployment. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Deployment. - Standard object metadata. + """Gets the metadata of this V1Deployment. # noqa: E501 + - :return: The metadata of this V1Deployment. + :return: The metadata of this V1Deployment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Deployment. - Standard object metadata. + """Sets the metadata of this V1Deployment. + - :param metadata: The metadata of this V1Deployment. + :param metadata: The metadata of this V1Deployment. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Deployment. - Specification of the desired behavior of the Deployment. + """Gets the spec of this V1Deployment. # noqa: E501 + - :return: The spec of this V1Deployment. + :return: The spec of this V1Deployment. # noqa: E501 :rtype: V1DeploymentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Deployment. - Specification of the desired behavior of the Deployment. + """Sets the spec of this V1Deployment. - :param spec: The spec of this V1Deployment. + + :param spec: The spec of this V1Deployment. # noqa: E501 :type: V1DeploymentSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Deployment. - Most recently observed status of the Deployment. + """Gets the status of this V1Deployment. # noqa: E501 - :return: The status of this V1Deployment. + + :return: The status of this V1Deployment. # noqa: E501 :rtype: V1DeploymentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Deployment. - Most recently observed status of the Deployment. + """Sets the status of this V1Deployment. - :param status: The status of this V1Deployment. + + :param status: The status of this V1Deployment. # noqa: E501 :type: V1DeploymentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Deployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment_condition.py b/kubernetes/client/models/v1_deployment_condition.py index 339b2d9a6a..42a08dd54e 100644 --- a/kubernetes/client/models/v1_deployment_condition.py +++ b/kubernetes/client/models/v1_deployment_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'last_update_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - V1DeploymentCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._last_update_time = None @@ -62,34 +60,34 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if last_update_time is not None: - self.last_update_time = last_update_time + self.last_update_time = last_update_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1DeploymentCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this V1DeploymentCondition. + :return: The last_transition_time of this V1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1DeploymentCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1DeploymentCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 - :param last_transition_time: The last_transition_time of this V1DeploymentCondition. + :param last_transition_time: The last_transition_time of this V1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_transition_time(self, last_transition_time): @property def last_update_time(self): - """ - Gets the last_update_time of this V1DeploymentCondition. - The last time this condition was updated. + """Gets the last_update_time of this V1DeploymentCondition. # noqa: E501 + + The last time this condition was updated. # noqa: E501 - :return: The last_update_time of this V1DeploymentCondition. + :return: The last_update_time of this V1DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_update_time @last_update_time.setter def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this V1DeploymentCondition. - The last time this condition was updated. + """Sets the last_update_time of this V1DeploymentCondition. - :param last_update_time: The last_update_time of this V1DeploymentCondition. + The last time this condition was updated. # noqa: E501 + + :param last_update_time: The last_update_time of this V1DeploymentCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_update_time(self, last_update_time): @property def message(self): - """ - Gets the message of this V1DeploymentCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1DeploymentCondition. # noqa: E501 - :return: The message of this V1DeploymentCondition. + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this V1DeploymentCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1DeploymentCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1DeploymentCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1DeploymentCondition. + :param message: The message of this V1DeploymentCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1DeploymentCondition. - The reason for the condition's last transition. + """Gets the reason of this V1DeploymentCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1DeploymentCondition. + :return: The reason of this V1DeploymentCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1DeploymentCondition. - The reason for the condition's last transition. + """Sets the reason of this V1DeploymentCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1DeploymentCondition. + :param reason: The reason of this V1DeploymentCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1DeploymentCondition. # noqa: E501 - :return: The status of this V1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1DeploymentCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1DeploymentCondition. - :param status: The status of this V1DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1DeploymentCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1DeploymentCondition. - Type of deployment condition. + """Gets the type of this V1DeploymentCondition. # noqa: E501 + + Type of deployment condition. # noqa: E501 - :return: The type of this V1DeploymentCondition. + :return: The type of this V1DeploymentCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1DeploymentCondition. - Type of deployment condition. + """Sets the type of this V1DeploymentCondition. + + Type of deployment condition. # noqa: E501 - :param type: The type of this V1DeploymentCondition. + :param type: The type of this V1DeploymentCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeploymentCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment_list.py b/kubernetes/client/models/v1_deployment_list.py index 293a25d19d..ee26a5a533 100644 --- a/kubernetes/client/models/v1_deployment_list.py +++ b/kubernetes/client/models/v1_deployment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Deployment]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1DeploymentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1DeploymentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1DeploymentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1DeploymentList. + :return: The api_version of this V1DeploymentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1DeploymentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1DeploymentList. + :param api_version: The api_version of this V1DeploymentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1DeploymentList. - Items is the list of Deployments. + """Gets the items of this V1DeploymentList. # noqa: E501 + + Items is the list of Deployments. # noqa: E501 - :return: The items of this V1DeploymentList. + :return: The items of this V1DeploymentList. # noqa: E501 :rtype: list[V1Deployment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1DeploymentList. - Items is the list of Deployments. + """Sets the items of this V1DeploymentList. + + Items is the list of Deployments. # noqa: E501 - :param items: The items of this V1DeploymentList. + :param items: The items of this V1DeploymentList. # noqa: E501 :type: list[V1Deployment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1DeploymentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1DeploymentList. + :return: The kind of this V1DeploymentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1DeploymentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1DeploymentList. + :param kind: The kind of this V1DeploymentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1DeploymentList. - Standard list metadata. + """Gets the metadata of this V1DeploymentList. # noqa: E501 + - :return: The metadata of this V1DeploymentList. + :return: The metadata of this V1DeploymentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1DeploymentList. - Standard list metadata. + """Sets the metadata of this V1DeploymentList. + - :param metadata: The metadata of this V1DeploymentList. + :param metadata: The metadata of this V1DeploymentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeploymentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment_spec.py b/kubernetes/client/models/v1_deployment_spec.py index 96255d2d39..d597d8f0da 100644 --- a/kubernetes/client/models/v1_deployment_spec.py +++ b/kubernetes/client/models/v1_deployment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'paused': 'bool', 'progress_deadline_seconds': 'int', @@ -52,10 +52,8 @@ class V1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): - """ - V1DeploymentSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): # noqa: E501 + """V1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._paused = None @@ -68,38 +66,38 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if paused is not None: - self.paused = paused + self.paused = paused if progress_deadline_seconds is not None: - self.progress_deadline_seconds = progress_deadline_seconds + self.progress_deadline_seconds = progress_deadline_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector if strategy is not None: - self.strategy = strategy + self.strategy = strategy self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1DeploymentSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1DeploymentSpec. + :return: The min_ready_seconds of this V1DeploymentSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1DeploymentSpec. - :param min_ready_seconds: The min_ready_seconds of this V1DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1DeploymentSpec. # noqa: E501 :type: int """ @@ -107,22 +105,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def paused(self): - """ - Gets the paused of this V1DeploymentSpec. - Indicates that the deployment is paused. + """Gets the paused of this V1DeploymentSpec. # noqa: E501 + + Indicates that the deployment is paused. # noqa: E501 - :return: The paused of this V1DeploymentSpec. + :return: The paused of this V1DeploymentSpec. # noqa: E501 :rtype: bool """ return self._paused @paused.setter def paused(self, paused): - """ - Sets the paused of this V1DeploymentSpec. - Indicates that the deployment is paused. + """Sets the paused of this V1DeploymentSpec. + + Indicates that the deployment is paused. # noqa: E501 - :param paused: The paused of this V1DeploymentSpec. + :param paused: The paused of this V1DeploymentSpec. # noqa: E501 :type: bool """ @@ -130,22 +128,22 @@ def paused(self, paused): @property def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this V1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Gets the progress_deadline_seconds of this V1DeploymentSpec. # noqa: E501 - :return: The progress_deadline_seconds of this V1DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 + + :return: The progress_deadline_seconds of this V1DeploymentSpec. # noqa: E501 :rtype: int """ return self._progress_deadline_seconds @progress_deadline_seconds.setter def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this V1DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Sets the progress_deadline_seconds of this V1DeploymentSpec. + + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 - :param progress_deadline_seconds: The progress_deadline_seconds of this V1DeploymentSpec. + :param progress_deadline_seconds: The progress_deadline_seconds of this V1DeploymentSpec. # noqa: E501 :type: int """ @@ -153,22 +151,22 @@ def progress_deadline_seconds(self, progress_deadline_seconds): @property def replicas(self): - """ - Gets the replicas of this V1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Gets the replicas of this V1DeploymentSpec. # noqa: E501 + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :return: The replicas of this V1DeploymentSpec. + :return: The replicas of this V1DeploymentSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Sets the replicas of this V1DeploymentSpec. - :param replicas: The replicas of this V1DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 + + :param replicas: The replicas of this V1DeploymentSpec. # noqa: E501 :type: int """ @@ -176,22 +174,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Gets the revision_history_limit of this V1DeploymentSpec. # noqa: E501 + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :return: The revision_history_limit of this V1DeploymentSpec. + :return: The revision_history_limit of this V1DeploymentSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Sets the revision_history_limit of this V1DeploymentSpec. + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1DeploymentSpec. + :param revision_history_limit: The revision_history_limit of this V1DeploymentSpec. # noqa: E501 :type: int """ @@ -199,47 +197,43 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + """Gets the selector of this V1DeploymentSpec. # noqa: E501 - :return: The selector of this V1DeploymentSpec. + + :return: The selector of this V1DeploymentSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + """Sets the selector of this V1DeploymentSpec. + - :param selector: The selector of this V1DeploymentSpec. + :param selector: The selector of this V1DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def strategy(self): - """ - Gets the strategy of this V1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Gets the strategy of this V1DeploymentSpec. # noqa: E501 + - :return: The strategy of this V1DeploymentSpec. + :return: The strategy of this V1DeploymentSpec. # noqa: E501 :rtype: V1DeploymentStrategy """ return self._strategy @strategy.setter def strategy(self, strategy): - """ - Sets the strategy of this V1DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Sets the strategy of this V1DeploymentSpec. - :param strategy: The strategy of this V1DeploymentSpec. + + :param strategy: The strategy of this V1DeploymentSpec. # noqa: E501 :type: V1DeploymentStrategy """ @@ -247,36 +241,32 @@ def strategy(self, strategy): @property def template(self): - """ - Gets the template of this V1DeploymentSpec. - Template describes the pods that will be created. + """Gets the template of this V1DeploymentSpec. # noqa: E501 + - :return: The template of this V1DeploymentSpec. + :return: The template of this V1DeploymentSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1DeploymentSpec. - Template describes the pods that will be created. + """Sets the template of this V1DeploymentSpec. + - :param template: The template of this V1DeploymentSpec. + :param template: The template of this V1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +287,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeploymentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment_status.py b/kubernetes/client/models/v1_deployment_status.py index dc85dcf726..79d24650ee 100644 --- a/kubernetes/client/models/v1_deployment_status.py +++ b/kubernetes/client/models/v1_deployment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'collision_count': 'int', 'conditions': 'list[V1DeploymentCondition]', @@ -52,10 +52,8 @@ class V1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - V1DeploymentStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + """V1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._collision_count = None @@ -68,40 +66,40 @@ def __init__(self, available_replicas=None, collision_count=None, conditions=Non self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas if replicas is not None: - self.replicas = replicas + self.replicas = replicas if unavailable_replicas is not None: - self.unavailable_replicas = unavailable_replicas + self.unavailable_replicas = unavailable_replicas if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Gets the available_replicas of this V1DeploymentStatus. # noqa: E501 + + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 - :return: The available_replicas of this V1DeploymentStatus. + :return: The available_replicas of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Sets the available_replicas of this V1DeploymentStatus. - :param available_replicas: The available_replicas of this V1DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 + + :param available_replicas: The available_replicas of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -109,22 +107,22 @@ def available_replicas(self, available_replicas): @property def collision_count(self): - """ - Gets the collision_count of this V1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Gets the collision_count of this V1DeploymentStatus. # noqa: E501 + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :return: The collision_count of this V1DeploymentStatus. + :return: The collision_count of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Sets the collision_count of this V1DeploymentStatus. + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :param collision_count: The collision_count of this V1DeploymentStatus. + :param collision_count: The collision_count of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -132,22 +130,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Gets the conditions of this V1DeploymentStatus. # noqa: E501 - :return: The conditions of this V1DeploymentStatus. + Represents the latest available observations of a deployment's current state. # noqa: E501 + + :return: The conditions of this V1DeploymentStatus. # noqa: E501 :rtype: list[V1DeploymentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Sets the conditions of this V1DeploymentStatus. + + Represents the latest available observations of a deployment's current state. # noqa: E501 - :param conditions: The conditions of this V1DeploymentStatus. + :param conditions: The conditions of this V1DeploymentStatus. # noqa: E501 :type: list[V1DeploymentCondition] """ @@ -155,22 +153,22 @@ def conditions(self, conditions): @property def observed_generation(self): - """ - Gets the observed_generation of this V1DeploymentStatus. - The generation observed by the deployment controller. + """Gets the observed_generation of this V1DeploymentStatus. # noqa: E501 + + The generation observed by the deployment controller. # noqa: E501 - :return: The observed_generation of this V1DeploymentStatus. + :return: The observed_generation of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1DeploymentStatus. - The generation observed by the deployment controller. + """Sets the observed_generation of this V1DeploymentStatus. - :param observed_generation: The observed_generation of this V1DeploymentStatus. + The generation observed by the deployment controller. # noqa: E501 + + :param observed_generation: The observed_generation of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -178,22 +176,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Gets the ready_replicas of this V1DeploymentStatus. # noqa: E501 + + Total number of ready pods targeted by this deployment. # noqa: E501 - :return: The ready_replicas of this V1DeploymentStatus. + :return: The ready_replicas of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Sets the ready_replicas of this V1DeploymentStatus. + + Total number of ready pods targeted by this deployment. # noqa: E501 - :param ready_replicas: The ready_replicas of this V1DeploymentStatus. + :param ready_replicas: The ready_replicas of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -201,22 +199,22 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Gets the replicas of this V1DeploymentStatus. # noqa: E501 - :return: The replicas of this V1DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 + + :return: The replicas of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Sets the replicas of this V1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 - :param replicas: The replicas of this V1DeploymentStatus. + :param replicas: The replicas of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -224,22 +222,22 @@ def replicas(self, replicas): @property def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this V1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Gets the unavailable_replicas of this V1DeploymentStatus. # noqa: E501 + + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 - :return: The unavailable_replicas of this V1DeploymentStatus. + :return: The unavailable_replicas of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._unavailable_replicas @unavailable_replicas.setter def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this V1DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Sets the unavailable_replicas of this V1DeploymentStatus. - :param unavailable_replicas: The unavailable_replicas of this V1DeploymentStatus. + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 + + :param unavailable_replicas: The unavailable_replicas of this V1DeploymentStatus. # noqa: E501 :type: int """ @@ -247,34 +245,32 @@ def unavailable_replicas(self, unavailable_replicas): @property def updated_replicas(self): - """ - Gets the updated_replicas of this V1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Gets the updated_replicas of this V1DeploymentStatus. # noqa: E501 + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :return: The updated_replicas of this V1DeploymentStatus. + :return: The updated_replicas of this V1DeploymentStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this V1DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Sets the updated_replicas of this V1DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :param updated_replicas: The updated_replicas of this V1DeploymentStatus. + :param updated_replicas: The updated_replicas of this V1DeploymentStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeploymentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_deployment_strategy.py b/kubernetes/client/models/v1_deployment_strategy.py index 825da80aeb..457c11ceac 100644 --- a/kubernetes/client/models/v1_deployment_strategy.py +++ b/kubernetes/client/models/v1_deployment_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1RollingUpdateDeployment', 'type': 'str' } @@ -40,38 +40,34 @@ class V1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1DeploymentStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Gets the rolling_update of this V1DeploymentStrategy. # noqa: E501 + - :return: The rolling_update of this V1DeploymentStrategy. + :return: The rolling_update of this V1DeploymentStrategy. # noqa: E501 :rtype: V1RollingUpdateDeployment """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Sets the rolling_update of this V1DeploymentStrategy. - :param rolling_update: The rolling_update of this V1DeploymentStrategy. + + :param rolling_update: The rolling_update of this V1DeploymentStrategy. # noqa: E501 :type: V1RollingUpdateDeployment """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Gets the type of this V1DeploymentStrategy. # noqa: E501 + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :return: The type of this V1DeploymentStrategy. + :return: The type of this V1DeploymentStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Sets the type of this V1DeploymentStrategy. + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1DeploymentStrategy. + :param type: The type of this V1DeploymentStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DeploymentStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_downward_api_projection.py b/kubernetes/client/models/v1_downward_api_projection.py index ba3a2f683a..2d358c7a26 100644 --- a/kubernetes/client/models/v1_downward_api_projection.py +++ b/kubernetes/client/models/v1_downward_api_projection.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DownwardAPIProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'items': 'list[V1DownwardAPIVolumeFile]' } @@ -38,47 +38,43 @@ class V1DownwardAPIProjection(object): 'items': 'items' } - def __init__(self, items=None): - """ - V1DownwardAPIProjection - a model defined in Swagger - """ + def __init__(self, items=None): # noqa: E501 + """V1DownwardAPIProjection - a model defined in OpenAPI""" # noqa: E501 self._items = None self.discriminator = None if items is not None: - self.items = items + self.items = items @property def items(self): - """ - Gets the items of this V1DownwardAPIProjection. - Items is a list of DownwardAPIVolume file + """Gets the items of this V1DownwardAPIProjection. # noqa: E501 + + Items is a list of DownwardAPIVolume file # noqa: E501 - :return: The items of this V1DownwardAPIProjection. + :return: The items of this V1DownwardAPIProjection. # noqa: E501 :rtype: list[V1DownwardAPIVolumeFile] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1DownwardAPIProjection. - Items is a list of DownwardAPIVolume file + """Sets the items of this V1DownwardAPIProjection. + + Items is a list of DownwardAPIVolume file # noqa: E501 - :param items: The items of this V1DownwardAPIProjection. + :param items: The items of this V1DownwardAPIProjection. # noqa: E501 :type: list[V1DownwardAPIVolumeFile] """ self._items = items def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DownwardAPIProjection): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_downward_api_volume_file.py b/kubernetes/client/models/v1_downward_api_volume_file.py index ec908fae83..40d2a4ec33 100644 --- a/kubernetes/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/client/models/v1_downward_api_volume_file.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DownwardAPIVolumeFile(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'field_ref': 'V1ObjectFieldSelector', 'mode': 'int', 'path': 'str', @@ -44,10 +44,8 @@ class V1DownwardAPIVolumeFile(object): 'resource_field_ref': 'resourceFieldRef' } - def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None): - """ - V1DownwardAPIVolumeFile - a model defined in Swagger - """ + def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None): # noqa: E501 + """V1DownwardAPIVolumeFile - a model defined in OpenAPI""" # noqa: E501 self._field_ref = None self._mode = None @@ -56,31 +54,29 @@ def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None self.discriminator = None if field_ref is not None: - self.field_ref = field_ref + self.field_ref = field_ref if mode is not None: - self.mode = mode + self.mode = mode self.path = path if resource_field_ref is not None: - self.resource_field_ref = resource_field_ref + self.resource_field_ref = resource_field_ref @property def field_ref(self): - """ - Gets the field_ref of this V1DownwardAPIVolumeFile. - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + """Gets the field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 + - :return: The field_ref of this V1DownwardAPIVolumeFile. + :return: The field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): - """ - Sets the field_ref of this V1DownwardAPIVolumeFile. - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + """Sets the field_ref of this V1DownwardAPIVolumeFile. + - :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. + :param field_ref: The field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 :type: V1ObjectFieldSelector """ @@ -88,22 +84,22 @@ def field_ref(self, field_ref): @property def mode(self): - """ - Gets the mode of this V1DownwardAPIVolumeFile. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the mode of this V1DownwardAPIVolumeFile. # noqa: E501 + + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :return: The mode of this V1DownwardAPIVolumeFile. + :return: The mode of this V1DownwardAPIVolumeFile. # noqa: E501 :rtype: int """ return self._mode @mode.setter def mode(self, mode): - """ - Sets the mode of this V1DownwardAPIVolumeFile. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the mode of this V1DownwardAPIVolumeFile. + + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :param mode: The mode of this V1DownwardAPIVolumeFile. + :param mode: The mode of this V1DownwardAPIVolumeFile. # noqa: E501 :type: int """ @@ -111,59 +107,55 @@ def mode(self, mode): @property def path(self): - """ - Gets the path of this V1DownwardAPIVolumeFile. - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + """Gets the path of this V1DownwardAPIVolumeFile. # noqa: E501 + + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' # noqa: E501 - :return: The path of this V1DownwardAPIVolumeFile. + :return: The path of this V1DownwardAPIVolumeFile. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1DownwardAPIVolumeFile. - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + """Sets the path of this V1DownwardAPIVolumeFile. + + Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' # noqa: E501 - :param path: The path of this V1DownwardAPIVolumeFile. + :param path: The path of this V1DownwardAPIVolumeFile. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @property def resource_field_ref(self): - """ - Gets the resource_field_ref of this V1DownwardAPIVolumeFile. - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + """Gets the resource_field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 + - :return: The resource_field_ref of this V1DownwardAPIVolumeFile. + :return: The resource_field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 :rtype: V1ResourceFieldSelector """ return self._resource_field_ref @resource_field_ref.setter def resource_field_ref(self, resource_field_ref): - """ - Sets the resource_field_ref of this V1DownwardAPIVolumeFile. - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + """Sets the resource_field_ref of this V1DownwardAPIVolumeFile. + - :param resource_field_ref: The resource_field_ref of this V1DownwardAPIVolumeFile. + :param resource_field_ref: The resource_field_ref of this V1DownwardAPIVolumeFile. # noqa: E501 :type: V1ResourceFieldSelector """ self._resource_field_ref = resource_field_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DownwardAPIVolumeFile): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_downward_api_volume_source.py b/kubernetes/client/models/v1_downward_api_volume_source.py index e92396bf4c..eee6faa25c 100644 --- a/kubernetes/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/client/models/v1_downward_api_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1DownwardAPIVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'default_mode': 'int', 'items': 'list[V1DownwardAPIVolumeFile]' } @@ -40,38 +40,36 @@ class V1DownwardAPIVolumeSource(object): 'items': 'items' } - def __init__(self, default_mode=None, items=None): - """ - V1DownwardAPIVolumeSource - a model defined in Swagger - """ + def __init__(self, default_mode=None, items=None): # noqa: E501 + """V1DownwardAPIVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._default_mode = None self._items = None self.discriminator = None if default_mode is not None: - self.default_mode = default_mode + self.default_mode = default_mode if items is not None: - self.items = items + self.items = items @property def default_mode(self): - """ - Gets the default_mode of this V1DownwardAPIVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the default_mode of this V1DownwardAPIVolumeSource. # noqa: E501 + + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :return: The default_mode of this V1DownwardAPIVolumeSource. + :return: The default_mode of this V1DownwardAPIVolumeSource. # noqa: E501 :rtype: int """ return self._default_mode @default_mode.setter def default_mode(self, default_mode): - """ - Sets the default_mode of this V1DownwardAPIVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the default_mode of this V1DownwardAPIVolumeSource. - :param default_mode: The default_mode of this V1DownwardAPIVolumeSource. + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :param default_mode: The default_mode of this V1DownwardAPIVolumeSource. # noqa: E501 :type: int """ @@ -79,34 +77,32 @@ def default_mode(self, default_mode): @property def items(self): - """ - Gets the items of this V1DownwardAPIVolumeSource. - Items is a list of downward API volume file + """Gets the items of this V1DownwardAPIVolumeSource. # noqa: E501 + + Items is a list of downward API volume file # noqa: E501 - :return: The items of this V1DownwardAPIVolumeSource. + :return: The items of this V1DownwardAPIVolumeSource. # noqa: E501 :rtype: list[V1DownwardAPIVolumeFile] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1DownwardAPIVolumeSource. - Items is a list of downward API volume file + """Sets the items of this V1DownwardAPIVolumeSource. + + Items is a list of downward API volume file # noqa: E501 - :param items: The items of this V1DownwardAPIVolumeSource. + :param items: The items of this V1DownwardAPIVolumeSource. # noqa: E501 :type: list[V1DownwardAPIVolumeFile] """ self._items = items def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1DownwardAPIVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_empty_dir_volume_source.py b/kubernetes/client/models/v1_empty_dir_volume_source.py index 838d1c6521..c302083a6f 100644 --- a/kubernetes/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/client/models/v1_empty_dir_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EmptyDirVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'medium': 'str', 'size_limit': 'str' } @@ -40,38 +40,36 @@ class V1EmptyDirVolumeSource(object): 'size_limit': 'sizeLimit' } - def __init__(self, medium=None, size_limit=None): - """ - V1EmptyDirVolumeSource - a model defined in Swagger - """ + def __init__(self, medium=None, size_limit=None): # noqa: E501 + """V1EmptyDirVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._medium = None self._size_limit = None self.discriminator = None if medium is not None: - self.medium = medium + self.medium = medium if size_limit is not None: - self.size_limit = size_limit + self.size_limit = size_limit @property def medium(self): - """ - Gets the medium of this V1EmptyDirVolumeSource. - What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + """Gets the medium of this V1EmptyDirVolumeSource. # noqa: E501 + + What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir # noqa: E501 - :return: The medium of this V1EmptyDirVolumeSource. + :return: The medium of this V1EmptyDirVolumeSource. # noqa: E501 :rtype: str """ return self._medium @medium.setter def medium(self, medium): - """ - Sets the medium of this V1EmptyDirVolumeSource. - What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + """Sets the medium of this V1EmptyDirVolumeSource. - :param medium: The medium of this V1EmptyDirVolumeSource. + What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir # noqa: E501 + + :param medium: The medium of this V1EmptyDirVolumeSource. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def medium(self, medium): @property def size_limit(self): - """ - Gets the size_limit of this V1EmptyDirVolumeSource. - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + """Gets the size_limit of this V1EmptyDirVolumeSource. # noqa: E501 + + Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir # noqa: E501 - :return: The size_limit of this V1EmptyDirVolumeSource. + :return: The size_limit of this V1EmptyDirVolumeSource. # noqa: E501 :rtype: str """ return self._size_limit @size_limit.setter def size_limit(self, size_limit): - """ - Sets the size_limit of this V1EmptyDirVolumeSource. - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + """Sets the size_limit of this V1EmptyDirVolumeSource. + + Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir # noqa: E501 - :param size_limit: The size_limit of this V1EmptyDirVolumeSource. + :param size_limit: The size_limit of this V1EmptyDirVolumeSource. # noqa: E501 :type: str """ self._size_limit = size_limit def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EmptyDirVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_endpoint_address.py b/kubernetes/client/models/v1_endpoint_address.py index 32244f4fb3..4be16a5e00 100644 --- a/kubernetes/client/models/v1_endpoint_address.py +++ b/kubernetes/client/models/v1_endpoint_address.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EndpointAddress(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hostname': 'str', 'ip': 'str', 'node_name': 'str', @@ -44,10 +44,8 @@ class V1EndpointAddress(object): 'target_ref': 'targetRef' } - def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None): - """ - V1EndpointAddress - a model defined in Swagger - """ + def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None): # noqa: E501 + """V1EndpointAddress - a model defined in OpenAPI""" # noqa: E501 self._hostname = None self._ip = None @@ -56,31 +54,31 @@ def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None): self.discriminator = None if hostname is not None: - self.hostname = hostname + self.hostname = hostname self.ip = ip if node_name is not None: - self.node_name = node_name + self.node_name = node_name if target_ref is not None: - self.target_ref = target_ref + self.target_ref = target_ref @property def hostname(self): - """ - Gets the hostname of this V1EndpointAddress. - The Hostname of this endpoint + """Gets the hostname of this V1EndpointAddress. # noqa: E501 + + The Hostname of this endpoint # noqa: E501 - :return: The hostname of this V1EndpointAddress. + :return: The hostname of this V1EndpointAddress. # noqa: E501 :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): - """ - Sets the hostname of this V1EndpointAddress. - The Hostname of this endpoint + """Sets the hostname of this V1EndpointAddress. + + The Hostname of this endpoint # noqa: E501 - :param hostname: The hostname of this V1EndpointAddress. + :param hostname: The hostname of this V1EndpointAddress. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def hostname(self, hostname): @property def ip(self): - """ - Gets the ip of this V1EndpointAddress. - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + """Gets the ip of this V1EndpointAddress. # noqa: E501 + + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. # noqa: E501 - :return: The ip of this V1EndpointAddress. + :return: The ip of this V1EndpointAddress. # noqa: E501 :rtype: str """ return self._ip @ip.setter def ip(self, ip): - """ - Sets the ip of this V1EndpointAddress. - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + """Sets the ip of this V1EndpointAddress. + + The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. # noqa: E501 - :param ip: The ip of this V1EndpointAddress. + :param ip: The ip of this V1EndpointAddress. # noqa: E501 :type: str """ if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @property def node_name(self): - """ - Gets the node_name of this V1EndpointAddress. - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + """Gets the node_name of this V1EndpointAddress. # noqa: E501 + + Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. # noqa: E501 - :return: The node_name of this V1EndpointAddress. + :return: The node_name of this V1EndpointAddress. # noqa: E501 :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): - """ - Sets the node_name of this V1EndpointAddress. - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + """Sets the node_name of this V1EndpointAddress. + + Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. # noqa: E501 - :param node_name: The node_name of this V1EndpointAddress. + :param node_name: The node_name of this V1EndpointAddress. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def node_name(self, node_name): @property def target_ref(self): - """ - Gets the target_ref of this V1EndpointAddress. - Reference to object providing the endpoint. + """Gets the target_ref of this V1EndpointAddress. # noqa: E501 + - :return: The target_ref of this V1EndpointAddress. + :return: The target_ref of this V1EndpointAddress. # noqa: E501 :rtype: V1ObjectReference """ return self._target_ref @target_ref.setter def target_ref(self, target_ref): - """ - Sets the target_ref of this V1EndpointAddress. - Reference to object providing the endpoint. + """Sets the target_ref of this V1EndpointAddress. + - :param target_ref: The target_ref of this V1EndpointAddress. + :param target_ref: The target_ref of this V1EndpointAddress. # noqa: E501 :type: V1ObjectReference """ self._target_ref = target_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EndpointAddress): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_endpoint_port.py b/kubernetes/client/models/v1_endpoint_port.py index 90b9443a9e..1b2a60b452 100644 --- a/kubernetes/client/models/v1_endpoint_port.py +++ b/kubernetes/client/models/v1_endpoint_port.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EndpointPort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'port': 'int', 'protocol': 'str' @@ -42,10 +42,8 @@ class V1EndpointPort(object): 'protocol': 'protocol' } - def __init__(self, name=None, port=None, protocol=None): - """ - V1EndpointPort - a model defined in Swagger - """ + def __init__(self, name=None, port=None, protocol=None): # noqa: E501 + """V1EndpointPort - a model defined in OpenAPI""" # noqa: E501 self._name = None self._port = None @@ -53,29 +51,29 @@ def __init__(self, name=None, port=None, protocol=None): self.discriminator = None if name is not None: - self.name = name + self.name = name self.port = port if protocol is not None: - self.protocol = protocol + self.protocol = protocol @property def name(self): - """ - Gets the name of this V1EndpointPort. - The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. + """Gets the name of this V1EndpointPort. # noqa: E501 - :return: The name of this V1EndpointPort. + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. # noqa: E501 + + :return: The name of this V1EndpointPort. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1EndpointPort. - The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. + """Sets the name of this V1EndpointPort. - :param name: The name of this V1EndpointPort. + The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. # noqa: E501 + + :param name: The name of this V1EndpointPort. # noqa: E501 :type: str """ @@ -83,59 +81,57 @@ def name(self, name): @property def port(self): - """ - Gets the port of this V1EndpointPort. - The port number of the endpoint. + """Gets the port of this V1EndpointPort. # noqa: E501 - :return: The port of this V1EndpointPort. + The port number of the endpoint. # noqa: E501 + + :return: The port of this V1EndpointPort. # noqa: E501 :rtype: int """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1EndpointPort. - The port number of the endpoint. + """Sets the port of this V1EndpointPort. + + The port number of the endpoint. # noqa: E501 - :param port: The port of this V1EndpointPort. + :param port: The port of this V1EndpointPort. # noqa: E501 :type: int """ if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @property def protocol(self): - """ - Gets the protocol of this V1EndpointPort. - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """Gets the protocol of this V1EndpointPort. # noqa: E501 + + The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501 - :return: The protocol of this V1EndpointPort. + :return: The protocol of this V1EndpointPort. # noqa: E501 :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): - """ - Sets the protocol of this V1EndpointPort. - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """Sets the protocol of this V1EndpointPort. + + The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501 - :param protocol: The protocol of this V1EndpointPort. + :param protocol: The protocol of this V1EndpointPort. # noqa: E501 :type: str """ self._protocol = protocol def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EndpointPort): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_endpoint_subset.py b/kubernetes/client/models/v1_endpoint_subset.py index a31eb95680..299547adbb 100644 --- a/kubernetes/client/models/v1_endpoint_subset.py +++ b/kubernetes/client/models/v1_endpoint_subset.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EndpointSubset(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'addresses': 'list[V1EndpointAddress]', 'not_ready_addresses': 'list[V1EndpointAddress]', 'ports': 'list[V1EndpointPort]' @@ -42,10 +42,8 @@ class V1EndpointSubset(object): 'ports': 'ports' } - def __init__(self, addresses=None, not_ready_addresses=None, ports=None): - """ - V1EndpointSubset - a model defined in Swagger - """ + def __init__(self, addresses=None, not_ready_addresses=None, ports=None): # noqa: E501 + """V1EndpointSubset - a model defined in OpenAPI""" # noqa: E501 self._addresses = None self._not_ready_addresses = None @@ -53,30 +51,30 @@ def __init__(self, addresses=None, not_ready_addresses=None, ports=None): self.discriminator = None if addresses is not None: - self.addresses = addresses + self.addresses = addresses if not_ready_addresses is not None: - self.not_ready_addresses = not_ready_addresses + self.not_ready_addresses = not_ready_addresses if ports is not None: - self.ports = ports + self.ports = ports @property def addresses(self): - """ - Gets the addresses of this V1EndpointSubset. - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + """Gets the addresses of this V1EndpointSubset. # noqa: E501 - :return: The addresses of this V1EndpointSubset. + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. # noqa: E501 + + :return: The addresses of this V1EndpointSubset. # noqa: E501 :rtype: list[V1EndpointAddress] """ return self._addresses @addresses.setter def addresses(self, addresses): - """ - Sets the addresses of this V1EndpointSubset. - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + """Sets the addresses of this V1EndpointSubset. - :param addresses: The addresses of this V1EndpointSubset. + IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. # noqa: E501 + + :param addresses: The addresses of this V1EndpointSubset. # noqa: E501 :type: list[V1EndpointAddress] """ @@ -84,22 +82,22 @@ def addresses(self, addresses): @property def not_ready_addresses(self): - """ - Gets the not_ready_addresses of this V1EndpointSubset. - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + """Gets the not_ready_addresses of this V1EndpointSubset. # noqa: E501 - :return: The not_ready_addresses of this V1EndpointSubset. + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. # noqa: E501 + + :return: The not_ready_addresses of this V1EndpointSubset. # noqa: E501 :rtype: list[V1EndpointAddress] """ return self._not_ready_addresses @not_ready_addresses.setter def not_ready_addresses(self, not_ready_addresses): - """ - Sets the not_ready_addresses of this V1EndpointSubset. - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + """Sets the not_ready_addresses of this V1EndpointSubset. + + IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. # noqa: E501 - :param not_ready_addresses: The not_ready_addresses of this V1EndpointSubset. + :param not_ready_addresses: The not_ready_addresses of this V1EndpointSubset. # noqa: E501 :type: list[V1EndpointAddress] """ @@ -107,34 +105,32 @@ def not_ready_addresses(self, not_ready_addresses): @property def ports(self): - """ - Gets the ports of this V1EndpointSubset. - Port numbers available on the related IP addresses. + """Gets the ports of this V1EndpointSubset. # noqa: E501 + + Port numbers available on the related IP addresses. # noqa: E501 - :return: The ports of this V1EndpointSubset. + :return: The ports of this V1EndpointSubset. # noqa: E501 :rtype: list[V1EndpointPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1EndpointSubset. - Port numbers available on the related IP addresses. + """Sets the ports of this V1EndpointSubset. + + Port numbers available on the related IP addresses. # noqa: E501 - :param ports: The ports of this V1EndpointSubset. + :param ports: The ports of this V1EndpointSubset. # noqa: E501 :type: list[V1EndpointPort] """ self._ports = ports def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EndpointSubset): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_endpoints.py b/kubernetes/client/models/v1_endpoints.py index 88459911cd..e642e5d5ca 100644 --- a/kubernetes/client/models/v1_endpoints.py +++ b/kubernetes/client/models/v1_endpoints.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Endpoints(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1Endpoints(object): 'subsets': 'subsets' } - def __init__(self, api_version=None, kind=None, metadata=None, subsets=None): - """ - V1Endpoints - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, subsets=None): # noqa: E501 + """V1Endpoints - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, subsets=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if subsets is not None: - self.subsets = subsets + self.subsets = subsets @property def api_version(self): - """ - Gets the api_version of this V1Endpoints. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Endpoints. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Endpoints. + :return: The api_version of this V1Endpoints. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Endpoints. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Endpoints. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Endpoints. + :param api_version: The api_version of this V1Endpoints. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Endpoints. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Endpoints. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Endpoints. + :return: The kind of this V1Endpoints. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Endpoints. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Endpoints. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Endpoints. + :param kind: The kind of this V1Endpoints. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Endpoints. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Endpoints. # noqa: E501 + - :return: The metadata of this V1Endpoints. + :return: The metadata of this V1Endpoints. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Endpoints. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Endpoints. + - :param metadata: The metadata of this V1Endpoints. + :param metadata: The metadata of this V1Endpoints. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def subsets(self): - """ - Gets the subsets of this V1Endpoints. - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """Gets the subsets of this V1Endpoints. # noqa: E501 + + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. # noqa: E501 - :return: The subsets of this V1Endpoints. + :return: The subsets of this V1Endpoints. # noqa: E501 :rtype: list[V1EndpointSubset] """ return self._subsets @subsets.setter def subsets(self, subsets): - """ - Sets the subsets of this V1Endpoints. - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """Sets the subsets of this V1Endpoints. + + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. # noqa: E501 - :param subsets: The subsets of this V1Endpoints. + :param subsets: The subsets of this V1Endpoints. # noqa: E501 :type: list[V1EndpointSubset] """ self._subsets = subsets def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Endpoints): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_endpoints_list.py b/kubernetes/client/models/v1_endpoints_list.py index d2ad8562ef..dda233acca 100644 --- a/kubernetes/client/models/v1_endpoints_list.py +++ b/kubernetes/client/models/v1_endpoints_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EndpointsList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Endpoints]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1EndpointsList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1EndpointsList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1EndpointsList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1EndpointsList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1EndpointsList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1EndpointsList. + :return: The api_version of this V1EndpointsList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1EndpointsList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1EndpointsList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1EndpointsList. + :param api_version: The api_version of this V1EndpointsList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1EndpointsList. - List of endpoints. + """Gets the items of this V1EndpointsList. # noqa: E501 + + List of endpoints. # noqa: E501 - :return: The items of this V1EndpointsList. + :return: The items of this V1EndpointsList. # noqa: E501 :rtype: list[V1Endpoints] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1EndpointsList. - List of endpoints. + """Sets the items of this V1EndpointsList. + + List of endpoints. # noqa: E501 - :param items: The items of this V1EndpointsList. + :param items: The items of this V1EndpointsList. # noqa: E501 :type: list[V1Endpoints] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1EndpointsList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1EndpointsList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1EndpointsList. + :return: The kind of this V1EndpointsList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1EndpointsList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1EndpointsList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1EndpointsList. + :param kind: The kind of this V1EndpointsList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1EndpointsList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1EndpointsList. # noqa: E501 + - :return: The metadata of this V1EndpointsList. + :return: The metadata of this V1EndpointsList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1EndpointsList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1EndpointsList. + - :param metadata: The metadata of this V1EndpointsList. + :param metadata: The metadata of this V1EndpointsList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EndpointsList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_env_from_source.py b/kubernetes/client/models/v1_env_from_source.py index 0906a84150..a2c9c2f44e 100644 --- a/kubernetes/client/models/v1_env_from_source.py +++ b/kubernetes/client/models/v1_env_from_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EnvFromSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'config_map_ref': 'V1ConfigMapEnvSource', 'prefix': 'str', 'secret_ref': 'V1SecretEnvSource' @@ -42,10 +42,8 @@ class V1EnvFromSource(object): 'secret_ref': 'secretRef' } - def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): - """ - V1EnvFromSource - a model defined in Swagger - """ + def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): # noqa: E501 + """V1EnvFromSource - a model defined in OpenAPI""" # noqa: E501 self._config_map_ref = None self._prefix = None @@ -53,30 +51,28 @@ def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): self.discriminator = None if config_map_ref is not None: - self.config_map_ref = config_map_ref + self.config_map_ref = config_map_ref if prefix is not None: - self.prefix = prefix + self.prefix = prefix if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref @property def config_map_ref(self): - """ - Gets the config_map_ref of this V1EnvFromSource. - The ConfigMap to select from + """Gets the config_map_ref of this V1EnvFromSource. # noqa: E501 - :return: The config_map_ref of this V1EnvFromSource. + + :return: The config_map_ref of this V1EnvFromSource. # noqa: E501 :rtype: V1ConfigMapEnvSource """ return self._config_map_ref @config_map_ref.setter def config_map_ref(self, config_map_ref): - """ - Sets the config_map_ref of this V1EnvFromSource. - The ConfigMap to select from + """Sets the config_map_ref of this V1EnvFromSource. - :param config_map_ref: The config_map_ref of this V1EnvFromSource. + + :param config_map_ref: The config_map_ref of this V1EnvFromSource. # noqa: E501 :type: V1ConfigMapEnvSource """ @@ -84,22 +80,22 @@ def config_map_ref(self, config_map_ref): @property def prefix(self): - """ - Gets the prefix of this V1EnvFromSource. - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + """Gets the prefix of this V1EnvFromSource. # noqa: E501 - :return: The prefix of this V1EnvFromSource. + An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. # noqa: E501 + + :return: The prefix of this V1EnvFromSource. # noqa: E501 :rtype: str """ return self._prefix @prefix.setter def prefix(self, prefix): - """ - Sets the prefix of this V1EnvFromSource. - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + """Sets the prefix of this V1EnvFromSource. + + An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. # noqa: E501 - :param prefix: The prefix of this V1EnvFromSource. + :param prefix: The prefix of this V1EnvFromSource. # noqa: E501 :type: str """ @@ -107,34 +103,30 @@ def prefix(self, prefix): @property def secret_ref(self): - """ - Gets the secret_ref of this V1EnvFromSource. - The Secret to select from + """Gets the secret_ref of this V1EnvFromSource. # noqa: E501 + - :return: The secret_ref of this V1EnvFromSource. + :return: The secret_ref of this V1EnvFromSource. # noqa: E501 :rtype: V1SecretEnvSource """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1EnvFromSource. - The Secret to select from + """Sets the secret_ref of this V1EnvFromSource. + - :param secret_ref: The secret_ref of this V1EnvFromSource. + :param secret_ref: The secret_ref of this V1EnvFromSource. # noqa: E501 :type: V1SecretEnvSource """ self._secret_ref = secret_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +147,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EnvFromSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_env_var.py b/kubernetes/client/models/v1_env_var.py index edf18521c2..a8d0ce8d78 100644 --- a/kubernetes/client/models/v1_env_var.py +++ b/kubernetes/client/models/v1_env_var.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EnvVar(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'value': 'str', 'value_from': 'V1EnvVarSource' @@ -42,10 +42,8 @@ class V1EnvVar(object): 'value_from': 'valueFrom' } - def __init__(self, name=None, value=None, value_from=None): - """ - V1EnvVar - a model defined in Swagger - """ + def __init__(self, name=None, value=None, value_from=None): # noqa: E501 + """V1EnvVar - a model defined in OpenAPI""" # noqa: E501 self._name = None self._value = None @@ -54,53 +52,53 @@ def __init__(self, name=None, value=None, value_from=None): self.name = name if value is not None: - self.value = value + self.value = value if value_from is not None: - self.value_from = value_from + self.value_from = value_from @property def name(self): - """ - Gets the name of this V1EnvVar. - Name of the environment variable. Must be a C_IDENTIFIER. + """Gets the name of this V1EnvVar. # noqa: E501 - :return: The name of this V1EnvVar. + Name of the environment variable. Must be a C_IDENTIFIER. # noqa: E501 + + :return: The name of this V1EnvVar. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1EnvVar. - Name of the environment variable. Must be a C_IDENTIFIER. + """Sets the name of this V1EnvVar. - :param name: The name of this V1EnvVar. + Name of the environment variable. Must be a C_IDENTIFIER. # noqa: E501 + + :param name: The name of this V1EnvVar. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def value(self): - """ - Gets the value of this V1EnvVar. - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + """Gets the value of this V1EnvVar. # noqa: E501 - :return: The value of this V1EnvVar. + Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". # noqa: E501 + + :return: The value of this V1EnvVar. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1EnvVar. - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + """Sets the value of this V1EnvVar. + + Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". # noqa: E501 - :param value: The value of this V1EnvVar. + :param value: The value of this V1EnvVar. # noqa: E501 :type: str """ @@ -108,34 +106,30 @@ def value(self, value): @property def value_from(self): - """ - Gets the value_from of this V1EnvVar. - Source for the environment variable's value. Cannot be used if value is not empty. + """Gets the value_from of this V1EnvVar. # noqa: E501 + - :return: The value_from of this V1EnvVar. + :return: The value_from of this V1EnvVar. # noqa: E501 :rtype: V1EnvVarSource """ return self._value_from @value_from.setter def value_from(self, value_from): - """ - Sets the value_from of this V1EnvVar. - Source for the environment variable's value. Cannot be used if value is not empty. + """Sets the value_from of this V1EnvVar. + - :param value_from: The value_from of this V1EnvVar. + :param value_from: The value_from of this V1EnvVar. # noqa: E501 :type: V1EnvVarSource """ self._value_from = value_from def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +150,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EnvVar): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_env_var_source.py b/kubernetes/client/models/v1_env_var_source.py index e8f9ebe606..da8d0b4a0e 100644 --- a/kubernetes/client/models/v1_env_var_source.py +++ b/kubernetes/client/models/v1_env_var_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EnvVarSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'config_map_key_ref': 'V1ConfigMapKeySelector', 'field_ref': 'V1ObjectFieldSelector', 'resource_field_ref': 'V1ResourceFieldSelector', @@ -44,10 +44,8 @@ class V1EnvVarSource(object): 'secret_key_ref': 'secretKeyRef' } - def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None): - """ - V1EnvVarSource - a model defined in Swagger - """ + def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None): # noqa: E501 + """V1EnvVarSource - a model defined in OpenAPI""" # noqa: E501 self._config_map_key_ref = None self._field_ref = None @@ -56,32 +54,30 @@ def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=N self.discriminator = None if config_map_key_ref is not None: - self.config_map_key_ref = config_map_key_ref + self.config_map_key_ref = config_map_key_ref if field_ref is not None: - self.field_ref = field_ref + self.field_ref = field_ref if resource_field_ref is not None: - self.resource_field_ref = resource_field_ref + self.resource_field_ref = resource_field_ref if secret_key_ref is not None: - self.secret_key_ref = secret_key_ref + self.secret_key_ref = secret_key_ref @property def config_map_key_ref(self): - """ - Gets the config_map_key_ref of this V1EnvVarSource. - Selects a key of a ConfigMap. + """Gets the config_map_key_ref of this V1EnvVarSource. # noqa: E501 + - :return: The config_map_key_ref of this V1EnvVarSource. + :return: The config_map_key_ref of this V1EnvVarSource. # noqa: E501 :rtype: V1ConfigMapKeySelector """ return self._config_map_key_ref @config_map_key_ref.setter def config_map_key_ref(self, config_map_key_ref): - """ - Sets the config_map_key_ref of this V1EnvVarSource. - Selects a key of a ConfigMap. + """Sets the config_map_key_ref of this V1EnvVarSource. + - :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. + :param config_map_key_ref: The config_map_key_ref of this V1EnvVarSource. # noqa: E501 :type: V1ConfigMapKeySelector """ @@ -89,22 +85,20 @@ def config_map_key_ref(self, config_map_key_ref): @property def field_ref(self): - """ - Gets the field_ref of this V1EnvVarSource. - Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. + """Gets the field_ref of this V1EnvVarSource. # noqa: E501 + - :return: The field_ref of this V1EnvVarSource. + :return: The field_ref of this V1EnvVarSource. # noqa: E501 :rtype: V1ObjectFieldSelector """ return self._field_ref @field_ref.setter def field_ref(self, field_ref): - """ - Sets the field_ref of this V1EnvVarSource. - Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. + """Sets the field_ref of this V1EnvVarSource. + - :param field_ref: The field_ref of this V1EnvVarSource. + :param field_ref: The field_ref of this V1EnvVarSource. # noqa: E501 :type: V1ObjectFieldSelector """ @@ -112,22 +106,20 @@ def field_ref(self, field_ref): @property def resource_field_ref(self): - """ - Gets the resource_field_ref of this V1EnvVarSource. - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + """Gets the resource_field_ref of this V1EnvVarSource. # noqa: E501 + - :return: The resource_field_ref of this V1EnvVarSource. + :return: The resource_field_ref of this V1EnvVarSource. # noqa: E501 :rtype: V1ResourceFieldSelector """ return self._resource_field_ref @resource_field_ref.setter def resource_field_ref(self, resource_field_ref): - """ - Sets the resource_field_ref of this V1EnvVarSource. - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + """Sets the resource_field_ref of this V1EnvVarSource. + - :param resource_field_ref: The resource_field_ref of this V1EnvVarSource. + :param resource_field_ref: The resource_field_ref of this V1EnvVarSource. # noqa: E501 :type: V1ResourceFieldSelector """ @@ -135,34 +127,30 @@ def resource_field_ref(self, resource_field_ref): @property def secret_key_ref(self): - """ - Gets the secret_key_ref of this V1EnvVarSource. - Selects a key of a secret in the pod's namespace + """Gets the secret_key_ref of this V1EnvVarSource. # noqa: E501 + - :return: The secret_key_ref of this V1EnvVarSource. + :return: The secret_key_ref of this V1EnvVarSource. # noqa: E501 :rtype: V1SecretKeySelector """ return self._secret_key_ref @secret_key_ref.setter def secret_key_ref(self, secret_key_ref): - """ - Sets the secret_key_ref of this V1EnvVarSource. - Selects a key of a secret in the pod's namespace + """Sets the secret_key_ref of this V1EnvVarSource. + - :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. + :param secret_key_ref: The secret_key_ref of this V1EnvVarSource. # noqa: E501 :type: V1SecretKeySelector """ self._secret_key_ref = secret_key_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +171,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EnvVarSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_event.py b/kubernetes/client/models/v1_event.py index b9d4e3822e..43b3b62b6e 100644 --- a/kubernetes/client/models/v1_event.py +++ b/kubernetes/client/models/v1_event.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Event(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'action': 'str', 'api_version': 'str', 'count': 'int', @@ -70,10 +70,8 @@ class V1Event(object): 'type': 'type' } - def __init__(self, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None): - """ - V1Event - a model defined in Swagger - """ + def __init__(self, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None): # noqa: E501 + """V1Event - a model defined in OpenAPI""" # noqa: E501 self._action = None self._api_version = None @@ -95,56 +93,56 @@ def __init__(self, action=None, api_version=None, count=None, event_time=None, f self.discriminator = None if action is not None: - self.action = action + self.action = action if api_version is not None: - self.api_version = api_version + self.api_version = api_version if count is not None: - self.count = count + self.count = count if event_time is not None: - self.event_time = event_time + self.event_time = event_time if first_timestamp is not None: - self.first_timestamp = first_timestamp + self.first_timestamp = first_timestamp self.involved_object = involved_object if kind is not None: - self.kind = kind + self.kind = kind if last_timestamp is not None: - self.last_timestamp = last_timestamp + self.last_timestamp = last_timestamp if message is not None: - self.message = message + self.message = message self.metadata = metadata if reason is not None: - self.reason = reason + self.reason = reason if related is not None: - self.related = related + self.related = related if reporting_component is not None: - self.reporting_component = reporting_component + self.reporting_component = reporting_component if reporting_instance is not None: - self.reporting_instance = reporting_instance + self.reporting_instance = reporting_instance if series is not None: - self.series = series + self.series = series if source is not None: - self.source = source + self.source = source if type is not None: - self.type = type + self.type = type @property def action(self): - """ - Gets the action of this V1Event. - What action was taken/failed regarding to the Regarding object. + """Gets the action of this V1Event. # noqa: E501 + + What action was taken/failed regarding to the Regarding object. # noqa: E501 - :return: The action of this V1Event. + :return: The action of this V1Event. # noqa: E501 :rtype: str """ return self._action @action.setter def action(self, action): - """ - Sets the action of this V1Event. - What action was taken/failed regarding to the Regarding object. + """Sets the action of this V1Event. - :param action: The action of this V1Event. + What action was taken/failed regarding to the Regarding object. # noqa: E501 + + :param action: The action of this V1Event. # noqa: E501 :type: str """ @@ -152,22 +150,22 @@ def action(self, action): @property def api_version(self): - """ - Gets the api_version of this V1Event. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Event. # noqa: E501 - :return: The api_version of this V1Event. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Event. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Event. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Event. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Event. + :param api_version: The api_version of this V1Event. # noqa: E501 :type: str """ @@ -175,22 +173,22 @@ def api_version(self, api_version): @property def count(self): - """ - Gets the count of this V1Event. - The number of times this event has occurred. + """Gets the count of this V1Event. # noqa: E501 + + The number of times this event has occurred. # noqa: E501 - :return: The count of this V1Event. + :return: The count of this V1Event. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): - """ - Sets the count of this V1Event. - The number of times this event has occurred. + """Sets the count of this V1Event. + + The number of times this event has occurred. # noqa: E501 - :param count: The count of this V1Event. + :param count: The count of this V1Event. # noqa: E501 :type: int """ @@ -198,22 +196,22 @@ def count(self, count): @property def event_time(self): - """ - Gets the event_time of this V1Event. - Time when this Event was first observed. + """Gets the event_time of this V1Event. # noqa: E501 - :return: The event_time of this V1Event. + Time when this Event was first observed. # noqa: E501 + + :return: The event_time of this V1Event. # noqa: E501 :rtype: datetime """ return self._event_time @event_time.setter def event_time(self, event_time): - """ - Sets the event_time of this V1Event. - Time when this Event was first observed. + """Sets the event_time of this V1Event. - :param event_time: The event_time of this V1Event. + Time when this Event was first observed. # noqa: E501 + + :param event_time: The event_time of this V1Event. # noqa: E501 :type: datetime """ @@ -221,22 +219,22 @@ def event_time(self, event_time): @property def first_timestamp(self): - """ - Gets the first_timestamp of this V1Event. - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + """Gets the first_timestamp of this V1Event. # noqa: E501 + + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) # noqa: E501 - :return: The first_timestamp of this V1Event. + :return: The first_timestamp of this V1Event. # noqa: E501 :rtype: datetime """ return self._first_timestamp @first_timestamp.setter def first_timestamp(self, first_timestamp): - """ - Sets the first_timestamp of this V1Event. - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + """Sets the first_timestamp of this V1Event. + + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) # noqa: E501 - :param first_timestamp: The first_timestamp of this V1Event. + :param first_timestamp: The first_timestamp of this V1Event. # noqa: E501 :type: datetime """ @@ -244,47 +242,45 @@ def first_timestamp(self, first_timestamp): @property def involved_object(self): - """ - Gets the involved_object of this V1Event. - The object that this event is about. + """Gets the involved_object of this V1Event. # noqa: E501 - :return: The involved_object of this V1Event. + + :return: The involved_object of this V1Event. # noqa: E501 :rtype: V1ObjectReference """ return self._involved_object @involved_object.setter def involved_object(self, involved_object): - """ - Sets the involved_object of this V1Event. - The object that this event is about. + """Sets the involved_object of this V1Event. + - :param involved_object: The involved_object of this V1Event. + :param involved_object: The involved_object of this V1Event. # noqa: E501 :type: V1ObjectReference """ if involved_object is None: - raise ValueError("Invalid value for `involved_object`, must not be `None`") + raise ValueError("Invalid value for `involved_object`, must not be `None`") # noqa: E501 self._involved_object = involved_object @property def kind(self): - """ - Gets the kind of this V1Event. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Event. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Event. + :return: The kind of this V1Event. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Event. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Event. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Event. + :param kind: The kind of this V1Event. # noqa: E501 :type: str """ @@ -292,22 +288,22 @@ def kind(self, kind): @property def last_timestamp(self): - """ - Gets the last_timestamp of this V1Event. - The time at which the most recent occurrence of this event was recorded. + """Gets the last_timestamp of this V1Event. # noqa: E501 - :return: The last_timestamp of this V1Event. + The time at which the most recent occurrence of this event was recorded. # noqa: E501 + + :return: The last_timestamp of this V1Event. # noqa: E501 :rtype: datetime """ return self._last_timestamp @last_timestamp.setter def last_timestamp(self, last_timestamp): - """ - Sets the last_timestamp of this V1Event. - The time at which the most recent occurrence of this event was recorded. + """Sets the last_timestamp of this V1Event. - :param last_timestamp: The last_timestamp of this V1Event. + The time at which the most recent occurrence of this event was recorded. # noqa: E501 + + :param last_timestamp: The last_timestamp of this V1Event. # noqa: E501 :type: datetime """ @@ -315,22 +311,22 @@ def last_timestamp(self, last_timestamp): @property def message(self): - """ - Gets the message of this V1Event. - A human-readable description of the status of this operation. + """Gets the message of this V1Event. # noqa: E501 + + A human-readable description of the status of this operation. # noqa: E501 - :return: The message of this V1Event. + :return: The message of this V1Event. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1Event. - A human-readable description of the status of this operation. + """Sets the message of this V1Event. + + A human-readable description of the status of this operation. # noqa: E501 - :param message: The message of this V1Event. + :param message: The message of this V1Event. # noqa: E501 :type: str """ @@ -338,47 +334,45 @@ def message(self, message): @property def metadata(self): - """ - Gets the metadata of this V1Event. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Event. # noqa: E501 + - :return: The metadata of this V1Event. + :return: The metadata of this V1Event. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Event. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Event. - :param metadata: The metadata of this V1Event. + + :param metadata: The metadata of this V1Event. # noqa: E501 :type: V1ObjectMeta """ if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") + raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 self._metadata = metadata @property def reason(self): - """ - Gets the reason of this V1Event. - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + """Gets the reason of this V1Event. # noqa: E501 + + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. # noqa: E501 - :return: The reason of this V1Event. + :return: The reason of this V1Event. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1Event. - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + """Sets the reason of this V1Event. + + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. # noqa: E501 - :param reason: The reason of this V1Event. + :param reason: The reason of this V1Event. # noqa: E501 :type: str """ @@ -386,22 +380,20 @@ def reason(self, reason): @property def related(self): - """ - Gets the related of this V1Event. - Optional secondary object for more complex actions. + """Gets the related of this V1Event. # noqa: E501 - :return: The related of this V1Event. + + :return: The related of this V1Event. # noqa: E501 :rtype: V1ObjectReference """ return self._related @related.setter def related(self, related): - """ - Sets the related of this V1Event. - Optional secondary object for more complex actions. + """Sets the related of this V1Event. - :param related: The related of this V1Event. + + :param related: The related of this V1Event. # noqa: E501 :type: V1ObjectReference """ @@ -409,22 +401,22 @@ def related(self, related): @property def reporting_component(self): - """ - Gets the reporting_component of this V1Event. - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """Gets the reporting_component of this V1Event. # noqa: E501 + + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501 - :return: The reporting_component of this V1Event. + :return: The reporting_component of this V1Event. # noqa: E501 :rtype: str """ return self._reporting_component @reporting_component.setter def reporting_component(self, reporting_component): - """ - Sets the reporting_component of this V1Event. - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """Sets the reporting_component of this V1Event. + + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501 - :param reporting_component: The reporting_component of this V1Event. + :param reporting_component: The reporting_component of this V1Event. # noqa: E501 :type: str """ @@ -432,22 +424,22 @@ def reporting_component(self, reporting_component): @property def reporting_instance(self): - """ - Gets the reporting_instance of this V1Event. - ID of the controller instance, e.g. `kubelet-xyzf`. + """Gets the reporting_instance of this V1Event. # noqa: E501 + + ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501 - :return: The reporting_instance of this V1Event. + :return: The reporting_instance of this V1Event. # noqa: E501 :rtype: str """ return self._reporting_instance @reporting_instance.setter def reporting_instance(self, reporting_instance): - """ - Sets the reporting_instance of this V1Event. - ID of the controller instance, e.g. `kubelet-xyzf`. + """Sets the reporting_instance of this V1Event. - :param reporting_instance: The reporting_instance of this V1Event. + ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501 + + :param reporting_instance: The reporting_instance of this V1Event. # noqa: E501 :type: str """ @@ -455,22 +447,20 @@ def reporting_instance(self, reporting_instance): @property def series(self): - """ - Gets the series of this V1Event. - Data about the Event series this event represents or nil if it's a singleton Event. + """Gets the series of this V1Event. # noqa: E501 - :return: The series of this V1Event. + + :return: The series of this V1Event. # noqa: E501 :rtype: V1EventSeries """ return self._series @series.setter def series(self, series): - """ - Sets the series of this V1Event. - Data about the Event series this event represents or nil if it's a singleton Event. + """Sets the series of this V1Event. + - :param series: The series of this V1Event. + :param series: The series of this V1Event. # noqa: E501 :type: V1EventSeries """ @@ -478,22 +468,20 @@ def series(self, series): @property def source(self): - """ - Gets the source of this V1Event. - The component reporting this event. Should be a short machine understandable string. + """Gets the source of this V1Event. # noqa: E501 + - :return: The source of this V1Event. + :return: The source of this V1Event. # noqa: E501 :rtype: V1EventSource """ return self._source @source.setter def source(self, source): - """ - Sets the source of this V1Event. - The component reporting this event. Should be a short machine understandable string. + """Sets the source of this V1Event. - :param source: The source of this V1Event. + + :param source: The source of this V1Event. # noqa: E501 :type: V1EventSource """ @@ -501,34 +489,32 @@ def source(self, source): @property def type(self): - """ - Gets the type of this V1Event. - Type of this event (Normal, Warning), new types could be added in the future + """Gets the type of this V1Event. # noqa: E501 + + Type of this event (Normal, Warning), new types could be added in the future # noqa: E501 - :return: The type of this V1Event. + :return: The type of this V1Event. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1Event. - Type of this event (Normal, Warning), new types could be added in the future + """Sets the type of this V1Event. + + Type of this event (Normal, Warning), new types could be added in the future # noqa: E501 - :param type: The type of this V1Event. + :param type: The type of this V1Event. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -549,28 +535,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Event): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_event_list.py b/kubernetes/client/models/v1_event_list.py index b0225d482c..e94b9195b7 100644 --- a/kubernetes/client/models/v1_event_list.py +++ b/kubernetes/client/models/v1_event_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EventList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Event]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1EventList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1EventList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1EventList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1EventList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1EventList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1EventList. + :return: The api_version of this V1EventList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1EventList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1EventList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1EventList. + :param api_version: The api_version of this V1EventList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1EventList. - List of events + """Gets the items of this V1EventList. # noqa: E501 + + List of events # noqa: E501 - :return: The items of this V1EventList. + :return: The items of this V1EventList. # noqa: E501 :rtype: list[V1Event] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1EventList. - List of events + """Sets the items of this V1EventList. + + List of events # noqa: E501 - :param items: The items of this V1EventList. + :param items: The items of this V1EventList. # noqa: E501 :type: list[V1Event] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1EventList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1EventList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1EventList. + :return: The kind of this V1EventList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1EventList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1EventList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1EventList. + :param kind: The kind of this V1EventList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1EventList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1EventList. # noqa: E501 + - :return: The metadata of this V1EventList. + :return: The metadata of this V1EventList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1EventList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1EventList. + - :param metadata: The metadata of this V1EventList. + :param metadata: The metadata of this V1EventList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EventList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_event_series.py b/kubernetes/client/models/v1_event_series.py index c4feab5df8..21e7a378c6 100644 --- a/kubernetes/client/models/v1_event_series.py +++ b/kubernetes/client/models/v1_event_series.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EventSeries(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'count': 'int', 'last_observed_time': 'datetime', 'state': 'str' @@ -42,10 +42,8 @@ class V1EventSeries(object): 'state': 'state' } - def __init__(self, count=None, last_observed_time=None, state=None): - """ - V1EventSeries - a model defined in Swagger - """ + def __init__(self, count=None, last_observed_time=None, state=None): # noqa: E501 + """V1EventSeries - a model defined in OpenAPI""" # noqa: E501 self._count = None self._last_observed_time = None @@ -53,30 +51,30 @@ def __init__(self, count=None, last_observed_time=None, state=None): self.discriminator = None if count is not None: - self.count = count + self.count = count if last_observed_time is not None: - self.last_observed_time = last_observed_time + self.last_observed_time = last_observed_time if state is not None: - self.state = state + self.state = state @property def count(self): - """ - Gets the count of this V1EventSeries. - Number of occurrences in this series up to the last heartbeat time + """Gets the count of this V1EventSeries. # noqa: E501 - :return: The count of this V1EventSeries. + Number of occurrences in this series up to the last heartbeat time # noqa: E501 + + :return: The count of this V1EventSeries. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): - """ - Sets the count of this V1EventSeries. - Number of occurrences in this series up to the last heartbeat time + """Sets the count of this V1EventSeries. - :param count: The count of this V1EventSeries. + Number of occurrences in this series up to the last heartbeat time # noqa: E501 + + :param count: The count of this V1EventSeries. # noqa: E501 :type: int """ @@ -84,22 +82,22 @@ def count(self, count): @property def last_observed_time(self): - """ - Gets the last_observed_time of this V1EventSeries. - Time of the last occurrence observed + """Gets the last_observed_time of this V1EventSeries. # noqa: E501 - :return: The last_observed_time of this V1EventSeries. + Time of the last occurrence observed # noqa: E501 + + :return: The last_observed_time of this V1EventSeries. # noqa: E501 :rtype: datetime """ return self._last_observed_time @last_observed_time.setter def last_observed_time(self, last_observed_time): - """ - Sets the last_observed_time of this V1EventSeries. - Time of the last occurrence observed + """Sets the last_observed_time of this V1EventSeries. + + Time of the last occurrence observed # noqa: E501 - :param last_observed_time: The last_observed_time of this V1EventSeries. + :param last_observed_time: The last_observed_time of this V1EventSeries. # noqa: E501 :type: datetime """ @@ -107,34 +105,32 @@ def last_observed_time(self, last_observed_time): @property def state(self): - """ - Gets the state of this V1EventSeries. - State of this Series: Ongoing or Finished + """Gets the state of this V1EventSeries. # noqa: E501 + + State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 # noqa: E501 - :return: The state of this V1EventSeries. + :return: The state of this V1EventSeries. # noqa: E501 :rtype: str """ return self._state @state.setter def state(self, state): - """ - Sets the state of this V1EventSeries. - State of this Series: Ongoing or Finished + """Sets the state of this V1EventSeries. + + State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 # noqa: E501 - :param state: The state of this V1EventSeries. + :param state: The state of this V1EventSeries. # noqa: E501 :type: str """ self._state = state def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EventSeries): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_event_source.py b/kubernetes/client/models/v1_event_source.py index 9812c7bace..085a71b137 100644 --- a/kubernetes/client/models/v1_event_source.py +++ b/kubernetes/client/models/v1_event_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1EventSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'component': 'str', 'host': 'str' } @@ -40,38 +40,36 @@ class V1EventSource(object): 'host': 'host' } - def __init__(self, component=None, host=None): - """ - V1EventSource - a model defined in Swagger - """ + def __init__(self, component=None, host=None): # noqa: E501 + """V1EventSource - a model defined in OpenAPI""" # noqa: E501 self._component = None self._host = None self.discriminator = None if component is not None: - self.component = component + self.component = component if host is not None: - self.host = host + self.host = host @property def component(self): - """ - Gets the component of this V1EventSource. - Component from which the event is generated. + """Gets the component of this V1EventSource. # noqa: E501 + + Component from which the event is generated. # noqa: E501 - :return: The component of this V1EventSource. + :return: The component of this V1EventSource. # noqa: E501 :rtype: str """ return self._component @component.setter def component(self, component): - """ - Sets the component of this V1EventSource. - Component from which the event is generated. + """Sets the component of this V1EventSource. - :param component: The component of this V1EventSource. + Component from which the event is generated. # noqa: E501 + + :param component: The component of this V1EventSource. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def component(self, component): @property def host(self): - """ - Gets the host of this V1EventSource. - Node name on which the event is generated. + """Gets the host of this V1EventSource. # noqa: E501 + + Node name on which the event is generated. # noqa: E501 - :return: The host of this V1EventSource. + :return: The host of this V1EventSource. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """ - Sets the host of this V1EventSource. - Node name on which the event is generated. + """Sets the host of this V1EventSource. + + Node name on which the event is generated. # noqa: E501 - :param host: The host of this V1EventSource. + :param host: The host of this V1EventSource. # noqa: E501 :type: str """ self._host = host def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1EventSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_exec_action.py b/kubernetes/client/models/v1_exec_action.py index 3da91bfefa..824ffcaa40 100644 --- a/kubernetes/client/models/v1_exec_action.py +++ b/kubernetes/client/models/v1_exec_action.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ExecAction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'command': 'list[str]' } @@ -38,47 +38,43 @@ class V1ExecAction(object): 'command': 'command' } - def __init__(self, command=None): - """ - V1ExecAction - a model defined in Swagger - """ + def __init__(self, command=None): # noqa: E501 + """V1ExecAction - a model defined in OpenAPI""" # noqa: E501 self._command = None self.discriminator = None if command is not None: - self.command = command + self.command = command @property def command(self): - """ - Gets the command of this V1ExecAction. - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + """Gets the command of this V1ExecAction. # noqa: E501 + + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. # noqa: E501 - :return: The command of this V1ExecAction. + :return: The command of this V1ExecAction. # noqa: E501 :rtype: list[str] """ return self._command @command.setter def command(self, command): - """ - Sets the command of this V1ExecAction. - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + """Sets the command of this V1ExecAction. + + Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. # noqa: E501 - :param command: The command of this V1ExecAction. + :param command: The command of this V1ExecAction. # noqa: E501 :type: list[str] """ self._command = command def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ExecAction): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_fc_volume_source.py b/kubernetes/client/models/v1_fc_volume_source.py index a79e9499e3..34e94fa322 100644 --- a/kubernetes/client/models/v1_fc_volume_source.py +++ b/kubernetes/client/models/v1_fc_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1FCVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'lun': 'int', 'read_only': 'bool', @@ -46,10 +46,8 @@ class V1FCVolumeSource(object): 'wwids': 'wwids' } - def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None): - """ - V1FCVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None): # noqa: E501 + """V1FCVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._lun = None @@ -59,34 +57,34 @@ def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, ww self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if lun is not None: - self.lun = lun + self.lun = lun if read_only is not None: - self.read_only = read_only + self.read_only = read_only if target_ww_ns is not None: - self.target_ww_ns = target_ww_ns + self.target_ww_ns = target_ww_ns if wwids is not None: - self.wwids = wwids + self.wwids = wwids @property def fs_type(self): - """ - Gets the fs_type of this V1FCVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1FCVolumeSource. # noqa: E501 - :return: The fs_type of this V1FCVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1FCVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1FCVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1FCVolumeSource. - :param fs_type: The fs_type of this V1FCVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1FCVolumeSource. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def fs_type(self, fs_type): @property def lun(self): - """ - Gets the lun of this V1FCVolumeSource. - Optional: FC target lun number + """Gets the lun of this V1FCVolumeSource. # noqa: E501 + + Optional: FC target lun number # noqa: E501 - :return: The lun of this V1FCVolumeSource. + :return: The lun of this V1FCVolumeSource. # noqa: E501 :rtype: int """ return self._lun @lun.setter def lun(self, lun): - """ - Sets the lun of this V1FCVolumeSource. - Optional: FC target lun number + """Sets the lun of this V1FCVolumeSource. + + Optional: FC target lun number # noqa: E501 - :param lun: The lun of this V1FCVolumeSource. + :param lun: The lun of this V1FCVolumeSource. # noqa: E501 :type: int """ @@ -117,22 +115,22 @@ def lun(self, lun): @property def read_only(self): - """ - Gets the read_only of this V1FCVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1FCVolumeSource. # noqa: E501 + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1FCVolumeSource. + :return: The read_only of this V1FCVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1FCVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1FCVolumeSource. + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1FCVolumeSource. + :param read_only: The read_only of this V1FCVolumeSource. # noqa: E501 :type: bool """ @@ -140,22 +138,22 @@ def read_only(self, read_only): @property def target_ww_ns(self): - """ - Gets the target_ww_ns of this V1FCVolumeSource. - Optional: FC target worldwide names (WWNs) + """Gets the target_ww_ns of this V1FCVolumeSource. # noqa: E501 + + Optional: FC target worldwide names (WWNs) # noqa: E501 - :return: The target_ww_ns of this V1FCVolumeSource. + :return: The target_ww_ns of this V1FCVolumeSource. # noqa: E501 :rtype: list[str] """ return self._target_ww_ns @target_ww_ns.setter def target_ww_ns(self, target_ww_ns): - """ - Sets the target_ww_ns of this V1FCVolumeSource. - Optional: FC target worldwide names (WWNs) + """Sets the target_ww_ns of this V1FCVolumeSource. - :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. + Optional: FC target worldwide names (WWNs) # noqa: E501 + + :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. # noqa: E501 :type: list[str] """ @@ -163,34 +161,32 @@ def target_ww_ns(self, target_ww_ns): @property def wwids(self): - """ - Gets the wwids of this V1FCVolumeSource. - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + """Gets the wwids of this V1FCVolumeSource. # noqa: E501 - :return: The wwids of this V1FCVolumeSource. + Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. # noqa: E501 + + :return: The wwids of this V1FCVolumeSource. # noqa: E501 :rtype: list[str] """ return self._wwids @wwids.setter def wwids(self, wwids): - """ - Sets the wwids of this V1FCVolumeSource. - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + """Sets the wwids of this V1FCVolumeSource. - :param wwids: The wwids of this V1FCVolumeSource. + Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. # noqa: E501 + + :param wwids: The wwids of this V1FCVolumeSource. # noqa: E501 :type: list[str] """ self._wwids = wwids def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1FCVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_flex_persistent_volume_source.py b/kubernetes/client/models/v1_flex_persistent_volume_source.py index 336720db6f..97d89ff28a 100644 --- a/kubernetes/client/models/v1_flex_persistent_volume_source.py +++ b/kubernetes/client/models/v1_flex_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1FlexPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'driver': 'str', 'fs_type': 'str', 'options': 'dict(str, str)', @@ -46,10 +46,8 @@ class V1FlexPersistentVolumeSource(object): 'secret_ref': 'secretRef' } - def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): - """ - V1FlexPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): # noqa: E501 + """V1FlexPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._driver = None self._fs_type = None @@ -60,57 +58,57 @@ def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secr self.driver = driver if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if options is not None: - self.options = options + self.options = options if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref @property def driver(self): - """ - Gets the driver of this V1FlexPersistentVolumeSource. - Driver is the name of the driver to use for this volume. + """Gets the driver of this V1FlexPersistentVolumeSource. # noqa: E501 - :return: The driver of this V1FlexPersistentVolumeSource. + Driver is the name of the driver to use for this volume. # noqa: E501 + + :return: The driver of this V1FlexPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this V1FlexPersistentVolumeSource. - Driver is the name of the driver to use for this volume. + """Sets the driver of this V1FlexPersistentVolumeSource. - :param driver: The driver of this V1FlexPersistentVolumeSource. + Driver is the name of the driver to use for this volume. # noqa: E501 + + :param driver: The driver of this V1FlexPersistentVolumeSource. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @property def fs_type(self): - """ - Gets the fs_type of this V1FlexPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. + """Gets the fs_type of this V1FlexPersistentVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. # noqa: E501 - :return: The fs_type of this V1FlexPersistentVolumeSource. + :return: The fs_type of this V1FlexPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1FlexPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. + """Sets the fs_type of this V1FlexPersistentVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. # noqa: E501 - :param fs_type: The fs_type of this V1FlexPersistentVolumeSource. + :param fs_type: The fs_type of this V1FlexPersistentVolumeSource. # noqa: E501 :type: str """ @@ -118,22 +116,22 @@ def fs_type(self, fs_type): @property def options(self): - """ - Gets the options of this V1FlexPersistentVolumeSource. - Optional: Extra command options if any. + """Gets the options of this V1FlexPersistentVolumeSource. # noqa: E501 + + Optional: Extra command options if any. # noqa: E501 - :return: The options of this V1FlexPersistentVolumeSource. + :return: The options of this V1FlexPersistentVolumeSource. # noqa: E501 :rtype: dict(str, str) """ return self._options @options.setter def options(self, options): - """ - Sets the options of this V1FlexPersistentVolumeSource. - Optional: Extra command options if any. + """Sets the options of this V1FlexPersistentVolumeSource. + + Optional: Extra command options if any. # noqa: E501 - :param options: The options of this V1FlexPersistentVolumeSource. + :param options: The options of this V1FlexPersistentVolumeSource. # noqa: E501 :type: dict(str, str) """ @@ -141,22 +139,22 @@ def options(self, options): @property def read_only(self): - """ - Gets the read_only of this V1FlexPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1FlexPersistentVolumeSource. # noqa: E501 + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1FlexPersistentVolumeSource. + :return: The read_only of this V1FlexPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1FlexPersistentVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1FlexPersistentVolumeSource. - :param read_only: The read_only of this V1FlexPersistentVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1FlexPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -164,34 +162,30 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1FlexPersistentVolumeSource. - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """Gets the secret_ref of this V1FlexPersistentVolumeSource. # noqa: E501 - :return: The secret_ref of this V1FlexPersistentVolumeSource. + + :return: The secret_ref of this V1FlexPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1FlexPersistentVolumeSource. - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """Sets the secret_ref of this V1FlexPersistentVolumeSource. - :param secret_ref: The secret_ref of this V1FlexPersistentVolumeSource. + + :param secret_ref: The secret_ref of this V1FlexPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ self._secret_ref = secret_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +206,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1FlexPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_flex_volume_source.py b/kubernetes/client/models/v1_flex_volume_source.py index 46a9381e7a..535515d45d 100644 --- a/kubernetes/client/models/v1_flex_volume_source.py +++ b/kubernetes/client/models/v1_flex_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1FlexVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'driver': 'str', 'fs_type': 'str', 'options': 'dict(str, str)', @@ -46,10 +46,8 @@ class V1FlexVolumeSource(object): 'secret_ref': 'secretRef' } - def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): - """ - V1FlexVolumeSource - a model defined in Swagger - """ + def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): # noqa: E501 + """V1FlexVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._driver = None self._fs_type = None @@ -60,57 +58,57 @@ def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secr self.driver = driver if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if options is not None: - self.options = options + self.options = options if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref @property def driver(self): - """ - Gets the driver of this V1FlexVolumeSource. - Driver is the name of the driver to use for this volume. + """Gets the driver of this V1FlexVolumeSource. # noqa: E501 - :return: The driver of this V1FlexVolumeSource. + Driver is the name of the driver to use for this volume. # noqa: E501 + + :return: The driver of this V1FlexVolumeSource. # noqa: E501 :rtype: str """ return self._driver @driver.setter def driver(self, driver): - """ - Sets the driver of this V1FlexVolumeSource. - Driver is the name of the driver to use for this volume. + """Sets the driver of this V1FlexVolumeSource. - :param driver: The driver of this V1FlexVolumeSource. + Driver is the name of the driver to use for this volume. # noqa: E501 + + :param driver: The driver of this V1FlexVolumeSource. # noqa: E501 :type: str """ if driver is None: - raise ValueError("Invalid value for `driver`, must not be `None`") + raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @property def fs_type(self): - """ - Gets the fs_type of this V1FlexVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. + """Gets the fs_type of this V1FlexVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. # noqa: E501 - :return: The fs_type of this V1FlexVolumeSource. + :return: The fs_type of this V1FlexVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1FlexVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. + """Sets the fs_type of this V1FlexVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. # noqa: E501 - :param fs_type: The fs_type of this V1FlexVolumeSource. + :param fs_type: The fs_type of this V1FlexVolumeSource. # noqa: E501 :type: str """ @@ -118,22 +116,22 @@ def fs_type(self, fs_type): @property def options(self): - """ - Gets the options of this V1FlexVolumeSource. - Optional: Extra command options if any. + """Gets the options of this V1FlexVolumeSource. # noqa: E501 + + Optional: Extra command options if any. # noqa: E501 - :return: The options of this V1FlexVolumeSource. + :return: The options of this V1FlexVolumeSource. # noqa: E501 :rtype: dict(str, str) """ return self._options @options.setter def options(self, options): - """ - Sets the options of this V1FlexVolumeSource. - Optional: Extra command options if any. + """Sets the options of this V1FlexVolumeSource. + + Optional: Extra command options if any. # noqa: E501 - :param options: The options of this V1FlexVolumeSource. + :param options: The options of this V1FlexVolumeSource. # noqa: E501 :type: dict(str, str) """ @@ -141,22 +139,22 @@ def options(self, options): @property def read_only(self): - """ - Gets the read_only of this V1FlexVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1FlexVolumeSource. # noqa: E501 + + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1FlexVolumeSource. + :return: The read_only of this V1FlexVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1FlexVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1FlexVolumeSource. - :param read_only: The read_only of this V1FlexVolumeSource. + Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1FlexVolumeSource. # noqa: E501 :type: bool """ @@ -164,34 +162,30 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1FlexVolumeSource. - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """Gets the secret_ref of this V1FlexVolumeSource. # noqa: E501 - :return: The secret_ref of this V1FlexVolumeSource. + + :return: The secret_ref of this V1FlexVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1FlexVolumeSource. - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + """Sets the secret_ref of this V1FlexVolumeSource. - :param secret_ref: The secret_ref of this V1FlexVolumeSource. + + :param secret_ref: The secret_ref of this V1FlexVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ self._secret_ref = secret_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +206,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1FlexVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_flocker_volume_source.py b/kubernetes/client/models/v1_flocker_volume_source.py index 712eb2070b..4c3531e10f 100644 --- a/kubernetes/client/models/v1_flocker_volume_source.py +++ b/kubernetes/client/models/v1_flocker_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1FlockerVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'dataset_name': 'str', 'dataset_uuid': 'str' } @@ -40,38 +40,36 @@ class V1FlockerVolumeSource(object): 'dataset_uuid': 'datasetUUID' } - def __init__(self, dataset_name=None, dataset_uuid=None): - """ - V1FlockerVolumeSource - a model defined in Swagger - """ + def __init__(self, dataset_name=None, dataset_uuid=None): # noqa: E501 + """V1FlockerVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._dataset_name = None self._dataset_uuid = None self.discriminator = None if dataset_name is not None: - self.dataset_name = dataset_name + self.dataset_name = dataset_name if dataset_uuid is not None: - self.dataset_uuid = dataset_uuid + self.dataset_uuid = dataset_uuid @property def dataset_name(self): - """ - Gets the dataset_name of this V1FlockerVolumeSource. - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + """Gets the dataset_name of this V1FlockerVolumeSource. # noqa: E501 + + Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated # noqa: E501 - :return: The dataset_name of this V1FlockerVolumeSource. + :return: The dataset_name of this V1FlockerVolumeSource. # noqa: E501 :rtype: str """ return self._dataset_name @dataset_name.setter def dataset_name(self, dataset_name): - """ - Sets the dataset_name of this V1FlockerVolumeSource. - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + """Sets the dataset_name of this V1FlockerVolumeSource. - :param dataset_name: The dataset_name of this V1FlockerVolumeSource. + Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated # noqa: E501 + + :param dataset_name: The dataset_name of this V1FlockerVolumeSource. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def dataset_name(self, dataset_name): @property def dataset_uuid(self): - """ - Gets the dataset_uuid of this V1FlockerVolumeSource. - UUID of the dataset. This is unique identifier of a Flocker dataset + """Gets the dataset_uuid of this V1FlockerVolumeSource. # noqa: E501 + + UUID of the dataset. This is unique identifier of a Flocker dataset # noqa: E501 - :return: The dataset_uuid of this V1FlockerVolumeSource. + :return: The dataset_uuid of this V1FlockerVolumeSource. # noqa: E501 :rtype: str """ return self._dataset_uuid @dataset_uuid.setter def dataset_uuid(self, dataset_uuid): - """ - Sets the dataset_uuid of this V1FlockerVolumeSource. - UUID of the dataset. This is unique identifier of a Flocker dataset + """Sets the dataset_uuid of this V1FlockerVolumeSource. + + UUID of the dataset. This is unique identifier of a Flocker dataset # noqa: E501 - :param dataset_uuid: The dataset_uuid of this V1FlockerVolumeSource. + :param dataset_uuid: The dataset_uuid of this V1FlockerVolumeSource. # noqa: E501 :type: str """ self._dataset_uuid = dataset_uuid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1FlockerVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py index 4dc58ee8e1..119f70a933 100644 --- a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1GCEPersistentDiskVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'partition': 'int', 'pd_name': 'str', @@ -44,10 +44,8 @@ class V1GCEPersistentDiskVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None): - """ - V1GCEPersistentDiskVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None): # noqa: E501 + """V1GCEPersistentDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._partition = None @@ -56,31 +54,31 @@ def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None): self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if partition is not None: - self.partition = partition + self.partition = partition self.pd_name = pd_name if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def fs_type(self): - """ - Gets the fs_type of this V1GCEPersistentDiskVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the fs_type of this V1GCEPersistentDiskVolumeSource. # noqa: E501 + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :return: The fs_type of this V1GCEPersistentDiskVolumeSource. + :return: The fs_type of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1GCEPersistentDiskVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the fs_type of this V1GCEPersistentDiskVolumeSource. + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. + :param fs_type: The fs_type of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def fs_type(self, fs_type): @property def partition(self): - """ - Gets the partition of this V1GCEPersistentDiskVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the partition of this V1GCEPersistentDiskVolumeSource. # noqa: E501 + + The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :return: The partition of this V1GCEPersistentDiskVolumeSource. + :return: The partition of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: int """ return self._partition @partition.setter def partition(self, partition): - """ - Sets the partition of this V1GCEPersistentDiskVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the partition of this V1GCEPersistentDiskVolumeSource. + + The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :param partition: The partition of this V1GCEPersistentDiskVolumeSource. + :param partition: The partition of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :type: int """ @@ -111,59 +109,57 @@ def partition(self, partition): @property def pd_name(self): - """ - Gets the pd_name of this V1GCEPersistentDiskVolumeSource. - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501 + + Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :return: The pd_name of this V1GCEPersistentDiskVolumeSource. + :return: The pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: str """ return self._pd_name @pd_name.setter def pd_name(self, pd_name): - """ - Sets the pd_name of this V1GCEPersistentDiskVolumeSource. - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the pd_name of this V1GCEPersistentDiskVolumeSource. + + Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. + :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :type: str """ if pd_name is None: - raise ValueError("Invalid value for `pd_name`, must not be `None`") + raise ValueError("Invalid value for `pd_name`, must not be `None`") # noqa: E501 self._pd_name = pd_name @property def read_only(self): - """ - Gets the read_only of this V1GCEPersistentDiskVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the read_only of this V1GCEPersistentDiskVolumeSource. # noqa: E501 + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :return: The read_only of this V1GCEPersistentDiskVolumeSource. + :return: The read_only of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1GCEPersistentDiskVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the read_only of this V1GCEPersistentDiskVolumeSource. + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 - :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. + :param read_only: The read_only of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1GCEPersistentDiskVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_git_repo_volume_source.py b/kubernetes/client/models/v1_git_repo_volume_source.py index 6ffa4b8b72..b8087a289f 100644 --- a/kubernetes/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/client/models/v1_git_repo_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1GitRepoVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'directory': 'str', 'repository': 'str', 'revision': 'str' @@ -42,10 +42,8 @@ class V1GitRepoVolumeSource(object): 'revision': 'revision' } - def __init__(self, directory=None, repository=None, revision=None): - """ - V1GitRepoVolumeSource - a model defined in Swagger - """ + def __init__(self, directory=None, repository=None, revision=None): # noqa: E501 + """V1GitRepoVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._directory = None self._repository = None @@ -53,29 +51,29 @@ def __init__(self, directory=None, repository=None, revision=None): self.discriminator = None if directory is not None: - self.directory = directory + self.directory = directory self.repository = repository if revision is not None: - self.revision = revision + self.revision = revision @property def directory(self): - """ - Gets the directory of this V1GitRepoVolumeSource. - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + """Gets the directory of this V1GitRepoVolumeSource. # noqa: E501 - :return: The directory of this V1GitRepoVolumeSource. + Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. # noqa: E501 + + :return: The directory of this V1GitRepoVolumeSource. # noqa: E501 :rtype: str """ return self._directory @directory.setter def directory(self, directory): - """ - Sets the directory of this V1GitRepoVolumeSource. - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + """Sets the directory of this V1GitRepoVolumeSource. - :param directory: The directory of this V1GitRepoVolumeSource. + Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. # noqa: E501 + + :param directory: The directory of this V1GitRepoVolumeSource. # noqa: E501 :type: str """ @@ -83,59 +81,57 @@ def directory(self, directory): @property def repository(self): - """ - Gets the repository of this V1GitRepoVolumeSource. - Repository URL + """Gets the repository of this V1GitRepoVolumeSource. # noqa: E501 - :return: The repository of this V1GitRepoVolumeSource. + Repository URL # noqa: E501 + + :return: The repository of this V1GitRepoVolumeSource. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this V1GitRepoVolumeSource. - Repository URL + """Sets the repository of this V1GitRepoVolumeSource. + + Repository URL # noqa: E501 - :param repository: The repository of this V1GitRepoVolumeSource. + :param repository: The repository of this V1GitRepoVolumeSource. # noqa: E501 :type: str """ if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") + raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 self._repository = repository @property def revision(self): - """ - Gets the revision of this V1GitRepoVolumeSource. - Commit hash for the specified revision. + """Gets the revision of this V1GitRepoVolumeSource. # noqa: E501 + + Commit hash for the specified revision. # noqa: E501 - :return: The revision of this V1GitRepoVolumeSource. + :return: The revision of this V1GitRepoVolumeSource. # noqa: E501 :rtype: str """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this V1GitRepoVolumeSource. - Commit hash for the specified revision. + """Sets the revision of this V1GitRepoVolumeSource. + + Commit hash for the specified revision. # noqa: E501 - :param revision: The revision of this V1GitRepoVolumeSource. + :param revision: The revision of this V1GitRepoVolumeSource. # noqa: E501 :type: str """ self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1GitRepoVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py index c8ec82ab4f..6c23c18522 100644 --- a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1GlusterfsPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'endpoints': 'str', 'endpoints_namespace': 'str', 'path': 'str', @@ -44,10 +44,8 @@ class V1GlusterfsPersistentVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, endpoints=None, endpoints_namespace=None, path=None, read_only=None): - """ - V1GlusterfsPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, endpoints=None, endpoints_namespace=None, path=None, read_only=None): # noqa: E501 + """V1GlusterfsPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._endpoints = None self._endpoints_namespace = None @@ -57,54 +55,54 @@ def __init__(self, endpoints=None, endpoints_namespace=None, path=None, read_onl self.endpoints = endpoints if endpoints_namespace is not None: - self.endpoints_namespace = endpoints_namespace + self.endpoints_namespace = endpoints_namespace self.path = path if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def endpoints(self): - """ - Gets the endpoints of this V1GlusterfsPersistentVolumeSource. - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the endpoints of this V1GlusterfsPersistentVolumeSource. # noqa: E501 + + EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :return: The endpoints of this V1GlusterfsPersistentVolumeSource. + :return: The endpoints of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._endpoints @endpoints.setter def endpoints(self, endpoints): - """ - Sets the endpoints of this V1GlusterfsPersistentVolumeSource. - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the endpoints of this V1GlusterfsPersistentVolumeSource. + + EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param endpoints: The endpoints of this V1GlusterfsPersistentVolumeSource. + :param endpoints: The endpoints of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: str """ if endpoints is None: - raise ValueError("Invalid value for `endpoints`, must not be `None`") + raise ValueError("Invalid value for `endpoints`, must not be `None`") # noqa: E501 self._endpoints = endpoints @property def endpoints_namespace(self): - """ - Gets the endpoints_namespace of this V1GlusterfsPersistentVolumeSource. - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the endpoints_namespace of this V1GlusterfsPersistentVolumeSource. # noqa: E501 + + EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :return: The endpoints_namespace of this V1GlusterfsPersistentVolumeSource. + :return: The endpoints_namespace of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._endpoints_namespace @endpoints_namespace.setter def endpoints_namespace(self, endpoints_namespace): - """ - Sets the endpoints_namespace of this V1GlusterfsPersistentVolumeSource. - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the endpoints_namespace of this V1GlusterfsPersistentVolumeSource. + + EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param endpoints_namespace: The endpoints_namespace of this V1GlusterfsPersistentVolumeSource. + :param endpoints_namespace: The endpoints_namespace of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: str """ @@ -112,59 +110,57 @@ def endpoints_namespace(self, endpoints_namespace): @property def path(self): - """ - Gets the path of this V1GlusterfsPersistentVolumeSource. - Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the path of this V1GlusterfsPersistentVolumeSource. # noqa: E501 + + Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :return: The path of this V1GlusterfsPersistentVolumeSource. + :return: The path of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1GlusterfsPersistentVolumeSource. - Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the path of this V1GlusterfsPersistentVolumeSource. + + Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param path: The path of this V1GlusterfsPersistentVolumeSource. + :param path: The path of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @property def read_only(self): - """ - Gets the read_only of this V1GlusterfsPersistentVolumeSource. - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the read_only of this V1GlusterfsPersistentVolumeSource. # noqa: E501 + + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :return: The read_only of this V1GlusterfsPersistentVolumeSource. + :return: The read_only of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1GlusterfsPersistentVolumeSource. - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the read_only of this V1GlusterfsPersistentVolumeSource. + + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param read_only: The read_only of this V1GlusterfsPersistentVolumeSource. + :param read_only: The read_only of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1GlusterfsPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_glusterfs_volume_source.py b/kubernetes/client/models/v1_glusterfs_volume_source.py index b60877b644..fea37640b0 100644 --- a/kubernetes/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1GlusterfsVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'endpoints': 'str', 'path': 'str', 'read_only': 'bool' @@ -42,10 +42,8 @@ class V1GlusterfsVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, endpoints=None, path=None, read_only=None): - """ - V1GlusterfsVolumeSource - a model defined in Swagger - """ + def __init__(self, endpoints=None, path=None, read_only=None): # noqa: E501 + """V1GlusterfsVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._endpoints = None self._path = None @@ -55,88 +53,86 @@ def __init__(self, endpoints=None, path=None, read_only=None): self.endpoints = endpoints self.path = path if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def endpoints(self): - """ - Gets the endpoints of this V1GlusterfsVolumeSource. - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the endpoints of this V1GlusterfsVolumeSource. # noqa: E501 - :return: The endpoints of this V1GlusterfsVolumeSource. + EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 + + :return: The endpoints of this V1GlusterfsVolumeSource. # noqa: E501 :rtype: str """ return self._endpoints @endpoints.setter def endpoints(self, endpoints): - """ - Sets the endpoints of this V1GlusterfsVolumeSource. - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the endpoints of this V1GlusterfsVolumeSource. - :param endpoints: The endpoints of this V1GlusterfsVolumeSource. + EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 + + :param endpoints: The endpoints of this V1GlusterfsVolumeSource. # noqa: E501 :type: str """ if endpoints is None: - raise ValueError("Invalid value for `endpoints`, must not be `None`") + raise ValueError("Invalid value for `endpoints`, must not be `None`") # noqa: E501 self._endpoints = endpoints @property def path(self): - """ - Gets the path of this V1GlusterfsVolumeSource. - Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the path of this V1GlusterfsVolumeSource. # noqa: E501 - :return: The path of this V1GlusterfsVolumeSource. + Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 + + :return: The path of this V1GlusterfsVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1GlusterfsVolumeSource. - Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the path of this V1GlusterfsVolumeSource. + + Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param path: The path of this V1GlusterfsVolumeSource. + :param path: The path of this V1GlusterfsVolumeSource. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @property def read_only(self): - """ - Gets the read_only of this V1GlusterfsVolumeSource. - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Gets the read_only of this V1GlusterfsVolumeSource. # noqa: E501 + + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :return: The read_only of this V1GlusterfsVolumeSource. + :return: The read_only of this V1GlusterfsVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1GlusterfsVolumeSource. - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + """Sets the read_only of this V1GlusterfsVolumeSource. + + ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod # noqa: E501 - :param read_only: The read_only of this V1GlusterfsVolumeSource. + :param read_only: The read_only of this V1GlusterfsVolumeSource. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1GlusterfsVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_group_version_for_discovery.py b/kubernetes/client/models/v1_group_version_for_discovery.py index 1531a5f329..ea519a695a 100644 --- a/kubernetes/client/models/v1_group_version_for_discovery.py +++ b/kubernetes/client/models/v1_group_version_for_discovery.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1GroupVersionForDiscovery(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'group_version': 'str', 'version': 'str' } @@ -40,10 +40,8 @@ class V1GroupVersionForDiscovery(object): 'version': 'version' } - def __init__(self, group_version=None, version=None): - """ - V1GroupVersionForDiscovery - a model defined in Swagger - """ + def __init__(self, group_version=None, version=None): # noqa: E501 + """V1GroupVersionForDiscovery - a model defined in OpenAPI""" # noqa: E501 self._group_version = None self._version = None @@ -54,61 +52,59 @@ def __init__(self, group_version=None, version=None): @property def group_version(self): - """ - Gets the group_version of this V1GroupVersionForDiscovery. - groupVersion specifies the API group and version in the form \"group/version\" + """Gets the group_version of this V1GroupVersionForDiscovery. # noqa: E501 + + groupVersion specifies the API group and version in the form \"group/version\" # noqa: E501 - :return: The group_version of this V1GroupVersionForDiscovery. + :return: The group_version of this V1GroupVersionForDiscovery. # noqa: E501 :rtype: str """ return self._group_version @group_version.setter def group_version(self, group_version): - """ - Sets the group_version of this V1GroupVersionForDiscovery. - groupVersion specifies the API group and version in the form \"group/version\" + """Sets the group_version of this V1GroupVersionForDiscovery. - :param group_version: The group_version of this V1GroupVersionForDiscovery. + groupVersion specifies the API group and version in the form \"group/version\" # noqa: E501 + + :param group_version: The group_version of this V1GroupVersionForDiscovery. # noqa: E501 :type: str """ if group_version is None: - raise ValueError("Invalid value for `group_version`, must not be `None`") + raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 self._group_version = group_version @property def version(self): - """ - Gets the version of this V1GroupVersionForDiscovery. - version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + """Gets the version of this V1GroupVersionForDiscovery. # noqa: E501 + + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. # noqa: E501 - :return: The version of this V1GroupVersionForDiscovery. + :return: The version of this V1GroupVersionForDiscovery. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1GroupVersionForDiscovery. - version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + """Sets the version of this V1GroupVersionForDiscovery. + + version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. # noqa: E501 - :param version: The version of this V1GroupVersionForDiscovery. + :param version: The version of this V1GroupVersionForDiscovery. # noqa: E501 :type: str """ if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1GroupVersionForDiscovery): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_handler.py b/kubernetes/client/models/v1_handler.py index 896b68ec2a..e8c194ab20 100644 --- a/kubernetes/client/models/v1_handler.py +++ b/kubernetes/client/models/v1_handler.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Handler(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { '_exec': 'V1ExecAction', 'http_get': 'V1HTTPGetAction', 'tcp_socket': 'V1TCPSocketAction' @@ -42,10 +42,8 @@ class V1Handler(object): 'tcp_socket': 'tcpSocket' } - def __init__(self, _exec=None, http_get=None, tcp_socket=None): - """ - V1Handler - a model defined in Swagger - """ + def __init__(self, _exec=None, http_get=None, tcp_socket=None): # noqa: E501 + """V1Handler - a model defined in OpenAPI""" # noqa: E501 self.__exec = None self._http_get = None @@ -53,30 +51,28 @@ def __init__(self, _exec=None, http_get=None, tcp_socket=None): self.discriminator = None if _exec is not None: - self._exec = _exec + self._exec = _exec if http_get is not None: - self.http_get = http_get + self.http_get = http_get if tcp_socket is not None: - self.tcp_socket = tcp_socket + self.tcp_socket = tcp_socket @property def _exec(self): - """ - Gets the _exec of this V1Handler. - One and only one of the following should be specified. Exec specifies the action to take. + """Gets the _exec of this V1Handler. # noqa: E501 - :return: The _exec of this V1Handler. + + :return: The _exec of this V1Handler. # noqa: E501 :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): - """ - Sets the _exec of this V1Handler. - One and only one of the following should be specified. Exec specifies the action to take. + """Sets the _exec of this V1Handler. - :param _exec: The _exec of this V1Handler. + + :param _exec: The _exec of this V1Handler. # noqa: E501 :type: V1ExecAction """ @@ -84,22 +80,20 @@ def _exec(self, _exec): @property def http_get(self): - """ - Gets the http_get of this V1Handler. - HTTPGet specifies the http request to perform. + """Gets the http_get of this V1Handler. # noqa: E501 - :return: The http_get of this V1Handler. + + :return: The http_get of this V1Handler. # noqa: E501 :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): - """ - Sets the http_get of this V1Handler. - HTTPGet specifies the http request to perform. + """Sets the http_get of this V1Handler. + - :param http_get: The http_get of this V1Handler. + :param http_get: The http_get of this V1Handler. # noqa: E501 :type: V1HTTPGetAction """ @@ -107,34 +101,30 @@ def http_get(self, http_get): @property def tcp_socket(self): - """ - Gets the tcp_socket of this V1Handler. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + """Gets the tcp_socket of this V1Handler. # noqa: E501 + - :return: The tcp_socket of this V1Handler. + :return: The tcp_socket of this V1Handler. # noqa: E501 :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): - """ - Sets the tcp_socket of this V1Handler. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + """Sets the tcp_socket of this V1Handler. + - :param tcp_socket: The tcp_socket of this V1Handler. + :param tcp_socket: The tcp_socket of this V1Handler. # noqa: E501 :type: V1TCPSocketAction """ self._tcp_socket = tcp_socket def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +145,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Handler): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py index b6d4d61ace..1a32f2b4cd 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HorizontalPodAutoscaler(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1HorizontalPodAutoscaler - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1HorizontalPodAutoscaler. # noqa: E501 - :return: The api_version of this V1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1HorizontalPodAutoscaler. - :param api_version: The api_version of this V1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1HorizontalPodAutoscaler. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1HorizontalPodAutoscaler. + :return: The kind of this V1HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1HorizontalPodAutoscaler. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1HorizontalPodAutoscaler. + :param kind: The kind of this V1HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1HorizontalPodAutoscaler. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1HorizontalPodAutoscaler. # noqa: E501 + - :return: The metadata of this V1HorizontalPodAutoscaler. + :return: The metadata of this V1HorizontalPodAutoscaler. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1HorizontalPodAutoscaler. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1HorizontalPodAutoscaler. + - :param metadata: The metadata of this V1HorizontalPodAutoscaler. + :param metadata: The metadata of this V1HorizontalPodAutoscaler. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1HorizontalPodAutoscaler. - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Gets the spec of this V1HorizontalPodAutoscaler. # noqa: E501 + - :return: The spec of this V1HorizontalPodAutoscaler. + :return: The spec of this V1HorizontalPodAutoscaler. # noqa: E501 :rtype: V1HorizontalPodAutoscalerSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1HorizontalPodAutoscaler. - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Sets the spec of this V1HorizontalPodAutoscaler. - :param spec: The spec of this V1HorizontalPodAutoscaler. + + :param spec: The spec of this V1HorizontalPodAutoscaler. # noqa: E501 :type: V1HorizontalPodAutoscalerSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1HorizontalPodAutoscaler. - current information about the autoscaler. + """Gets the status of this V1HorizontalPodAutoscaler. # noqa: E501 - :return: The status of this V1HorizontalPodAutoscaler. + + :return: The status of this V1HorizontalPodAutoscaler. # noqa: E501 :rtype: V1HorizontalPodAutoscalerStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1HorizontalPodAutoscaler. - current information about the autoscaler. + """Sets the status of this V1HorizontalPodAutoscaler. - :param status: The status of this V1HorizontalPodAutoscaler. + + :param status: The status of this V1HorizontalPodAutoscaler. # noqa: E501 :type: V1HorizontalPodAutoscalerStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HorizontalPodAutoscaler): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py index b51250d4d2..03ef5ee55f 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HorizontalPodAutoscalerList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1HorizontalPodAutoscaler]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1HorizontalPodAutoscalerList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1HorizontalPodAutoscalerList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1HorizontalPodAutoscalerList. + :return: The api_version of this V1HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1HorizontalPodAutoscalerList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1HorizontalPodAutoscalerList. + :param api_version: The api_version of this V1HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1HorizontalPodAutoscalerList. - list of horizontal pod autoscaler objects. + """Gets the items of this V1HorizontalPodAutoscalerList. # noqa: E501 + + list of horizontal pod autoscaler objects. # noqa: E501 - :return: The items of this V1HorizontalPodAutoscalerList. + :return: The items of this V1HorizontalPodAutoscalerList. # noqa: E501 :rtype: list[V1HorizontalPodAutoscaler] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1HorizontalPodAutoscalerList. - list of horizontal pod autoscaler objects. + """Sets the items of this V1HorizontalPodAutoscalerList. + + list of horizontal pod autoscaler objects. # noqa: E501 - :param items: The items of this V1HorizontalPodAutoscalerList. + :param items: The items of this V1HorizontalPodAutoscalerList. # noqa: E501 :type: list[V1HorizontalPodAutoscaler] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1HorizontalPodAutoscalerList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1HorizontalPodAutoscalerList. + :return: The kind of this V1HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1HorizontalPodAutoscalerList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1HorizontalPodAutoscalerList. + :param kind: The kind of this V1HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1HorizontalPodAutoscalerList. - Standard list metadata. + """Gets the metadata of this V1HorizontalPodAutoscalerList. # noqa: E501 + - :return: The metadata of this V1HorizontalPodAutoscalerList. + :return: The metadata of this V1HorizontalPodAutoscalerList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1HorizontalPodAutoscalerList. - Standard list metadata. + """Sets the metadata of this V1HorizontalPodAutoscalerList. + - :param metadata: The metadata of this V1HorizontalPodAutoscalerList. + :param metadata: The metadata of this V1HorizontalPodAutoscalerList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HorizontalPodAutoscalerList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py index 5376f11888..74bcc08346 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HorizontalPodAutoscalerSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_replicas': 'int', 'min_replicas': 'int', 'scale_target_ref': 'V1CrossVersionObjectReference', @@ -44,10 +44,8 @@ class V1HorizontalPodAutoscalerSpec(object): 'target_cpu_utilization_percentage': 'targetCPUUtilizationPercentage' } - def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None): - """ - V1HorizontalPodAutoscalerSpec - a model defined in Swagger - """ + def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None): # noqa: E501 + """V1HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 self._max_replicas = None self._min_replicas = None @@ -57,54 +55,54 @@ def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, self.max_replicas = max_replicas if min_replicas is not None: - self.min_replicas = min_replicas + self.min_replicas = min_replicas self.scale_target_ref = scale_target_ref if target_cpu_utilization_percentage is not None: - self.target_cpu_utilization_percentage = target_cpu_utilization_percentage + self.target_cpu_utilization_percentage = target_cpu_utilization_percentage @property def max_replicas(self): - """ - Gets the max_replicas of this V1HorizontalPodAutoscalerSpec. - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + """Gets the max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 + + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. # noqa: E501 - :return: The max_replicas of this V1HorizontalPodAutoscalerSpec. + :return: The max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._max_replicas @max_replicas.setter def max_replicas(self, max_replicas): - """ - Sets the max_replicas of this V1HorizontalPodAutoscalerSpec. - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + """Sets the max_replicas of this V1HorizontalPodAutoscalerSpec. + + upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. # noqa: E501 - :param max_replicas: The max_replicas of this V1HorizontalPodAutoscalerSpec. + :param max_replicas: The max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ if max_replicas is None: - raise ValueError("Invalid value for `max_replicas`, must not be `None`") + raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @property def min_replicas(self): - """ - Gets the min_replicas of this V1HorizontalPodAutoscalerSpec. - lower limit for the number of pods that can be set by the autoscaler, default 1. + """Gets the min_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 + + lower limit for the number of pods that can be set by the autoscaler, default 1. # noqa: E501 - :return: The min_replicas of this V1HorizontalPodAutoscalerSpec. + :return: The min_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._min_replicas @min_replicas.setter def min_replicas(self, min_replicas): - """ - Sets the min_replicas of this V1HorizontalPodAutoscalerSpec. - lower limit for the number of pods that can be set by the autoscaler, default 1. + """Sets the min_replicas of this V1HorizontalPodAutoscalerSpec. + + lower limit for the number of pods that can be set by the autoscaler, default 1. # noqa: E501 - :param min_replicas: The min_replicas of this V1HorizontalPodAutoscalerSpec. + :param min_replicas: The min_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ @@ -112,59 +110,55 @@ def min_replicas(self, min_replicas): @property def scale_target_ref(self): - """ - Gets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + """Gets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501 + - :return: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. + :return: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: V1CrossVersionObjectReference """ return self._scale_target_ref @scale_target_ref.setter def scale_target_ref(self, scale_target_ref): - """ - Sets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + """Sets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. + - :param scale_target_ref: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. + :param scale_target_ref: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: V1CrossVersionObjectReference """ if scale_target_ref is None: - raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") + raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref @property def target_cpu_utilization_percentage(self): - """ - Gets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + """Gets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. # noqa: E501 + + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. # noqa: E501 - :return: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + :return: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._target_cpu_utilization_percentage @target_cpu_utilization_percentage.setter def target_cpu_utilization_percentage(self, target_cpu_utilization_percentage): - """ - Sets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + """Sets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + + target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. # noqa: E501 - :param target_cpu_utilization_percentage: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. + :param target_cpu_utilization_percentage: The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ self._target_cpu_utilization_percentage = target_cpu_utilization_percentage def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HorizontalPodAutoscalerSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index f23051a5d1..ffe66865b0 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HorizontalPodAutoscalerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current_cpu_utilization_percentage': 'int', 'current_replicas': 'int', 'desired_replicas': 'int', @@ -46,10 +46,8 @@ class V1HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): - """ - V1HorizontalPodAutoscalerStatus - a model defined in Swagger - """ + def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + """V1HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 self._current_cpu_utilization_percentage = None self._current_replicas = None @@ -59,32 +57,32 @@ def __init__(self, current_cpu_utilization_percentage=None, current_replicas=Non self.discriminator = None if current_cpu_utilization_percentage is not None: - self.current_cpu_utilization_percentage = current_cpu_utilization_percentage + self.current_cpu_utilization_percentage = current_cpu_utilization_percentage self.current_replicas = current_replicas self.desired_replicas = desired_replicas if last_scale_time is not None: - self.last_scale_time = last_scale_time + self.last_scale_time = last_scale_time if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation @property def current_cpu_utilization_percentage(self): - """ - Gets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + """Gets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. # noqa: E501 + + :return: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._current_cpu_utilization_percentage @current_cpu_utilization_percentage.setter def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage): - """ - Sets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + """Sets the current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. - :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. + current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. # noqa: E501 + + :param current_cpu_utilization_percentage: The current_cpu_utilization_percentage of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ @@ -92,72 +90,72 @@ def current_cpu_utilization_percentage(self, current_cpu_utilization_percentage) @property def current_replicas(self): - """ - Gets the current_replicas of this V1HorizontalPodAutoscalerStatus. - current number of replicas of pods managed by this autoscaler. + """Gets the current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 + + current number of replicas of pods managed by this autoscaler. # noqa: E501 - :return: The current_replicas of this V1HorizontalPodAutoscalerStatus. + :return: The current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V1HorizontalPodAutoscalerStatus. - current number of replicas of pods managed by this autoscaler. + """Sets the current_replicas of this V1HorizontalPodAutoscalerStatus. + + current number of replicas of pods managed by this autoscaler. # noqa: E501 - :param current_replicas: The current_replicas of this V1HorizontalPodAutoscalerStatus. + :param current_replicas: The current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if current_replicas is None: - raise ValueError("Invalid value for `current_replicas`, must not be `None`") + raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @property def desired_replicas(self): - """ - Gets the desired_replicas of this V1HorizontalPodAutoscalerStatus. - desired number of replicas of pods managed by this autoscaler. + """Gets the desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 + + desired number of replicas of pods managed by this autoscaler. # noqa: E501 - :return: The desired_replicas of this V1HorizontalPodAutoscalerStatus. + :return: The desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._desired_replicas @desired_replicas.setter def desired_replicas(self, desired_replicas): - """ - Sets the desired_replicas of this V1HorizontalPodAutoscalerStatus. - desired number of replicas of pods managed by this autoscaler. + """Sets the desired_replicas of this V1HorizontalPodAutoscalerStatus. + + desired number of replicas of pods managed by this autoscaler. # noqa: E501 - :param desired_replicas: The desired_replicas of this V1HorizontalPodAutoscalerStatus. + :param desired_replicas: The desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if desired_replicas is None: - raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @property def last_scale_time(self): - """ - Gets the last_scale_time of this V1HorizontalPodAutoscalerStatus. - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + """Gets the last_scale_time of this V1HorizontalPodAutoscalerStatus. # noqa: E501 + + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. # noqa: E501 - :return: The last_scale_time of this V1HorizontalPodAutoscalerStatus. + :return: The last_scale_time of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: datetime """ return self._last_scale_time @last_scale_time.setter def last_scale_time(self, last_scale_time): - """ - Sets the last_scale_time of this V1HorizontalPodAutoscalerStatus. - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + """Sets the last_scale_time of this V1HorizontalPodAutoscalerStatus. - :param last_scale_time: The last_scale_time of this V1HorizontalPodAutoscalerStatus. + last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. # noqa: E501 + + :param last_scale_time: The last_scale_time of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: datetime """ @@ -165,34 +163,32 @@ def last_scale_time(self, last_scale_time): @property def observed_generation(self): - """ - Gets the observed_generation of this V1HorizontalPodAutoscalerStatus. - most recent generation observed by this autoscaler. + """Gets the observed_generation of this V1HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The observed_generation of this V1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. # noqa: E501 + + :return: The observed_generation of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1HorizontalPodAutoscalerStatus. - most recent generation observed by this autoscaler. + """Sets the observed_generation of this V1HorizontalPodAutoscalerStatus. - :param observed_generation: The observed_generation of this V1HorizontalPodAutoscalerStatus. + most recent generation observed by this autoscaler. # noqa: E501 + + :param observed_generation: The observed_generation of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ self._observed_generation = observed_generation def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HorizontalPodAutoscalerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_host_alias.py b/kubernetes/client/models/v1_host_alias.py index 453f58ff87..d03f8d4e3d 100644 --- a/kubernetes/client/models/v1_host_alias.py +++ b/kubernetes/client/models/v1_host_alias.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HostAlias(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hostnames': 'list[str]', 'ip': 'str' } @@ -40,38 +40,36 @@ class V1HostAlias(object): 'ip': 'ip' } - def __init__(self, hostnames=None, ip=None): - """ - V1HostAlias - a model defined in Swagger - """ + def __init__(self, hostnames=None, ip=None): # noqa: E501 + """V1HostAlias - a model defined in OpenAPI""" # noqa: E501 self._hostnames = None self._ip = None self.discriminator = None if hostnames is not None: - self.hostnames = hostnames + self.hostnames = hostnames if ip is not None: - self.ip = ip + self.ip = ip @property def hostnames(self): - """ - Gets the hostnames of this V1HostAlias. - Hostnames for the above IP address. + """Gets the hostnames of this V1HostAlias. # noqa: E501 + + Hostnames for the above IP address. # noqa: E501 - :return: The hostnames of this V1HostAlias. + :return: The hostnames of this V1HostAlias. # noqa: E501 :rtype: list[str] """ return self._hostnames @hostnames.setter def hostnames(self, hostnames): - """ - Sets the hostnames of this V1HostAlias. - Hostnames for the above IP address. + """Sets the hostnames of this V1HostAlias. - :param hostnames: The hostnames of this V1HostAlias. + Hostnames for the above IP address. # noqa: E501 + + :param hostnames: The hostnames of this V1HostAlias. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def hostnames(self, hostnames): @property def ip(self): - """ - Gets the ip of this V1HostAlias. - IP address of the host file entry. + """Gets the ip of this V1HostAlias. # noqa: E501 + + IP address of the host file entry. # noqa: E501 - :return: The ip of this V1HostAlias. + :return: The ip of this V1HostAlias. # noqa: E501 :rtype: str """ return self._ip @ip.setter def ip(self, ip): - """ - Sets the ip of this V1HostAlias. - IP address of the host file entry. + """Sets the ip of this V1HostAlias. + + IP address of the host file entry. # noqa: E501 - :param ip: The ip of this V1HostAlias. + :param ip: The ip of this V1HostAlias. # noqa: E501 :type: str """ self._ip = ip def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HostAlias): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_host_path_volume_source.py b/kubernetes/client/models/v1_host_path_volume_source.py index 4cb42399e4..f9f761b99b 100644 --- a/kubernetes/client/models/v1_host_path_volume_source.py +++ b/kubernetes/client/models/v1_host_path_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HostPathVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path': 'str', 'type': 'str' } @@ -40,10 +40,8 @@ class V1HostPathVolumeSource(object): 'type': 'type' } - def __init__(self, path=None, type=None): - """ - V1HostPathVolumeSource - a model defined in Swagger - """ + def __init__(self, path=None, type=None): # noqa: E501 + """V1HostPathVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._path = None self._type = None @@ -51,63 +49,61 @@ def __init__(self, path=None, type=None): self.path = path if type is not None: - self.type = type + self.type = type @property def path(self): - """ - Gets the path of this V1HostPathVolumeSource. - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Gets the path of this V1HostPathVolumeSource. # noqa: E501 + + Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 - :return: The path of this V1HostPathVolumeSource. + :return: The path of this V1HostPathVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1HostPathVolumeSource. - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Sets the path of this V1HostPathVolumeSource. - :param path: The path of this V1HostPathVolumeSource. + Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 + + :param path: The path of this V1HostPathVolumeSource. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @property def type(self): - """ - Gets the type of this V1HostPathVolumeSource. - Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Gets the type of this V1HostPathVolumeSource. # noqa: E501 + + Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 - :return: The type of this V1HostPathVolumeSource. + :return: The type of this V1HostPathVolumeSource. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1HostPathVolumeSource. - Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Sets the type of this V1HostPathVolumeSource. + + Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 - :param type: The type of this V1HostPathVolumeSource. + :param type: The type of this V1HostPathVolumeSource. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HostPathVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index 105cc1e7d4..dd5c376789 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HTTPGetAction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'host': 'str', 'http_headers': 'list[V1HTTPHeader]', 'path': 'str', @@ -46,10 +46,8 @@ class V1HTTPGetAction(object): 'scheme': 'scheme' } - def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=None): - """ - V1HTTPGetAction - a model defined in Swagger - """ + def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=None): # noqa: E501 + """V1HTTPGetAction - a model defined in OpenAPI""" # noqa: E501 self._host = None self._http_headers = None @@ -59,33 +57,33 @@ def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=No self.discriminator = None if host is not None: - self.host = host + self.host = host if http_headers is not None: - self.http_headers = http_headers + self.http_headers = http_headers if path is not None: - self.path = path + self.path = path self.port = port if scheme is not None: - self.scheme = scheme + self.scheme = scheme @property def host(self): - """ - Gets the host of this V1HTTPGetAction. - Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + """Gets the host of this V1HTTPGetAction. # noqa: E501 - :return: The host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. # noqa: E501 + + :return: The host of this V1HTTPGetAction. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """ - Sets the host of this V1HTTPGetAction. - Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + """Sets the host of this V1HTTPGetAction. - :param host: The host of this V1HTTPGetAction. + Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. # noqa: E501 + + :param host: The host of this V1HTTPGetAction. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def host(self, host): @property def http_headers(self): - """ - Gets the http_headers of this V1HTTPGetAction. - Custom headers to set in the request. HTTP allows repeated headers. + """Gets the http_headers of this V1HTTPGetAction. # noqa: E501 + + Custom headers to set in the request. HTTP allows repeated headers. # noqa: E501 - :return: The http_headers of this V1HTTPGetAction. + :return: The http_headers of this V1HTTPGetAction. # noqa: E501 :rtype: list[V1HTTPHeader] """ return self._http_headers @http_headers.setter def http_headers(self, http_headers): - """ - Sets the http_headers of this V1HTTPGetAction. - Custom headers to set in the request. HTTP allows repeated headers. + """Sets the http_headers of this V1HTTPGetAction. + + Custom headers to set in the request. HTTP allows repeated headers. # noqa: E501 - :param http_headers: The http_headers of this V1HTTPGetAction. + :param http_headers: The http_headers of this V1HTTPGetAction. # noqa: E501 :type: list[V1HTTPHeader] """ @@ -116,22 +114,22 @@ def http_headers(self, http_headers): @property def path(self): - """ - Gets the path of this V1HTTPGetAction. - Path to access on the HTTP server. + """Gets the path of this V1HTTPGetAction. # noqa: E501 + + Path to access on the HTTP server. # noqa: E501 - :return: The path of this V1HTTPGetAction. + :return: The path of this V1HTTPGetAction. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1HTTPGetAction. - Path to access on the HTTP server. + """Sets the path of this V1HTTPGetAction. + + Path to access on the HTTP server. # noqa: E501 - :param path: The path of this V1HTTPGetAction. + :param path: The path of this V1HTTPGetAction. # noqa: E501 :type: str """ @@ -139,59 +137,57 @@ def path(self, path): @property def port(self): - """ - Gets the port of this V1HTTPGetAction. - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + """Gets the port of this V1HTTPGetAction. # noqa: E501 + + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. # noqa: E501 - :return: The port of this V1HTTPGetAction. + :return: The port of this V1HTTPGetAction. # noqa: E501 :rtype: object """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1HTTPGetAction. - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + """Sets the port of this V1HTTPGetAction. - :param port: The port of this V1HTTPGetAction. + Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. # noqa: E501 + + :param port: The port of this V1HTTPGetAction. # noqa: E501 :type: object """ if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @property def scheme(self): - """ - Gets the scheme of this V1HTTPGetAction. - Scheme to use for connecting to the host. Defaults to HTTP. + """Gets the scheme of this V1HTTPGetAction. # noqa: E501 - :return: The scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. # noqa: E501 + + :return: The scheme of this V1HTTPGetAction. # noqa: E501 :rtype: str """ return self._scheme @scheme.setter def scheme(self, scheme): - """ - Sets the scheme of this V1HTTPGetAction. - Scheme to use for connecting to the host. Defaults to HTTP. + """Sets the scheme of this V1HTTPGetAction. - :param scheme: The scheme of this V1HTTPGetAction. + Scheme to use for connecting to the host. Defaults to HTTP. # noqa: E501 + + :param scheme: The scheme of this V1HTTPGetAction. # noqa: E501 :type: str """ self._scheme = scheme def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HTTPGetAction): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_http_header.py b/kubernetes/client/models/v1_http_header.py index 9dbac2adc7..eb2fa5ad03 100644 --- a/kubernetes/client/models/v1_http_header.py +++ b/kubernetes/client/models/v1_http_header.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1HTTPHeader(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'value': 'str' } @@ -40,10 +40,8 @@ class V1HTTPHeader(object): 'value': 'value' } - def __init__(self, name=None, value=None): - """ - V1HTTPHeader - a model defined in Swagger - """ + def __init__(self, name=None, value=None): # noqa: E501 + """V1HTTPHeader - a model defined in OpenAPI""" # noqa: E501 self._name = None self._value = None @@ -54,61 +52,59 @@ def __init__(self, name=None, value=None): @property def name(self): - """ - Gets the name of this V1HTTPHeader. - The header field name + """Gets the name of this V1HTTPHeader. # noqa: E501 + + The header field name # noqa: E501 - :return: The name of this V1HTTPHeader. + :return: The name of this V1HTTPHeader. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1HTTPHeader. - The header field name + """Sets the name of this V1HTTPHeader. - :param name: The name of this V1HTTPHeader. + The header field name # noqa: E501 + + :param name: The name of this V1HTTPHeader. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def value(self): - """ - Gets the value of this V1HTTPHeader. - The header field value + """Gets the value of this V1HTTPHeader. # noqa: E501 + + The header field value # noqa: E501 - :return: The value of this V1HTTPHeader. + :return: The value of this V1HTTPHeader. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1HTTPHeader. - The header field value + """Sets the value of this V1HTTPHeader. + + The header field value # noqa: E501 - :param value: The value of this V1HTTPHeader. + :param value: The value of this V1HTTPHeader. # noqa: E501 :type: str """ if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1HTTPHeader): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_initializer.py b/kubernetes/client/models/v1_initializer.py index 9331f674f1..d3b7ab01f9 100644 --- a/kubernetes/client/models/v1_initializer.py +++ b/kubernetes/client/models/v1_initializer.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Initializer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str' } @@ -38,10 +38,8 @@ class V1Initializer(object): 'name': 'name' } - def __init__(self, name=None): - """ - V1Initializer - a model defined in Swagger - """ + def __init__(self, name=None): # noqa: E501 + """V1Initializer - a model defined in OpenAPI""" # noqa: E501 self._name = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, name=None): @property def name(self): - """ - Gets the name of this V1Initializer. - name of the process that is responsible for initializing this object. + """Gets the name of this V1Initializer. # noqa: E501 + + name of the process that is responsible for initializing this object. # noqa: E501 - :return: The name of this V1Initializer. + :return: The name of this V1Initializer. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1Initializer. - name of the process that is responsible for initializing this object. + """Sets the name of this V1Initializer. + + name of the process that is responsible for initializing this object. # noqa: E501 - :param name: The name of this V1Initializer. + :param name: The name of this V1Initializer. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Initializer): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_initializers.py b/kubernetes/client/models/v1_initializers.py index d3b4686076..0c3b6b8e1a 100644 --- a/kubernetes/client/models/v1_initializers.py +++ b/kubernetes/client/models/v1_initializers.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Initializers(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pending': 'list[V1Initializer]', 'result': 'V1Status' } @@ -40,10 +40,8 @@ class V1Initializers(object): 'result': 'result' } - def __init__(self, pending=None, result=None): - """ - V1Initializers - a model defined in Swagger - """ + def __init__(self, pending=None, result=None): # noqa: E501 + """V1Initializers - a model defined in OpenAPI""" # noqa: E501 self._pending = None self._result = None @@ -51,63 +49,59 @@ def __init__(self, pending=None, result=None): self.pending = pending if result is not None: - self.result = result + self.result = result @property def pending(self): - """ - Gets the pending of this V1Initializers. - Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. + """Gets the pending of this V1Initializers. # noqa: E501 + + Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. # noqa: E501 - :return: The pending of this V1Initializers. + :return: The pending of this V1Initializers. # noqa: E501 :rtype: list[V1Initializer] """ return self._pending @pending.setter def pending(self, pending): - """ - Sets the pending of this V1Initializers. - Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. + """Sets the pending of this V1Initializers. - :param pending: The pending of this V1Initializers. + Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. # noqa: E501 + + :param pending: The pending of this V1Initializers. # noqa: E501 :type: list[V1Initializer] """ if pending is None: - raise ValueError("Invalid value for `pending`, must not be `None`") + raise ValueError("Invalid value for `pending`, must not be `None`") # noqa: E501 self._pending = pending @property def result(self): - """ - Gets the result of this V1Initializers. - If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. + """Gets the result of this V1Initializers. # noqa: E501 + - :return: The result of this V1Initializers. + :return: The result of this V1Initializers. # noqa: E501 :rtype: V1Status """ return self._result @result.setter def result(self, result): - """ - Sets the result of this V1Initializers. - If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. + """Sets the result of this V1Initializers. + - :param result: The result of this V1Initializers. + :param result: The result of this V1Initializers. # noqa: E501 :type: V1Status """ self._result = result def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Initializers): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_ip_block.py b/kubernetes/client/models/v1_ip_block.py index f8106eb974..3d6b97f975 100644 --- a/kubernetes/client/models/v1_ip_block.py +++ b/kubernetes/client/models/v1_ip_block.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1IPBlock(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cidr': 'str', '_except': 'list[str]' } @@ -40,10 +40,8 @@ class V1IPBlock(object): '_except': 'except' } - def __init__(self, cidr=None, _except=None): - """ - V1IPBlock - a model defined in Swagger - """ + def __init__(self, cidr=None, _except=None): # noqa: E501 + """V1IPBlock - a model defined in OpenAPI""" # noqa: E501 self._cidr = None self.__except = None @@ -51,63 +49,61 @@ def __init__(self, cidr=None, _except=None): self.cidr = cidr if _except is not None: - self._except = _except + self._except = _except @property def cidr(self): - """ - Gets the cidr of this V1IPBlock. - CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + """Gets the cidr of this V1IPBlock. # noqa: E501 + + CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" # noqa: E501 - :return: The cidr of this V1IPBlock. + :return: The cidr of this V1IPBlock. # noqa: E501 :rtype: str """ return self._cidr @cidr.setter def cidr(self, cidr): - """ - Sets the cidr of this V1IPBlock. - CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + """Sets the cidr of this V1IPBlock. - :param cidr: The cidr of this V1IPBlock. + CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" # noqa: E501 + + :param cidr: The cidr of this V1IPBlock. # noqa: E501 :type: str """ if cidr is None: - raise ValueError("Invalid value for `cidr`, must not be `None`") + raise ValueError("Invalid value for `cidr`, must not be `None`") # noqa: E501 self._cidr = cidr @property def _except(self): - """ - Gets the _except of this V1IPBlock. - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + """Gets the _except of this V1IPBlock. # noqa: E501 + + Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range # noqa: E501 - :return: The _except of this V1IPBlock. + :return: The _except of this V1IPBlock. # noqa: E501 :rtype: list[str] """ return self.__except @_except.setter def _except(self, _except): - """ - Sets the _except of this V1IPBlock. - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + """Sets the _except of this V1IPBlock. + + Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range # noqa: E501 - :param _except: The _except of this V1IPBlock. + :param _except: The _except of this V1IPBlock. # noqa: E501 :type: list[str] """ self.__except = _except def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1IPBlock): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py index 0674427f33..177ebb9fc2 100644 --- a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ISCSIPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'chap_auth_discovery': 'bool', 'chap_auth_session': 'bool', 'fs_type': 'str', @@ -58,10 +58,8 @@ class V1ISCSIPersistentVolumeSource(object): 'target_portal': 'targetPortal' } - def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): - """ - V1ISCSIPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): # noqa: E501 + """V1ISCSIPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._chap_auth_discovery = None self._chap_auth_session = None @@ -77,43 +75,43 @@ def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=Non self.discriminator = None if chap_auth_discovery is not None: - self.chap_auth_discovery = chap_auth_discovery + self.chap_auth_discovery = chap_auth_discovery if chap_auth_session is not None: - self.chap_auth_session = chap_auth_session + self.chap_auth_session = chap_auth_session if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if initiator_name is not None: - self.initiator_name = initiator_name + self.initiator_name = initiator_name self.iqn = iqn if iscsi_interface is not None: - self.iscsi_interface = iscsi_interface + self.iscsi_interface = iscsi_interface self.lun = lun if portals is not None: - self.portals = portals + self.portals = portals if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref self.target_portal = target_portal @property def chap_auth_discovery(self): - """ - Gets the chap_auth_discovery of this V1ISCSIPersistentVolumeSource. - whether support iSCSI Discovery CHAP authentication + """Gets the chap_auth_discovery of this V1ISCSIPersistentVolumeSource. # noqa: E501 + + whether support iSCSI Discovery CHAP authentication # noqa: E501 - :return: The chap_auth_discovery of this V1ISCSIPersistentVolumeSource. + :return: The chap_auth_discovery of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._chap_auth_discovery @chap_auth_discovery.setter def chap_auth_discovery(self, chap_auth_discovery): - """ - Sets the chap_auth_discovery of this V1ISCSIPersistentVolumeSource. - whether support iSCSI Discovery CHAP authentication + """Sets the chap_auth_discovery of this V1ISCSIPersistentVolumeSource. + + whether support iSCSI Discovery CHAP authentication # noqa: E501 - :param chap_auth_discovery: The chap_auth_discovery of this V1ISCSIPersistentVolumeSource. + :param chap_auth_discovery: The chap_auth_discovery of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -121,22 +119,22 @@ def chap_auth_discovery(self, chap_auth_discovery): @property def chap_auth_session(self): - """ - Gets the chap_auth_session of this V1ISCSIPersistentVolumeSource. - whether support iSCSI Session CHAP authentication + """Gets the chap_auth_session of this V1ISCSIPersistentVolumeSource. # noqa: E501 + + whether support iSCSI Session CHAP authentication # noqa: E501 - :return: The chap_auth_session of this V1ISCSIPersistentVolumeSource. + :return: The chap_auth_session of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._chap_auth_session @chap_auth_session.setter def chap_auth_session(self, chap_auth_session): - """ - Sets the chap_auth_session of this V1ISCSIPersistentVolumeSource. - whether support iSCSI Session CHAP authentication + """Sets the chap_auth_session of this V1ISCSIPersistentVolumeSource. + + whether support iSCSI Session CHAP authentication # noqa: E501 - :param chap_auth_session: The chap_auth_session of this V1ISCSIPersistentVolumeSource. + :param chap_auth_session: The chap_auth_session of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -144,22 +142,22 @@ def chap_auth_session(self, chap_auth_session): @property def fs_type(self): - """ - Gets the fs_type of this V1ISCSIPersistentVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + """Gets the fs_type of this V1ISCSIPersistentVolumeSource. # noqa: E501 - :return: The fs_type of this V1ISCSIPersistentVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi # noqa: E501 + + :return: The fs_type of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1ISCSIPersistentVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + """Sets the fs_type of this V1ISCSIPersistentVolumeSource. - :param fs_type: The fs_type of this V1ISCSIPersistentVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi # noqa: E501 + + :param fs_type: The fs_type of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ @@ -167,22 +165,22 @@ def fs_type(self, fs_type): @property def initiator_name(self): - """ - Gets the initiator_name of this V1ISCSIPersistentVolumeSource. - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + """Gets the initiator_name of this V1ISCSIPersistentVolumeSource. # noqa: E501 - :return: The initiator_name of this V1ISCSIPersistentVolumeSource. + Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. # noqa: E501 + + :return: The initiator_name of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._initiator_name @initiator_name.setter def initiator_name(self, initiator_name): - """ - Sets the initiator_name of this V1ISCSIPersistentVolumeSource. - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + """Sets the initiator_name of this V1ISCSIPersistentVolumeSource. - :param initiator_name: The initiator_name of this V1ISCSIPersistentVolumeSource. + Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. # noqa: E501 + + :param initiator_name: The initiator_name of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ @@ -190,47 +188,47 @@ def initiator_name(self, initiator_name): @property def iqn(self): - """ - Gets the iqn of this V1ISCSIPersistentVolumeSource. - Target iSCSI Qualified Name. + """Gets the iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501 - :return: The iqn of this V1ISCSIPersistentVolumeSource. + Target iSCSI Qualified Name. # noqa: E501 + + :return: The iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._iqn @iqn.setter def iqn(self, iqn): - """ - Sets the iqn of this V1ISCSIPersistentVolumeSource. - Target iSCSI Qualified Name. + """Sets the iqn of this V1ISCSIPersistentVolumeSource. - :param iqn: The iqn of this V1ISCSIPersistentVolumeSource. + Target iSCSI Qualified Name. # noqa: E501 + + :param iqn: The iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ if iqn is None: - raise ValueError("Invalid value for `iqn`, must not be `None`") + raise ValueError("Invalid value for `iqn`, must not be `None`") # noqa: E501 self._iqn = iqn @property def iscsi_interface(self): - """ - Gets the iscsi_interface of this V1ISCSIPersistentVolumeSource. - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + """Gets the iscsi_interface of this V1ISCSIPersistentVolumeSource. # noqa: E501 - :return: The iscsi_interface of this V1ISCSIPersistentVolumeSource. + iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). # noqa: E501 + + :return: The iscsi_interface of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._iscsi_interface @iscsi_interface.setter def iscsi_interface(self, iscsi_interface): - """ - Sets the iscsi_interface of this V1ISCSIPersistentVolumeSource. - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + """Sets the iscsi_interface of this V1ISCSIPersistentVolumeSource. + + iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). # noqa: E501 - :param iscsi_interface: The iscsi_interface of this V1ISCSIPersistentVolumeSource. + :param iscsi_interface: The iscsi_interface of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ @@ -238,47 +236,47 @@ def iscsi_interface(self, iscsi_interface): @property def lun(self): - """ - Gets the lun of this V1ISCSIPersistentVolumeSource. - iSCSI Target Lun number. + """Gets the lun of this V1ISCSIPersistentVolumeSource. # noqa: E501 + + iSCSI Target Lun number. # noqa: E501 - :return: The lun of this V1ISCSIPersistentVolumeSource. + :return: The lun of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: int """ return self._lun @lun.setter def lun(self, lun): - """ - Sets the lun of this V1ISCSIPersistentVolumeSource. - iSCSI Target Lun number. + """Sets the lun of this V1ISCSIPersistentVolumeSource. + + iSCSI Target Lun number. # noqa: E501 - :param lun: The lun of this V1ISCSIPersistentVolumeSource. + :param lun: The lun of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: int """ if lun is None: - raise ValueError("Invalid value for `lun`, must not be `None`") + raise ValueError("Invalid value for `lun`, must not be `None`") # noqa: E501 self._lun = lun @property def portals(self): - """ - Gets the portals of this V1ISCSIPersistentVolumeSource. - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Gets the portals of this V1ISCSIPersistentVolumeSource. # noqa: E501 + + iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 - :return: The portals of this V1ISCSIPersistentVolumeSource. + :return: The portals of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: list[str] """ return self._portals @portals.setter def portals(self, portals): - """ - Sets the portals of this V1ISCSIPersistentVolumeSource. - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Sets the portals of this V1ISCSIPersistentVolumeSource. + + iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 - :param portals: The portals of this V1ISCSIPersistentVolumeSource. + :param portals: The portals of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: list[str] """ @@ -286,22 +284,22 @@ def portals(self, portals): @property def read_only(self): - """ - Gets the read_only of this V1ISCSIPersistentVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + """Gets the read_only of this V1ISCSIPersistentVolumeSource. # noqa: E501 + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. # noqa: E501 - :return: The read_only of this V1ISCSIPersistentVolumeSource. + :return: The read_only of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1ISCSIPersistentVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + """Sets the read_only of this V1ISCSIPersistentVolumeSource. + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. # noqa: E501 - :param read_only: The read_only of this V1ISCSIPersistentVolumeSource. + :param read_only: The read_only of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -309,22 +307,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1ISCSIPersistentVolumeSource. - CHAP Secret for iSCSI target and initiator authentication + """Gets the secret_ref of this V1ISCSIPersistentVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1ISCSIPersistentVolumeSource. + :return: The secret_ref of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1ISCSIPersistentVolumeSource. - CHAP Secret for iSCSI target and initiator authentication + """Sets the secret_ref of this V1ISCSIPersistentVolumeSource. - :param secret_ref: The secret_ref of this V1ISCSIPersistentVolumeSource. + + :param secret_ref: The secret_ref of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -332,36 +328,34 @@ def secret_ref(self, secret_ref): @property def target_portal(self): - """ - Gets the target_portal of this V1ISCSIPersistentVolumeSource. - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Gets the target_portal of this V1ISCSIPersistentVolumeSource. # noqa: E501 - :return: The target_portal of this V1ISCSIPersistentVolumeSource. + iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + + :return: The target_portal of this V1ISCSIPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._target_portal @target_portal.setter def target_portal(self, target_portal): - """ - Sets the target_portal of this V1ISCSIPersistentVolumeSource. - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Sets the target_portal of this V1ISCSIPersistentVolumeSource. - :param target_portal: The target_portal of this V1ISCSIPersistentVolumeSource. + iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + + :param target_portal: The target_portal of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ if target_portal is None: - raise ValueError("Invalid value for `target_portal`, must not be `None`") + raise ValueError("Invalid value for `target_portal`, must not be `None`") # noqa: E501 self._target_portal = target_portal def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -382,28 +376,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ISCSIPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_iscsi_volume_source.py b/kubernetes/client/models/v1_iscsi_volume_source.py index 830bf5f977..785269bb0f 100644 --- a/kubernetes/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ISCSIVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'chap_auth_discovery': 'bool', 'chap_auth_session': 'bool', 'fs_type': 'str', @@ -58,10 +58,8 @@ class V1ISCSIVolumeSource(object): 'target_portal': 'targetPortal' } - def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): - """ - V1ISCSIVolumeSource - a model defined in Swagger - """ + def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): # noqa: E501 + """V1ISCSIVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._chap_auth_discovery = None self._chap_auth_session = None @@ -77,43 +75,43 @@ def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=Non self.discriminator = None if chap_auth_discovery is not None: - self.chap_auth_discovery = chap_auth_discovery + self.chap_auth_discovery = chap_auth_discovery if chap_auth_session is not None: - self.chap_auth_session = chap_auth_session + self.chap_auth_session = chap_auth_session if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if initiator_name is not None: - self.initiator_name = initiator_name + self.initiator_name = initiator_name self.iqn = iqn if iscsi_interface is not None: - self.iscsi_interface = iscsi_interface + self.iscsi_interface = iscsi_interface self.lun = lun if portals is not None: - self.portals = portals + self.portals = portals if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref self.target_portal = target_portal @property def chap_auth_discovery(self): - """ - Gets the chap_auth_discovery of this V1ISCSIVolumeSource. - whether support iSCSI Discovery CHAP authentication + """Gets the chap_auth_discovery of this V1ISCSIVolumeSource. # noqa: E501 + + whether support iSCSI Discovery CHAP authentication # noqa: E501 - :return: The chap_auth_discovery of this V1ISCSIVolumeSource. + :return: The chap_auth_discovery of this V1ISCSIVolumeSource. # noqa: E501 :rtype: bool """ return self._chap_auth_discovery @chap_auth_discovery.setter def chap_auth_discovery(self, chap_auth_discovery): - """ - Sets the chap_auth_discovery of this V1ISCSIVolumeSource. - whether support iSCSI Discovery CHAP authentication + """Sets the chap_auth_discovery of this V1ISCSIVolumeSource. + + whether support iSCSI Discovery CHAP authentication # noqa: E501 - :param chap_auth_discovery: The chap_auth_discovery of this V1ISCSIVolumeSource. + :param chap_auth_discovery: The chap_auth_discovery of this V1ISCSIVolumeSource. # noqa: E501 :type: bool """ @@ -121,22 +119,22 @@ def chap_auth_discovery(self, chap_auth_discovery): @property def chap_auth_session(self): - """ - Gets the chap_auth_session of this V1ISCSIVolumeSource. - whether support iSCSI Session CHAP authentication + """Gets the chap_auth_session of this V1ISCSIVolumeSource. # noqa: E501 + + whether support iSCSI Session CHAP authentication # noqa: E501 - :return: The chap_auth_session of this V1ISCSIVolumeSource. + :return: The chap_auth_session of this V1ISCSIVolumeSource. # noqa: E501 :rtype: bool """ return self._chap_auth_session @chap_auth_session.setter def chap_auth_session(self, chap_auth_session): - """ - Sets the chap_auth_session of this V1ISCSIVolumeSource. - whether support iSCSI Session CHAP authentication + """Sets the chap_auth_session of this V1ISCSIVolumeSource. + + whether support iSCSI Session CHAP authentication # noqa: E501 - :param chap_auth_session: The chap_auth_session of this V1ISCSIVolumeSource. + :param chap_auth_session: The chap_auth_session of this V1ISCSIVolumeSource. # noqa: E501 :type: bool """ @@ -144,22 +142,22 @@ def chap_auth_session(self, chap_auth_session): @property def fs_type(self): - """ - Gets the fs_type of this V1ISCSIVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + """Gets the fs_type of this V1ISCSIVolumeSource. # noqa: E501 - :return: The fs_type of this V1ISCSIVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi # noqa: E501 + + :return: The fs_type of this V1ISCSIVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1ISCSIVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + """Sets the fs_type of this V1ISCSIVolumeSource. - :param fs_type: The fs_type of this V1ISCSIVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi # noqa: E501 + + :param fs_type: The fs_type of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ @@ -167,22 +165,22 @@ def fs_type(self, fs_type): @property def initiator_name(self): - """ - Gets the initiator_name of this V1ISCSIVolumeSource. - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + """Gets the initiator_name of this V1ISCSIVolumeSource. # noqa: E501 - :return: The initiator_name of this V1ISCSIVolumeSource. + Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. # noqa: E501 + + :return: The initiator_name of this V1ISCSIVolumeSource. # noqa: E501 :rtype: str """ return self._initiator_name @initiator_name.setter def initiator_name(self, initiator_name): - """ - Sets the initiator_name of this V1ISCSIVolumeSource. - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + """Sets the initiator_name of this V1ISCSIVolumeSource. - :param initiator_name: The initiator_name of this V1ISCSIVolumeSource. + Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. # noqa: E501 + + :param initiator_name: The initiator_name of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ @@ -190,47 +188,47 @@ def initiator_name(self, initiator_name): @property def iqn(self): - """ - Gets the iqn of this V1ISCSIVolumeSource. - Target iSCSI Qualified Name. + """Gets the iqn of this V1ISCSIVolumeSource. # noqa: E501 - :return: The iqn of this V1ISCSIVolumeSource. + Target iSCSI Qualified Name. # noqa: E501 + + :return: The iqn of this V1ISCSIVolumeSource. # noqa: E501 :rtype: str """ return self._iqn @iqn.setter def iqn(self, iqn): - """ - Sets the iqn of this V1ISCSIVolumeSource. - Target iSCSI Qualified Name. + """Sets the iqn of this V1ISCSIVolumeSource. - :param iqn: The iqn of this V1ISCSIVolumeSource. + Target iSCSI Qualified Name. # noqa: E501 + + :param iqn: The iqn of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ if iqn is None: - raise ValueError("Invalid value for `iqn`, must not be `None`") + raise ValueError("Invalid value for `iqn`, must not be `None`") # noqa: E501 self._iqn = iqn @property def iscsi_interface(self): - """ - Gets the iscsi_interface of this V1ISCSIVolumeSource. - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + """Gets the iscsi_interface of this V1ISCSIVolumeSource. # noqa: E501 - :return: The iscsi_interface of this V1ISCSIVolumeSource. + iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). # noqa: E501 + + :return: The iscsi_interface of this V1ISCSIVolumeSource. # noqa: E501 :rtype: str """ return self._iscsi_interface @iscsi_interface.setter def iscsi_interface(self, iscsi_interface): - """ - Sets the iscsi_interface of this V1ISCSIVolumeSource. - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + """Sets the iscsi_interface of this V1ISCSIVolumeSource. + + iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). # noqa: E501 - :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. + :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ @@ -238,47 +236,47 @@ def iscsi_interface(self, iscsi_interface): @property def lun(self): - """ - Gets the lun of this V1ISCSIVolumeSource. - iSCSI Target Lun number. + """Gets the lun of this V1ISCSIVolumeSource. # noqa: E501 + + iSCSI Target Lun number. # noqa: E501 - :return: The lun of this V1ISCSIVolumeSource. + :return: The lun of this V1ISCSIVolumeSource. # noqa: E501 :rtype: int """ return self._lun @lun.setter def lun(self, lun): - """ - Sets the lun of this V1ISCSIVolumeSource. - iSCSI Target Lun number. + """Sets the lun of this V1ISCSIVolumeSource. + + iSCSI Target Lun number. # noqa: E501 - :param lun: The lun of this V1ISCSIVolumeSource. + :param lun: The lun of this V1ISCSIVolumeSource. # noqa: E501 :type: int """ if lun is None: - raise ValueError("Invalid value for `lun`, must not be `None`") + raise ValueError("Invalid value for `lun`, must not be `None`") # noqa: E501 self._lun = lun @property def portals(self): - """ - Gets the portals of this V1ISCSIVolumeSource. - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Gets the portals of this V1ISCSIVolumeSource. # noqa: E501 + + iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 - :return: The portals of this V1ISCSIVolumeSource. + :return: The portals of this V1ISCSIVolumeSource. # noqa: E501 :rtype: list[str] """ return self._portals @portals.setter def portals(self, portals): - """ - Sets the portals of this V1ISCSIVolumeSource. - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Sets the portals of this V1ISCSIVolumeSource. + + iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 - :param portals: The portals of this V1ISCSIVolumeSource. + :param portals: The portals of this V1ISCSIVolumeSource. # noqa: E501 :type: list[str] """ @@ -286,22 +284,22 @@ def portals(self, portals): @property def read_only(self): - """ - Gets the read_only of this V1ISCSIVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + """Gets the read_only of this V1ISCSIVolumeSource. # noqa: E501 + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. # noqa: E501 - :return: The read_only of this V1ISCSIVolumeSource. + :return: The read_only of this V1ISCSIVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1ISCSIVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + """Sets the read_only of this V1ISCSIVolumeSource. + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. # noqa: E501 - :param read_only: The read_only of this V1ISCSIVolumeSource. + :param read_only: The read_only of this V1ISCSIVolumeSource. # noqa: E501 :type: bool """ @@ -309,22 +307,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1ISCSIVolumeSource. - CHAP Secret for iSCSI target and initiator authentication + """Gets the secret_ref of this V1ISCSIVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1ISCSIVolumeSource. + :return: The secret_ref of this V1ISCSIVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1ISCSIVolumeSource. - CHAP Secret for iSCSI target and initiator authentication + """Sets the secret_ref of this V1ISCSIVolumeSource. - :param secret_ref: The secret_ref of this V1ISCSIVolumeSource. + + :param secret_ref: The secret_ref of this V1ISCSIVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -332,36 +328,34 @@ def secret_ref(self, secret_ref): @property def target_portal(self): - """ - Gets the target_portal of this V1ISCSIVolumeSource. - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Gets the target_portal of this V1ISCSIVolumeSource. # noqa: E501 - :return: The target_portal of this V1ISCSIVolumeSource. + iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + + :return: The target_portal of this V1ISCSIVolumeSource. # noqa: E501 :rtype: str """ return self._target_portal @target_portal.setter def target_portal(self, target_portal): - """ - Sets the target_portal of this V1ISCSIVolumeSource. - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + """Sets the target_portal of this V1ISCSIVolumeSource. - :param target_portal: The target_portal of this V1ISCSIVolumeSource. + iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + + :param target_portal: The target_portal of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ if target_portal is None: - raise ValueError("Invalid value for `target_portal`, must not be `None`") + raise ValueError("Invalid value for `target_portal`, must not be `None`") # noqa: E501 self._target_portal = target_portal def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -382,28 +376,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ISCSIVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_job.py b/kubernetes/client/models/v1_job.py index 8ee488799b..1ec4413e2e 100644 --- a/kubernetes/client/models/v1_job.py +++ b/kubernetes/client/models/v1_job.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Job(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Job(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Job - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Job - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Job. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Job. # noqa: E501 - :return: The api_version of this V1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Job. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Job. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Job. - :param api_version: The api_version of this V1Job. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Job. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Job. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Job. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Job. + :return: The kind of this V1Job. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Job. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Job. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Job. + :param kind: The kind of this V1Job. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Job. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Job. # noqa: E501 + - :return: The metadata of this V1Job. + :return: The metadata of this V1Job. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Job. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Job. + - :param metadata: The metadata of this V1Job. + :param metadata: The metadata of this V1Job. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Job. - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Job. # noqa: E501 + - :return: The spec of this V1Job. + :return: The spec of this V1Job. # noqa: E501 :rtype: V1JobSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Job. - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Job. - :param spec: The spec of this V1Job. + + :param spec: The spec of this V1Job. # noqa: E501 :type: V1JobSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Job. - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Job. # noqa: E501 - :return: The status of this V1Job. + + :return: The status of this V1Job. # noqa: E501 :rtype: V1JobStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Job. - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Job. - :param status: The status of this V1Job. + + :param status: The status of this V1Job. # noqa: E501 :type: V1JobStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Job): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index ad49223295..86d85ee331 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1JobCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_probe_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1JobCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1JobCondition - a model defined in Swagger - """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1JobCondition - a model defined in OpenAPI""" # noqa: E501 self._last_probe_time = None self._last_transition_time = None @@ -62,34 +60,34 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.discriminator = None if last_probe_time is not None: - self.last_probe_time = last_probe_time + self.last_probe_time = last_probe_time if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_probe_time(self): - """ - Gets the last_probe_time of this V1JobCondition. - Last time the condition was checked. + """Gets the last_probe_time of this V1JobCondition. # noqa: E501 + + Last time the condition was checked. # noqa: E501 - :return: The last_probe_time of this V1JobCondition. + :return: The last_probe_time of this V1JobCondition. # noqa: E501 :rtype: datetime """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1JobCondition. - Last time the condition was checked. + """Sets the last_probe_time of this V1JobCondition. + + Last time the condition was checked. # noqa: E501 - :param last_probe_time: The last_probe_time of this V1JobCondition. + :param last_probe_time: The last_probe_time of this V1JobCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_probe_time(self, last_probe_time): @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1JobCondition. - Last time the condition transit from one status to another. + """Gets the last_transition_time of this V1JobCondition. # noqa: E501 + + Last time the condition transit from one status to another. # noqa: E501 - :return: The last_transition_time of this V1JobCondition. + :return: The last_transition_time of this V1JobCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1JobCondition. - Last time the condition transit from one status to another. + """Sets the last_transition_time of this V1JobCondition. - :param last_transition_time: The last_transition_time of this V1JobCondition. + Last time the condition transit from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1JobCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1JobCondition. - Human readable message indicating details about last transition. + """Gets the message of this V1JobCondition. # noqa: E501 - :return: The message of this V1JobCondition. + Human readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1JobCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1JobCondition. - Human readable message indicating details about last transition. + """Sets the message of this V1JobCondition. + + Human readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1JobCondition. + :param message: The message of this V1JobCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1JobCondition. - (brief) reason for the condition's last transition. + """Gets the reason of this V1JobCondition. # noqa: E501 + + (brief) reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1JobCondition. + :return: The reason of this V1JobCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1JobCondition. - (brief) reason for the condition's last transition. + """Sets the reason of this V1JobCondition. + + (brief) reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1JobCondition. + :param reason: The reason of this V1JobCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1JobCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1JobCondition. # noqa: E501 - :return: The status of this V1JobCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1JobCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1JobCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1JobCondition. - :param status: The status of this V1JobCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1JobCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1JobCondition. - Type of job condition, Complete or Failed. + """Gets the type of this V1JobCondition. # noqa: E501 + + Type of job condition, Complete or Failed. # noqa: E501 - :return: The type of this V1JobCondition. + :return: The type of this V1JobCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1JobCondition. - Type of job condition, Complete or Failed. + """Sets the type of this V1JobCondition. + + Type of job condition, Complete or Failed. # noqa: E501 - :param type: The type of this V1JobCondition. + :param type: The type of this V1JobCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1JobCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_job_list.py b/kubernetes/client/models/v1_job_list.py index c24e70c10d..4f509cf3f1 100644 --- a/kubernetes/client/models/v1_job_list.py +++ b/kubernetes/client/models/v1_job_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1JobList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Job]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1JobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1JobList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1JobList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1JobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1JobList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1JobList. + :return: The api_version of this V1JobList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1JobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1JobList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1JobList. + :param api_version: The api_version of this V1JobList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1JobList. - items is the list of Jobs. + """Gets the items of this V1JobList. # noqa: E501 + + items is the list of Jobs. # noqa: E501 - :return: The items of this V1JobList. + :return: The items of this V1JobList. # noqa: E501 :rtype: list[V1Job] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1JobList. - items is the list of Jobs. + """Sets the items of this V1JobList. + + items is the list of Jobs. # noqa: E501 - :param items: The items of this V1JobList. + :param items: The items of this V1JobList. # noqa: E501 :type: list[V1Job] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1JobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1JobList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1JobList. + :return: The kind of this V1JobList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1JobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1JobList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1JobList. + :param kind: The kind of this V1JobList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1JobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1JobList. # noqa: E501 + - :return: The metadata of this V1JobList. + :return: The metadata of this V1JobList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1JobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1JobList. + - :param metadata: The metadata of this V1JobList. + :param metadata: The metadata of this V1JobList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1JobList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_job_spec.py b/kubernetes/client/models/v1_job_spec.py index 6cfdc4bcb2..fd14c6dfba 100644 --- a/kubernetes/client/models/v1_job_spec.py +++ b/kubernetes/client/models/v1_job_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1JobSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active_deadline_seconds': 'int', 'backoff_limit': 'int', 'completions': 'int', @@ -52,10 +52,8 @@ class V1JobSpec(object): 'ttl_seconds_after_finished': 'ttlSecondsAfterFinished' } - def __init__(self, active_deadline_seconds=None, backoff_limit=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None, ttl_seconds_after_finished=None): - """ - V1JobSpec - a model defined in Swagger - """ + def __init__(self, active_deadline_seconds=None, backoff_limit=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None, ttl_seconds_after_finished=None): # noqa: E501 + """V1JobSpec - a model defined in OpenAPI""" # noqa: E501 self._active_deadline_seconds = None self._backoff_limit = None @@ -68,39 +66,39 @@ def __init__(self, active_deadline_seconds=None, backoff_limit=None, completions self.discriminator = None if active_deadline_seconds is not None: - self.active_deadline_seconds = active_deadline_seconds + self.active_deadline_seconds = active_deadline_seconds if backoff_limit is not None: - self.backoff_limit = backoff_limit + self.backoff_limit = backoff_limit if completions is not None: - self.completions = completions + self.completions = completions if manual_selector is not None: - self.manual_selector = manual_selector + self.manual_selector = manual_selector if parallelism is not None: - self.parallelism = parallelism + self.parallelism = parallelism if selector is not None: - self.selector = selector + self.selector = selector self.template = template if ttl_seconds_after_finished is not None: - self.ttl_seconds_after_finished = ttl_seconds_after_finished + self.ttl_seconds_after_finished = ttl_seconds_after_finished @property def active_deadline_seconds(self): - """ - Gets the active_deadline_seconds of this V1JobSpec. - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + """Gets the active_deadline_seconds of this V1JobSpec. # noqa: E501 + + Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer # noqa: E501 - :return: The active_deadline_seconds of this V1JobSpec. + :return: The active_deadline_seconds of this V1JobSpec. # noqa: E501 :rtype: int """ return self._active_deadline_seconds @active_deadline_seconds.setter def active_deadline_seconds(self, active_deadline_seconds): - """ - Sets the active_deadline_seconds of this V1JobSpec. - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + """Sets the active_deadline_seconds of this V1JobSpec. - :param active_deadline_seconds: The active_deadline_seconds of this V1JobSpec. + Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer # noqa: E501 + + :param active_deadline_seconds: The active_deadline_seconds of this V1JobSpec. # noqa: E501 :type: int """ @@ -108,22 +106,22 @@ def active_deadline_seconds(self, active_deadline_seconds): @property def backoff_limit(self): - """ - Gets the backoff_limit of this V1JobSpec. - Specifies the number of retries before marking this job failed. Defaults to 6 + """Gets the backoff_limit of this V1JobSpec. # noqa: E501 + + Specifies the number of retries before marking this job failed. Defaults to 6 # noqa: E501 - :return: The backoff_limit of this V1JobSpec. + :return: The backoff_limit of this V1JobSpec. # noqa: E501 :rtype: int """ return self._backoff_limit @backoff_limit.setter def backoff_limit(self, backoff_limit): - """ - Sets the backoff_limit of this V1JobSpec. - Specifies the number of retries before marking this job failed. Defaults to 6 + """Sets the backoff_limit of this V1JobSpec. + + Specifies the number of retries before marking this job failed. Defaults to 6 # noqa: E501 - :param backoff_limit: The backoff_limit of this V1JobSpec. + :param backoff_limit: The backoff_limit of this V1JobSpec. # noqa: E501 :type: int """ @@ -131,22 +129,22 @@ def backoff_limit(self, backoff_limit): @property def completions(self): - """ - Gets the completions of this V1JobSpec. - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Gets the completions of this V1JobSpec. # noqa: E501 - :return: The completions of this V1JobSpec. + Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 + + :return: The completions of this V1JobSpec. # noqa: E501 :rtype: int """ return self._completions @completions.setter def completions(self, completions): - """ - Sets the completions of this V1JobSpec. - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Sets the completions of this V1JobSpec. + + Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 - :param completions: The completions of this V1JobSpec. + :param completions: The completions of this V1JobSpec. # noqa: E501 :type: int """ @@ -154,22 +152,22 @@ def completions(self, completions): @property def manual_selector(self): - """ - Gets the manual_selector of this V1JobSpec. - manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + """Gets the manual_selector of this V1JobSpec. # noqa: E501 + + manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector # noqa: E501 - :return: The manual_selector of this V1JobSpec. + :return: The manual_selector of this V1JobSpec. # noqa: E501 :rtype: bool """ return self._manual_selector @manual_selector.setter def manual_selector(self, manual_selector): - """ - Sets the manual_selector of this V1JobSpec. - manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector + """Sets the manual_selector of this V1JobSpec. - :param manual_selector: The manual_selector of this V1JobSpec. + manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector # noqa: E501 + + :param manual_selector: The manual_selector of this V1JobSpec. # noqa: E501 :type: bool """ @@ -177,22 +175,22 @@ def manual_selector(self, manual_selector): @property def parallelism(self): - """ - Gets the parallelism of this V1JobSpec. - Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Gets the parallelism of this V1JobSpec. # noqa: E501 + + Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 - :return: The parallelism of this V1JobSpec. + :return: The parallelism of this V1JobSpec. # noqa: E501 :rtype: int """ return self._parallelism @parallelism.setter def parallelism(self, parallelism): - """ - Sets the parallelism of this V1JobSpec. - Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Sets the parallelism of this V1JobSpec. + + Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 - :param parallelism: The parallelism of this V1JobSpec. + :param parallelism: The parallelism of this V1JobSpec. # noqa: E501 :type: int """ @@ -200,22 +198,20 @@ def parallelism(self, parallelism): @property def selector(self): - """ - Gets the selector of this V1JobSpec. - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1JobSpec. # noqa: E501 - :return: The selector of this V1JobSpec. + + :return: The selector of this V1JobSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1JobSpec. - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1JobSpec. + - :param selector: The selector of this V1JobSpec. + :param selector: The selector of this V1JobSpec. # noqa: E501 :type: V1LabelSelector """ @@ -223,59 +219,55 @@ def selector(self, selector): @property def template(self): - """ - Gets the template of this V1JobSpec. - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Gets the template of this V1JobSpec. # noqa: E501 + - :return: The template of this V1JobSpec. + :return: The template of this V1JobSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1JobSpec. - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Sets the template of this V1JobSpec. - :param template: The template of this V1JobSpec. + + :param template: The template of this V1JobSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def ttl_seconds_after_finished(self): - """ - Gets the ttl_seconds_after_finished of this V1JobSpec. - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + """Gets the ttl_seconds_after_finished of this V1JobSpec. # noqa: E501 + + ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. # noqa: E501 - :return: The ttl_seconds_after_finished of this V1JobSpec. + :return: The ttl_seconds_after_finished of this V1JobSpec. # noqa: E501 :rtype: int """ return self._ttl_seconds_after_finished @ttl_seconds_after_finished.setter def ttl_seconds_after_finished(self, ttl_seconds_after_finished): - """ - Sets the ttl_seconds_after_finished of this V1JobSpec. - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + """Sets the ttl_seconds_after_finished of this V1JobSpec. + + ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. # noqa: E501 - :param ttl_seconds_after_finished: The ttl_seconds_after_finished of this V1JobSpec. + :param ttl_seconds_after_finished: The ttl_seconds_after_finished of this V1JobSpec. # noqa: E501 :type: int """ self._ttl_seconds_after_finished = ttl_seconds_after_finished def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -296,28 +288,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1JobSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index cfa3b50c26..2a32a69df2 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1JobStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active': 'int', 'completion_time': 'datetime', 'conditions': 'list[V1JobCondition]', @@ -48,10 +48,8 @@ class V1JobStatus(object): 'succeeded': 'succeeded' } - def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): - """ - V1JobStatus - a model defined in Swagger - """ + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): # noqa: E501 + """V1JobStatus - a model defined in OpenAPI""" # noqa: E501 self._active = None self._completion_time = None @@ -62,36 +60,36 @@ def __init__(self, active=None, completion_time=None, conditions=None, failed=No self.discriminator = None if active is not None: - self.active = active + self.active = active if completion_time is not None: - self.completion_time = completion_time + self.completion_time = completion_time if conditions is not None: - self.conditions = conditions + self.conditions = conditions if failed is not None: - self.failed = failed + self.failed = failed if start_time is not None: - self.start_time = start_time + self.start_time = start_time if succeeded is not None: - self.succeeded = succeeded + self.succeeded = succeeded @property def active(self): - """ - Gets the active of this V1JobStatus. - The number of actively running pods. + """Gets the active of this V1JobStatus. # noqa: E501 + + The number of actively running pods. # noqa: E501 - :return: The active of this V1JobStatus. + :return: The active of this V1JobStatus. # noqa: E501 :rtype: int """ return self._active @active.setter def active(self, active): - """ - Sets the active of this V1JobStatus. - The number of actively running pods. + """Sets the active of this V1JobStatus. + + The number of actively running pods. # noqa: E501 - :param active: The active of this V1JobStatus. + :param active: The active of this V1JobStatus. # noqa: E501 :type: int """ @@ -99,22 +97,22 @@ def active(self, active): @property def completion_time(self): - """ - Gets the completion_time of this V1JobStatus. - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + """Gets the completion_time of this V1JobStatus. # noqa: E501 + + Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. # noqa: E501 - :return: The completion_time of this V1JobStatus. + :return: The completion_time of this V1JobStatus. # noqa: E501 :rtype: datetime """ return self._completion_time @completion_time.setter def completion_time(self, completion_time): - """ - Sets the completion_time of this V1JobStatus. - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + """Sets the completion_time of this V1JobStatus. - :param completion_time: The completion_time of this V1JobStatus. + Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. # noqa: E501 + + :param completion_time: The completion_time of this V1JobStatus. # noqa: E501 :type: datetime """ @@ -122,22 +120,22 @@ def completion_time(self, completion_time): @property def conditions(self): - """ - Gets the conditions of this V1JobStatus. - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Gets the conditions of this V1JobStatus. # noqa: E501 - :return: The conditions of this V1JobStatus. + The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 + + :return: The conditions of this V1JobStatus. # noqa: E501 :rtype: list[V1JobCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1JobStatus. - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + """Sets the conditions of this V1JobStatus. + + The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ # noqa: E501 - :param conditions: The conditions of this V1JobStatus. + :param conditions: The conditions of this V1JobStatus. # noqa: E501 :type: list[V1JobCondition] """ @@ -145,22 +143,22 @@ def conditions(self, conditions): @property def failed(self): - """ - Gets the failed of this V1JobStatus. - The number of pods which reached phase Failed. + """Gets the failed of this V1JobStatus. # noqa: E501 + + The number of pods which reached phase Failed. # noqa: E501 - :return: The failed of this V1JobStatus. + :return: The failed of this V1JobStatus. # noqa: E501 :rtype: int """ return self._failed @failed.setter def failed(self, failed): - """ - Sets the failed of this V1JobStatus. - The number of pods which reached phase Failed. + """Sets the failed of this V1JobStatus. + + The number of pods which reached phase Failed. # noqa: E501 - :param failed: The failed of this V1JobStatus. + :param failed: The failed of this V1JobStatus. # noqa: E501 :type: int """ @@ -168,22 +166,22 @@ def failed(self, failed): @property def start_time(self): - """ - Gets the start_time of this V1JobStatus. - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + """Gets the start_time of this V1JobStatus. # noqa: E501 - :return: The start_time of this V1JobStatus. + Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. # noqa: E501 + + :return: The start_time of this V1JobStatus. # noqa: E501 :rtype: datetime """ return self._start_time @start_time.setter def start_time(self, start_time): - """ - Sets the start_time of this V1JobStatus. - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + """Sets the start_time of this V1JobStatus. - :param start_time: The start_time of this V1JobStatus. + Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. # noqa: E501 + + :param start_time: The start_time of this V1JobStatus. # noqa: E501 :type: datetime """ @@ -191,34 +189,32 @@ def start_time(self, start_time): @property def succeeded(self): - """ - Gets the succeeded of this V1JobStatus. - The number of pods which reached phase Succeeded. + """Gets the succeeded of this V1JobStatus. # noqa: E501 + + The number of pods which reached phase Succeeded. # noqa: E501 - :return: The succeeded of this V1JobStatus. + :return: The succeeded of this V1JobStatus. # noqa: E501 :rtype: int """ return self._succeeded @succeeded.setter def succeeded(self, succeeded): - """ - Sets the succeeded of this V1JobStatus. - The number of pods which reached phase Succeeded. + """Sets the succeeded of this V1JobStatus. + + The number of pods which reached phase Succeeded. # noqa: E501 - :param succeeded: The succeeded of this V1JobStatus. + :param succeeded: The succeeded of this V1JobStatus. # noqa: E501 :type: int """ self._succeeded = succeeded def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +235,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1JobStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_key_to_path.py b/kubernetes/client/models/v1_key_to_path.py index 8200097fe2..1aabe856bc 100644 --- a/kubernetes/client/models/v1_key_to_path.py +++ b/kubernetes/client/models/v1_key_to_path.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1KeyToPath(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'mode': 'int', 'path': 'str' @@ -42,10 +42,8 @@ class V1KeyToPath(object): 'path': 'path' } - def __init__(self, key=None, mode=None, path=None): - """ - V1KeyToPath - a model defined in Swagger - """ + def __init__(self, key=None, mode=None, path=None): # noqa: E501 + """V1KeyToPath - a model defined in OpenAPI""" # noqa: E501 self._key = None self._mode = None @@ -54,52 +52,52 @@ def __init__(self, key=None, mode=None, path=None): self.key = key if mode is not None: - self.mode = mode + self.mode = mode self.path = path @property def key(self): - """ - Gets the key of this V1KeyToPath. - The key to project. + """Gets the key of this V1KeyToPath. # noqa: E501 - :return: The key of this V1KeyToPath. + The key to project. # noqa: E501 + + :return: The key of this V1KeyToPath. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1KeyToPath. - The key to project. + """Sets the key of this V1KeyToPath. - :param key: The key of this V1KeyToPath. + The key to project. # noqa: E501 + + :param key: The key of this V1KeyToPath. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def mode(self): - """ - Gets the mode of this V1KeyToPath. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the mode of this V1KeyToPath. # noqa: E501 - :return: The mode of this V1KeyToPath. + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :return: The mode of this V1KeyToPath. # noqa: E501 :rtype: int """ return self._mode @mode.setter def mode(self, mode): - """ - Sets the mode of this V1KeyToPath. - Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the mode of this V1KeyToPath. + + Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :param mode: The mode of this V1KeyToPath. + :param mode: The mode of this V1KeyToPath. # noqa: E501 :type: int """ @@ -107,36 +105,34 @@ def mode(self, mode): @property def path(self): - """ - Gets the path of this V1KeyToPath. - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + """Gets the path of this V1KeyToPath. # noqa: E501 + + The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 - :return: The path of this V1KeyToPath. + :return: The path of this V1KeyToPath. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1KeyToPath. - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + """Sets the path of this V1KeyToPath. + + The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 - :param path: The path of this V1KeyToPath. + :param path: The path of this V1KeyToPath. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1KeyToPath): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_label_selector.py b/kubernetes/client/models/v1_label_selector.py index bbe5218686..c1752f3054 100644 --- a/kubernetes/client/models/v1_label_selector.py +++ b/kubernetes/client/models/v1_label_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LabelSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'match_expressions': 'list[V1LabelSelectorRequirement]', 'match_labels': 'dict(str, str)' } @@ -40,38 +40,36 @@ class V1LabelSelector(object): 'match_labels': 'matchLabels' } - def __init__(self, match_expressions=None, match_labels=None): - """ - V1LabelSelector - a model defined in Swagger - """ + def __init__(self, match_expressions=None, match_labels=None): # noqa: E501 + """V1LabelSelector - a model defined in OpenAPI""" # noqa: E501 self._match_expressions = None self._match_labels = None self.discriminator = None if match_expressions is not None: - self.match_expressions = match_expressions + self.match_expressions = match_expressions if match_labels is not None: - self.match_labels = match_labels + self.match_labels = match_labels @property def match_expressions(self): - """ - Gets the match_expressions of this V1LabelSelector. - matchExpressions is a list of label selector requirements. The requirements are ANDed. + """Gets the match_expressions of this V1LabelSelector. # noqa: E501 + + matchExpressions is a list of label selector requirements. The requirements are ANDed. # noqa: E501 - :return: The match_expressions of this V1LabelSelector. + :return: The match_expressions of this V1LabelSelector. # noqa: E501 :rtype: list[V1LabelSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): - """ - Sets the match_expressions of this V1LabelSelector. - matchExpressions is a list of label selector requirements. The requirements are ANDed. + """Sets the match_expressions of this V1LabelSelector. - :param match_expressions: The match_expressions of this V1LabelSelector. + matchExpressions is a list of label selector requirements. The requirements are ANDed. # noqa: E501 + + :param match_expressions: The match_expressions of this V1LabelSelector. # noqa: E501 :type: list[V1LabelSelectorRequirement] """ @@ -79,34 +77,32 @@ def match_expressions(self, match_expressions): @property def match_labels(self): - """ - Gets the match_labels of this V1LabelSelector. - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + """Gets the match_labels of this V1LabelSelector. # noqa: E501 + + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. # noqa: E501 - :return: The match_labels of this V1LabelSelector. + :return: The match_labels of this V1LabelSelector. # noqa: E501 :rtype: dict(str, str) """ return self._match_labels @match_labels.setter def match_labels(self, match_labels): - """ - Sets the match_labels of this V1LabelSelector. - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + """Sets the match_labels of this V1LabelSelector. + + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. # noqa: E501 - :param match_labels: The match_labels of this V1LabelSelector. + :param match_labels: The match_labels of this V1LabelSelector. # noqa: E501 :type: dict(str, str) """ self._match_labels = match_labels def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LabelSelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_label_selector_requirement.py b/kubernetes/client/models/v1_label_selector_requirement.py index d55aeaab52..9332c9e52d 100644 --- a/kubernetes/client/models/v1_label_selector_requirement.py +++ b/kubernetes/client/models/v1_label_selector_requirement.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LabelSelectorRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'operator': 'str', 'values': 'list[str]' @@ -42,10 +42,8 @@ class V1LabelSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): - """ - V1LabelSelectorRequirement - a model defined in Swagger - """ + def __init__(self, key=None, operator=None, values=None): # noqa: E501 + """V1LabelSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 self._key = None self._operator = None @@ -55,88 +53,86 @@ def __init__(self, key=None, operator=None, values=None): self.key = key self.operator = operator if values is not None: - self.values = values + self.values = values @property def key(self): - """ - Gets the key of this V1LabelSelectorRequirement. - key is the label key that the selector applies to. + """Gets the key of this V1LabelSelectorRequirement. # noqa: E501 - :return: The key of this V1LabelSelectorRequirement. + key is the label key that the selector applies to. # noqa: E501 + + :return: The key of this V1LabelSelectorRequirement. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1LabelSelectorRequirement. - key is the label key that the selector applies to. + """Sets the key of this V1LabelSelectorRequirement. - :param key: The key of this V1LabelSelectorRequirement. + key is the label key that the selector applies to. # noqa: E501 + + :param key: The key of this V1LabelSelectorRequirement. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def operator(self): - """ - Gets the operator of this V1LabelSelectorRequirement. - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + """Gets the operator of this V1LabelSelectorRequirement. # noqa: E501 - :return: The operator of this V1LabelSelectorRequirement. + operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. # noqa: E501 + + :return: The operator of this V1LabelSelectorRequirement. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """ - Sets the operator of this V1LabelSelectorRequirement. - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + """Sets the operator of this V1LabelSelectorRequirement. + + operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. # noqa: E501 - :param operator: The operator of this V1LabelSelectorRequirement. + :param operator: The operator of this V1LabelSelectorRequirement. # noqa: E501 :type: str """ if operator is None: - raise ValueError("Invalid value for `operator`, must not be `None`") + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @property def values(self): - """ - Gets the values of this V1LabelSelectorRequirement. - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """Gets the values of this V1LabelSelectorRequirement. # noqa: E501 + + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 - :return: The values of this V1LabelSelectorRequirement. + :return: The values of this V1LabelSelectorRequirement. # noqa: E501 :rtype: list[str] """ return self._values @values.setter def values(self, values): - """ - Sets the values of this V1LabelSelectorRequirement. - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """Sets the values of this V1LabelSelectorRequirement. + + values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 - :param values: The values of this V1LabelSelectorRequirement. + :param values: The values of this V1LabelSelectorRequirement. # noqa: E501 :type: list[str] """ self._values = values def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LabelSelectorRequirement): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_lease.py b/kubernetes/client/models/v1_lease.py index 48bb160e26..e45e89b3e6 100644 --- a/kubernetes/client/models/v1_lease.py +++ b/kubernetes/client/models/v1_lease.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Lease(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1Lease(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1Lease - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1Lease - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1Lease. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Lease. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Lease. + :return: The api_version of this V1Lease. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Lease. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Lease. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Lease. + :param api_version: The api_version of this V1Lease. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Lease. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Lease. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Lease. + :return: The kind of this V1Lease. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Lease. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Lease. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Lease. + :param kind: The kind of this V1Lease. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Lease. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Lease. # noqa: E501 + - :return: The metadata of this V1Lease. + :return: The metadata of this V1Lease. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Lease. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Lease. + - :param metadata: The metadata of this V1Lease. + :param metadata: The metadata of this V1Lease. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Lease. - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Lease. # noqa: E501 + - :return: The spec of this V1Lease. + :return: The spec of this V1Lease. # noqa: E501 :rtype: V1LeaseSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Lease. - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Lease. + - :param spec: The spec of this V1Lease. + :param spec: The spec of this V1Lease. # noqa: E501 :type: V1LeaseSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Lease): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_lease_list.py b/kubernetes/client/models/v1_lease_list.py index ac6c62ae51..d41e338c74 100644 --- a/kubernetes/client/models/v1_lease_list.py +++ b/kubernetes/client/models/v1_lease_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LeaseList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Lease]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1LeaseList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1LeaseList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1LeaseList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1LeaseList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1LeaseList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1LeaseList. + :return: The api_version of this V1LeaseList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1LeaseList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1LeaseList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1LeaseList. + :param api_version: The api_version of this V1LeaseList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1LeaseList. - Items is a list of schema objects. + """Gets the items of this V1LeaseList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1LeaseList. + :return: The items of this V1LeaseList. # noqa: E501 :rtype: list[V1Lease] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1LeaseList. - Items is a list of schema objects. + """Sets the items of this V1LeaseList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1LeaseList. + :param items: The items of this V1LeaseList. # noqa: E501 :type: list[V1Lease] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1LeaseList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1LeaseList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1LeaseList. + :return: The kind of this V1LeaseList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1LeaseList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1LeaseList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1LeaseList. + :param kind: The kind of this V1LeaseList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1LeaseList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1LeaseList. # noqa: E501 + - :return: The metadata of this V1LeaseList. + :return: The metadata of this V1LeaseList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1LeaseList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1LeaseList. + - :param metadata: The metadata of this V1LeaseList. + :param metadata: The metadata of this V1LeaseList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LeaseList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_lease_spec.py b/kubernetes/client/models/v1_lease_spec.py index dc60591e9a..cbf2a2027a 100644 --- a/kubernetes/client/models/v1_lease_spec.py +++ b/kubernetes/client/models/v1_lease_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LeaseSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'acquire_time': 'datetime', 'holder_identity': 'str', 'lease_duration_seconds': 'int', @@ -46,10 +46,8 @@ class V1LeaseSpec(object): 'renew_time': 'renewTime' } - def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): - """ - V1LeaseSpec - a model defined in Swagger - """ + def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): # noqa: E501 + """V1LeaseSpec - a model defined in OpenAPI""" # noqa: E501 self._acquire_time = None self._holder_identity = None @@ -59,34 +57,34 @@ def __init__(self, acquire_time=None, holder_identity=None, lease_duration_secon self.discriminator = None if acquire_time is not None: - self.acquire_time = acquire_time + self.acquire_time = acquire_time if holder_identity is not None: - self.holder_identity = holder_identity + self.holder_identity = holder_identity if lease_duration_seconds is not None: - self.lease_duration_seconds = lease_duration_seconds + self.lease_duration_seconds = lease_duration_seconds if lease_transitions is not None: - self.lease_transitions = lease_transitions + self.lease_transitions = lease_transitions if renew_time is not None: - self.renew_time = renew_time + self.renew_time = renew_time @property def acquire_time(self): - """ - Gets the acquire_time of this V1LeaseSpec. - acquireTime is a time when the current lease was acquired. + """Gets the acquire_time of this V1LeaseSpec. # noqa: E501 - :return: The acquire_time of this V1LeaseSpec. + acquireTime is a time when the current lease was acquired. # noqa: E501 + + :return: The acquire_time of this V1LeaseSpec. # noqa: E501 :rtype: datetime """ return self._acquire_time @acquire_time.setter def acquire_time(self, acquire_time): - """ - Sets the acquire_time of this V1LeaseSpec. - acquireTime is a time when the current lease was acquired. + """Sets the acquire_time of this V1LeaseSpec. - :param acquire_time: The acquire_time of this V1LeaseSpec. + acquireTime is a time when the current lease was acquired. # noqa: E501 + + :param acquire_time: The acquire_time of this V1LeaseSpec. # noqa: E501 :type: datetime """ @@ -94,22 +92,22 @@ def acquire_time(self, acquire_time): @property def holder_identity(self): - """ - Gets the holder_identity of this V1LeaseSpec. - holderIdentity contains the identity of the holder of a current lease. + """Gets the holder_identity of this V1LeaseSpec. # noqa: E501 + + holderIdentity contains the identity of the holder of a current lease. # noqa: E501 - :return: The holder_identity of this V1LeaseSpec. + :return: The holder_identity of this V1LeaseSpec. # noqa: E501 :rtype: str """ return self._holder_identity @holder_identity.setter def holder_identity(self, holder_identity): - """ - Sets the holder_identity of this V1LeaseSpec. - holderIdentity contains the identity of the holder of a current lease. + """Sets the holder_identity of this V1LeaseSpec. + + holderIdentity contains the identity of the holder of a current lease. # noqa: E501 - :param holder_identity: The holder_identity of this V1LeaseSpec. + :param holder_identity: The holder_identity of this V1LeaseSpec. # noqa: E501 :type: str """ @@ -117,22 +115,22 @@ def holder_identity(self, holder_identity): @property def lease_duration_seconds(self): - """ - Gets the lease_duration_seconds of this V1LeaseSpec. - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + """Gets the lease_duration_seconds of this V1LeaseSpec. # noqa: E501 + + leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. # noqa: E501 - :return: The lease_duration_seconds of this V1LeaseSpec. + :return: The lease_duration_seconds of this V1LeaseSpec. # noqa: E501 :rtype: int """ return self._lease_duration_seconds @lease_duration_seconds.setter def lease_duration_seconds(self, lease_duration_seconds): - """ - Sets the lease_duration_seconds of this V1LeaseSpec. - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + """Sets the lease_duration_seconds of this V1LeaseSpec. + + leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. # noqa: E501 - :param lease_duration_seconds: The lease_duration_seconds of this V1LeaseSpec. + :param lease_duration_seconds: The lease_duration_seconds of this V1LeaseSpec. # noqa: E501 :type: int """ @@ -140,22 +138,22 @@ def lease_duration_seconds(self, lease_duration_seconds): @property def lease_transitions(self): - """ - Gets the lease_transitions of this V1LeaseSpec. - leaseTransitions is the number of transitions of a lease between holders. + """Gets the lease_transitions of this V1LeaseSpec. # noqa: E501 + + leaseTransitions is the number of transitions of a lease between holders. # noqa: E501 - :return: The lease_transitions of this V1LeaseSpec. + :return: The lease_transitions of this V1LeaseSpec. # noqa: E501 :rtype: int """ return self._lease_transitions @lease_transitions.setter def lease_transitions(self, lease_transitions): - """ - Sets the lease_transitions of this V1LeaseSpec. - leaseTransitions is the number of transitions of a lease between holders. + """Sets the lease_transitions of this V1LeaseSpec. - :param lease_transitions: The lease_transitions of this V1LeaseSpec. + leaseTransitions is the number of transitions of a lease between holders. # noqa: E501 + + :param lease_transitions: The lease_transitions of this V1LeaseSpec. # noqa: E501 :type: int """ @@ -163,34 +161,32 @@ def lease_transitions(self, lease_transitions): @property def renew_time(self): - """ - Gets the renew_time of this V1LeaseSpec. - renewTime is a time when the current holder of a lease has last updated the lease. + """Gets the renew_time of this V1LeaseSpec. # noqa: E501 - :return: The renew_time of this V1LeaseSpec. + renewTime is a time when the current holder of a lease has last updated the lease. # noqa: E501 + + :return: The renew_time of this V1LeaseSpec. # noqa: E501 :rtype: datetime """ return self._renew_time @renew_time.setter def renew_time(self, renew_time): - """ - Sets the renew_time of this V1LeaseSpec. - renewTime is a time when the current holder of a lease has last updated the lease. + """Sets the renew_time of this V1LeaseSpec. - :param renew_time: The renew_time of this V1LeaseSpec. + renewTime is a time when the current holder of a lease has last updated the lease. # noqa: E501 + + :param renew_time: The renew_time of this V1LeaseSpec. # noqa: E501 :type: datetime """ self._renew_time = renew_time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LeaseSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_lifecycle.py b/kubernetes/client/models/v1_lifecycle.py index f82b2bd8cd..0a1fae0ed8 100644 --- a/kubernetes/client/models/v1_lifecycle.py +++ b/kubernetes/client/models/v1_lifecycle.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Lifecycle(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'post_start': 'V1Handler', 'pre_stop': 'V1Handler' } @@ -40,38 +40,34 @@ class V1Lifecycle(object): 'pre_stop': 'preStop' } - def __init__(self, post_start=None, pre_stop=None): - """ - V1Lifecycle - a model defined in Swagger - """ + def __init__(self, post_start=None, pre_stop=None): # noqa: E501 + """V1Lifecycle - a model defined in OpenAPI""" # noqa: E501 self._post_start = None self._pre_stop = None self.discriminator = None if post_start is not None: - self.post_start = post_start + self.post_start = post_start if pre_stop is not None: - self.pre_stop = pre_stop + self.pre_stop = pre_stop @property def post_start(self): - """ - Gets the post_start of this V1Lifecycle. - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + """Gets the post_start of this V1Lifecycle. # noqa: E501 + - :return: The post_start of this V1Lifecycle. + :return: The post_start of this V1Lifecycle. # noqa: E501 :rtype: V1Handler """ return self._post_start @post_start.setter def post_start(self, post_start): - """ - Sets the post_start of this V1Lifecycle. - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + """Sets the post_start of this V1Lifecycle. - :param post_start: The post_start of this V1Lifecycle. + + :param post_start: The post_start of this V1Lifecycle. # noqa: E501 :type: V1Handler """ @@ -79,34 +75,30 @@ def post_start(self, post_start): @property def pre_stop(self): - """ - Gets the pre_stop of this V1Lifecycle. - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + """Gets the pre_stop of this V1Lifecycle. # noqa: E501 + - :return: The pre_stop of this V1Lifecycle. + :return: The pre_stop of this V1Lifecycle. # noqa: E501 :rtype: V1Handler """ return self._pre_stop @pre_stop.setter def pre_stop(self, pre_stop): - """ - Sets the pre_stop of this V1Lifecycle. - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + """Sets the pre_stop of this V1Lifecycle. + - :param pre_stop: The pre_stop of this V1Lifecycle. + :param pre_stop: The pre_stop of this V1Lifecycle. # noqa: E501 :type: V1Handler """ self._pre_stop = pre_stop def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Lifecycle): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_limit_range.py b/kubernetes/client/models/v1_limit_range.py index b770a3cbb5..4adee37fad 100644 --- a/kubernetes/client/models/v1_limit_range.py +++ b/kubernetes/client/models/v1_limit_range.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LimitRange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1LimitRange(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1LimitRange - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1LimitRange - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1LimitRange. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1LimitRange. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1LimitRange. + :return: The api_version of this V1LimitRange. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1LimitRange. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1LimitRange. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1LimitRange. + :param api_version: The api_version of this V1LimitRange. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1LimitRange. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1LimitRange. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1LimitRange. + :return: The kind of this V1LimitRange. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1LimitRange. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1LimitRange. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1LimitRange. + :param kind: The kind of this V1LimitRange. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1LimitRange. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1LimitRange. # noqa: E501 + - :return: The metadata of this V1LimitRange. + :return: The metadata of this V1LimitRange. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1LimitRange. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1LimitRange. + - :param metadata: The metadata of this V1LimitRange. + :param metadata: The metadata of this V1LimitRange. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1LimitRange. - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1LimitRange. # noqa: E501 + - :return: The spec of this V1LimitRange. + :return: The spec of this V1LimitRange. # noqa: E501 :rtype: V1LimitRangeSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1LimitRange. - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1LimitRange. + - :param spec: The spec of this V1LimitRange. + :param spec: The spec of this V1LimitRange. # noqa: E501 :type: V1LimitRangeSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LimitRange): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index f022d15b62..92cf9b9ec6 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LimitRangeItem(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'default': 'dict(str, str)', 'default_request': 'dict(str, str)', 'max': 'dict(str, str)', @@ -48,10 +48,8 @@ class V1LimitRangeItem(object): 'type': 'type' } - def __init__(self, default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None): - """ - V1LimitRangeItem - a model defined in Swagger - """ + def __init__(self, default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None): # noqa: E501 + """V1LimitRangeItem - a model defined in OpenAPI""" # noqa: E501 self._default = None self._default_request = None @@ -62,36 +60,36 @@ def __init__(self, default=None, default_request=None, max=None, max_limit_reque self.discriminator = None if default is not None: - self.default = default + self.default = default if default_request is not None: - self.default_request = default_request + self.default_request = default_request if max is not None: - self.max = max + self.max = max if max_limit_request_ratio is not None: - self.max_limit_request_ratio = max_limit_request_ratio + self.max_limit_request_ratio = max_limit_request_ratio if min is not None: - self.min = min + self.min = min if type is not None: - self.type = type + self.type = type @property def default(self): - """ - Gets the default of this V1LimitRangeItem. - Default resource requirement limit value by resource name if resource limit is omitted. + """Gets the default of this V1LimitRangeItem. # noqa: E501 + + Default resource requirement limit value by resource name if resource limit is omitted. # noqa: E501 - :return: The default of this V1LimitRangeItem. + :return: The default of this V1LimitRangeItem. # noqa: E501 :rtype: dict(str, str) """ return self._default @default.setter def default(self, default): - """ - Sets the default of this V1LimitRangeItem. - Default resource requirement limit value by resource name if resource limit is omitted. + """Sets the default of this V1LimitRangeItem. + + Default resource requirement limit value by resource name if resource limit is omitted. # noqa: E501 - :param default: The default of this V1LimitRangeItem. + :param default: The default of this V1LimitRangeItem. # noqa: E501 :type: dict(str, str) """ @@ -99,22 +97,22 @@ def default(self, default): @property def default_request(self): - """ - Gets the default_request of this V1LimitRangeItem. - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + """Gets the default_request of this V1LimitRangeItem. # noqa: E501 + + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. # noqa: E501 - :return: The default_request of this V1LimitRangeItem. + :return: The default_request of this V1LimitRangeItem. # noqa: E501 :rtype: dict(str, str) """ return self._default_request @default_request.setter def default_request(self, default_request): - """ - Sets the default_request of this V1LimitRangeItem. - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + """Sets the default_request of this V1LimitRangeItem. - :param default_request: The default_request of this V1LimitRangeItem. + DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. # noqa: E501 + + :param default_request: The default_request of this V1LimitRangeItem. # noqa: E501 :type: dict(str, str) """ @@ -122,22 +120,22 @@ def default_request(self, default_request): @property def max(self): - """ - Gets the max of this V1LimitRangeItem. - Max usage constraints on this kind by resource name. + """Gets the max of this V1LimitRangeItem. # noqa: E501 - :return: The max of this V1LimitRangeItem. + Max usage constraints on this kind by resource name. # noqa: E501 + + :return: The max of this V1LimitRangeItem. # noqa: E501 :rtype: dict(str, str) """ return self._max @max.setter def max(self, max): - """ - Sets the max of this V1LimitRangeItem. - Max usage constraints on this kind by resource name. + """Sets the max of this V1LimitRangeItem. + + Max usage constraints on this kind by resource name. # noqa: E501 - :param max: The max of this V1LimitRangeItem. + :param max: The max of this V1LimitRangeItem. # noqa: E501 :type: dict(str, str) """ @@ -145,22 +143,22 @@ def max(self, max): @property def max_limit_request_ratio(self): - """ - Gets the max_limit_request_ratio of this V1LimitRangeItem. - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + """Gets the max_limit_request_ratio of this V1LimitRangeItem. # noqa: E501 + + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. # noqa: E501 - :return: The max_limit_request_ratio of this V1LimitRangeItem. + :return: The max_limit_request_ratio of this V1LimitRangeItem. # noqa: E501 :rtype: dict(str, str) """ return self._max_limit_request_ratio @max_limit_request_ratio.setter def max_limit_request_ratio(self, max_limit_request_ratio): - """ - Sets the max_limit_request_ratio of this V1LimitRangeItem. - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + """Sets the max_limit_request_ratio of this V1LimitRangeItem. + + MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. # noqa: E501 - :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. + :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. # noqa: E501 :type: dict(str, str) """ @@ -168,22 +166,22 @@ def max_limit_request_ratio(self, max_limit_request_ratio): @property def min(self): - """ - Gets the min of this V1LimitRangeItem. - Min usage constraints on this kind by resource name. + """Gets the min of this V1LimitRangeItem. # noqa: E501 - :return: The min of this V1LimitRangeItem. + Min usage constraints on this kind by resource name. # noqa: E501 + + :return: The min of this V1LimitRangeItem. # noqa: E501 :rtype: dict(str, str) """ return self._min @min.setter def min(self, min): - """ - Sets the min of this V1LimitRangeItem. - Min usage constraints on this kind by resource name. + """Sets the min of this V1LimitRangeItem. - :param min: The min of this V1LimitRangeItem. + Min usage constraints on this kind by resource name. # noqa: E501 + + :param min: The min of this V1LimitRangeItem. # noqa: E501 :type: dict(str, str) """ @@ -191,34 +189,32 @@ def min(self, min): @property def type(self): - """ - Gets the type of this V1LimitRangeItem. - Type of resource that this limit applies to. + """Gets the type of this V1LimitRangeItem. # noqa: E501 + + Type of resource that this limit applies to. # noqa: E501 - :return: The type of this V1LimitRangeItem. + :return: The type of this V1LimitRangeItem. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1LimitRangeItem. - Type of resource that this limit applies to. + """Sets the type of this V1LimitRangeItem. + + Type of resource that this limit applies to. # noqa: E501 - :param type: The type of this V1LimitRangeItem. + :param type: The type of this V1LimitRangeItem. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +235,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LimitRangeItem): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_limit_range_list.py b/kubernetes/client/models/v1_limit_range_list.py index 421a2930f2..324b65b49a 100644 --- a/kubernetes/client/models/v1_limit_range_list.py +++ b/kubernetes/client/models/v1_limit_range_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LimitRangeList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1LimitRange]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1LimitRangeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1LimitRangeList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1LimitRangeList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1LimitRangeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1LimitRangeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1LimitRangeList. + :return: The api_version of this V1LimitRangeList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1LimitRangeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1LimitRangeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1LimitRangeList. + :param api_version: The api_version of this V1LimitRangeList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1LimitRangeList. - Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Gets the items of this V1LimitRangeList. # noqa: E501 + + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 - :return: The items of this V1LimitRangeList. + :return: The items of this V1LimitRangeList. # noqa: E501 :rtype: list[V1LimitRange] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1LimitRangeList. - Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Sets the items of this V1LimitRangeList. + + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 - :param items: The items of this V1LimitRangeList. + :param items: The items of this V1LimitRangeList. # noqa: E501 :type: list[V1LimitRange] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1LimitRangeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1LimitRangeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1LimitRangeList. + :return: The kind of this V1LimitRangeList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1LimitRangeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1LimitRangeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1LimitRangeList. + :param kind: The kind of this V1LimitRangeList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1LimitRangeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1LimitRangeList. # noqa: E501 + - :return: The metadata of this V1LimitRangeList. + :return: The metadata of this V1LimitRangeList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1LimitRangeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1LimitRangeList. + - :param metadata: The metadata of this V1LimitRangeList. + :param metadata: The metadata of this V1LimitRangeList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LimitRangeList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_limit_range_spec.py b/kubernetes/client/models/v1_limit_range_spec.py index 33821b0412..687f11f83f 100644 --- a/kubernetes/client/models/v1_limit_range_spec.py +++ b/kubernetes/client/models/v1_limit_range_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LimitRangeSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'limits': 'list[V1LimitRangeItem]' } @@ -38,10 +38,8 @@ class V1LimitRangeSpec(object): 'limits': 'limits' } - def __init__(self, limits=None): - """ - V1LimitRangeSpec - a model defined in Swagger - """ + def __init__(self, limits=None): # noqa: E501 + """V1LimitRangeSpec - a model defined in OpenAPI""" # noqa: E501 self._limits = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, limits=None): @property def limits(self): - """ - Gets the limits of this V1LimitRangeSpec. - Limits is the list of LimitRangeItem objects that are enforced. + """Gets the limits of this V1LimitRangeSpec. # noqa: E501 + + Limits is the list of LimitRangeItem objects that are enforced. # noqa: E501 - :return: The limits of this V1LimitRangeSpec. + :return: The limits of this V1LimitRangeSpec. # noqa: E501 :rtype: list[V1LimitRangeItem] """ return self._limits @limits.setter def limits(self, limits): - """ - Sets the limits of this V1LimitRangeSpec. - Limits is the list of LimitRangeItem objects that are enforced. + """Sets the limits of this V1LimitRangeSpec. + + Limits is the list of LimitRangeItem objects that are enforced. # noqa: E501 - :param limits: The limits of this V1LimitRangeSpec. + :param limits: The limits of this V1LimitRangeSpec. # noqa: E501 :type: list[V1LimitRangeItem] """ if limits is None: - raise ValueError("Invalid value for `limits`, must not be `None`") + raise ValueError("Invalid value for `limits`, must not be `None`") # noqa: E501 self._limits = limits def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LimitRangeSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_list_meta.py b/kubernetes/client/models/v1_list_meta.py index 9767e73b47..5843c47863 100644 --- a/kubernetes/client/models/v1_list_meta.py +++ b/kubernetes/client/models/v1_list_meta.py @@ -3,103 +3,129 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ListMeta(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { '_continue': 'str', + 'remaining_item_count': 'int', 'resource_version': 'str', 'self_link': 'str' } attribute_map = { '_continue': 'continue', + 'remaining_item_count': 'remainingItemCount', 'resource_version': 'resourceVersion', 'self_link': 'selfLink' } - def __init__(self, _continue=None, resource_version=None, self_link=None): - """ - V1ListMeta - a model defined in Swagger - """ + def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None): # noqa: E501 + """V1ListMeta - a model defined in OpenAPI""" # noqa: E501 self.__continue = None + self._remaining_item_count = None self._resource_version = None self._self_link = None self.discriminator = None if _continue is not None: - self._continue = _continue + self._continue = _continue + if remaining_item_count is not None: + self.remaining_item_count = remaining_item_count if resource_version is not None: - self.resource_version = resource_version + self.resource_version = resource_version if self_link is not None: - self.self_link = self_link + self.self_link = self_link @property def _continue(self): - """ - Gets the _continue of this V1ListMeta. - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + """Gets the _continue of this V1ListMeta. # noqa: E501 + + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E501 - :return: The _continue of this V1ListMeta. + :return: The _continue of this V1ListMeta. # noqa: E501 :rtype: str """ return self.__continue @_continue.setter def _continue(self, _continue): - """ - Sets the _continue of this V1ListMeta. - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + """Sets the _continue of this V1ListMeta. + + continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E501 - :param _continue: The _continue of this V1ListMeta. + :param _continue: The _continue of this V1ListMeta. # noqa: E501 :type: str """ self.__continue = _continue @property - def resource_version(self): + def remaining_item_count(self): + """Gets the remaining_item_count of this V1ListMeta. # noqa: E501 + + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice. # noqa: E501 + + :return: The remaining_item_count of this V1ListMeta. # noqa: E501 + :rtype: int """ - Gets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + return self._remaining_item_count + + @remaining_item_count.setter + def remaining_item_count(self, remaining_item_count): + """Sets the remaining_item_count of this V1ListMeta. + + remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice. # noqa: E501 + + :param remaining_item_count: The remaining_item_count of this V1ListMeta. # noqa: E501 + :type: int + """ + + self._remaining_item_count = remaining_item_count + + @property + def resource_version(self): + """Gets the resource_version of this V1ListMeta. # noqa: E501 + + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 - :return: The resource_version of this V1ListMeta. + :return: The resource_version of this V1ListMeta. # noqa: E501 :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): - """ - Sets the resource_version of this V1ListMeta. - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + """Sets the resource_version of this V1ListMeta. + + String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 - :param resource_version: The resource_version of this V1ListMeta. + :param resource_version: The resource_version of this V1ListMeta. # noqa: E501 :type: str """ @@ -107,34 +133,32 @@ def resource_version(self, resource_version): @property def self_link(self): - """ - Gets the self_link of this V1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. + """Gets the self_link of this V1ListMeta. # noqa: E501 + + selfLink is a URL representing this object. Populated by the system. Read-only. # noqa: E501 - :return: The self_link of this V1ListMeta. + :return: The self_link of this V1ListMeta. # noqa: E501 :rtype: str """ return self._self_link @self_link.setter def self_link(self, self_link): - """ - Sets the self_link of this V1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. + """Sets the self_link of this V1ListMeta. - :param self_link: The self_link of this V1ListMeta. + selfLink is a URL representing this object. Populated by the system. Read-only. # noqa: E501 + + :param self_link: The self_link of this V1ListMeta. # noqa: E501 :type: str """ self._self_link = self_link def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ListMeta): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_load_balancer_ingress.py b/kubernetes/client/models/v1_load_balancer_ingress.py index 4ac1190dda..4a4fb82f86 100644 --- a/kubernetes/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_load_balancer_ingress.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LoadBalancerIngress(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hostname': 'str', 'ip': 'str' } @@ -40,38 +40,36 @@ class V1LoadBalancerIngress(object): 'ip': 'ip' } - def __init__(self, hostname=None, ip=None): - """ - V1LoadBalancerIngress - a model defined in Swagger - """ + def __init__(self, hostname=None, ip=None): # noqa: E501 + """V1LoadBalancerIngress - a model defined in OpenAPI""" # noqa: E501 self._hostname = None self._ip = None self.discriminator = None if hostname is not None: - self.hostname = hostname + self.hostname = hostname if ip is not None: - self.ip = ip + self.ip = ip @property def hostname(self): - """ - Gets the hostname of this V1LoadBalancerIngress. - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + """Gets the hostname of this V1LoadBalancerIngress. # noqa: E501 + + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501 - :return: The hostname of this V1LoadBalancerIngress. + :return: The hostname of this V1LoadBalancerIngress. # noqa: E501 :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): - """ - Sets the hostname of this V1LoadBalancerIngress. - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + """Sets the hostname of this V1LoadBalancerIngress. - :param hostname: The hostname of this V1LoadBalancerIngress. + Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501 + + :param hostname: The hostname of this V1LoadBalancerIngress. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def hostname(self, hostname): @property def ip(self): - """ - Gets the ip of this V1LoadBalancerIngress. - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """Gets the ip of this V1LoadBalancerIngress. # noqa: E501 + + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501 - :return: The ip of this V1LoadBalancerIngress. + :return: The ip of this V1LoadBalancerIngress. # noqa: E501 :rtype: str """ return self._ip @ip.setter def ip(self, ip): - """ - Sets the ip of this V1LoadBalancerIngress. - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """Sets the ip of this V1LoadBalancerIngress. + + IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501 - :param ip: The ip of this V1LoadBalancerIngress. + :param ip: The ip of this V1LoadBalancerIngress. # noqa: E501 :type: str """ self._ip = ip def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LoadBalancerIngress): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_load_balancer_status.py b/kubernetes/client/models/v1_load_balancer_status.py index 9811dd795a..6009c9a155 100644 --- a/kubernetes/client/models/v1_load_balancer_status.py +++ b/kubernetes/client/models/v1_load_balancer_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LoadBalancerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ingress': 'list[V1LoadBalancerIngress]' } @@ -38,47 +38,43 @@ class V1LoadBalancerStatus(object): 'ingress': 'ingress' } - def __init__(self, ingress=None): - """ - V1LoadBalancerStatus - a model defined in Swagger - """ + def __init__(self, ingress=None): # noqa: E501 + """V1LoadBalancerStatus - a model defined in OpenAPI""" # noqa: E501 self._ingress = None self.discriminator = None if ingress is not None: - self.ingress = ingress + self.ingress = ingress @property def ingress(self): - """ - Gets the ingress of this V1LoadBalancerStatus. - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + """Gets the ingress of this V1LoadBalancerStatus. # noqa: E501 + + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501 - :return: The ingress of this V1LoadBalancerStatus. + :return: The ingress of this V1LoadBalancerStatus. # noqa: E501 :rtype: list[V1LoadBalancerIngress] """ return self._ingress @ingress.setter def ingress(self, ingress): - """ - Sets the ingress of this V1LoadBalancerStatus. - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + """Sets the ingress of this V1LoadBalancerStatus. + + Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501 - :param ingress: The ingress of this V1LoadBalancerStatus. + :param ingress: The ingress of this V1LoadBalancerStatus. # noqa: E501 :type: list[V1LoadBalancerIngress] """ self._ingress = ingress def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LoadBalancerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_local_object_reference.py b/kubernetes/client/models/v1_local_object_reference.py index 6e47864a55..d2e2056664 100644 --- a/kubernetes/client/models/v1_local_object_reference.py +++ b/kubernetes/client/models/v1_local_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LocalObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str' } @@ -38,47 +38,43 @@ class V1LocalObjectReference(object): 'name': 'name' } - def __init__(self, name=None): - """ - V1LocalObjectReference - a model defined in Swagger - """ + def __init__(self, name=None): # noqa: E501 + """V1LocalObjectReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self.discriminator = None if name is not None: - self.name = name + self.name = name @property def name(self): - """ - Gets the name of this V1LocalObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1LocalObjectReference. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :return: The name of this V1LocalObjectReference. + :return: The name of this V1LocalObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1LocalObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1LocalObjectReference. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1LocalObjectReference. + :param name: The name of this V1LocalObjectReference. # noqa: E501 :type: str """ self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LocalObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_local_subject_access_review.py b/kubernetes/client/models/v1_local_subject_access_review.py index ad87abf17e..b17c143928 100644 --- a/kubernetes/client/models/v1_local_subject_access_review.py +++ b/kubernetes/client/models/v1_local_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LocalSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1LocalSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1LocalSubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1LocalSubjectAccessReview. # noqa: E501 - :return: The api_version of this V1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1LocalSubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1LocalSubjectAccessReview. - :param api_version: The api_version of this V1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1LocalSubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1LocalSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1LocalSubjectAccessReview. + :return: The kind of this V1LocalSubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1LocalSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1LocalSubjectAccessReview. + :param kind: The kind of this V1LocalSubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1LocalSubjectAccessReview. + """Gets the metadata of this V1LocalSubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1LocalSubjectAccessReview. + :return: The metadata of this V1LocalSubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1LocalSubjectAccessReview. + """Sets the metadata of this V1LocalSubjectAccessReview. + - :param metadata: The metadata of this V1LocalSubjectAccessReview. + :param metadata: The metadata of this V1LocalSubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """Gets the spec of this V1LocalSubjectAccessReview. # noqa: E501 + - :return: The spec of this V1LocalSubjectAccessReview. + :return: The spec of this V1LocalSubjectAccessReview. # noqa: E501 :rtype: V1SubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """Sets the spec of this V1LocalSubjectAccessReview. - :param spec: The spec of this V1LocalSubjectAccessReview. + + :param spec: The spec of this V1LocalSubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1LocalSubjectAccessReview. # noqa: E501 - :return: The status of this V1LocalSubjectAccessReview. + + :return: The status of this V1LocalSubjectAccessReview. # noqa: E501 :rtype: V1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1LocalSubjectAccessReview. - :param status: The status of this V1LocalSubjectAccessReview. + + :param status: The status of this V1LocalSubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LocalSubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_local_volume_source.py b/kubernetes/client/models/v1_local_volume_source.py index bbe6ccf3ec..199f66d1ad 100644 --- a/kubernetes/client/models/v1_local_volume_source.py +++ b/kubernetes/client/models/v1_local_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1LocalVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'path': 'str' } @@ -40,37 +40,35 @@ class V1LocalVolumeSource(object): 'path': 'path' } - def __init__(self, fs_type=None, path=None): - """ - V1LocalVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, path=None): # noqa: E501 + """V1LocalVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._path = None self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.path = path @property def fs_type(self): - """ - Gets the fs_type of this V1LocalVolumeSource. - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. + """Gets the fs_type of this V1LocalVolumeSource. # noqa: E501 + + Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. # noqa: E501 - :return: The fs_type of this V1LocalVolumeSource. + :return: The fs_type of this V1LocalVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1LocalVolumeSource. - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. + """Sets the fs_type of this V1LocalVolumeSource. - :param fs_type: The fs_type of this V1LocalVolumeSource. + Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1LocalVolumeSource. # noqa: E501 :type: str """ @@ -78,36 +76,34 @@ def fs_type(self, fs_type): @property def path(self): - """ - Gets the path of this V1LocalVolumeSource. - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + """Gets the path of this V1LocalVolumeSource. # noqa: E501 + + The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501 - :return: The path of this V1LocalVolumeSource. + :return: The path of this V1LocalVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1LocalVolumeSource. - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + """Sets the path of this V1LocalVolumeSource. + + The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501 - :param path: The path of this V1LocalVolumeSource. + :param path: The path of this V1LocalVolumeSource. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1LocalVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_managed_fields_entry.py b/kubernetes/client/models/v1_managed_fields_entry.py index 777a109efa..233e14d21d 100644 --- a/kubernetes/client/models/v1_managed_fields_entry.py +++ b/kubernetes/client/models/v1_managed_fields_entry.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ManagedFieldsEntry(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'fields': 'object', 'manager': 'str', @@ -46,10 +46,8 @@ class V1ManagedFieldsEntry(object): 'time': 'time' } - def __init__(self, api_version=None, fields=None, manager=None, operation=None, time=None): - """ - V1ManagedFieldsEntry - a model defined in Swagger - """ + def __init__(self, api_version=None, fields=None, manager=None, operation=None, time=None): # noqa: E501 + """V1ManagedFieldsEntry - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._fields = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, fields=None, manager=None, operation=None, self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if fields is not None: - self.fields = fields + self.fields = fields if manager is not None: - self.manager = manager + self.manager = manager if operation is not None: - self.operation = operation + self.operation = operation if time is not None: - self.time = time + self.time = time @property def api_version(self): - """ - Gets the api_version of this V1ManagedFieldsEntry. - APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + """Gets the api_version of this V1ManagedFieldsEntry. # noqa: E501 - :return: The api_version of this V1ManagedFieldsEntry. + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501 + + :return: The api_version of this V1ManagedFieldsEntry. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ManagedFieldsEntry. - APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + """Sets the api_version of this V1ManagedFieldsEntry. - :param api_version: The api_version of this V1ManagedFieldsEntry. + APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501 + + :param api_version: The api_version of this V1ManagedFieldsEntry. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def fields(self): - """ - Gets the fields of this V1ManagedFieldsEntry. - Fields identifies a set of fields. + """Gets the fields of this V1ManagedFieldsEntry. # noqa: E501 + + Fields identifies a set of fields. # noqa: E501 - :return: The fields of this V1ManagedFieldsEntry. + :return: The fields of this V1ManagedFieldsEntry. # noqa: E501 :rtype: object """ return self._fields @fields.setter def fields(self, fields): - """ - Sets the fields of this V1ManagedFieldsEntry. - Fields identifies a set of fields. + """Sets the fields of this V1ManagedFieldsEntry. + + Fields identifies a set of fields. # noqa: E501 - :param fields: The fields of this V1ManagedFieldsEntry. + :param fields: The fields of this V1ManagedFieldsEntry. # noqa: E501 :type: object """ @@ -117,22 +115,22 @@ def fields(self, fields): @property def manager(self): - """ - Gets the manager of this V1ManagedFieldsEntry. - Manager is an identifier of the workflow managing these fields. + """Gets the manager of this V1ManagedFieldsEntry. # noqa: E501 + + Manager is an identifier of the workflow managing these fields. # noqa: E501 - :return: The manager of this V1ManagedFieldsEntry. + :return: The manager of this V1ManagedFieldsEntry. # noqa: E501 :rtype: str """ return self._manager @manager.setter def manager(self, manager): - """ - Sets the manager of this V1ManagedFieldsEntry. - Manager is an identifier of the workflow managing these fields. + """Sets the manager of this V1ManagedFieldsEntry. + + Manager is an identifier of the workflow managing these fields. # noqa: E501 - :param manager: The manager of this V1ManagedFieldsEntry. + :param manager: The manager of this V1ManagedFieldsEntry. # noqa: E501 :type: str """ @@ -140,22 +138,22 @@ def manager(self, manager): @property def operation(self): - """ - Gets the operation of this V1ManagedFieldsEntry. - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + """Gets the operation of this V1ManagedFieldsEntry. # noqa: E501 + + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501 - :return: The operation of this V1ManagedFieldsEntry. + :return: The operation of this V1ManagedFieldsEntry. # noqa: E501 :rtype: str """ return self._operation @operation.setter def operation(self, operation): - """ - Sets the operation of this V1ManagedFieldsEntry. - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + """Sets the operation of this V1ManagedFieldsEntry. - :param operation: The operation of this V1ManagedFieldsEntry. + Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501 + + :param operation: The operation of this V1ManagedFieldsEntry. # noqa: E501 :type: str """ @@ -163,34 +161,32 @@ def operation(self, operation): @property def time(self): - """ - Gets the time of this V1ManagedFieldsEntry. - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + """Gets the time of this V1ManagedFieldsEntry. # noqa: E501 - :return: The time of this V1ManagedFieldsEntry. + Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' # noqa: E501 + + :return: The time of this V1ManagedFieldsEntry. # noqa: E501 :rtype: datetime """ return self._time @time.setter def time(self, time): - """ - Sets the time of this V1ManagedFieldsEntry. - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + """Sets the time of this V1ManagedFieldsEntry. - :param time: The time of this V1ManagedFieldsEntry. + Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' # noqa: E501 + + :param time: The time of this V1ManagedFieldsEntry. # noqa: E501 :type: datetime """ self._time = time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ManagedFieldsEntry): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_namespace.py b/kubernetes/client/models/v1_namespace.py index 6e35f32596..ff83848929 100644 --- a/kubernetes/client/models/v1_namespace.py +++ b/kubernetes/client/models/v1_namespace.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Namespace(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Namespace(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Namespace - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Namespace - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Namespace. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Namespace. # noqa: E501 - :return: The api_version of this V1Namespace. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Namespace. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Namespace. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Namespace. - :param api_version: The api_version of this V1Namespace. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Namespace. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Namespace. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Namespace. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Namespace. + :return: The kind of this V1Namespace. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Namespace. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Namespace. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Namespace. + :param kind: The kind of this V1Namespace. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Namespace. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Namespace. # noqa: E501 + - :return: The metadata of this V1Namespace. + :return: The metadata of this V1Namespace. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Namespace. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Namespace. + - :param metadata: The metadata of this V1Namespace. + :param metadata: The metadata of this V1Namespace. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Namespace. - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Namespace. # noqa: E501 + - :return: The spec of this V1Namespace. + :return: The spec of this V1Namespace. # noqa: E501 :rtype: V1NamespaceSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Namespace. - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Namespace. - :param spec: The spec of this V1Namespace. + + :param spec: The spec of this V1Namespace. # noqa: E501 :type: V1NamespaceSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Namespace. - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Namespace. # noqa: E501 - :return: The status of this V1Namespace. + + :return: The status of this V1Namespace. # noqa: E501 :rtype: V1NamespaceStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Namespace. - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Namespace. - :param status: The status of this V1Namespace. + + :param status: The status of this V1Namespace. # noqa: E501 :type: V1NamespaceStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Namespace): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_namespace_list.py b/kubernetes/client/models/v1_namespace_list.py index 993a5b7a07..05f81bd533 100644 --- a/kubernetes/client/models/v1_namespace_list.py +++ b/kubernetes/client/models/v1_namespace_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NamespaceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Namespace]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1NamespaceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1NamespaceList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1NamespaceList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1NamespaceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1NamespaceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1NamespaceList. + :return: The api_version of this V1NamespaceList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1NamespaceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1NamespaceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1NamespaceList. + :param api_version: The api_version of this V1NamespaceList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1NamespaceList. - Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """Gets the items of this V1NamespaceList. # noqa: E501 + + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 - :return: The items of this V1NamespaceList. + :return: The items of this V1NamespaceList. # noqa: E501 :rtype: list[V1Namespace] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1NamespaceList. - Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """Sets the items of this V1NamespaceList. + + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 - :param items: The items of this V1NamespaceList. + :param items: The items of this V1NamespaceList. # noqa: E501 :type: list[V1Namespace] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1NamespaceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1NamespaceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1NamespaceList. + :return: The kind of this V1NamespaceList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1NamespaceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1NamespaceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1NamespaceList. + :param kind: The kind of this V1NamespaceList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1NamespaceList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1NamespaceList. # noqa: E501 + - :return: The metadata of this V1NamespaceList. + :return: The metadata of this V1NamespaceList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1NamespaceList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1NamespaceList. + - :param metadata: The metadata of this V1NamespaceList. + :param metadata: The metadata of this V1NamespaceList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NamespaceList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_namespace_spec.py b/kubernetes/client/models/v1_namespace_spec.py index 6941fb4601..75dc9ebf2b 100644 --- a/kubernetes/client/models/v1_namespace_spec.py +++ b/kubernetes/client/models/v1_namespace_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NamespaceSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'finalizers': 'list[str]' } @@ -38,47 +38,43 @@ class V1NamespaceSpec(object): 'finalizers': 'finalizers' } - def __init__(self, finalizers=None): - """ - V1NamespaceSpec - a model defined in Swagger - """ + def __init__(self, finalizers=None): # noqa: E501 + """V1NamespaceSpec - a model defined in OpenAPI""" # noqa: E501 self._finalizers = None self.discriminator = None if finalizers is not None: - self.finalizers = finalizers + self.finalizers = finalizers @property def finalizers(self): - """ - Gets the finalizers of this V1NamespaceSpec. - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """Gets the finalizers of this V1NamespaceSpec. # noqa: E501 + + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 - :return: The finalizers of this V1NamespaceSpec. + :return: The finalizers of this V1NamespaceSpec. # noqa: E501 :rtype: list[str] """ return self._finalizers @finalizers.setter def finalizers(self, finalizers): - """ - Sets the finalizers of this V1NamespaceSpec. - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """Sets the finalizers of this V1NamespaceSpec. + + Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 - :param finalizers: The finalizers of this V1NamespaceSpec. + :param finalizers: The finalizers of this V1NamespaceSpec. # noqa: E501 :type: list[str] """ self._finalizers = finalizers def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NamespaceSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_namespace_status.py b/kubernetes/client/models/v1_namespace_status.py index 2d0166393f..733237a05c 100644 --- a/kubernetes/client/models/v1_namespace_status.py +++ b/kubernetes/client/models/v1_namespace_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NamespaceStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'phase': 'str' } @@ -38,47 +38,43 @@ class V1NamespaceStatus(object): 'phase': 'phase' } - def __init__(self, phase=None): - """ - V1NamespaceStatus - a model defined in Swagger - """ + def __init__(self, phase=None): # noqa: E501 + """V1NamespaceStatus - a model defined in OpenAPI""" # noqa: E501 self._phase = None self.discriminator = None if phase is not None: - self.phase = phase + self.phase = phase @property def phase(self): - """ - Gets the phase of this V1NamespaceStatus. - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """Gets the phase of this V1NamespaceStatus. # noqa: E501 + + Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 - :return: The phase of this V1NamespaceStatus. + :return: The phase of this V1NamespaceStatus. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): - """ - Sets the phase of this V1NamespaceStatus. - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """Sets the phase of this V1NamespaceStatus. + + Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501 - :param phase: The phase of this V1NamespaceStatus. + :param phase: The phase of this V1NamespaceStatus. # noqa: E501 :type: str """ self._phase = phase def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NamespaceStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy.py b/kubernetes/client/models/v1_network_policy.py index 9aa88ac5af..ed46dcb0f5 100644 --- a/kubernetes/client/models/v1_network_policy.py +++ b/kubernetes/client/models/v1_network_policy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1NetworkPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1NetworkPolicy - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1NetworkPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1NetworkPolicy. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1NetworkPolicy. + :return: The api_version of this V1NetworkPolicy. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1NetworkPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1NetworkPolicy. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1NetworkPolicy. + :param api_version: The api_version of this V1NetworkPolicy. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1NetworkPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1NetworkPolicy. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1NetworkPolicy. + :return: The kind of this V1NetworkPolicy. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1NetworkPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1NetworkPolicy. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1NetworkPolicy. + :param kind: The kind of this V1NetworkPolicy. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1NetworkPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1NetworkPolicy. # noqa: E501 + - :return: The metadata of this V1NetworkPolicy. + :return: The metadata of this V1NetworkPolicy. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1NetworkPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1NetworkPolicy. + - :param metadata: The metadata of this V1NetworkPolicy. + :param metadata: The metadata of this V1NetworkPolicy. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1NetworkPolicy. - Specification of the desired behavior for this NetworkPolicy. + """Gets the spec of this V1NetworkPolicy. # noqa: E501 + - :return: The spec of this V1NetworkPolicy. + :return: The spec of this V1NetworkPolicy. # noqa: E501 :rtype: V1NetworkPolicySpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1NetworkPolicy. - Specification of the desired behavior for this NetworkPolicy. + """Sets the spec of this V1NetworkPolicy. + - :param spec: The spec of this V1NetworkPolicy. + :param spec: The spec of this V1NetworkPolicy. # noqa: E501 :type: V1NetworkPolicySpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_egress_rule.py b/kubernetes/client/models/v1_network_policy_egress_rule.py index 40379f1b5c..d23305e2eb 100644 --- a/kubernetes/client/models/v1_network_policy_egress_rule.py +++ b/kubernetes/client/models/v1_network_policy_egress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicyEgressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ports': 'list[V1NetworkPolicyPort]', 'to': 'list[V1NetworkPolicyPeer]' } @@ -40,38 +40,36 @@ class V1NetworkPolicyEgressRule(object): 'to': 'to' } - def __init__(self, ports=None, to=None): - """ - V1NetworkPolicyEgressRule - a model defined in Swagger - """ + def __init__(self, ports=None, to=None): # noqa: E501 + """V1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501 self._ports = None self._to = None self.discriminator = None if ports is not None: - self.ports = ports + self.ports = ports if to is not None: - self.to = to + self.to = to @property def ports(self): - """ - Gets the ports of this V1NetworkPolicyEgressRule. - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Gets the ports of this V1NetworkPolicyEgressRule. # noqa: E501 + + List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :return: The ports of this V1NetworkPolicyEgressRule. + :return: The ports of this V1NetworkPolicyEgressRule. # noqa: E501 :rtype: list[V1NetworkPolicyPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1NetworkPolicyEgressRule. - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Sets the ports of this V1NetworkPolicyEgressRule. - :param ports: The ports of this V1NetworkPolicyEgressRule. + List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :param ports: The ports of this V1NetworkPolicyEgressRule. # noqa: E501 :type: list[V1NetworkPolicyPort] """ @@ -79,34 +77,32 @@ def ports(self, ports): @property def to(self): - """ - Gets the to of this V1NetworkPolicyEgressRule. - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + """Gets the to of this V1NetworkPolicyEgressRule. # noqa: E501 + + List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 - :return: The to of this V1NetworkPolicyEgressRule. + :return: The to of this V1NetworkPolicyEgressRule. # noqa: E501 :rtype: list[V1NetworkPolicyPeer] """ return self._to @to.setter def to(self, to): - """ - Sets the to of this V1NetworkPolicyEgressRule. - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + """Sets the to of this V1NetworkPolicyEgressRule. + + List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 - :param to: The to of this V1NetworkPolicyEgressRule. + :param to: The to of this V1NetworkPolicyEgressRule. # noqa: E501 :type: list[V1NetworkPolicyPeer] """ self._to = to def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicyEgressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_ingress_rule.py b/kubernetes/client/models/v1_network_policy_ingress_rule.py index 3805537508..e6d86d3906 100644 --- a/kubernetes/client/models/v1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1_network_policy_ingress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicyIngressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { '_from': 'list[V1NetworkPolicyPeer]', 'ports': 'list[V1NetworkPolicyPort]' } @@ -40,38 +40,36 @@ class V1NetworkPolicyIngressRule(object): 'ports': 'ports' } - def __init__(self, _from=None, ports=None): - """ - V1NetworkPolicyIngressRule - a model defined in Swagger - """ + def __init__(self, _from=None, ports=None): # noqa: E501 + """V1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501 self.__from = None self._ports = None self.discriminator = None if _from is not None: - self._from = _from + self._from = _from if ports is not None: - self.ports = ports + self.ports = ports @property def _from(self): - """ - Gets the _from of this V1NetworkPolicyIngressRule. - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + """Gets the _from of this V1NetworkPolicyIngressRule. # noqa: E501 + + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 - :return: The _from of this V1NetworkPolicyIngressRule. + :return: The _from of this V1NetworkPolicyIngressRule. # noqa: E501 :rtype: list[V1NetworkPolicyPeer] """ return self.__from @_from.setter def _from(self, _from): - """ - Sets the _from of this V1NetworkPolicyIngressRule. - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + """Sets the _from of this V1NetworkPolicyIngressRule. - :param _from: The _from of this V1NetworkPolicyIngressRule. + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 + + :param _from: The _from of this V1NetworkPolicyIngressRule. # noqa: E501 :type: list[V1NetworkPolicyPeer] """ @@ -79,34 +77,32 @@ def _from(self, _from): @property def ports(self): - """ - Gets the ports of this V1NetworkPolicyIngressRule. - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Gets the ports of this V1NetworkPolicyIngressRule. # noqa: E501 + + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :return: The ports of this V1NetworkPolicyIngressRule. + :return: The ports of this V1NetworkPolicyIngressRule. # noqa: E501 :rtype: list[V1NetworkPolicyPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1NetworkPolicyIngressRule. - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Sets the ports of this V1NetworkPolicyIngressRule. + + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :param ports: The ports of this V1NetworkPolicyIngressRule. + :param ports: The ports of this V1NetworkPolicyIngressRule. # noqa: E501 :type: list[V1NetworkPolicyPort] """ self._ports = ports def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicyIngressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_list.py b/kubernetes/client/models/v1_network_policy_list.py index df893144b7..3a0fb30268 100644 --- a/kubernetes/client/models/v1_network_policy_list.py +++ b/kubernetes/client/models/v1_network_policy_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicyList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1NetworkPolicy]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1NetworkPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1NetworkPolicyList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1NetworkPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1NetworkPolicyList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1NetworkPolicyList. + :return: The api_version of this V1NetworkPolicyList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1NetworkPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1NetworkPolicyList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1NetworkPolicyList. + :param api_version: The api_version of this V1NetworkPolicyList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1NetworkPolicyList. - Items is a list of schema objects. + """Gets the items of this V1NetworkPolicyList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1NetworkPolicyList. + :return: The items of this V1NetworkPolicyList. # noqa: E501 :rtype: list[V1NetworkPolicy] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1NetworkPolicyList. - Items is a list of schema objects. + """Sets the items of this V1NetworkPolicyList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1NetworkPolicyList. + :param items: The items of this V1NetworkPolicyList. # noqa: E501 :type: list[V1NetworkPolicy] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1NetworkPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1NetworkPolicyList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1NetworkPolicyList. + :return: The kind of this V1NetworkPolicyList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1NetworkPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1NetworkPolicyList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1NetworkPolicyList. + :param kind: The kind of this V1NetworkPolicyList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1NetworkPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1NetworkPolicyList. # noqa: E501 + - :return: The metadata of this V1NetworkPolicyList. + :return: The metadata of this V1NetworkPolicyList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1NetworkPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1NetworkPolicyList. + - :param metadata: The metadata of this V1NetworkPolicyList. + :param metadata: The metadata of this V1NetworkPolicyList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicyList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_peer.py b/kubernetes/client/models/v1_network_policy_peer.py index 4cb5a56a1f..0bfa0f0cb3 100644 --- a/kubernetes/client/models/v1_network_policy_peer.py +++ b/kubernetes/client/models/v1_network_policy_peer.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicyPeer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ip_block': 'V1IPBlock', 'namespace_selector': 'V1LabelSelector', 'pod_selector': 'V1LabelSelector' @@ -42,10 +42,8 @@ class V1NetworkPolicyPeer(object): 'pod_selector': 'podSelector' } - def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): - """ - V1NetworkPolicyPeer - a model defined in Swagger - """ + def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): # noqa: E501 + """V1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501 self._ip_block = None self._namespace_selector = None @@ -53,30 +51,28 @@ def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): self.discriminator = None if ip_block is not None: - self.ip_block = ip_block + self.ip_block = ip_block if namespace_selector is not None: - self.namespace_selector = namespace_selector + self.namespace_selector = namespace_selector if pod_selector is not None: - self.pod_selector = pod_selector + self.pod_selector = pod_selector @property def ip_block(self): - """ - Gets the ip_block of this V1NetworkPolicyPeer. - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + """Gets the ip_block of this V1NetworkPolicyPeer. # noqa: E501 - :return: The ip_block of this V1NetworkPolicyPeer. + + :return: The ip_block of this V1NetworkPolicyPeer. # noqa: E501 :rtype: V1IPBlock """ return self._ip_block @ip_block.setter def ip_block(self, ip_block): - """ - Sets the ip_block of this V1NetworkPolicyPeer. - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + """Sets the ip_block of this V1NetworkPolicyPeer. - :param ip_block: The ip_block of this V1NetworkPolicyPeer. + + :param ip_block: The ip_block of this V1NetworkPolicyPeer. # noqa: E501 :type: V1IPBlock """ @@ -84,22 +80,20 @@ def ip_block(self, ip_block): @property def namespace_selector(self): - """ - Gets the namespace_selector of this V1NetworkPolicyPeer. - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + """Gets the namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 - :return: The namespace_selector of this V1NetworkPolicyPeer. + + :return: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 :rtype: V1LabelSelector """ return self._namespace_selector @namespace_selector.setter def namespace_selector(self, namespace_selector): - """ - Sets the namespace_selector of this V1NetworkPolicyPeer. - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + """Sets the namespace_selector of this V1NetworkPolicyPeer. + - :param namespace_selector: The namespace_selector of this V1NetworkPolicyPeer. + :param namespace_selector: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501 :type: V1LabelSelector """ @@ -107,34 +101,30 @@ def namespace_selector(self, namespace_selector): @property def pod_selector(self): - """ - Gets the pod_selector of this V1NetworkPolicyPeer. - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + """Gets the pod_selector of this V1NetworkPolicyPeer. # noqa: E501 + - :return: The pod_selector of this V1NetworkPolicyPeer. + :return: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501 :rtype: V1LabelSelector """ return self._pod_selector @pod_selector.setter def pod_selector(self, pod_selector): - """ - Sets the pod_selector of this V1NetworkPolicyPeer. - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + """Sets the pod_selector of this V1NetworkPolicyPeer. + - :param pod_selector: The pod_selector of this V1NetworkPolicyPeer. + :param pod_selector: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501 :type: V1LabelSelector """ self._pod_selector = pod_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +145,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicyPeer): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_port.py b/kubernetes/client/models/v1_network_policy_port.py index c2c0cf0232..b23399e11b 100644 --- a/kubernetes/client/models/v1_network_policy_port.py +++ b/kubernetes/client/models/v1_network_policy_port.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicyPort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'port': 'object', 'protocol': 'str' } @@ -40,38 +40,36 @@ class V1NetworkPolicyPort(object): 'protocol': 'protocol' } - def __init__(self, port=None, protocol=None): - """ - V1NetworkPolicyPort - a model defined in Swagger - """ + def __init__(self, port=None, protocol=None): # noqa: E501 + """V1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501 self._port = None self._protocol = None self.discriminator = None if port is not None: - self.port = port + self.port = port if protocol is not None: - self.protocol = protocol + self.protocol = protocol @property def port(self): - """ - Gets the port of this V1NetworkPolicyPort. - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + """Gets the port of this V1NetworkPolicyPort. # noqa: E501 + + The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. # noqa: E501 - :return: The port of this V1NetworkPolicyPort. + :return: The port of this V1NetworkPolicyPort. # noqa: E501 :rtype: object """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1NetworkPolicyPort. - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + """Sets the port of this V1NetworkPolicyPort. - :param port: The port of this V1NetworkPolicyPort. + The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. # noqa: E501 + + :param port: The port of this V1NetworkPolicyPort. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def port(self, port): @property def protocol(self): - """ - Gets the protocol of this V1NetworkPolicyPort. - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + """Gets the protocol of this V1NetworkPolicyPort. # noqa: E501 + + The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 - :return: The protocol of this V1NetworkPolicyPort. + :return: The protocol of this V1NetworkPolicyPort. # noqa: E501 :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): - """ - Sets the protocol of this V1NetworkPolicyPort. - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + """Sets the protocol of this V1NetworkPolicyPort. + + The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 - :param protocol: The protocol of this V1NetworkPolicyPort. + :param protocol: The protocol of this V1NetworkPolicyPort. # noqa: E501 :type: str """ self._protocol = protocol def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicyPort): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_network_policy_spec.py b/kubernetes/client/models/v1_network_policy_spec.py index 5b9da02b44..1f9ea5785b 100644 --- a/kubernetes/client/models/v1_network_policy_spec.py +++ b/kubernetes/client/models/v1_network_policy_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NetworkPolicySpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'egress': 'list[V1NetworkPolicyEgressRule]', 'ingress': 'list[V1NetworkPolicyIngressRule]', 'pod_selector': 'V1LabelSelector', @@ -44,10 +44,8 @@ class V1NetworkPolicySpec(object): 'policy_types': 'policyTypes' } - def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): - """ - V1NetworkPolicySpec - a model defined in Swagger - """ + def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): # noqa: E501 + """V1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501 self._egress = None self._ingress = None @@ -56,31 +54,31 @@ def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=No self.discriminator = None if egress is not None: - self.egress = egress + self.egress = egress if ingress is not None: - self.ingress = ingress + self.ingress = ingress self.pod_selector = pod_selector if policy_types is not None: - self.policy_types = policy_types + self.policy_types = policy_types @property def egress(self): - """ - Gets the egress of this V1NetworkPolicySpec. - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + """Gets the egress of this V1NetworkPolicySpec. # noqa: E501 + + List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 - :return: The egress of this V1NetworkPolicySpec. + :return: The egress of this V1NetworkPolicySpec. # noqa: E501 :rtype: list[V1NetworkPolicyEgressRule] """ return self._egress @egress.setter def egress(self, egress): - """ - Sets the egress of this V1NetworkPolicySpec. - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + """Sets the egress of this V1NetworkPolicySpec. + + List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 - :param egress: The egress of this V1NetworkPolicySpec. + :param egress: The egress of this V1NetworkPolicySpec. # noqa: E501 :type: list[V1NetworkPolicyEgressRule] """ @@ -88,22 +86,22 @@ def egress(self, egress): @property def ingress(self): - """ - Gets the ingress of this V1NetworkPolicySpec. - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + """Gets the ingress of this V1NetworkPolicySpec. # noqa: E501 + + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501 - :return: The ingress of this V1NetworkPolicySpec. + :return: The ingress of this V1NetworkPolicySpec. # noqa: E501 :rtype: list[V1NetworkPolicyIngressRule] """ return self._ingress @ingress.setter def ingress(self, ingress): - """ - Sets the ingress of this V1NetworkPolicySpec. - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + """Sets the ingress of this V1NetworkPolicySpec. + + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501 - :param ingress: The ingress of this V1NetworkPolicySpec. + :param ingress: The ingress of this V1NetworkPolicySpec. # noqa: E501 :type: list[V1NetworkPolicyIngressRule] """ @@ -111,59 +109,55 @@ def ingress(self, ingress): @property def pod_selector(self): - """ - Gets the pod_selector of this V1NetworkPolicySpec. - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + """Gets the pod_selector of this V1NetworkPolicySpec. # noqa: E501 + - :return: The pod_selector of this V1NetworkPolicySpec. + :return: The pod_selector of this V1NetworkPolicySpec. # noqa: E501 :rtype: V1LabelSelector """ return self._pod_selector @pod_selector.setter def pod_selector(self, pod_selector): - """ - Sets the pod_selector of this V1NetworkPolicySpec. - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + """Sets the pod_selector of this V1NetworkPolicySpec. + - :param pod_selector: The pod_selector of this V1NetworkPolicySpec. + :param pod_selector: The pod_selector of this V1NetworkPolicySpec. # noqa: E501 :type: V1LabelSelector """ if pod_selector is None: - raise ValueError("Invalid value for `pod_selector`, must not be `None`") + raise ValueError("Invalid value for `pod_selector`, must not be `None`") # noqa: E501 self._pod_selector = pod_selector @property def policy_types(self): - """ - Gets the policy_types of this V1NetworkPolicySpec. - List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + """Gets the policy_types of this V1NetworkPolicySpec. # noqa: E501 + + List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 - :return: The policy_types of this V1NetworkPolicySpec. + :return: The policy_types of this V1NetworkPolicySpec. # noqa: E501 :rtype: list[str] """ return self._policy_types @policy_types.setter def policy_types(self, policy_types): - """ - Sets the policy_types of this V1NetworkPolicySpec. - List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + """Sets the policy_types of this V1NetworkPolicySpec. + + List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 - :param policy_types: The policy_types of this V1NetworkPolicySpec. + :param policy_types: The policy_types of this V1NetworkPolicySpec. # noqa: E501 :type: list[str] """ self._policy_types = policy_types def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NetworkPolicySpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_nfs_volume_source.py b/kubernetes/client/models/v1_nfs_volume_source.py index a9a1adf87e..3026e4a881 100644 --- a/kubernetes/client/models/v1_nfs_volume_source.py +++ b/kubernetes/client/models/v1_nfs_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NFSVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path': 'str', 'read_only': 'bool', 'server': 'str' @@ -42,10 +42,8 @@ class V1NFSVolumeSource(object): 'server': 'server' } - def __init__(self, path=None, read_only=None, server=None): - """ - V1NFSVolumeSource - a model defined in Swagger - """ + def __init__(self, path=None, read_only=None, server=None): # noqa: E501 + """V1NFSVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._path = None self._read_only = None @@ -54,52 +52,52 @@ def __init__(self, path=None, read_only=None, server=None): self.path = path if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.server = server @property def path(self): - """ - Gets the path of this V1NFSVolumeSource. - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Gets the path of this V1NFSVolumeSource. # noqa: E501 - :return: The path of this V1NFSVolumeSource. + Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :return: The path of this V1NFSVolumeSource. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1NFSVolumeSource. - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Sets the path of this V1NFSVolumeSource. - :param path: The path of this V1NFSVolumeSource. + Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :param path: The path of this V1NFSVolumeSource. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @property def read_only(self): - """ - Gets the read_only of this V1NFSVolumeSource. - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Gets the read_only of this V1NFSVolumeSource. # noqa: E501 - :return: The read_only of this V1NFSVolumeSource. + ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + + :return: The read_only of this V1NFSVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1NFSVolumeSource. - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Sets the read_only of this V1NFSVolumeSource. + + ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 - :param read_only: The read_only of this V1NFSVolumeSource. + :param read_only: The read_only of this V1NFSVolumeSource. # noqa: E501 :type: bool """ @@ -107,36 +105,34 @@ def read_only(self, read_only): @property def server(self): - """ - Gets the server of this V1NFSVolumeSource. - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Gets the server of this V1NFSVolumeSource. # noqa: E501 + + Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 - :return: The server of this V1NFSVolumeSource. + :return: The server of this V1NFSVolumeSource. # noqa: E501 :rtype: str """ return self._server @server.setter def server(self, server): - """ - Sets the server of this V1NFSVolumeSource. - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Sets the server of this V1NFSVolumeSource. + + Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 - :param server: The server of this V1NFSVolumeSource. + :param server: The server of this V1NFSVolumeSource. # noqa: E501 :type: str """ if server is None: - raise ValueError("Invalid value for `server`, must not be `None`") + raise ValueError("Invalid value for `server`, must not be `None`") # noqa: E501 self._server = server def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NFSVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node.py b/kubernetes/client/models/v1_node.py index 7ceefa9368..8c682e1493 100644 --- a/kubernetes/client/models/v1_node.py +++ b/kubernetes/client/models/v1_node.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Node(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Node(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Node - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Node - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Node. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Node. # noqa: E501 - :return: The api_version of this V1Node. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Node. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Node. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Node. - :param api_version: The api_version of this V1Node. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Node. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Node. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Node. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Node. + :return: The kind of this V1Node. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Node. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Node. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Node. + :param kind: The kind of this V1Node. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Node. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Node. # noqa: E501 + - :return: The metadata of this V1Node. + :return: The metadata of this V1Node. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Node. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Node. + - :param metadata: The metadata of this V1Node. + :param metadata: The metadata of this V1Node. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Node. - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Node. # noqa: E501 + - :return: The spec of this V1Node. + :return: The spec of this V1Node. # noqa: E501 :rtype: V1NodeSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Node. - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Node. - :param spec: The spec of this V1Node. + + :param spec: The spec of this V1Node. # noqa: E501 :type: V1NodeSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Node. - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Node. # noqa: E501 - :return: The status of this V1Node. + + :return: The status of this V1Node. # noqa: E501 :rtype: V1NodeStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Node. - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Node. - :param status: The status of this V1Node. + + :param status: The status of this V1Node. # noqa: E501 :type: V1NodeStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Node): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_address.py b/kubernetes/client/models/v1_node_address.py index 365acbc7bb..461b7d0f29 100644 --- a/kubernetes/client/models/v1_node_address.py +++ b/kubernetes/client/models/v1_node_address.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeAddress(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'address': 'str', 'type': 'str' } @@ -40,10 +40,8 @@ class V1NodeAddress(object): 'type': 'type' } - def __init__(self, address=None, type=None): - """ - V1NodeAddress - a model defined in Swagger - """ + def __init__(self, address=None, type=None): # noqa: E501 + """V1NodeAddress - a model defined in OpenAPI""" # noqa: E501 self._address = None self._type = None @@ -54,61 +52,59 @@ def __init__(self, address=None, type=None): @property def address(self): - """ - Gets the address of this V1NodeAddress. - The node address. + """Gets the address of this V1NodeAddress. # noqa: E501 + + The node address. # noqa: E501 - :return: The address of this V1NodeAddress. + :return: The address of this V1NodeAddress. # noqa: E501 :rtype: str """ return self._address @address.setter def address(self, address): - """ - Sets the address of this V1NodeAddress. - The node address. + """Sets the address of this V1NodeAddress. - :param address: The address of this V1NodeAddress. + The node address. # noqa: E501 + + :param address: The address of this V1NodeAddress. # noqa: E501 :type: str """ if address is None: - raise ValueError("Invalid value for `address`, must not be `None`") + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 self._address = address @property def type(self): - """ - Gets the type of this V1NodeAddress. - Node address type, one of Hostname, ExternalIP or InternalIP. + """Gets the type of this V1NodeAddress. # noqa: E501 + + Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501 - :return: The type of this V1NodeAddress. + :return: The type of this V1NodeAddress. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1NodeAddress. - Node address type, one of Hostname, ExternalIP or InternalIP. + """Sets the type of this V1NodeAddress. + + Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501 - :param type: The type of this V1NodeAddress. + :param type: The type of this V1NodeAddress. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeAddress): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_affinity.py b/kubernetes/client/models/v1_node_affinity.py index 0707159aaa..5a25b068c9 100644 --- a/kubernetes/client/models/v1_node_affinity.py +++ b/kubernetes/client/models/v1_node_affinity.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector' } @@ -40,38 +40,36 @@ class V1NodeAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1NodeAffinity - a model defined in Swagger - """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + """V1NodeAffinity - a model defined in OpenAPI""" # noqa: E501 self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None self.discriminator = None if preferred_during_scheduling_ignored_during_execution is not None: - self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution if required_during_scheduling_ignored_during_execution is not None: - self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @property def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + """Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501 - :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 :rtype: list[V1PreferredSchedulingTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + """Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 :type: list[V1PreferredSchedulingTerm] """ @@ -79,34 +77,30 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + """Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 + - :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 :rtype: V1NodeSelector """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + """Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501 :type: V1NodeSelector """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeAffinity): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index 881e81e553..d2a11dc25d 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_heartbeat_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1NodeCondition(object): 'type': 'type' } - def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1NodeCondition - a model defined in Swagger - """ + def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1NodeCondition - a model defined in OpenAPI""" # noqa: E501 self._last_heartbeat_time = None self._last_transition_time = None @@ -62,34 +60,34 @@ def __init__(self, last_heartbeat_time=None, last_transition_time=None, message= self.discriminator = None if last_heartbeat_time is not None: - self.last_heartbeat_time = last_heartbeat_time + self.last_heartbeat_time = last_heartbeat_time if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_heartbeat_time(self): - """ - Gets the last_heartbeat_time of this V1NodeCondition. - Last time we got an update on a given condition. + """Gets the last_heartbeat_time of this V1NodeCondition. # noqa: E501 + + Last time we got an update on a given condition. # noqa: E501 - :return: The last_heartbeat_time of this V1NodeCondition. + :return: The last_heartbeat_time of this V1NodeCondition. # noqa: E501 :rtype: datetime """ return self._last_heartbeat_time @last_heartbeat_time.setter def last_heartbeat_time(self, last_heartbeat_time): - """ - Sets the last_heartbeat_time of this V1NodeCondition. - Last time we got an update on a given condition. + """Sets the last_heartbeat_time of this V1NodeCondition. + + Last time we got an update on a given condition. # noqa: E501 - :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. + :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_heartbeat_time(self, last_heartbeat_time): @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1NodeCondition. - Last time the condition transit from one status to another. + """Gets the last_transition_time of this V1NodeCondition. # noqa: E501 + + Last time the condition transit from one status to another. # noqa: E501 - :return: The last_transition_time of this V1NodeCondition. + :return: The last_transition_time of this V1NodeCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1NodeCondition. - Last time the condition transit from one status to another. + """Sets the last_transition_time of this V1NodeCondition. - :param last_transition_time: The last_transition_time of this V1NodeCondition. + Last time the condition transit from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1NodeCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1NodeCondition. - Human readable message indicating details about last transition. + """Gets the message of this V1NodeCondition. # noqa: E501 - :return: The message of this V1NodeCondition. + Human readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1NodeCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1NodeCondition. - Human readable message indicating details about last transition. + """Sets the message of this V1NodeCondition. + + Human readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1NodeCondition. + :param message: The message of this V1NodeCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1NodeCondition. - (brief) reason for the condition's last transition. + """Gets the reason of this V1NodeCondition. # noqa: E501 + + (brief) reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1NodeCondition. + :return: The reason of this V1NodeCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1NodeCondition. - (brief) reason for the condition's last transition. + """Sets the reason of this V1NodeCondition. + + (brief) reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1NodeCondition. + :param reason: The reason of this V1NodeCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1NodeCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1NodeCondition. # noqa: E501 - :return: The status of this V1NodeCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1NodeCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1NodeCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1NodeCondition. - :param status: The status of this V1NodeCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1NodeCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1NodeCondition. - Type of node condition. + """Gets the type of this V1NodeCondition. # noqa: E501 + + Type of node condition. # noqa: E501 - :return: The type of this V1NodeCondition. + :return: The type of this V1NodeCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1NodeCondition. - Type of node condition. + """Sets the type of this V1NodeCondition. + + Type of node condition. # noqa: E501 - :param type: The type of this V1NodeCondition. + :param type: The type of this V1NodeCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_config_source.py b/kubernetes/client/models/v1_node_config_source.py index be3f01bb8f..8da874b2cd 100644 --- a/kubernetes/client/models/v1_node_config_source.py +++ b/kubernetes/client/models/v1_node_config_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeConfigSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'config_map': 'V1ConfigMapNodeConfigSource' } @@ -38,47 +38,41 @@ class V1NodeConfigSource(object): 'config_map': 'configMap' } - def __init__(self, config_map=None): - """ - V1NodeConfigSource - a model defined in Swagger - """ + def __init__(self, config_map=None): # noqa: E501 + """V1NodeConfigSource - a model defined in OpenAPI""" # noqa: E501 self._config_map = None self.discriminator = None if config_map is not None: - self.config_map = config_map + self.config_map = config_map @property def config_map(self): - """ - Gets the config_map of this V1NodeConfigSource. - ConfigMap is a reference to a Node's ConfigMap + """Gets the config_map of this V1NodeConfigSource. # noqa: E501 + - :return: The config_map of this V1NodeConfigSource. + :return: The config_map of this V1NodeConfigSource. # noqa: E501 :rtype: V1ConfigMapNodeConfigSource """ return self._config_map @config_map.setter def config_map(self, config_map): - """ - Sets the config_map of this V1NodeConfigSource. - ConfigMap is a reference to a Node's ConfigMap + """Sets the config_map of this V1NodeConfigSource. + - :param config_map: The config_map of this V1NodeConfigSource. + :param config_map: The config_map of this V1NodeConfigSource. # noqa: E501 :type: V1ConfigMapNodeConfigSource """ self._config_map = config_map def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeConfigSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_config_status.py b/kubernetes/client/models/v1_node_config_status.py index 1abf0b6bdd..425196d255 100644 --- a/kubernetes/client/models/v1_node_config_status.py +++ b/kubernetes/client/models/v1_node_config_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeConfigStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active': 'V1NodeConfigSource', 'assigned': 'V1NodeConfigSource', 'error': 'str', @@ -44,10 +44,8 @@ class V1NodeConfigStatus(object): 'last_known_good': 'lastKnownGood' } - def __init__(self, active=None, assigned=None, error=None, last_known_good=None): - """ - V1NodeConfigStatus - a model defined in Swagger - """ + def __init__(self, active=None, assigned=None, error=None, last_known_good=None): # noqa: E501 + """V1NodeConfigStatus - a model defined in OpenAPI""" # noqa: E501 self._active = None self._assigned = None @@ -56,32 +54,30 @@ def __init__(self, active=None, assigned=None, error=None, last_known_good=None) self.discriminator = None if active is not None: - self.active = active + self.active = active if assigned is not None: - self.assigned = assigned + self.assigned = assigned if error is not None: - self.error = error + self.error = error if last_known_good is not None: - self.last_known_good = last_known_good + self.last_known_good = last_known_good @property def active(self): - """ - Gets the active of this V1NodeConfigStatus. - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + """Gets the active of this V1NodeConfigStatus. # noqa: E501 + - :return: The active of this V1NodeConfigStatus. + :return: The active of this V1NodeConfigStatus. # noqa: E501 :rtype: V1NodeConfigSource """ return self._active @active.setter def active(self, active): - """ - Sets the active of this V1NodeConfigStatus. - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + """Sets the active of this V1NodeConfigStatus. + - :param active: The active of this V1NodeConfigStatus. + :param active: The active of this V1NodeConfigStatus. # noqa: E501 :type: V1NodeConfigSource """ @@ -89,22 +85,20 @@ def active(self, active): @property def assigned(self): - """ - Gets the assigned of this V1NodeConfigStatus. - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + """Gets the assigned of this V1NodeConfigStatus. # noqa: E501 + - :return: The assigned of this V1NodeConfigStatus. + :return: The assigned of this V1NodeConfigStatus. # noqa: E501 :rtype: V1NodeConfigSource """ return self._assigned @assigned.setter def assigned(self, assigned): - """ - Sets the assigned of this V1NodeConfigStatus. - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + """Sets the assigned of this V1NodeConfigStatus. + - :param assigned: The assigned of this V1NodeConfigStatus. + :param assigned: The assigned of this V1NodeConfigStatus. # noqa: E501 :type: V1NodeConfigSource """ @@ -112,22 +106,22 @@ def assigned(self, assigned): @property def error(self): - """ - Gets the error of this V1NodeConfigStatus. - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + """Gets the error of this V1NodeConfigStatus. # noqa: E501 + + Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501 - :return: The error of this V1NodeConfigStatus. + :return: The error of this V1NodeConfigStatus. # noqa: E501 :rtype: str """ return self._error @error.setter def error(self, error): - """ - Sets the error of this V1NodeConfigStatus. - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + """Sets the error of this V1NodeConfigStatus. + + Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501 - :param error: The error of this V1NodeConfigStatus. + :param error: The error of this V1NodeConfigStatus. # noqa: E501 :type: str """ @@ -135,34 +129,30 @@ def error(self, error): @property def last_known_good(self): - """ - Gets the last_known_good of this V1NodeConfigStatus. - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + """Gets the last_known_good of this V1NodeConfigStatus. # noqa: E501 + - :return: The last_known_good of this V1NodeConfigStatus. + :return: The last_known_good of this V1NodeConfigStatus. # noqa: E501 :rtype: V1NodeConfigSource """ return self._last_known_good @last_known_good.setter def last_known_good(self, last_known_good): - """ - Sets the last_known_good of this V1NodeConfigStatus. - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + """Sets the last_known_good of this V1NodeConfigStatus. + - :param last_known_good: The last_known_good of this V1NodeConfigStatus. + :param last_known_good: The last_known_good of this V1NodeConfigStatus. # noqa: E501 :type: V1NodeConfigSource """ self._last_known_good = last_known_good def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +173,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeConfigStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_daemon_endpoints.py b/kubernetes/client/models/v1_node_daemon_endpoints.py index 619a306978..00fb895619 100644 --- a/kubernetes/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeDaemonEndpoints(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'kubelet_endpoint': 'V1DaemonEndpoint' } @@ -38,47 +38,41 @@ class V1NodeDaemonEndpoints(object): 'kubelet_endpoint': 'kubeletEndpoint' } - def __init__(self, kubelet_endpoint=None): - """ - V1NodeDaemonEndpoints - a model defined in Swagger - """ + def __init__(self, kubelet_endpoint=None): # noqa: E501 + """V1NodeDaemonEndpoints - a model defined in OpenAPI""" # noqa: E501 self._kubelet_endpoint = None self.discriminator = None if kubelet_endpoint is not None: - self.kubelet_endpoint = kubelet_endpoint + self.kubelet_endpoint = kubelet_endpoint @property def kubelet_endpoint(self): - """ - Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. - Endpoint on which Kubelet is listening. + """Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 + - :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :return: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 :rtype: V1DaemonEndpoint """ return self._kubelet_endpoint @kubelet_endpoint.setter def kubelet_endpoint(self, kubelet_endpoint): - """ - Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. - Endpoint on which Kubelet is listening. + """Sets the kubelet_endpoint of this V1NodeDaemonEndpoints. + - :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. + :param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501 :type: V1DaemonEndpoint """ self._kubelet_endpoint = kubelet_endpoint def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeDaemonEndpoints): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_list.py b/kubernetes/client/models/v1_node_list.py index 4ddf95158a..2f6c119692 100644 --- a/kubernetes/client/models/v1_node_list.py +++ b/kubernetes/client/models/v1_node_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Node]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1NodeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1NodeList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1NodeList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1NodeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1NodeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1NodeList. + :return: The api_version of this V1NodeList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1NodeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1NodeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1NodeList. + :param api_version: The api_version of this V1NodeList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1NodeList. - List of nodes + """Gets the items of this V1NodeList. # noqa: E501 + + List of nodes # noqa: E501 - :return: The items of this V1NodeList. + :return: The items of this V1NodeList. # noqa: E501 :rtype: list[V1Node] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1NodeList. - List of nodes + """Sets the items of this V1NodeList. + + List of nodes # noqa: E501 - :param items: The items of this V1NodeList. + :param items: The items of this V1NodeList. # noqa: E501 :type: list[V1Node] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1NodeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1NodeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1NodeList. + :return: The kind of this V1NodeList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1NodeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1NodeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1NodeList. + :param kind: The kind of this V1NodeList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1NodeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1NodeList. # noqa: E501 + - :return: The metadata of this V1NodeList. + :return: The metadata of this V1NodeList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1NodeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1NodeList. + - :param metadata: The metadata of this V1NodeList. + :param metadata: The metadata of this V1NodeList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_selector.py b/kubernetes/client/models/v1_node_selector.py index e37fdd9e68..0938a349a0 100644 --- a/kubernetes/client/models/v1_node_selector.py +++ b/kubernetes/client/models/v1_node_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'node_selector_terms': 'list[V1NodeSelectorTerm]' } @@ -38,10 +38,8 @@ class V1NodeSelector(object): 'node_selector_terms': 'nodeSelectorTerms' } - def __init__(self, node_selector_terms=None): - """ - V1NodeSelector - a model defined in Swagger - """ + def __init__(self, node_selector_terms=None): # noqa: E501 + """V1NodeSelector - a model defined in OpenAPI""" # noqa: E501 self._node_selector_terms = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, node_selector_terms=None): @property def node_selector_terms(self): - """ - Gets the node_selector_terms of this V1NodeSelector. - Required. A list of node selector terms. The terms are ORed. + """Gets the node_selector_terms of this V1NodeSelector. # noqa: E501 + + Required. A list of node selector terms. The terms are ORed. # noqa: E501 - :return: The node_selector_terms of this V1NodeSelector. + :return: The node_selector_terms of this V1NodeSelector. # noqa: E501 :rtype: list[V1NodeSelectorTerm] """ return self._node_selector_terms @node_selector_terms.setter def node_selector_terms(self, node_selector_terms): - """ - Sets the node_selector_terms of this V1NodeSelector. - Required. A list of node selector terms. The terms are ORed. + """Sets the node_selector_terms of this V1NodeSelector. + + Required. A list of node selector terms. The terms are ORed. # noqa: E501 - :param node_selector_terms: The node_selector_terms of this V1NodeSelector. + :param node_selector_terms: The node_selector_terms of this V1NodeSelector. # noqa: E501 :type: list[V1NodeSelectorTerm] """ if node_selector_terms is None: - raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") + raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") # noqa: E501 self._node_selector_terms = node_selector_terms def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeSelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_selector_requirement.py b/kubernetes/client/models/v1_node_selector_requirement.py index b522e99045..1642012dec 100644 --- a/kubernetes/client/models/v1_node_selector_requirement.py +++ b/kubernetes/client/models/v1_node_selector_requirement.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeSelectorRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'operator': 'str', 'values': 'list[str]' @@ -42,10 +42,8 @@ class V1NodeSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): - """ - V1NodeSelectorRequirement - a model defined in Swagger - """ + def __init__(self, key=None, operator=None, values=None): # noqa: E501 + """V1NodeSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 self._key = None self._operator = None @@ -55,88 +53,86 @@ def __init__(self, key=None, operator=None, values=None): self.key = key self.operator = operator if values is not None: - self.values = values + self.values = values @property def key(self): - """ - Gets the key of this V1NodeSelectorRequirement. - The label key that the selector applies to. + """Gets the key of this V1NodeSelectorRequirement. # noqa: E501 - :return: The key of this V1NodeSelectorRequirement. + The label key that the selector applies to. # noqa: E501 + + :return: The key of this V1NodeSelectorRequirement. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1NodeSelectorRequirement. - The label key that the selector applies to. + """Sets the key of this V1NodeSelectorRequirement. - :param key: The key of this V1NodeSelectorRequirement. + The label key that the selector applies to. # noqa: E501 + + :param key: The key of this V1NodeSelectorRequirement. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def operator(self): - """ - Gets the operator of this V1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + """Gets the operator of this V1NodeSelectorRequirement. # noqa: E501 - :return: The operator of this V1NodeSelectorRequirement. + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501 + + :return: The operator of this V1NodeSelectorRequirement. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """ - Sets the operator of this V1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + """Sets the operator of this V1NodeSelectorRequirement. + + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501 - :param operator: The operator of this V1NodeSelectorRequirement. + :param operator: The operator of this V1NodeSelectorRequirement. # noqa: E501 :type: str """ if operator is None: - raise ValueError("Invalid value for `operator`, must not be `None`") + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @property def values(self): - """ - Gets the values of this V1NodeSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + """Gets the values of this V1NodeSelectorRequirement. # noqa: E501 + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501 - :return: The values of this V1NodeSelectorRequirement. + :return: The values of this V1NodeSelectorRequirement. # noqa: E501 :rtype: list[str] """ return self._values @values.setter def values(self, values): - """ - Sets the values of this V1NodeSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + """Sets the values of this V1NodeSelectorRequirement. + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501 - :param values: The values of this V1NodeSelectorRequirement. + :param values: The values of this V1NodeSelectorRequirement. # noqa: E501 :type: list[str] """ self._values = values def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeSelectorRequirement): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_selector_term.py b/kubernetes/client/models/v1_node_selector_term.py index 763bfba693..eb169f10b8 100644 --- a/kubernetes/client/models/v1_node_selector_term.py +++ b/kubernetes/client/models/v1_node_selector_term.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeSelectorTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'match_expressions': 'list[V1NodeSelectorRequirement]', 'match_fields': 'list[V1NodeSelectorRequirement]' } @@ -40,38 +40,36 @@ class V1NodeSelectorTerm(object): 'match_fields': 'matchFields' } - def __init__(self, match_expressions=None, match_fields=None): - """ - V1NodeSelectorTerm - a model defined in Swagger - """ + def __init__(self, match_expressions=None, match_fields=None): # noqa: E501 + """V1NodeSelectorTerm - a model defined in OpenAPI""" # noqa: E501 self._match_expressions = None self._match_fields = None self.discriminator = None if match_expressions is not None: - self.match_expressions = match_expressions + self.match_expressions = match_expressions if match_fields is not None: - self.match_fields = match_fields + self.match_fields = match_fields @property def match_expressions(self): - """ - Gets the match_expressions of this V1NodeSelectorTerm. - A list of node selector requirements by node's labels. + """Gets the match_expressions of this V1NodeSelectorTerm. # noqa: E501 + + A list of node selector requirements by node's labels. # noqa: E501 - :return: The match_expressions of this V1NodeSelectorTerm. + :return: The match_expressions of this V1NodeSelectorTerm. # noqa: E501 :rtype: list[V1NodeSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): - """ - Sets the match_expressions of this V1NodeSelectorTerm. - A list of node selector requirements by node's labels. + """Sets the match_expressions of this V1NodeSelectorTerm. - :param match_expressions: The match_expressions of this V1NodeSelectorTerm. + A list of node selector requirements by node's labels. # noqa: E501 + + :param match_expressions: The match_expressions of this V1NodeSelectorTerm. # noqa: E501 :type: list[V1NodeSelectorRequirement] """ @@ -79,34 +77,32 @@ def match_expressions(self, match_expressions): @property def match_fields(self): - """ - Gets the match_fields of this V1NodeSelectorTerm. - A list of node selector requirements by node's fields. + """Gets the match_fields of this V1NodeSelectorTerm. # noqa: E501 + + A list of node selector requirements by node's fields. # noqa: E501 - :return: The match_fields of this V1NodeSelectorTerm. + :return: The match_fields of this V1NodeSelectorTerm. # noqa: E501 :rtype: list[V1NodeSelectorRequirement] """ return self._match_fields @match_fields.setter def match_fields(self, match_fields): - """ - Sets the match_fields of this V1NodeSelectorTerm. - A list of node selector requirements by node's fields. + """Sets the match_fields of this V1NodeSelectorTerm. + + A list of node selector requirements by node's fields. # noqa: E501 - :param match_fields: The match_fields of this V1NodeSelectorTerm. + :param match_fields: The match_fields of this V1NodeSelectorTerm. # noqa: E501 :type: list[V1NodeSelectorRequirement] """ self._match_fields = match_fields def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeSelectorTerm): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_spec.py b/kubernetes/client/models/v1_node_spec.py index 203027d212..803968dc17 100644 --- a/kubernetes/client/models/v1_node_spec.py +++ b/kubernetes/client/models/v1_node_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'config_source': 'V1NodeConfigSource', 'external_id': 'str', 'pod_cidr': 'str', @@ -48,10 +48,8 @@ class V1NodeSpec(object): 'unschedulable': 'unschedulable' } - def __init__(self, config_source=None, external_id=None, pod_cidr=None, provider_id=None, taints=None, unschedulable=None): - """ - V1NodeSpec - a model defined in Swagger - """ + def __init__(self, config_source=None, external_id=None, pod_cidr=None, provider_id=None, taints=None, unschedulable=None): # noqa: E501 + """V1NodeSpec - a model defined in OpenAPI""" # noqa: E501 self._config_source = None self._external_id = None @@ -62,36 +60,34 @@ def __init__(self, config_source=None, external_id=None, pod_cidr=None, provider self.discriminator = None if config_source is not None: - self.config_source = config_source + self.config_source = config_source if external_id is not None: - self.external_id = external_id + self.external_id = external_id if pod_cidr is not None: - self.pod_cidr = pod_cidr + self.pod_cidr = pod_cidr if provider_id is not None: - self.provider_id = provider_id + self.provider_id = provider_id if taints is not None: - self.taints = taints + self.taints = taints if unschedulable is not None: - self.unschedulable = unschedulable + self.unschedulable = unschedulable @property def config_source(self): - """ - Gets the config_source of this V1NodeSpec. - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + """Gets the config_source of this V1NodeSpec. # noqa: E501 + - :return: The config_source of this V1NodeSpec. + :return: The config_source of this V1NodeSpec. # noqa: E501 :rtype: V1NodeConfigSource """ return self._config_source @config_source.setter def config_source(self, config_source): - """ - Sets the config_source of this V1NodeSpec. - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + """Sets the config_source of this V1NodeSpec. + - :param config_source: The config_source of this V1NodeSpec. + :param config_source: The config_source of this V1NodeSpec. # noqa: E501 :type: V1NodeConfigSource """ @@ -99,22 +95,22 @@ def config_source(self, config_source): @property def external_id(self): - """ - Gets the external_id of this V1NodeSpec. - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + """Gets the external_id of this V1NodeSpec. # noqa: E501 + + Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501 - :return: The external_id of this V1NodeSpec. + :return: The external_id of this V1NodeSpec. # noqa: E501 :rtype: str """ return self._external_id @external_id.setter def external_id(self, external_id): - """ - Sets the external_id of this V1NodeSpec. - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + """Sets the external_id of this V1NodeSpec. - :param external_id: The external_id of this V1NodeSpec. + Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501 + + :param external_id: The external_id of this V1NodeSpec. # noqa: E501 :type: str """ @@ -122,22 +118,22 @@ def external_id(self, external_id): @property def pod_cidr(self): - """ - Gets the pod_cidr of this V1NodeSpec. - PodCIDR represents the pod IP range assigned to the node. + """Gets the pod_cidr of this V1NodeSpec. # noqa: E501 - :return: The pod_cidr of this V1NodeSpec. + PodCIDR represents the pod IP range assigned to the node. # noqa: E501 + + :return: The pod_cidr of this V1NodeSpec. # noqa: E501 :rtype: str """ return self._pod_cidr @pod_cidr.setter def pod_cidr(self, pod_cidr): - """ - Sets the pod_cidr of this V1NodeSpec. - PodCIDR represents the pod IP range assigned to the node. + """Sets the pod_cidr of this V1NodeSpec. + + PodCIDR represents the pod IP range assigned to the node. # noqa: E501 - :param pod_cidr: The pod_cidr of this V1NodeSpec. + :param pod_cidr: The pod_cidr of this V1NodeSpec. # noqa: E501 :type: str """ @@ -145,22 +141,22 @@ def pod_cidr(self, pod_cidr): @property def provider_id(self): - """ - Gets the provider_id of this V1NodeSpec. - ID of the node assigned by the cloud provider in the format: :// + """Gets the provider_id of this V1NodeSpec. # noqa: E501 + + ID of the node assigned by the cloud provider in the format: :// # noqa: E501 - :return: The provider_id of this V1NodeSpec. + :return: The provider_id of this V1NodeSpec. # noqa: E501 :rtype: str """ return self._provider_id @provider_id.setter def provider_id(self, provider_id): - """ - Sets the provider_id of this V1NodeSpec. - ID of the node assigned by the cloud provider in the format: :// + """Sets the provider_id of this V1NodeSpec. + + ID of the node assigned by the cloud provider in the format: :// # noqa: E501 - :param provider_id: The provider_id of this V1NodeSpec. + :param provider_id: The provider_id of this V1NodeSpec. # noqa: E501 :type: str """ @@ -168,22 +164,22 @@ def provider_id(self, provider_id): @property def taints(self): - """ - Gets the taints of this V1NodeSpec. - If specified, the node's taints. + """Gets the taints of this V1NodeSpec. # noqa: E501 - :return: The taints of this V1NodeSpec. + If specified, the node's taints. # noqa: E501 + + :return: The taints of this V1NodeSpec. # noqa: E501 :rtype: list[V1Taint] """ return self._taints @taints.setter def taints(self, taints): - """ - Sets the taints of this V1NodeSpec. - If specified, the node's taints. + """Sets the taints of this V1NodeSpec. - :param taints: The taints of this V1NodeSpec. + If specified, the node's taints. # noqa: E501 + + :param taints: The taints of this V1NodeSpec. # noqa: E501 :type: list[V1Taint] """ @@ -191,34 +187,32 @@ def taints(self, taints): @property def unschedulable(self): - """ - Gets the unschedulable of this V1NodeSpec. - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + """Gets the unschedulable of this V1NodeSpec. # noqa: E501 + + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501 - :return: The unschedulable of this V1NodeSpec. + :return: The unschedulable of this V1NodeSpec. # noqa: E501 :rtype: bool """ return self._unschedulable @unschedulable.setter def unschedulable(self, unschedulable): - """ - Sets the unschedulable of this V1NodeSpec. - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + """Sets the unschedulable of this V1NodeSpec. + + Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501 - :param unschedulable: The unschedulable of this V1NodeSpec. + :param unschedulable: The unschedulable of this V1NodeSpec. # noqa: E501 :type: bool """ self._unschedulable = unschedulable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +233,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index 354c58e238..d6dccd21d5 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'addresses': 'list[V1NodeAddress]', 'allocatable': 'dict(str, str)', 'capacity': 'dict(str, str)', @@ -58,10 +58,8 @@ class V1NodeStatus(object): 'volumes_in_use': 'volumesInUse' } - def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None): - """ - V1NodeStatus - a model defined in Swagger - """ + def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None): # noqa: E501 + """V1NodeStatus - a model defined in OpenAPI""" # noqa: E501 self._addresses = None self._allocatable = None @@ -77,46 +75,46 @@ def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=N self.discriminator = None if addresses is not None: - self.addresses = addresses + self.addresses = addresses if allocatable is not None: - self.allocatable = allocatable + self.allocatable = allocatable if capacity is not None: - self.capacity = capacity + self.capacity = capacity if conditions is not None: - self.conditions = conditions + self.conditions = conditions if config is not None: - self.config = config + self.config = config if daemon_endpoints is not None: - self.daemon_endpoints = daemon_endpoints + self.daemon_endpoints = daemon_endpoints if images is not None: - self.images = images + self.images = images if node_info is not None: - self.node_info = node_info + self.node_info = node_info if phase is not None: - self.phase = phase + self.phase = phase if volumes_attached is not None: - self.volumes_attached = volumes_attached + self.volumes_attached = volumes_attached if volumes_in_use is not None: - self.volumes_in_use = volumes_in_use + self.volumes_in_use = volumes_in_use @property def addresses(self): - """ - Gets the addresses of this V1NodeStatus. - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses + """Gets the addresses of this V1NodeStatus. # noqa: E501 + + List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses # noqa: E501 - :return: The addresses of this V1NodeStatus. + :return: The addresses of this V1NodeStatus. # noqa: E501 :rtype: list[V1NodeAddress] """ return self._addresses @addresses.setter def addresses(self, addresses): - """ - Sets the addresses of this V1NodeStatus. - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses + """Sets the addresses of this V1NodeStatus. + + List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses # noqa: E501 - :param addresses: The addresses of this V1NodeStatus. + :param addresses: The addresses of this V1NodeStatus. # noqa: E501 :type: list[V1NodeAddress] """ @@ -124,22 +122,22 @@ def addresses(self, addresses): @property def allocatable(self): - """ - Gets the allocatable of this V1NodeStatus. - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + """Gets the allocatable of this V1NodeStatus. # noqa: E501 + + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501 - :return: The allocatable of this V1NodeStatus. + :return: The allocatable of this V1NodeStatus. # noqa: E501 :rtype: dict(str, str) """ return self._allocatable @allocatable.setter def allocatable(self, allocatable): - """ - Sets the allocatable of this V1NodeStatus. - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + """Sets the allocatable of this V1NodeStatus. + + Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501 - :param allocatable: The allocatable of this V1NodeStatus. + :param allocatable: The allocatable of this V1NodeStatus. # noqa: E501 :type: dict(str, str) """ @@ -147,22 +145,22 @@ def allocatable(self, allocatable): @property def capacity(self): - """ - Gets the capacity of this V1NodeStatus. - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + """Gets the capacity of this V1NodeStatus. # noqa: E501 - :return: The capacity of this V1NodeStatus. + Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 + + :return: The capacity of this V1NodeStatus. # noqa: E501 :rtype: dict(str, str) """ return self._capacity @capacity.setter def capacity(self, capacity): - """ - Sets the capacity of this V1NodeStatus. - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + """Sets the capacity of this V1NodeStatus. - :param capacity: The capacity of this V1NodeStatus. + Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 + + :param capacity: The capacity of this V1NodeStatus. # noqa: E501 :type: dict(str, str) """ @@ -170,22 +168,22 @@ def capacity(self, capacity): @property def conditions(self): - """ - Gets the conditions of this V1NodeStatus. - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + """Gets the conditions of this V1NodeStatus. # noqa: E501 - :return: The conditions of this V1NodeStatus. + Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition # noqa: E501 + + :return: The conditions of this V1NodeStatus. # noqa: E501 :rtype: list[V1NodeCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1NodeStatus. - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + """Sets the conditions of this V1NodeStatus. - :param conditions: The conditions of this V1NodeStatus. + Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition # noqa: E501 + + :param conditions: The conditions of this V1NodeStatus. # noqa: E501 :type: list[V1NodeCondition] """ @@ -193,22 +191,20 @@ def conditions(self, conditions): @property def config(self): - """ - Gets the config of this V1NodeStatus. - Status of the config assigned to the node via the dynamic Kubelet config feature. + """Gets the config of this V1NodeStatus. # noqa: E501 - :return: The config of this V1NodeStatus. + + :return: The config of this V1NodeStatus. # noqa: E501 :rtype: V1NodeConfigStatus """ return self._config @config.setter def config(self, config): - """ - Sets the config of this V1NodeStatus. - Status of the config assigned to the node via the dynamic Kubelet config feature. + """Sets the config of this V1NodeStatus. - :param config: The config of this V1NodeStatus. + + :param config: The config of this V1NodeStatus. # noqa: E501 :type: V1NodeConfigStatus """ @@ -216,22 +212,20 @@ def config(self, config): @property def daemon_endpoints(self): - """ - Gets the daemon_endpoints of this V1NodeStatus. - Endpoints of daemons running on the Node. + """Gets the daemon_endpoints of this V1NodeStatus. # noqa: E501 - :return: The daemon_endpoints of this V1NodeStatus. + + :return: The daemon_endpoints of this V1NodeStatus. # noqa: E501 :rtype: V1NodeDaemonEndpoints """ return self._daemon_endpoints @daemon_endpoints.setter def daemon_endpoints(self, daemon_endpoints): - """ - Sets the daemon_endpoints of this V1NodeStatus. - Endpoints of daemons running on the Node. + """Sets the daemon_endpoints of this V1NodeStatus. + - :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. + :param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. # noqa: E501 :type: V1NodeDaemonEndpoints """ @@ -239,22 +233,22 @@ def daemon_endpoints(self, daemon_endpoints): @property def images(self): - """ - Gets the images of this V1NodeStatus. - List of container images on this node + """Gets the images of this V1NodeStatus. # noqa: E501 + + List of container images on this node # noqa: E501 - :return: The images of this V1NodeStatus. + :return: The images of this V1NodeStatus. # noqa: E501 :rtype: list[V1ContainerImage] """ return self._images @images.setter def images(self, images): - """ - Sets the images of this V1NodeStatus. - List of container images on this node + """Sets the images of this V1NodeStatus. + + List of container images on this node # noqa: E501 - :param images: The images of this V1NodeStatus. + :param images: The images of this V1NodeStatus. # noqa: E501 :type: list[V1ContainerImage] """ @@ -262,22 +256,20 @@ def images(self, images): @property def node_info(self): - """ - Gets the node_info of this V1NodeStatus. - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + """Gets the node_info of this V1NodeStatus. # noqa: E501 + - :return: The node_info of this V1NodeStatus. + :return: The node_info of this V1NodeStatus. # noqa: E501 :rtype: V1NodeSystemInfo """ return self._node_info @node_info.setter def node_info(self, node_info): - """ - Sets the node_info of this V1NodeStatus. - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + """Sets the node_info of this V1NodeStatus. + - :param node_info: The node_info of this V1NodeStatus. + :param node_info: The node_info of this V1NodeStatus. # noqa: E501 :type: V1NodeSystemInfo """ @@ -285,22 +277,22 @@ def node_info(self, node_info): @property def phase(self): - """ - Gets the phase of this V1NodeStatus. - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + """Gets the phase of this V1NodeStatus. # noqa: E501 + + NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501 - :return: The phase of this V1NodeStatus. + :return: The phase of this V1NodeStatus. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): - """ - Sets the phase of this V1NodeStatus. - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + """Sets the phase of this V1NodeStatus. + + NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501 - :param phase: The phase of this V1NodeStatus. + :param phase: The phase of this V1NodeStatus. # noqa: E501 :type: str """ @@ -308,22 +300,22 @@ def phase(self, phase): @property def volumes_attached(self): - """ - Gets the volumes_attached of this V1NodeStatus. - List of volumes that are attached to the node. + """Gets the volumes_attached of this V1NodeStatus. # noqa: E501 + + List of volumes that are attached to the node. # noqa: E501 - :return: The volumes_attached of this V1NodeStatus. + :return: The volumes_attached of this V1NodeStatus. # noqa: E501 :rtype: list[V1AttachedVolume] """ return self._volumes_attached @volumes_attached.setter def volumes_attached(self, volumes_attached): - """ - Sets the volumes_attached of this V1NodeStatus. - List of volumes that are attached to the node. + """Sets the volumes_attached of this V1NodeStatus. - :param volumes_attached: The volumes_attached of this V1NodeStatus. + List of volumes that are attached to the node. # noqa: E501 + + :param volumes_attached: The volumes_attached of this V1NodeStatus. # noqa: E501 :type: list[V1AttachedVolume] """ @@ -331,34 +323,32 @@ def volumes_attached(self, volumes_attached): @property def volumes_in_use(self): - """ - Gets the volumes_in_use of this V1NodeStatus. - List of attachable volumes in use (mounted) by the node. + """Gets the volumes_in_use of this V1NodeStatus. # noqa: E501 - :return: The volumes_in_use of this V1NodeStatus. + List of attachable volumes in use (mounted) by the node. # noqa: E501 + + :return: The volumes_in_use of this V1NodeStatus. # noqa: E501 :rtype: list[str] """ return self._volumes_in_use @volumes_in_use.setter def volumes_in_use(self, volumes_in_use): - """ - Sets the volumes_in_use of this V1NodeStatus. - List of attachable volumes in use (mounted) by the node. + """Sets the volumes_in_use of this V1NodeStatus. - :param volumes_in_use: The volumes_in_use of this V1NodeStatus. + List of attachable volumes in use (mounted) by the node. # noqa: E501 + + :param volumes_in_use: The volumes_in_use of this V1NodeStatus. # noqa: E501 :type: list[str] """ self._volumes_in_use = volumes_in_use def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -379,28 +369,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_node_system_info.py b/kubernetes/client/models/v1_node_system_info.py index 54c1120253..c8f7f82275 100644 --- a/kubernetes/client/models/v1_node_system_info.py +++ b/kubernetes/client/models/v1_node_system_info.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NodeSystemInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'architecture': 'str', 'boot_id': 'str', 'container_runtime_version': 'str', @@ -56,10 +56,8 @@ class V1NodeSystemInfo(object): 'system_uuid': 'systemUUID' } - def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None): - """ - V1NodeSystemInfo - a model defined in Swagger - """ + def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None): # noqa: E501 + """V1NodeSystemInfo - a model defined in OpenAPI""" # noqa: E501 self._architecture = None self._boot_id = None @@ -86,261 +84,259 @@ def __init__(self, architecture=None, boot_id=None, container_runtime_version=No @property def architecture(self): - """ - Gets the architecture of this V1NodeSystemInfo. - The Architecture reported by the node + """Gets the architecture of this V1NodeSystemInfo. # noqa: E501 - :return: The architecture of this V1NodeSystemInfo. + The Architecture reported by the node # noqa: E501 + + :return: The architecture of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._architecture @architecture.setter def architecture(self, architecture): - """ - Sets the architecture of this V1NodeSystemInfo. - The Architecture reported by the node + """Sets the architecture of this V1NodeSystemInfo. - :param architecture: The architecture of this V1NodeSystemInfo. + The Architecture reported by the node # noqa: E501 + + :param architecture: The architecture of this V1NodeSystemInfo. # noqa: E501 :type: str """ if architecture is None: - raise ValueError("Invalid value for `architecture`, must not be `None`") + raise ValueError("Invalid value for `architecture`, must not be `None`") # noqa: E501 self._architecture = architecture @property def boot_id(self): - """ - Gets the boot_id of this V1NodeSystemInfo. - Boot ID reported by the node. + """Gets the boot_id of this V1NodeSystemInfo. # noqa: E501 - :return: The boot_id of this V1NodeSystemInfo. + Boot ID reported by the node. # noqa: E501 + + :return: The boot_id of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._boot_id @boot_id.setter def boot_id(self, boot_id): - """ - Sets the boot_id of this V1NodeSystemInfo. - Boot ID reported by the node. + """Sets the boot_id of this V1NodeSystemInfo. + + Boot ID reported by the node. # noqa: E501 - :param boot_id: The boot_id of this V1NodeSystemInfo. + :param boot_id: The boot_id of this V1NodeSystemInfo. # noqa: E501 :type: str """ if boot_id is None: - raise ValueError("Invalid value for `boot_id`, must not be `None`") + raise ValueError("Invalid value for `boot_id`, must not be `None`") # noqa: E501 self._boot_id = boot_id @property def container_runtime_version(self): - """ - Gets the container_runtime_version of this V1NodeSystemInfo. - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + """Gets the container_runtime_version of this V1NodeSystemInfo. # noqa: E501 + + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). # noqa: E501 - :return: The container_runtime_version of this V1NodeSystemInfo. + :return: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._container_runtime_version @container_runtime_version.setter def container_runtime_version(self, container_runtime_version): - """ - Sets the container_runtime_version of this V1NodeSystemInfo. - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + """Sets the container_runtime_version of this V1NodeSystemInfo. + + ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). # noqa: E501 - :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. + :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ if container_runtime_version is None: - raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") + raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") # noqa: E501 self._container_runtime_version = container_runtime_version @property def kernel_version(self): - """ - Gets the kernel_version of this V1NodeSystemInfo. - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + """Gets the kernel_version of this V1NodeSystemInfo. # noqa: E501 + + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501 - :return: The kernel_version of this V1NodeSystemInfo. + :return: The kernel_version of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._kernel_version @kernel_version.setter def kernel_version(self, kernel_version): - """ - Sets the kernel_version of this V1NodeSystemInfo. - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + """Sets the kernel_version of this V1NodeSystemInfo. - :param kernel_version: The kernel_version of this V1NodeSystemInfo. + Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501 + + :param kernel_version: The kernel_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ if kernel_version is None: - raise ValueError("Invalid value for `kernel_version`, must not be `None`") + raise ValueError("Invalid value for `kernel_version`, must not be `None`") # noqa: E501 self._kernel_version = kernel_version @property def kube_proxy_version(self): - """ - Gets the kube_proxy_version of this V1NodeSystemInfo. - KubeProxy Version reported by the node. + """Gets the kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 - :return: The kube_proxy_version of this V1NodeSystemInfo. + KubeProxy Version reported by the node. # noqa: E501 + + :return: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._kube_proxy_version @kube_proxy_version.setter def kube_proxy_version(self, kube_proxy_version): - """ - Sets the kube_proxy_version of this V1NodeSystemInfo. - KubeProxy Version reported by the node. + """Sets the kube_proxy_version of this V1NodeSystemInfo. - :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. + KubeProxy Version reported by the node. # noqa: E501 + + :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ if kube_proxy_version is None: - raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") + raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") # noqa: E501 self._kube_proxy_version = kube_proxy_version @property def kubelet_version(self): - """ - Gets the kubelet_version of this V1NodeSystemInfo. - Kubelet Version reported by the node. + """Gets the kubelet_version of this V1NodeSystemInfo. # noqa: E501 + + Kubelet Version reported by the node. # noqa: E501 - :return: The kubelet_version of this V1NodeSystemInfo. + :return: The kubelet_version of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._kubelet_version @kubelet_version.setter def kubelet_version(self, kubelet_version): - """ - Sets the kubelet_version of this V1NodeSystemInfo. - Kubelet Version reported by the node. + """Sets the kubelet_version of this V1NodeSystemInfo. + + Kubelet Version reported by the node. # noqa: E501 - :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. + :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ if kubelet_version is None: - raise ValueError("Invalid value for `kubelet_version`, must not be `None`") + raise ValueError("Invalid value for `kubelet_version`, must not be `None`") # noqa: E501 self._kubelet_version = kubelet_version @property def machine_id(self): - """ - Gets the machine_id of this V1NodeSystemInfo. - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + """Gets the machine_id of this V1NodeSystemInfo. # noqa: E501 + + MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501 - :return: The machine_id of this V1NodeSystemInfo. + :return: The machine_id of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._machine_id @machine_id.setter def machine_id(self, machine_id): - """ - Sets the machine_id of this V1NodeSystemInfo. - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + """Sets the machine_id of this V1NodeSystemInfo. + + MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501 - :param machine_id: The machine_id of this V1NodeSystemInfo. + :param machine_id: The machine_id of this V1NodeSystemInfo. # noqa: E501 :type: str """ if machine_id is None: - raise ValueError("Invalid value for `machine_id`, must not be `None`") + raise ValueError("Invalid value for `machine_id`, must not be `None`") # noqa: E501 self._machine_id = machine_id @property def operating_system(self): - """ - Gets the operating_system of this V1NodeSystemInfo. - The Operating System reported by the node + """Gets the operating_system of this V1NodeSystemInfo. # noqa: E501 - :return: The operating_system of this V1NodeSystemInfo. + The Operating System reported by the node # noqa: E501 + + :return: The operating_system of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._operating_system @operating_system.setter def operating_system(self, operating_system): - """ - Sets the operating_system of this V1NodeSystemInfo. - The Operating System reported by the node + """Sets the operating_system of this V1NodeSystemInfo. - :param operating_system: The operating_system of this V1NodeSystemInfo. + The Operating System reported by the node # noqa: E501 + + :param operating_system: The operating_system of this V1NodeSystemInfo. # noqa: E501 :type: str """ if operating_system is None: - raise ValueError("Invalid value for `operating_system`, must not be `None`") + raise ValueError("Invalid value for `operating_system`, must not be `None`") # noqa: E501 self._operating_system = operating_system @property def os_image(self): - """ - Gets the os_image of this V1NodeSystemInfo. - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + """Gets the os_image of this V1NodeSystemInfo. # noqa: E501 - :return: The os_image of this V1NodeSystemInfo. + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501 + + :return: The os_image of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._os_image @os_image.setter def os_image(self, os_image): - """ - Sets the os_image of this V1NodeSystemInfo. - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + """Sets the os_image of this V1NodeSystemInfo. + + OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501 - :param os_image: The os_image of this V1NodeSystemInfo. + :param os_image: The os_image of this V1NodeSystemInfo. # noqa: E501 :type: str """ if os_image is None: - raise ValueError("Invalid value for `os_image`, must not be `None`") + raise ValueError("Invalid value for `os_image`, must not be `None`") # noqa: E501 self._os_image = os_image @property def system_uuid(self): - """ - Gets the system_uuid of this V1NodeSystemInfo. - SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + """Gets the system_uuid of this V1NodeSystemInfo. # noqa: E501 + + SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html # noqa: E501 - :return: The system_uuid of this V1NodeSystemInfo. + :return: The system_uuid of this V1NodeSystemInfo. # noqa: E501 :rtype: str """ return self._system_uuid @system_uuid.setter def system_uuid(self, system_uuid): - """ - Sets the system_uuid of this V1NodeSystemInfo. - SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + """Sets the system_uuid of this V1NodeSystemInfo. + + SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html # noqa: E501 - :param system_uuid: The system_uuid of this V1NodeSystemInfo. + :param system_uuid: The system_uuid of this V1NodeSystemInfo. # noqa: E501 :type: str """ if system_uuid is None: - raise ValueError("Invalid value for `system_uuid`, must not be `None`") + raise ValueError("Invalid value for `system_uuid`, must not be `None`") # noqa: E501 self._system_uuid = system_uuid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -361,28 +357,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NodeSystemInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_non_resource_attributes.py b/kubernetes/client/models/v1_non_resource_attributes.py index caf5f18a86..1b341ca499 100644 --- a/kubernetes/client/models/v1_non_resource_attributes.py +++ b/kubernetes/client/models/v1_non_resource_attributes.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NonResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path': 'str', 'verb': 'str' } @@ -40,38 +40,36 @@ class V1NonResourceAttributes(object): 'verb': 'verb' } - def __init__(self, path=None, verb=None): - """ - V1NonResourceAttributes - a model defined in Swagger - """ + def __init__(self, path=None, verb=None): # noqa: E501 + """V1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501 self._path = None self._verb = None self.discriminator = None if path is not None: - self.path = path + self.path = path if verb is not None: - self.verb = verb + self.verb = verb @property def path(self): - """ - Gets the path of this V1NonResourceAttributes. - Path is the URL path of the request + """Gets the path of this V1NonResourceAttributes. # noqa: E501 + + Path is the URL path of the request # noqa: E501 - :return: The path of this V1NonResourceAttributes. + :return: The path of this V1NonResourceAttributes. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1NonResourceAttributes. - Path is the URL path of the request + """Sets the path of this V1NonResourceAttributes. - :param path: The path of this V1NonResourceAttributes. + Path is the URL path of the request # noqa: E501 + + :param path: The path of this V1NonResourceAttributes. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def path(self, path): @property def verb(self): - """ - Gets the verb of this V1NonResourceAttributes. - Verb is the standard HTTP verb + """Gets the verb of this V1NonResourceAttributes. # noqa: E501 + + Verb is the standard HTTP verb # noqa: E501 - :return: The verb of this V1NonResourceAttributes. + :return: The verb of this V1NonResourceAttributes. # noqa: E501 :rtype: str """ return self._verb @verb.setter def verb(self, verb): - """ - Sets the verb of this V1NonResourceAttributes. - Verb is the standard HTTP verb + """Sets the verb of this V1NonResourceAttributes. + + Verb is the standard HTTP verb # noqa: E501 - :param verb: The verb of this V1NonResourceAttributes. + :param verb: The verb of this V1NonResourceAttributes. # noqa: E501 :type: str """ self._verb = verb def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NonResourceAttributes): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_non_resource_rule.py b/kubernetes/client/models/v1_non_resource_rule.py index 848b264715..941c277609 100644 --- a/kubernetes/client/models/v1_non_resource_rule.py +++ b/kubernetes/client/models/v1_non_resource_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1NonResourceRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'non_resource_ur_ls': 'list[str]', 'verbs': 'list[str]' } @@ -40,37 +40,35 @@ class V1NonResourceRule(object): 'verbs': 'verbs' } - def __init__(self, non_resource_ur_ls=None, verbs=None): - """ - V1NonResourceRule - a model defined in Swagger - """ + def __init__(self, non_resource_ur_ls=None, verbs=None): # noqa: E501 + """V1NonResourceRule - a model defined in OpenAPI""" # noqa: E501 self._non_resource_ur_ls = None self._verbs = None self.discriminator = None if non_resource_ur_ls is not None: - self.non_resource_ur_ls = non_resource_ur_ls + self.non_resource_ur_ls = non_resource_ur_ls self.verbs = verbs @property def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1NonResourceRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + """Gets the non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 - :return: The non_resource_ur_ls of this V1NonResourceRule. + :return: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 :rtype: list[str] """ return self._non_resource_ur_ls @non_resource_ur_ls.setter def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1NonResourceRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + """Sets the non_resource_ur_ls of this V1NonResourceRule. - :param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourceRule. + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501 :type: list[str] """ @@ -78,36 +76,34 @@ def non_resource_ur_ls(self, non_resource_ur_ls): @property def verbs(self): - """ - Gets the verbs of this V1NonResourceRule. - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + """Gets the verbs of this V1NonResourceRule. # noqa: E501 + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 - :return: The verbs of this V1NonResourceRule. + :return: The verbs of this V1NonResourceRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1NonResourceRule. - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + """Sets the verbs of this V1NonResourceRule. + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 - :param verbs: The verbs of this V1NonResourceRule. + :param verbs: The verbs of this V1NonResourceRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1NonResourceRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_object_field_selector.py b/kubernetes/client/models/v1_object_field_selector.py index c9b178a9ce..0d14ed010b 100644 --- a/kubernetes/client/models/v1_object_field_selector.py +++ b/kubernetes/client/models/v1_object_field_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ObjectFieldSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'field_path': 'str' } @@ -40,37 +40,35 @@ class V1ObjectFieldSelector(object): 'field_path': 'fieldPath' } - def __init__(self, api_version=None, field_path=None): - """ - V1ObjectFieldSelector - a model defined in Swagger - """ + def __init__(self, api_version=None, field_path=None): # noqa: E501 + """V1ObjectFieldSelector - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._field_path = None self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.field_path = field_path @property def api_version(self): - """ - Gets the api_version of this V1ObjectFieldSelector. - Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + """Gets the api_version of this V1ObjectFieldSelector. # noqa: E501 + + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501 - :return: The api_version of this V1ObjectFieldSelector. + :return: The api_version of this V1ObjectFieldSelector. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ObjectFieldSelector. - Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + """Sets the api_version of this V1ObjectFieldSelector. - :param api_version: The api_version of this V1ObjectFieldSelector. + Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501 + + :param api_version: The api_version of this V1ObjectFieldSelector. # noqa: E501 :type: str """ @@ -78,36 +76,34 @@ def api_version(self, api_version): @property def field_path(self): - """ - Gets the field_path of this V1ObjectFieldSelector. - Path of the field to select in the specified API version. + """Gets the field_path of this V1ObjectFieldSelector. # noqa: E501 + + Path of the field to select in the specified API version. # noqa: E501 - :return: The field_path of this V1ObjectFieldSelector. + :return: The field_path of this V1ObjectFieldSelector. # noqa: E501 :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): - """ - Sets the field_path of this V1ObjectFieldSelector. - Path of the field to select in the specified API version. + """Sets the field_path of this V1ObjectFieldSelector. + + Path of the field to select in the specified API version. # noqa: E501 - :param field_path: The field_path of this V1ObjectFieldSelector. + :param field_path: The field_path of this V1ObjectFieldSelector. # noqa: E501 :type: str """ if field_path is None: - raise ValueError("Invalid value for `field_path`, must not be `None`") + raise ValueError("Invalid value for `field_path`, must not be `None`") # noqa: E501 self._field_path = field_path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ObjectFieldSelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index 5f6d508c8e..465701d319 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ObjectMeta(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'annotations': 'dict(str, str)', 'cluster_name': 'str', 'creation_timestamp': 'datetime', @@ -70,10 +70,8 @@ class V1ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): - """ - V1ObjectMeta - a model defined in Swagger - """ + def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, initializers=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): # noqa: E501 + """V1ObjectMeta - a model defined in OpenAPI""" # noqa: E501 self._annotations = None self._cluster_name = None @@ -95,58 +93,58 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, self.discriminator = None if annotations is not None: - self.annotations = annotations + self.annotations = annotations if cluster_name is not None: - self.cluster_name = cluster_name + self.cluster_name = cluster_name if creation_timestamp is not None: - self.creation_timestamp = creation_timestamp + self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: - self.deletion_grace_period_seconds = deletion_grace_period_seconds + self.deletion_grace_period_seconds = deletion_grace_period_seconds if deletion_timestamp is not None: - self.deletion_timestamp = deletion_timestamp + self.deletion_timestamp = deletion_timestamp if finalizers is not None: - self.finalizers = finalizers + self.finalizers = finalizers if generate_name is not None: - self.generate_name = generate_name + self.generate_name = generate_name if generation is not None: - self.generation = generation + self.generation = generation if initializers is not None: - self.initializers = initializers + self.initializers = initializers if labels is not None: - self.labels = labels + self.labels = labels if managed_fields is not None: - self.managed_fields = managed_fields + self.managed_fields = managed_fields if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if owner_references is not None: - self.owner_references = owner_references + self.owner_references = owner_references if resource_version is not None: - self.resource_version = resource_version + self.resource_version = resource_version if self_link is not None: - self.self_link = self_link + self.self_link = self_link if uid is not None: - self.uid = uid + self.uid = uid @property def annotations(self): - """ - Gets the annotations of this V1ObjectMeta. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + """Gets the annotations of this V1ObjectMeta. # noqa: E501 + + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501 - :return: The annotations of this V1ObjectMeta. + :return: The annotations of this V1ObjectMeta. # noqa: E501 :rtype: dict(str, str) """ return self._annotations @annotations.setter def annotations(self, annotations): - """ - Sets the annotations of this V1ObjectMeta. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + """Sets the annotations of this V1ObjectMeta. - :param annotations: The annotations of this V1ObjectMeta. + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations # noqa: E501 + + :param annotations: The annotations of this V1ObjectMeta. # noqa: E501 :type: dict(str, str) """ @@ -154,22 +152,22 @@ def annotations(self, annotations): @property def cluster_name(self): - """ - Gets the cluster_name of this V1ObjectMeta. - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + """Gets the cluster_name of this V1ObjectMeta. # noqa: E501 - :return: The cluster_name of this V1ObjectMeta. + The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. # noqa: E501 + + :return: The cluster_name of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._cluster_name @cluster_name.setter def cluster_name(self, cluster_name): - """ - Sets the cluster_name of this V1ObjectMeta. - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + """Sets the cluster_name of this V1ObjectMeta. + + The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. # noqa: E501 - :param cluster_name: The cluster_name of this V1ObjectMeta. + :param cluster_name: The cluster_name of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -177,22 +175,22 @@ def cluster_name(self, cluster_name): @property def creation_timestamp(self): - """ - Gets the creation_timestamp of this V1ObjectMeta. - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the creation_timestamp of this V1ObjectMeta. # noqa: E501 + + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata # noqa: E501 - :return: The creation_timestamp of this V1ObjectMeta. + :return: The creation_timestamp of this V1ObjectMeta. # noqa: E501 :rtype: datetime """ return self._creation_timestamp @creation_timestamp.setter def creation_timestamp(self, creation_timestamp): - """ - Sets the creation_timestamp of this V1ObjectMeta. - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the creation_timestamp of this V1ObjectMeta. + + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata # noqa: E501 - :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. + :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. # noqa: E501 :type: datetime """ @@ -200,22 +198,22 @@ def creation_timestamp(self, creation_timestamp): @property def deletion_grace_period_seconds(self): - """ - Gets the deletion_grace_period_seconds of this V1ObjectMeta. - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + """Gets the deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 - :return: The deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. # noqa: E501 + + :return: The deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 :rtype: int """ return self._deletion_grace_period_seconds @deletion_grace_period_seconds.setter def deletion_grace_period_seconds(self, deletion_grace_period_seconds): - """ - Sets the deletion_grace_period_seconds of this V1ObjectMeta. - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + """Sets the deletion_grace_period_seconds of this V1ObjectMeta. - :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. + Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. # noqa: E501 + + :param deletion_grace_period_seconds: The deletion_grace_period_seconds of this V1ObjectMeta. # noqa: E501 :type: int """ @@ -223,22 +221,22 @@ def deletion_grace_period_seconds(self, deletion_grace_period_seconds): @property def deletion_timestamp(self): - """ - Gets the deletion_timestamp of this V1ObjectMeta. - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the deletion_timestamp of this V1ObjectMeta. # noqa: E501 + + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata # noqa: E501 - :return: The deletion_timestamp of this V1ObjectMeta. + :return: The deletion_timestamp of this V1ObjectMeta. # noqa: E501 :rtype: datetime """ return self._deletion_timestamp @deletion_timestamp.setter def deletion_timestamp(self, deletion_timestamp): - """ - Sets the deletion_timestamp of this V1ObjectMeta. - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the deletion_timestamp of this V1ObjectMeta. + + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata # noqa: E501 - :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. + :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. # noqa: E501 :type: datetime """ @@ -246,22 +244,22 @@ def deletion_timestamp(self, deletion_timestamp): @property def finalizers(self): - """ - Gets the finalizers of this V1ObjectMeta. - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + """Gets the finalizers of this V1ObjectMeta. # noqa: E501 - :return: The finalizers of this V1ObjectMeta. + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. # noqa: E501 + + :return: The finalizers of this V1ObjectMeta. # noqa: E501 :rtype: list[str] """ return self._finalizers @finalizers.setter def finalizers(self, finalizers): - """ - Sets the finalizers of this V1ObjectMeta. - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. + """Sets the finalizers of this V1ObjectMeta. + + Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. # noqa: E501 - :param finalizers: The finalizers of this V1ObjectMeta. + :param finalizers: The finalizers of this V1ObjectMeta. # noqa: E501 :type: list[str] """ @@ -269,22 +267,22 @@ def finalizers(self, finalizers): @property def generate_name(self): - """ - Gets the generate_name of this V1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + """Gets the generate_name of this V1ObjectMeta. # noqa: E501 + + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency # noqa: E501 - :return: The generate_name of this V1ObjectMeta. + :return: The generate_name of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._generate_name @generate_name.setter def generate_name(self, generate_name): - """ - Sets the generate_name of this V1ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + """Sets the generate_name of this V1ObjectMeta. + + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency # noqa: E501 - :param generate_name: The generate_name of this V1ObjectMeta. + :param generate_name: The generate_name of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -292,22 +290,22 @@ def generate_name(self, generate_name): @property def generation(self): - """ - Gets the generation of this V1ObjectMeta. - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + """Gets the generation of this V1ObjectMeta. # noqa: E501 - :return: The generation of this V1ObjectMeta. + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. # noqa: E501 + + :return: The generation of this V1ObjectMeta. # noqa: E501 :rtype: int """ return self._generation @generation.setter def generation(self, generation): - """ - Sets the generation of this V1ObjectMeta. - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + """Sets the generation of this V1ObjectMeta. - :param generation: The generation of this V1ObjectMeta. + A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. # noqa: E501 + + :param generation: The generation of this V1ObjectMeta. # noqa: E501 :type: int """ @@ -315,22 +313,20 @@ def generation(self, generation): @property def initializers(self): - """ - Gets the initializers of this V1ObjectMeta. - An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15. + """Gets the initializers of this V1ObjectMeta. # noqa: E501 + - :return: The initializers of this V1ObjectMeta. + :return: The initializers of this V1ObjectMeta. # noqa: E501 :rtype: V1Initializers """ return self._initializers @initializers.setter def initializers(self, initializers): - """ - Sets the initializers of this V1ObjectMeta. - An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15. + """Sets the initializers of this V1ObjectMeta. + - :param initializers: The initializers of this V1ObjectMeta. + :param initializers: The initializers of this V1ObjectMeta. # noqa: E501 :type: V1Initializers """ @@ -338,22 +334,22 @@ def initializers(self, initializers): @property def labels(self): - """ - Gets the labels of this V1ObjectMeta. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + """Gets the labels of this V1ObjectMeta. # noqa: E501 + + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501 - :return: The labels of this V1ObjectMeta. + :return: The labels of this V1ObjectMeta. # noqa: E501 :rtype: dict(str, str) """ return self._labels @labels.setter def labels(self, labels): - """ - Sets the labels of this V1ObjectMeta. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + """Sets the labels of this V1ObjectMeta. - :param labels: The labels of this V1ObjectMeta. + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels # noqa: E501 + + :param labels: The labels of this V1ObjectMeta. # noqa: E501 :type: dict(str, str) """ @@ -361,22 +357,22 @@ def labels(self, labels): @property def managed_fields(self): - """ - Gets the managed_fields of this V1ObjectMeta. - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. + """Gets the managed_fields of this V1ObjectMeta. # noqa: E501 + + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. # noqa: E501 - :return: The managed_fields of this V1ObjectMeta. + :return: The managed_fields of this V1ObjectMeta. # noqa: E501 :rtype: list[V1ManagedFieldsEntry] """ return self._managed_fields @managed_fields.setter def managed_fields(self, managed_fields): - """ - Sets the managed_fields of this V1ObjectMeta. - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. + """Sets the managed_fields of this V1ObjectMeta. + + ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. # noqa: E501 - :param managed_fields: The managed_fields of this V1ObjectMeta. + :param managed_fields: The managed_fields of this V1ObjectMeta. # noqa: E501 :type: list[V1ManagedFieldsEntry] """ @@ -384,22 +380,22 @@ def managed_fields(self, managed_fields): @property def name(self): - """ - Gets the name of this V1ObjectMeta. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Gets the name of this V1ObjectMeta. # noqa: E501 - :return: The name of this V1ObjectMeta. + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + + :return: The name of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ObjectMeta. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Sets the name of this V1ObjectMeta. - :param name: The name of this V1ObjectMeta. + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + + :param name: The name of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -407,22 +403,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1ObjectMeta. - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + """Gets the namespace of this V1ObjectMeta. # noqa: E501 + + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces # noqa: E501 - :return: The namespace of this V1ObjectMeta. + :return: The namespace of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1ObjectMeta. - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + """Sets the namespace of this V1ObjectMeta. + + Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces # noqa: E501 - :param namespace: The namespace of this V1ObjectMeta. + :param namespace: The namespace of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -430,22 +426,22 @@ def namespace(self, namespace): @property def owner_references(self): - """ - Gets the owner_references of this V1ObjectMeta. - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + """Gets the owner_references of this V1ObjectMeta. # noqa: E501 + + List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. # noqa: E501 - :return: The owner_references of this V1ObjectMeta. + :return: The owner_references of this V1ObjectMeta. # noqa: E501 :rtype: list[V1OwnerReference] """ return self._owner_references @owner_references.setter def owner_references(self, owner_references): - """ - Sets the owner_references of this V1ObjectMeta. - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + """Sets the owner_references of this V1ObjectMeta. - :param owner_references: The owner_references of this V1ObjectMeta. + List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. # noqa: E501 + + :param owner_references: The owner_references of this V1ObjectMeta. # noqa: E501 :type: list[V1OwnerReference] """ @@ -453,22 +449,22 @@ def owner_references(self, owner_references): @property def resource_version(self): - """ - Gets the resource_version of this V1ObjectMeta. - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + """Gets the resource_version of this V1ObjectMeta. # noqa: E501 - :return: The resource_version of this V1ObjectMeta. + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 + + :return: The resource_version of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): - """ - Sets the resource_version of this V1ObjectMeta. - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + """Sets the resource_version of this V1ObjectMeta. + + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 - :param resource_version: The resource_version of this V1ObjectMeta. + :param resource_version: The resource_version of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -476,22 +472,22 @@ def resource_version(self, resource_version): @property def self_link(self): - """ - Gets the self_link of this V1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. + """Gets the self_link of this V1ObjectMeta. # noqa: E501 + + SelfLink is a URL representing this object. Populated by the system. Read-only. # noqa: E501 - :return: The self_link of this V1ObjectMeta. + :return: The self_link of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._self_link @self_link.setter def self_link(self, self_link): - """ - Sets the self_link of this V1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. + """Sets the self_link of this V1ObjectMeta. - :param self_link: The self_link of this V1ObjectMeta. + SelfLink is a URL representing this object. Populated by the system. Read-only. # noqa: E501 + + :param self_link: The self_link of this V1ObjectMeta. # noqa: E501 :type: str """ @@ -499,34 +495,32 @@ def self_link(self, self_link): @property def uid(self): - """ - Gets the uid of this V1ObjectMeta. - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Gets the uid of this V1ObjectMeta. # noqa: E501 + + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :return: The uid of this V1ObjectMeta. + :return: The uid of this V1ObjectMeta. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1ObjectMeta. - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Sets the uid of this V1ObjectMeta. + + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :param uid: The uid of this V1ObjectMeta. + :param uid: The uid of this V1ObjectMeta. # noqa: E501 :type: str """ self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -547,28 +541,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ObjectMeta): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_object_reference.py b/kubernetes/client/models/v1_object_reference.py index 546565f54e..9eaf9ef01d 100644 --- a/kubernetes/client/models/v1_object_reference.py +++ b/kubernetes/client/models/v1_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'field_path': 'str', 'kind': 'str', @@ -50,10 +50,8 @@ class V1ObjectReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None): - """ - V1ObjectReference - a model defined in Swagger - """ + def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None): # noqa: E501 + """V1ObjectReference - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._field_path = None @@ -65,38 +63,38 @@ def __init__(self, api_version=None, field_path=None, kind=None, name=None, name self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if field_path is not None: - self.field_path = field_path + self.field_path = field_path if kind is not None: - self.kind = kind + self.kind = kind if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if resource_version is not None: - self.resource_version = resource_version + self.resource_version = resource_version if uid is not None: - self.uid = uid + self.uid = uid @property def api_version(self): - """ - Gets the api_version of this V1ObjectReference. - API version of the referent. + """Gets the api_version of this V1ObjectReference. # noqa: E501 + + API version of the referent. # noqa: E501 - :return: The api_version of this V1ObjectReference. + :return: The api_version of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ObjectReference. - API version of the referent. + """Sets the api_version of this V1ObjectReference. - :param api_version: The api_version of this V1ObjectReference. + API version of the referent. # noqa: E501 + + :param api_version: The api_version of this V1ObjectReference. # noqa: E501 :type: str """ @@ -104,22 +102,22 @@ def api_version(self, api_version): @property def field_path(self): - """ - Gets the field_path of this V1ObjectReference. - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + """Gets the field_path of this V1ObjectReference. # noqa: E501 - :return: The field_path of this V1ObjectReference. + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. # noqa: E501 + + :return: The field_path of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._field_path @field_path.setter def field_path(self, field_path): - """ - Sets the field_path of this V1ObjectReference. - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + """Sets the field_path of this V1ObjectReference. + + If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. # noqa: E501 - :param field_path: The field_path of this V1ObjectReference. + :param field_path: The field_path of this V1ObjectReference. # noqa: E501 :type: str """ @@ -127,22 +125,22 @@ def field_path(self, field_path): @property def kind(self): - """ - Gets the kind of this V1ObjectReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ObjectReference. # noqa: E501 + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ObjectReference. + :return: The kind of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ObjectReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ObjectReference. - :param kind: The kind of this V1ObjectReference. + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1ObjectReference. # noqa: E501 :type: str """ @@ -150,22 +148,22 @@ def kind(self, kind): @property def name(self): - """ - Gets the name of this V1ObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1ObjectReference. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :return: The name of this V1ObjectReference. + :return: The name of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1ObjectReference. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1ObjectReference. + :param name: The name of this V1ObjectReference. # noqa: E501 :type: str """ @@ -173,22 +171,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1ObjectReference. - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """Gets the namespace of this V1ObjectReference. # noqa: E501 + + Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 - :return: The namespace of this V1ObjectReference. + :return: The namespace of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1ObjectReference. - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """Sets the namespace of this V1ObjectReference. - :param namespace: The namespace of this V1ObjectReference. + Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501 + + :param namespace: The namespace of this V1ObjectReference. # noqa: E501 :type: str """ @@ -196,22 +194,22 @@ def namespace(self, namespace): @property def resource_version(self): - """ - Gets the resource_version of this V1ObjectReference. - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + """Gets the resource_version of this V1ObjectReference. # noqa: E501 + + Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 - :return: The resource_version of this V1ObjectReference. + :return: The resource_version of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): - """ - Sets the resource_version of this V1ObjectReference. - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + """Sets the resource_version of this V1ObjectReference. + + Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency # noqa: E501 - :param resource_version: The resource_version of this V1ObjectReference. + :param resource_version: The resource_version of this V1ObjectReference. # noqa: E501 :type: str """ @@ -219,34 +217,32 @@ def resource_version(self, resource_version): @property def uid(self): - """ - Gets the uid of this V1ObjectReference. - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """Gets the uid of this V1ObjectReference. # noqa: E501 - :return: The uid of this V1ObjectReference. + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids # noqa: E501 + + :return: The uid of this V1ObjectReference. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1ObjectReference. - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """Sets the uid of this V1ObjectReference. - :param uid: The uid of this V1ObjectReference. + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids # noqa: E501 + + :param uid: The uid of this V1ObjectReference. # noqa: E501 :type: str """ self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +263,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_owner_reference.py b/kubernetes/client/models/v1_owner_reference.py index f41295ecab..04d589e668 100644 --- a/kubernetes/client/models/v1_owner_reference.py +++ b/kubernetes/client/models/v1_owner_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1OwnerReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'block_owner_deletion': 'bool', 'controller': 'bool', @@ -48,10 +48,8 @@ class V1OwnerReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): - """ - V1OwnerReference - a model defined in Swagger - """ + def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): # noqa: E501 + """V1OwnerReference - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._block_owner_deletion = None @@ -63,56 +61,56 @@ def __init__(self, api_version=None, block_owner_deletion=None, controller=None, self.api_version = api_version if block_owner_deletion is not None: - self.block_owner_deletion = block_owner_deletion + self.block_owner_deletion = block_owner_deletion if controller is not None: - self.controller = controller + self.controller = controller self.kind = kind self.name = name self.uid = uid @property def api_version(self): - """ - Gets the api_version of this V1OwnerReference. - API version of the referent. + """Gets the api_version of this V1OwnerReference. # noqa: E501 + + API version of the referent. # noqa: E501 - :return: The api_version of this V1OwnerReference. + :return: The api_version of this V1OwnerReference. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1OwnerReference. - API version of the referent. + """Sets the api_version of this V1OwnerReference. + + API version of the referent. # noqa: E501 - :param api_version: The api_version of this V1OwnerReference. + :param api_version: The api_version of this V1OwnerReference. # noqa: E501 :type: str """ if api_version is None: - raise ValueError("Invalid value for `api_version`, must not be `None`") + raise ValueError("Invalid value for `api_version`, must not be `None`") # noqa: E501 self._api_version = api_version @property def block_owner_deletion(self): - """ - Gets the block_owner_deletion of this V1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + """Gets the block_owner_deletion of this V1OwnerReference. # noqa: E501 + + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. # noqa: E501 - :return: The block_owner_deletion of this V1OwnerReference. + :return: The block_owner_deletion of this V1OwnerReference. # noqa: E501 :rtype: bool """ return self._block_owner_deletion @block_owner_deletion.setter def block_owner_deletion(self, block_owner_deletion): - """ - Sets the block_owner_deletion of this V1OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + """Sets the block_owner_deletion of this V1OwnerReference. - :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. # noqa: E501 + + :param block_owner_deletion: The block_owner_deletion of this V1OwnerReference. # noqa: E501 :type: bool """ @@ -120,22 +118,22 @@ def block_owner_deletion(self, block_owner_deletion): @property def controller(self): - """ - Gets the controller of this V1OwnerReference. - If true, this reference points to the managing controller. + """Gets the controller of this V1OwnerReference. # noqa: E501 - :return: The controller of this V1OwnerReference. + If true, this reference points to the managing controller. # noqa: E501 + + :return: The controller of this V1OwnerReference. # noqa: E501 :rtype: bool """ return self._controller @controller.setter def controller(self, controller): - """ - Sets the controller of this V1OwnerReference. - If true, this reference points to the managing controller. + """Sets the controller of this V1OwnerReference. + + If true, this reference points to the managing controller. # noqa: E501 - :param controller: The controller of this V1OwnerReference. + :param controller: The controller of this V1OwnerReference. # noqa: E501 :type: bool """ @@ -143,86 +141,84 @@ def controller(self, controller): @property def kind(self): - """ - Gets the kind of this V1OwnerReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1OwnerReference. # noqa: E501 + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1OwnerReference. + :return: The kind of this V1OwnerReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1OwnerReference. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1OwnerReference. + + Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1OwnerReference. + :param kind: The kind of this V1OwnerReference. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1OwnerReference. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Gets the name of this V1OwnerReference. # noqa: E501 - :return: The name of this V1OwnerReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + + :return: The name of this V1OwnerReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1OwnerReference. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Sets the name of this V1OwnerReference. - :param name: The name of this V1OwnerReference. + Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + + :param name: The name of this V1OwnerReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def uid(self): - """ - Gets the uid of this V1OwnerReference. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Gets the uid of this V1OwnerReference. # noqa: E501 + + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :return: The uid of this V1OwnerReference. + :return: The uid of this V1OwnerReference. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1OwnerReference. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Sets the uid of this V1OwnerReference. + + UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :param uid: The uid of this V1OwnerReference. + :param uid: The uid of this V1OwnerReference. # noqa: E501 :type: str """ if uid is None: - raise ValueError("Invalid value for `uid`, must not be `None`") + raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501 self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -243,28 +239,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1OwnerReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume.py b/kubernetes/client/models/v1_persistent_volume.py index 4fdbc408a4..8b83ea5d48 100644 --- a/kubernetes/client/models/v1_persistent_volume.py +++ b/kubernetes/client/models/v1_persistent_volume.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1PersistentVolume(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1PersistentVolume - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1PersistentVolume - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1PersistentVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PersistentVolume. # noqa: E501 - :return: The api_version of this V1PersistentVolume. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolume. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PersistentVolume. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PersistentVolume. - :param api_version: The api_version of this V1PersistentVolume. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolume. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1PersistentVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PersistentVolume. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PersistentVolume. + :return: The kind of this V1PersistentVolume. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PersistentVolume. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PersistentVolume. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PersistentVolume. + :param kind: The kind of this V1PersistentVolume. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PersistentVolume. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PersistentVolume. # noqa: E501 + - :return: The metadata of this V1PersistentVolume. + :return: The metadata of this V1PersistentVolume. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PersistentVolume. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PersistentVolume. + - :param metadata: The metadata of this V1PersistentVolume. + :param metadata: The metadata of this V1PersistentVolume. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1PersistentVolume. - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """Gets the spec of this V1PersistentVolume. # noqa: E501 + - :return: The spec of this V1PersistentVolume. + :return: The spec of this V1PersistentVolume. # noqa: E501 :rtype: V1PersistentVolumeSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1PersistentVolume. - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """Sets the spec of this V1PersistentVolume. - :param spec: The spec of this V1PersistentVolume. + + :param spec: The spec of this V1PersistentVolume. # noqa: E501 :type: V1PersistentVolumeSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1PersistentVolume. - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """Gets the status of this V1PersistentVolume. # noqa: E501 - :return: The status of this V1PersistentVolume. + + :return: The status of this V1PersistentVolume. # noqa: E501 :rtype: V1PersistentVolumeStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1PersistentVolume. - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """Sets the status of this V1PersistentVolume. - :param status: The status of this V1PersistentVolume. + + :param status: The status of this V1PersistentVolume. # noqa: E501 :type: V1PersistentVolumeStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolume): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim.py b/kubernetes/client/models/v1_persistent_volume_claim.py index 293039769a..6646b3c3dc 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/client/models/v1_persistent_volume_claim.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaim(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1PersistentVolumeClaim(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1PersistentVolumeClaim - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1PersistentVolumeClaim - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1PersistentVolumeClaim. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PersistentVolumeClaim. # noqa: E501 - :return: The api_version of this V1PersistentVolumeClaim. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PersistentVolumeClaim. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PersistentVolumeClaim. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PersistentVolumeClaim. - :param api_version: The api_version of this V1PersistentVolumeClaim. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1PersistentVolumeClaim. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1PersistentVolumeClaim. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PersistentVolumeClaim. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PersistentVolumeClaim. + :return: The kind of this V1PersistentVolumeClaim. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PersistentVolumeClaim. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PersistentVolumeClaim. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PersistentVolumeClaim. + :param kind: The kind of this V1PersistentVolumeClaim. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PersistentVolumeClaim. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PersistentVolumeClaim. # noqa: E501 + - :return: The metadata of this V1PersistentVolumeClaim. + :return: The metadata of this V1PersistentVolumeClaim. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PersistentVolumeClaim. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PersistentVolumeClaim. + - :param metadata: The metadata of this V1PersistentVolumeClaim. + :param metadata: The metadata of this V1PersistentVolumeClaim. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1PersistentVolumeClaim. - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Gets the spec of this V1PersistentVolumeClaim. # noqa: E501 + - :return: The spec of this V1PersistentVolumeClaim. + :return: The spec of this V1PersistentVolumeClaim. # noqa: E501 :rtype: V1PersistentVolumeClaimSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1PersistentVolumeClaim. - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Sets the spec of this V1PersistentVolumeClaim. - :param spec: The spec of this V1PersistentVolumeClaim. + + :param spec: The spec of this V1PersistentVolumeClaim. # noqa: E501 :type: V1PersistentVolumeClaimSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1PersistentVolumeClaim. - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Gets the status of this V1PersistentVolumeClaim. # noqa: E501 - :return: The status of this V1PersistentVolumeClaim. + + :return: The status of this V1PersistentVolumeClaim. # noqa: E501 :rtype: V1PersistentVolumeClaimStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1PersistentVolumeClaim. - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Sets the status of this V1PersistentVolumeClaim. - :param status: The status of this V1PersistentVolumeClaim. + + :param status: The status of this V1PersistentVolumeClaim. # noqa: E501 :type: V1PersistentVolumeClaimStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaim): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim_condition.py b/kubernetes/client/models/v1_persistent_volume_claim_condition.py index 5e7ca20463..52aec461d6 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_condition.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaimCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_probe_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1PersistentVolumeClaimCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1PersistentVolumeClaimCondition - a model defined in Swagger - """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1PersistentVolumeClaimCondition - a model defined in OpenAPI""" # noqa: E501 self._last_probe_time = None self._last_transition_time = None @@ -62,34 +60,34 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.discriminator = None if last_probe_time is not None: - self.last_probe_time = last_probe_time + self.last_probe_time = last_probe_time if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_probe_time(self): - """ - Gets the last_probe_time of this V1PersistentVolumeClaimCondition. - Last time we probed the condition. + """Gets the last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + + Last time we probed the condition. # noqa: E501 - :return: The last_probe_time of this V1PersistentVolumeClaimCondition. + :return: The last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: datetime """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1PersistentVolumeClaimCondition. - Last time we probed the condition. + """Sets the last_probe_time of this V1PersistentVolumeClaimCondition. + + Last time we probed the condition. # noqa: E501 - :param last_probe_time: The last_probe_time of this V1PersistentVolumeClaimCondition. + :param last_probe_time: The last_probe_time of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_probe_time(self, last_probe_time): @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1PersistentVolumeClaimCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this V1PersistentVolumeClaimCondition. + :return: The last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1PersistentVolumeClaimCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1PersistentVolumeClaimCondition. - :param last_transition_time: The last_transition_time of this V1PersistentVolumeClaimCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1PersistentVolumeClaimCondition. - Human-readable message indicating details about last transition. + """Gets the message of this V1PersistentVolumeClaimCondition. # noqa: E501 - :return: The message of this V1PersistentVolumeClaimCondition. + Human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1PersistentVolumeClaimCondition. - Human-readable message indicating details about last transition. + """Sets the message of this V1PersistentVolumeClaimCondition. + + Human-readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1PersistentVolumeClaimCondition. + :param message: The message of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1PersistentVolumeClaimCondition. - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + """Gets the reason of this V1PersistentVolumeClaimCondition. # noqa: E501 + + Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. # noqa: E501 - :return: The reason of this V1PersistentVolumeClaimCondition. + :return: The reason of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1PersistentVolumeClaimCondition. - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. + """Sets the reason of this V1PersistentVolumeClaimCondition. + + Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. # noqa: E501 - :param reason: The reason of this V1PersistentVolumeClaimCondition. + :param reason: The reason of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ @@ -166,57 +164,55 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1PersistentVolumeClaimCondition. + """Gets the status of this V1PersistentVolumeClaimCondition. # noqa: E501 - :return: The status of this V1PersistentVolumeClaimCondition. + + :return: The status of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1PersistentVolumeClaimCondition. + """Sets the status of this V1PersistentVolumeClaimCondition. - :param status: The status of this V1PersistentVolumeClaimCondition. + + :param status: The status of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1PersistentVolumeClaimCondition. + """Gets the type of this V1PersistentVolumeClaimCondition. # noqa: E501 + - :return: The type of this V1PersistentVolumeClaimCondition. + :return: The type of this V1PersistentVolumeClaimCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1PersistentVolumeClaimCondition. + """Sets the type of this V1PersistentVolumeClaimCondition. + - :param type: The type of this V1PersistentVolumeClaimCondition. + :param type: The type of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -237,28 +233,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaimCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim_list.py b/kubernetes/client/models/v1_persistent_volume_claim_list.py index b2b5495881..49fb91b329 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaimList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1PersistentVolumeClaim]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1PersistentVolumeClaimList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1PersistentVolumeClaimList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1PersistentVolumeClaimList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1PersistentVolumeClaimList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PersistentVolumeClaimList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PersistentVolumeClaimList. + :return: The api_version of this V1PersistentVolumeClaimList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PersistentVolumeClaimList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PersistentVolumeClaimList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PersistentVolumeClaimList. + :param api_version: The api_version of this V1PersistentVolumeClaimList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1PersistentVolumeClaimList. - A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Gets the items of this V1PersistentVolumeClaimList. # noqa: E501 + + A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 - :return: The items of this V1PersistentVolumeClaimList. + :return: The items of this V1PersistentVolumeClaimList. # noqa: E501 :rtype: list[V1PersistentVolumeClaim] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1PersistentVolumeClaimList. - A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Sets the items of this V1PersistentVolumeClaimList. + + A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 - :param items: The items of this V1PersistentVolumeClaimList. + :param items: The items of this V1PersistentVolumeClaimList. # noqa: E501 :type: list[V1PersistentVolumeClaim] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1PersistentVolumeClaimList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PersistentVolumeClaimList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PersistentVolumeClaimList. + :return: The kind of this V1PersistentVolumeClaimList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PersistentVolumeClaimList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PersistentVolumeClaimList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PersistentVolumeClaimList. + :param kind: The kind of this V1PersistentVolumeClaimList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PersistentVolumeClaimList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1PersistentVolumeClaimList. # noqa: E501 + - :return: The metadata of this V1PersistentVolumeClaimList. + :return: The metadata of this V1PersistentVolumeClaimList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PersistentVolumeClaimList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1PersistentVolumeClaimList. + - :param metadata: The metadata of this V1PersistentVolumeClaimList. + :param metadata: The metadata of this V1PersistentVolumeClaimList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaimList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/client/models/v1_persistent_volume_claim_spec.py index c865f34bc4..cafcede3dc 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaimSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'access_modes': 'list[str]', 'data_source': 'V1TypedLocalObjectReference', 'resources': 'V1ResourceRequirements', @@ -50,10 +50,8 @@ class V1PersistentVolumeClaimSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): - """ - V1PersistentVolumeClaimSpec - a model defined in Swagger - """ + def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): # noqa: E501 + """V1PersistentVolumeClaimSpec - a model defined in OpenAPI""" # noqa: E501 self._access_modes = None self._data_source = None @@ -65,38 +63,38 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector self.discriminator = None if access_modes is not None: - self.access_modes = access_modes + self.access_modes = access_modes if data_source is not None: - self.data_source = data_source + self.data_source = data_source if resources is not None: - self.resources = resources + self.resources = resources if selector is not None: - self.selector = selector + self.selector = selector if storage_class_name is not None: - self.storage_class_name = storage_class_name + self.storage_class_name = storage_class_name if volume_mode is not None: - self.volume_mode = volume_mode + self.volume_mode = volume_mode if volume_name is not None: - self.volume_name = volume_name + self.volume_name = volume_name @property def access_modes(self): - """ - Gets the access_modes of this V1PersistentVolumeClaimSpec. - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + """Gets the access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 + + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 - :return: The access_modes of this V1PersistentVolumeClaimSpec. + :return: The access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: list[str] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): - """ - Sets the access_modes of this V1PersistentVolumeClaimSpec. - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + """Sets the access_modes of this V1PersistentVolumeClaimSpec. - :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. + AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 + + :param access_modes: The access_modes of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: list[str] """ @@ -104,22 +102,20 @@ def access_modes(self, access_modes): @property def data_source(self): - """ - Gets the data_source of this V1PersistentVolumeClaimSpec. - This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + """Gets the data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 - :return: The data_source of this V1PersistentVolumeClaimSpec. + + :return: The data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: V1TypedLocalObjectReference """ return self._data_source @data_source.setter def data_source(self, data_source): - """ - Sets the data_source of this V1PersistentVolumeClaimSpec. - This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + """Sets the data_source of this V1PersistentVolumeClaimSpec. + - :param data_source: The data_source of this V1PersistentVolumeClaimSpec. + :param data_source: The data_source of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: V1TypedLocalObjectReference """ @@ -127,22 +123,20 @@ def data_source(self, data_source): @property def resources(self): - """ - Gets the resources of this V1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + """Gets the resources of this V1PersistentVolumeClaimSpec. # noqa: E501 + - :return: The resources of this V1PersistentVolumeClaimSpec. + :return: The resources of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: V1ResourceRequirements """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1PersistentVolumeClaimSpec. - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + """Sets the resources of this V1PersistentVolumeClaimSpec. - :param resources: The resources of this V1PersistentVolumeClaimSpec. + + :param resources: The resources of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: V1ResourceRequirements """ @@ -150,22 +144,20 @@ def resources(self, resources): @property def selector(self): - """ - Gets the selector of this V1PersistentVolumeClaimSpec. - A label query over volumes to consider for binding. + """Gets the selector of this V1PersistentVolumeClaimSpec. # noqa: E501 + - :return: The selector of this V1PersistentVolumeClaimSpec. + :return: The selector of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1PersistentVolumeClaimSpec. - A label query over volumes to consider for binding. + """Sets the selector of this V1PersistentVolumeClaimSpec. + - :param selector: The selector of this V1PersistentVolumeClaimSpec. + :param selector: The selector of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: V1LabelSelector """ @@ -173,22 +165,22 @@ def selector(self, selector): @property def storage_class_name(self): - """ - Gets the storage_class_name of this V1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + """Gets the storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 + + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 # noqa: E501 - :return: The storage_class_name of this V1PersistentVolumeClaimSpec. + :return: The storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: str """ return self._storage_class_name @storage_class_name.setter def storage_class_name(self, storage_class_name): - """ - Sets the storage_class_name of this V1PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + """Sets the storage_class_name of this V1PersistentVolumeClaimSpec. - :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. + Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 # noqa: E501 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: str """ @@ -196,22 +188,22 @@ def storage_class_name(self, storage_class_name): @property def volume_mode(self): - """ - Gets the volume_mode of this V1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. + """Gets the volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 + + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. # noqa: E501 - :return: The volume_mode of this V1PersistentVolumeClaimSpec. + :return: The volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: str """ return self._volume_mode @volume_mode.setter def volume_mode(self, volume_mode): - """ - Sets the volume_mode of this V1PersistentVolumeClaimSpec. - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. + """Sets the volume_mode of this V1PersistentVolumeClaimSpec. + + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. # noqa: E501 - :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. + :param volume_mode: The volume_mode of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: str """ @@ -219,34 +211,32 @@ def volume_mode(self, volume_mode): @property def volume_name(self): - """ - Gets the volume_name of this V1PersistentVolumeClaimSpec. - VolumeName is the binding reference to the PersistentVolume backing this claim. + """Gets the volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 - :return: The volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. # noqa: E501 + + :return: The volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): - """ - Sets the volume_name of this V1PersistentVolumeClaimSpec. - VolumeName is the binding reference to the PersistentVolume backing this claim. + """Sets the volume_name of this V1PersistentVolumeClaimSpec. - :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. # noqa: E501 + + :param volume_name: The volume_name of this V1PersistentVolumeClaimSpec. # noqa: E501 :type: str """ self._volume_name = volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +257,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaimSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index de97954033..044eb3bd66 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaimStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'access_modes': 'list[str]', 'capacity': 'dict(str, str)', 'conditions': 'list[V1PersistentVolumeClaimCondition]', @@ -44,10 +44,8 @@ class V1PersistentVolumeClaimStatus(object): 'phase': 'phase' } - def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): - """ - V1PersistentVolumeClaimStatus - a model defined in Swagger - """ + def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): # noqa: E501 + """V1PersistentVolumeClaimStatus - a model defined in OpenAPI""" # noqa: E501 self._access_modes = None self._capacity = None @@ -56,32 +54,32 @@ def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None self.discriminator = None if access_modes is not None: - self.access_modes = access_modes + self.access_modes = access_modes if capacity is not None: - self.capacity = capacity + self.capacity = capacity if conditions is not None: - self.conditions = conditions + self.conditions = conditions if phase is not None: - self.phase = phase + self.phase = phase @property def access_modes(self): - """ - Gets the access_modes of this V1PersistentVolumeClaimStatus. - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + """Gets the access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 + + AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 - :return: The access_modes of this V1PersistentVolumeClaimStatus. + :return: The access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 :rtype: list[str] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): - """ - Sets the access_modes of this V1PersistentVolumeClaimStatus. - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + """Sets the access_modes of this V1PersistentVolumeClaimStatus. + + AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 # noqa: E501 - :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. + :param access_modes: The access_modes of this V1PersistentVolumeClaimStatus. # noqa: E501 :type: list[str] """ @@ -89,22 +87,22 @@ def access_modes(self, access_modes): @property def capacity(self): - """ - Gets the capacity of this V1PersistentVolumeClaimStatus. - Represents the actual resources of the underlying volume. + """Gets the capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 + + Represents the actual resources of the underlying volume. # noqa: E501 - :return: The capacity of this V1PersistentVolumeClaimStatus. + :return: The capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 :rtype: dict(str, str) """ return self._capacity @capacity.setter def capacity(self, capacity): - """ - Sets the capacity of this V1PersistentVolumeClaimStatus. - Represents the actual resources of the underlying volume. + """Sets the capacity of this V1PersistentVolumeClaimStatus. + + Represents the actual resources of the underlying volume. # noqa: E501 - :param capacity: The capacity of this V1PersistentVolumeClaimStatus. + :param capacity: The capacity of this V1PersistentVolumeClaimStatus. # noqa: E501 :type: dict(str, str) """ @@ -112,22 +110,22 @@ def capacity(self, capacity): @property def conditions(self): - """ - Gets the conditions of this V1PersistentVolumeClaimStatus. - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + """Gets the conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 + + Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. # noqa: E501 - :return: The conditions of this V1PersistentVolumeClaimStatus. + :return: The conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 :rtype: list[V1PersistentVolumeClaimCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1PersistentVolumeClaimStatus. - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + """Sets the conditions of this V1PersistentVolumeClaimStatus. + + Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. # noqa: E501 - :param conditions: The conditions of this V1PersistentVolumeClaimStatus. + :param conditions: The conditions of this V1PersistentVolumeClaimStatus. # noqa: E501 :type: list[V1PersistentVolumeClaimCondition] """ @@ -135,34 +133,32 @@ def conditions(self, conditions): @property def phase(self): - """ - Gets the phase of this V1PersistentVolumeClaimStatus. - Phase represents the current phase of PersistentVolumeClaim. + """Gets the phase of this V1PersistentVolumeClaimStatus. # noqa: E501 + + Phase represents the current phase of PersistentVolumeClaim. # noqa: E501 - :return: The phase of this V1PersistentVolumeClaimStatus. + :return: The phase of this V1PersistentVolumeClaimStatus. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): - """ - Sets the phase of this V1PersistentVolumeClaimStatus. - Phase represents the current phase of PersistentVolumeClaim. + """Sets the phase of this V1PersistentVolumeClaimStatus. + + Phase represents the current phase of PersistentVolumeClaim. # noqa: E501 - :param phase: The phase of this V1PersistentVolumeClaimStatus. + :param phase: The phase of this V1PersistentVolumeClaimStatus. # noqa: E501 :type: str """ self._phase = phase def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaimStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py index 5d1b2934b8..6fb730c80c 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeClaimVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'claim_name': 'str', 'read_only': 'bool' } @@ -40,10 +40,8 @@ class V1PersistentVolumeClaimVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, claim_name=None, read_only=None): - """ - V1PersistentVolumeClaimVolumeSource - a model defined in Swagger - """ + def __init__(self, claim_name=None, read_only=None): # noqa: E501 + """V1PersistentVolumeClaimVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._claim_name = None self._read_only = None @@ -51,63 +49,61 @@ def __init__(self, claim_name=None, read_only=None): self.claim_name = claim_name if read_only is not None: - self.read_only = read_only + self.read_only = read_only @property def claim_name(self): - """ - Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Gets the claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 - :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. + :return: The claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 :rtype: str """ return self._claim_name @claim_name.setter def claim_name(self, claim_name): - """ - Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Sets the claim_name of this V1PersistentVolumeClaimVolumeSource. - :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. + ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + + :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 :type: str """ if claim_name is None: - raise ValueError("Invalid value for `claim_name`, must not be `None`") + raise ValueError("Invalid value for `claim_name`, must not be `None`") # noqa: E501 self._claim_name = claim_name @property def read_only(self): - """ - Gets the read_only of this V1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + """Gets the read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 + + Will force the ReadOnly setting in VolumeMounts. Default false. # noqa: E501 - :return: The read_only of this V1PersistentVolumeClaimVolumeSource. + :return: The read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. + """Sets the read_only of this V1PersistentVolumeClaimVolumeSource. + + Will force the ReadOnly setting in VolumeMounts. Default false. # noqa: E501 - :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. + :param read_only: The read_only of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 :type: bool """ self._read_only = read_only def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeClaimVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_list.py b/kubernetes/client/models/v1_persistent_volume_list.py index e5eb0bf42f..9578b736b5 100644 --- a/kubernetes/client/models/v1_persistent_volume_list.py +++ b/kubernetes/client/models/v1_persistent_volume_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1PersistentVolume]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1PersistentVolumeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1PersistentVolumeList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1PersistentVolumeList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1PersistentVolumeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PersistentVolumeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PersistentVolumeList. + :return: The api_version of this V1PersistentVolumeList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PersistentVolumeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PersistentVolumeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PersistentVolumeList. + :param api_version: The api_version of this V1PersistentVolumeList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1PersistentVolumeList. - List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + """Gets the items of this V1PersistentVolumeList. # noqa: E501 + + List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes # noqa: E501 - :return: The items of this V1PersistentVolumeList. + :return: The items of this V1PersistentVolumeList. # noqa: E501 :rtype: list[V1PersistentVolume] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1PersistentVolumeList. - List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + """Sets the items of this V1PersistentVolumeList. + + List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes # noqa: E501 - :param items: The items of this V1PersistentVolumeList. + :param items: The items of this V1PersistentVolumeList. # noqa: E501 :type: list[V1PersistentVolume] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1PersistentVolumeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PersistentVolumeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PersistentVolumeList. + :return: The kind of this V1PersistentVolumeList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PersistentVolumeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PersistentVolumeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PersistentVolumeList. + :param kind: The kind of this V1PersistentVolumeList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PersistentVolumeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1PersistentVolumeList. # noqa: E501 + - :return: The metadata of this V1PersistentVolumeList. + :return: The metadata of this V1PersistentVolumeList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PersistentVolumeList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1PersistentVolumeList. + - :param metadata: The metadata of this V1PersistentVolumeList. + :param metadata: The metadata of this V1PersistentVolumeList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 9aba75c340..f63132832d 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'access_modes': 'list[str]', 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', @@ -96,10 +96,8 @@ class V1PersistentVolumeSpec(object): 'vsphere_volume': 'vsphereVolume' } - def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_mode=None, vsphere_volume=None): - """ - V1PersistentVolumeSpec - a model defined in Swagger - """ + def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_mode=None, vsphere_volume=None): # noqa: E501 + """V1PersistentVolumeSpec - a model defined in OpenAPI""" # noqa: E501 self._access_modes = None self._aws_elastic_block_store = None @@ -134,84 +132,84 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N self.discriminator = None if access_modes is not None: - self.access_modes = access_modes + self.access_modes = access_modes if aws_elastic_block_store is not None: - self.aws_elastic_block_store = aws_elastic_block_store + self.aws_elastic_block_store = aws_elastic_block_store if azure_disk is not None: - self.azure_disk = azure_disk + self.azure_disk = azure_disk if azure_file is not None: - self.azure_file = azure_file + self.azure_file = azure_file if capacity is not None: - self.capacity = capacity + self.capacity = capacity if cephfs is not None: - self.cephfs = cephfs + self.cephfs = cephfs if cinder is not None: - self.cinder = cinder + self.cinder = cinder if claim_ref is not None: - self.claim_ref = claim_ref + self.claim_ref = claim_ref if csi is not None: - self.csi = csi + self.csi = csi if fc is not None: - self.fc = fc + self.fc = fc if flex_volume is not None: - self.flex_volume = flex_volume + self.flex_volume = flex_volume if flocker is not None: - self.flocker = flocker + self.flocker = flocker if gce_persistent_disk is not None: - self.gce_persistent_disk = gce_persistent_disk + self.gce_persistent_disk = gce_persistent_disk if glusterfs is not None: - self.glusterfs = glusterfs + self.glusterfs = glusterfs if host_path is not None: - self.host_path = host_path + self.host_path = host_path if iscsi is not None: - self.iscsi = iscsi + self.iscsi = iscsi if local is not None: - self.local = local + self.local = local if mount_options is not None: - self.mount_options = mount_options + self.mount_options = mount_options if nfs is not None: - self.nfs = nfs + self.nfs = nfs if node_affinity is not None: - self.node_affinity = node_affinity + self.node_affinity = node_affinity if persistent_volume_reclaim_policy is not None: - self.persistent_volume_reclaim_policy = persistent_volume_reclaim_policy + self.persistent_volume_reclaim_policy = persistent_volume_reclaim_policy if photon_persistent_disk is not None: - self.photon_persistent_disk = photon_persistent_disk + self.photon_persistent_disk = photon_persistent_disk if portworx_volume is not None: - self.portworx_volume = portworx_volume + self.portworx_volume = portworx_volume if quobyte is not None: - self.quobyte = quobyte + self.quobyte = quobyte if rbd is not None: - self.rbd = rbd + self.rbd = rbd if scale_io is not None: - self.scale_io = scale_io + self.scale_io = scale_io if storage_class_name is not None: - self.storage_class_name = storage_class_name + self.storage_class_name = storage_class_name if storageos is not None: - self.storageos = storageos + self.storageos = storageos if volume_mode is not None: - self.volume_mode = volume_mode + self.volume_mode = volume_mode if vsphere_volume is not None: - self.vsphere_volume = vsphere_volume + self.vsphere_volume = vsphere_volume @property def access_modes(self): - """ - Gets the access_modes of this V1PersistentVolumeSpec. - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + """Gets the access_modes of this V1PersistentVolumeSpec. # noqa: E501 - :return: The access_modes of this V1PersistentVolumeSpec. + AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501 + + :return: The access_modes of this V1PersistentVolumeSpec. # noqa: E501 :rtype: list[str] """ return self._access_modes @access_modes.setter def access_modes(self, access_modes): - """ - Sets the access_modes of this V1PersistentVolumeSpec. - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + """Sets the access_modes of this V1PersistentVolumeSpec. - :param access_modes: The access_modes of this V1PersistentVolumeSpec. + AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes # noqa: E501 + + :param access_modes: The access_modes of this V1PersistentVolumeSpec. # noqa: E501 :type: list[str] """ @@ -219,22 +217,20 @@ def access_modes(self, access_modes): @property def aws_elastic_block_store(self): - """ - Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Gets the aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 - :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. + + :return: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): - """ - Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Sets the aws_elastic_block_store of this V1PersistentVolumeSpec. - :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. + + :param aws_elastic_block_store: The aws_elastic_block_store of this V1PersistentVolumeSpec. # noqa: E501 :type: V1AWSElasticBlockStoreVolumeSource """ @@ -242,22 +238,20 @@ def aws_elastic_block_store(self, aws_elastic_block_store): @property def azure_disk(self): - """ - Gets the azure_disk of this V1PersistentVolumeSpec. - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + """Gets the azure_disk of this V1PersistentVolumeSpec. # noqa: E501 - :return: The azure_disk of this V1PersistentVolumeSpec. + + :return: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1AzureDiskVolumeSource """ return self._azure_disk @azure_disk.setter def azure_disk(self, azure_disk): - """ - Sets the azure_disk of this V1PersistentVolumeSpec. - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + """Sets the azure_disk of this V1PersistentVolumeSpec. - :param azure_disk: The azure_disk of this V1PersistentVolumeSpec. + + :param azure_disk: The azure_disk of this V1PersistentVolumeSpec. # noqa: E501 :type: V1AzureDiskVolumeSource """ @@ -265,22 +259,20 @@ def azure_disk(self, azure_disk): @property def azure_file(self): - """ - Gets the azure_file of this V1PersistentVolumeSpec. - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + """Gets the azure_file of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The azure_file of this V1PersistentVolumeSpec. + :return: The azure_file of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1AzureFilePersistentVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): - """ - Sets the azure_file of this V1PersistentVolumeSpec. - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + """Sets the azure_file of this V1PersistentVolumeSpec. + - :param azure_file: The azure_file of this V1PersistentVolumeSpec. + :param azure_file: The azure_file of this V1PersistentVolumeSpec. # noqa: E501 :type: V1AzureFilePersistentVolumeSource """ @@ -288,22 +280,22 @@ def azure_file(self, azure_file): @property def capacity(self): - """ - Gets the capacity of this V1PersistentVolumeSpec. - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + """Gets the capacity of this V1PersistentVolumeSpec. # noqa: E501 + + A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 - :return: The capacity of this V1PersistentVolumeSpec. + :return: The capacity of this V1PersistentVolumeSpec. # noqa: E501 :rtype: dict(str, str) """ return self._capacity @capacity.setter def capacity(self, capacity): - """ - Sets the capacity of this V1PersistentVolumeSpec. - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + """Sets the capacity of this V1PersistentVolumeSpec. + + A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity # noqa: E501 - :param capacity: The capacity of this V1PersistentVolumeSpec. + :param capacity: The capacity of this V1PersistentVolumeSpec. # noqa: E501 :type: dict(str, str) """ @@ -311,22 +303,20 @@ def capacity(self, capacity): @property def cephfs(self): - """ - Gets the cephfs of this V1PersistentVolumeSpec. - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + """Gets the cephfs of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The cephfs of this V1PersistentVolumeSpec. + :return: The cephfs of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1CephFSPersistentVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): - """ - Sets the cephfs of this V1PersistentVolumeSpec. - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + """Sets the cephfs of this V1PersistentVolumeSpec. + - :param cephfs: The cephfs of this V1PersistentVolumeSpec. + :param cephfs: The cephfs of this V1PersistentVolumeSpec. # noqa: E501 :type: V1CephFSPersistentVolumeSource """ @@ -334,22 +324,20 @@ def cephfs(self, cephfs): @property def cinder(self): - """ - Gets the cinder of this V1PersistentVolumeSpec. - Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the cinder of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The cinder of this V1PersistentVolumeSpec. + :return: The cinder of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1CinderPersistentVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): - """ - Sets the cinder of this V1PersistentVolumeSpec. - Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the cinder of this V1PersistentVolumeSpec. + - :param cinder: The cinder of this V1PersistentVolumeSpec. + :param cinder: The cinder of this V1PersistentVolumeSpec. # noqa: E501 :type: V1CinderPersistentVolumeSource """ @@ -357,22 +345,20 @@ def cinder(self, cinder): @property def claim_ref(self): - """ - Gets the claim_ref of this V1PersistentVolumeSpec. - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + """Gets the claim_ref of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The claim_ref of this V1PersistentVolumeSpec. + :return: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1ObjectReference """ return self._claim_ref @claim_ref.setter def claim_ref(self, claim_ref): - """ - Sets the claim_ref of this V1PersistentVolumeSpec. - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + """Sets the claim_ref of this V1PersistentVolumeSpec. - :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. + + :param claim_ref: The claim_ref of this V1PersistentVolumeSpec. # noqa: E501 :type: V1ObjectReference """ @@ -380,22 +366,20 @@ def claim_ref(self, claim_ref): @property def csi(self): - """ - Gets the csi of this V1PersistentVolumeSpec. - CSI represents storage that is handled by an external CSI driver (Beta feature). + """Gets the csi of this V1PersistentVolumeSpec. # noqa: E501 - :return: The csi of this V1PersistentVolumeSpec. + + :return: The csi of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1CSIPersistentVolumeSource """ return self._csi @csi.setter def csi(self, csi): - """ - Sets the csi of this V1PersistentVolumeSpec. - CSI represents storage that is handled by an external CSI driver (Beta feature). + """Sets the csi of this V1PersistentVolumeSpec. - :param csi: The csi of this V1PersistentVolumeSpec. + + :param csi: The csi of this V1PersistentVolumeSpec. # noqa: E501 :type: V1CSIPersistentVolumeSource """ @@ -403,22 +387,20 @@ def csi(self, csi): @property def fc(self): - """ - Gets the fc of this V1PersistentVolumeSpec. - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + """Gets the fc of this V1PersistentVolumeSpec. # noqa: E501 - :return: The fc of this V1PersistentVolumeSpec. + + :return: The fc of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): - """ - Sets the fc of this V1PersistentVolumeSpec. - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + """Sets the fc of this V1PersistentVolumeSpec. - :param fc: The fc of this V1PersistentVolumeSpec. + + :param fc: The fc of this V1PersistentVolumeSpec. # noqa: E501 :type: V1FCVolumeSource """ @@ -426,22 +408,20 @@ def fc(self, fc): @property def flex_volume(self): - """ - Gets the flex_volume of this V1PersistentVolumeSpec. - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + """Gets the flex_volume of this V1PersistentVolumeSpec. # noqa: E501 - :return: The flex_volume of this V1PersistentVolumeSpec. + + :return: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1FlexPersistentVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): - """ - Sets the flex_volume of this V1PersistentVolumeSpec. - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + """Sets the flex_volume of this V1PersistentVolumeSpec. - :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. + + :param flex_volume: The flex_volume of this V1PersistentVolumeSpec. # noqa: E501 :type: V1FlexPersistentVolumeSource """ @@ -449,22 +429,20 @@ def flex_volume(self, flex_volume): @property def flocker(self): - """ - Gets the flocker of this V1PersistentVolumeSpec. - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + """Gets the flocker of this V1PersistentVolumeSpec. # noqa: E501 - :return: The flocker of this V1PersistentVolumeSpec. + + :return: The flocker of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): - """ - Sets the flocker of this V1PersistentVolumeSpec. - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + """Sets the flocker of this V1PersistentVolumeSpec. + - :param flocker: The flocker of this V1PersistentVolumeSpec. + :param flocker: The flocker of this V1PersistentVolumeSpec. # noqa: E501 :type: V1FlockerVolumeSource """ @@ -472,22 +450,20 @@ def flocker(self, flocker): @property def gce_persistent_disk(self): - """ - Gets the gce_persistent_disk of this V1PersistentVolumeSpec. - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The gce_persistent_disk of this V1PersistentVolumeSpec. + :return: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): - """ - Sets the gce_persistent_disk of this V1PersistentVolumeSpec. - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the gce_persistent_disk of this V1PersistentVolumeSpec. + - :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. + :param gce_persistent_disk: The gce_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 :type: V1GCEPersistentDiskVolumeSource """ @@ -495,22 +471,20 @@ def gce_persistent_disk(self, gce_persistent_disk): @property def glusterfs(self): - """ - Gets the glusterfs of this V1PersistentVolumeSpec. - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + """Gets the glusterfs of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The glusterfs of this V1PersistentVolumeSpec. + :return: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1GlusterfsPersistentVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): - """ - Sets the glusterfs of this V1PersistentVolumeSpec. - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + """Sets the glusterfs of this V1PersistentVolumeSpec. + - :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. + :param glusterfs: The glusterfs of this V1PersistentVolumeSpec. # noqa: E501 :type: V1GlusterfsPersistentVolumeSource """ @@ -518,22 +492,20 @@ def glusterfs(self, glusterfs): @property def host_path(self): - """ - Gets the host_path of this V1PersistentVolumeSpec. - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Gets the host_path of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The host_path of this V1PersistentVolumeSpec. + :return: The host_path of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): - """ - Sets the host_path of this V1PersistentVolumeSpec. - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Sets the host_path of this V1PersistentVolumeSpec. + - :param host_path: The host_path of this V1PersistentVolumeSpec. + :param host_path: The host_path of this V1PersistentVolumeSpec. # noqa: E501 :type: V1HostPathVolumeSource """ @@ -541,22 +513,20 @@ def host_path(self, host_path): @property def iscsi(self): - """ - Gets the iscsi of this V1PersistentVolumeSpec. - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + """Gets the iscsi of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The iscsi of this V1PersistentVolumeSpec. + :return: The iscsi of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1ISCSIPersistentVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): - """ - Sets the iscsi of this V1PersistentVolumeSpec. - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + """Sets the iscsi of this V1PersistentVolumeSpec. + - :param iscsi: The iscsi of this V1PersistentVolumeSpec. + :param iscsi: The iscsi of this V1PersistentVolumeSpec. # noqa: E501 :type: V1ISCSIPersistentVolumeSource """ @@ -564,22 +534,20 @@ def iscsi(self, iscsi): @property def local(self): - """ - Gets the local of this V1PersistentVolumeSpec. - Local represents directly-attached storage with node affinity + """Gets the local of this V1PersistentVolumeSpec. # noqa: E501 - :return: The local of this V1PersistentVolumeSpec. + + :return: The local of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1LocalVolumeSource """ return self._local @local.setter def local(self, local): - """ - Sets the local of this V1PersistentVolumeSpec. - Local represents directly-attached storage with node affinity + """Sets the local of this V1PersistentVolumeSpec. - :param local: The local of this V1PersistentVolumeSpec. + + :param local: The local of this V1PersistentVolumeSpec. # noqa: E501 :type: V1LocalVolumeSource """ @@ -587,22 +555,22 @@ def local(self, local): @property def mount_options(self): - """ - Gets the mount_options of this V1PersistentVolumeSpec. - A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + """Gets the mount_options of this V1PersistentVolumeSpec. # noqa: E501 - :return: The mount_options of this V1PersistentVolumeSpec. + A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options # noqa: E501 + + :return: The mount_options of this V1PersistentVolumeSpec. # noqa: E501 :rtype: list[str] """ return self._mount_options @mount_options.setter def mount_options(self, mount_options): - """ - Sets the mount_options of this V1PersistentVolumeSpec. - A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + """Sets the mount_options of this V1PersistentVolumeSpec. - :param mount_options: The mount_options of this V1PersistentVolumeSpec. + A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options # noqa: E501 + + :param mount_options: The mount_options of this V1PersistentVolumeSpec. # noqa: E501 :type: list[str] """ @@ -610,22 +578,20 @@ def mount_options(self, mount_options): @property def nfs(self): - """ - Gets the nfs of this V1PersistentVolumeSpec. - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Gets the nfs of this V1PersistentVolumeSpec. # noqa: E501 - :return: The nfs of this V1PersistentVolumeSpec. + + :return: The nfs of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): - """ - Sets the nfs of this V1PersistentVolumeSpec. - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Sets the nfs of this V1PersistentVolumeSpec. - :param nfs: The nfs of this V1PersistentVolumeSpec. + + :param nfs: The nfs of this V1PersistentVolumeSpec. # noqa: E501 :type: V1NFSVolumeSource """ @@ -633,22 +599,20 @@ def nfs(self, nfs): @property def node_affinity(self): - """ - Gets the node_affinity of this V1PersistentVolumeSpec. - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + """Gets the node_affinity of this V1PersistentVolumeSpec. # noqa: E501 - :return: The node_affinity of this V1PersistentVolumeSpec. + + :return: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1VolumeNodeAffinity """ return self._node_affinity @node_affinity.setter def node_affinity(self, node_affinity): - """ - Sets the node_affinity of this V1PersistentVolumeSpec. - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + """Sets the node_affinity of this V1PersistentVolumeSpec. - :param node_affinity: The node_affinity of this V1PersistentVolumeSpec. + + :param node_affinity: The node_affinity of this V1PersistentVolumeSpec. # noqa: E501 :type: V1VolumeNodeAffinity """ @@ -656,22 +620,22 @@ def node_affinity(self, node_affinity): @property def persistent_volume_reclaim_policy(self): - """ - Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + """Gets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 + + What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming # noqa: E501 - :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :return: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 :rtype: str """ return self._persistent_volume_reclaim_policy @persistent_volume_reclaim_policy.setter def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): - """ - Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + """Sets the persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + + What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming # noqa: E501 - :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. + :param persistent_volume_reclaim_policy: The persistent_volume_reclaim_policy of this V1PersistentVolumeSpec. # noqa: E501 :type: str """ @@ -679,22 +643,20 @@ def persistent_volume_reclaim_policy(self, persistent_volume_reclaim_policy): @property def photon_persistent_disk(self): - """ - Gets the photon_persistent_disk of this V1PersistentVolumeSpec. - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + """Gets the photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The photon_persistent_disk of this V1PersistentVolumeSpec. + :return: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1PhotonPersistentDiskVolumeSource """ return self._photon_persistent_disk @photon_persistent_disk.setter def photon_persistent_disk(self, photon_persistent_disk): - """ - Sets the photon_persistent_disk of this V1PersistentVolumeSpec. - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + """Sets the photon_persistent_disk of this V1PersistentVolumeSpec. + - :param photon_persistent_disk: The photon_persistent_disk of this V1PersistentVolumeSpec. + :param photon_persistent_disk: The photon_persistent_disk of this V1PersistentVolumeSpec. # noqa: E501 :type: V1PhotonPersistentDiskVolumeSource """ @@ -702,22 +664,20 @@ def photon_persistent_disk(self, photon_persistent_disk): @property def portworx_volume(self): - """ - Gets the portworx_volume of this V1PersistentVolumeSpec. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + """Gets the portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The portworx_volume of this V1PersistentVolumeSpec. + :return: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1PortworxVolumeSource """ return self._portworx_volume @portworx_volume.setter def portworx_volume(self, portworx_volume): - """ - Sets the portworx_volume of this V1PersistentVolumeSpec. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + """Sets the portworx_volume of this V1PersistentVolumeSpec. + - :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. + :param portworx_volume: The portworx_volume of this V1PersistentVolumeSpec. # noqa: E501 :type: V1PortworxVolumeSource """ @@ -725,22 +685,20 @@ def portworx_volume(self, portworx_volume): @property def quobyte(self): - """ - Gets the quobyte of this V1PersistentVolumeSpec. - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + """Gets the quobyte of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The quobyte of this V1PersistentVolumeSpec. + :return: The quobyte of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1QuobyteVolumeSource """ return self._quobyte @quobyte.setter def quobyte(self, quobyte): - """ - Sets the quobyte of this V1PersistentVolumeSpec. - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + """Sets the quobyte of this V1PersistentVolumeSpec. + - :param quobyte: The quobyte of this V1PersistentVolumeSpec. + :param quobyte: The quobyte of this V1PersistentVolumeSpec. # noqa: E501 :type: V1QuobyteVolumeSource """ @@ -748,22 +706,20 @@ def quobyte(self, quobyte): @property def rbd(self): - """ - Gets the rbd of this V1PersistentVolumeSpec. - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + """Gets the rbd of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The rbd of this V1PersistentVolumeSpec. + :return: The rbd of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1RBDPersistentVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): - """ - Sets the rbd of this V1PersistentVolumeSpec. - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + """Sets the rbd of this V1PersistentVolumeSpec. - :param rbd: The rbd of this V1PersistentVolumeSpec. + + :param rbd: The rbd of this V1PersistentVolumeSpec. # noqa: E501 :type: V1RBDPersistentVolumeSource """ @@ -771,22 +727,20 @@ def rbd(self, rbd): @property def scale_io(self): - """ - Gets the scale_io of this V1PersistentVolumeSpec. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + """Gets the scale_io of this V1PersistentVolumeSpec. # noqa: E501 - :return: The scale_io of this V1PersistentVolumeSpec. + + :return: The scale_io of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1ScaleIOPersistentVolumeSource """ return self._scale_io @scale_io.setter def scale_io(self, scale_io): - """ - Sets the scale_io of this V1PersistentVolumeSpec. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + """Sets the scale_io of this V1PersistentVolumeSpec. - :param scale_io: The scale_io of this V1PersistentVolumeSpec. + + :param scale_io: The scale_io of this V1PersistentVolumeSpec. # noqa: E501 :type: V1ScaleIOPersistentVolumeSource """ @@ -794,22 +748,22 @@ def scale_io(self, scale_io): @property def storage_class_name(self): - """ - Gets the storage_class_name of this V1PersistentVolumeSpec. - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + """Gets the storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 - :return: The storage_class_name of this V1PersistentVolumeSpec. + Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. # noqa: E501 + + :return: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 :rtype: str """ return self._storage_class_name @storage_class_name.setter def storage_class_name(self, storage_class_name): - """ - Sets the storage_class_name of this V1PersistentVolumeSpec. - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + """Sets the storage_class_name of this V1PersistentVolumeSpec. - :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. + Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. # noqa: E501 + + :param storage_class_name: The storage_class_name of this V1PersistentVolumeSpec. # noqa: E501 :type: str """ @@ -817,22 +771,20 @@ def storage_class_name(self, storage_class_name): @property def storageos(self): - """ - Gets the storageos of this V1PersistentVolumeSpec. - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md + """Gets the storageos of this V1PersistentVolumeSpec. # noqa: E501 - :return: The storageos of this V1PersistentVolumeSpec. + + :return: The storageos of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1StorageOSPersistentVolumeSource """ return self._storageos @storageos.setter def storageos(self, storageos): - """ - Sets the storageos of this V1PersistentVolumeSpec. - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md + """Sets the storageos of this V1PersistentVolumeSpec. - :param storageos: The storageos of this V1PersistentVolumeSpec. + + :param storageos: The storageos of this V1PersistentVolumeSpec. # noqa: E501 :type: V1StorageOSPersistentVolumeSource """ @@ -840,22 +792,22 @@ def storageos(self, storageos): @property def volume_mode(self): - """ - Gets the volume_mode of this V1PersistentVolumeSpec. - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. + """Gets the volume_mode of this V1PersistentVolumeSpec. # noqa: E501 - :return: The volume_mode of this V1PersistentVolumeSpec. + volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. # noqa: E501 + + :return: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501 :rtype: str """ return self._volume_mode @volume_mode.setter def volume_mode(self, volume_mode): - """ - Sets the volume_mode of this V1PersistentVolumeSpec. - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. + """Sets the volume_mode of this V1PersistentVolumeSpec. + + volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. # noqa: E501 - :param volume_mode: The volume_mode of this V1PersistentVolumeSpec. + :param volume_mode: The volume_mode of this V1PersistentVolumeSpec. # noqa: E501 :type: str """ @@ -863,34 +815,30 @@ def volume_mode(self, volume_mode): @property def vsphere_volume(self): - """ - Gets the vsphere_volume of this V1PersistentVolumeSpec. - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """Gets the vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 + - :return: The vsphere_volume of this V1PersistentVolumeSpec. + :return: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 :rtype: V1VsphereVirtualDiskVolumeSource """ return self._vsphere_volume @vsphere_volume.setter def vsphere_volume(self, vsphere_volume): - """ - Sets the vsphere_volume of this V1PersistentVolumeSpec. - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """Sets the vsphere_volume of this V1PersistentVolumeSpec. + - :param vsphere_volume: The vsphere_volume of this V1PersistentVolumeSpec. + :param vsphere_volume: The vsphere_volume of this V1PersistentVolumeSpec. # noqa: E501 :type: V1VsphereVirtualDiskVolumeSource """ self._vsphere_volume = vsphere_volume def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -911,28 +859,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_persistent_volume_status.py b/kubernetes/client/models/v1_persistent_volume_status.py index 342dc16df6..109d32629a 100644 --- a/kubernetes/client/models/v1_persistent_volume_status.py +++ b/kubernetes/client/models/v1_persistent_volume_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PersistentVolumeStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'message': 'str', 'phase': 'str', 'reason': 'str' @@ -42,10 +42,8 @@ class V1PersistentVolumeStatus(object): 'reason': 'reason' } - def __init__(self, message=None, phase=None, reason=None): - """ - V1PersistentVolumeStatus - a model defined in Swagger - """ + def __init__(self, message=None, phase=None, reason=None): # noqa: E501 + """V1PersistentVolumeStatus - a model defined in OpenAPI""" # noqa: E501 self._message = None self._phase = None @@ -53,30 +51,30 @@ def __init__(self, message=None, phase=None, reason=None): self.discriminator = None if message is not None: - self.message = message + self.message = message if phase is not None: - self.phase = phase + self.phase = phase if reason is not None: - self.reason = reason + self.reason = reason @property def message(self): - """ - Gets the message of this V1PersistentVolumeStatus. - A human-readable message indicating details about why the volume is in this state. + """Gets the message of this V1PersistentVolumeStatus. # noqa: E501 - :return: The message of this V1PersistentVolumeStatus. + A human-readable message indicating details about why the volume is in this state. # noqa: E501 + + :return: The message of this V1PersistentVolumeStatus. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1PersistentVolumeStatus. - A human-readable message indicating details about why the volume is in this state. + """Sets the message of this V1PersistentVolumeStatus. - :param message: The message of this V1PersistentVolumeStatus. + A human-readable message indicating details about why the volume is in this state. # noqa: E501 + + :param message: The message of this V1PersistentVolumeStatus. # noqa: E501 :type: str """ @@ -84,22 +82,22 @@ def message(self, message): @property def phase(self): - """ - Gets the phase of this V1PersistentVolumeStatus. - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + """Gets the phase of this V1PersistentVolumeStatus. # noqa: E501 - :return: The phase of this V1PersistentVolumeStatus. + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase # noqa: E501 + + :return: The phase of this V1PersistentVolumeStatus. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): - """ - Sets the phase of this V1PersistentVolumeStatus. - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + """Sets the phase of this V1PersistentVolumeStatus. + + Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase # noqa: E501 - :param phase: The phase of this V1PersistentVolumeStatus. + :param phase: The phase of this V1PersistentVolumeStatus. # noqa: E501 :type: str """ @@ -107,34 +105,32 @@ def phase(self, phase): @property def reason(self): - """ - Gets the reason of this V1PersistentVolumeStatus. - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + """Gets the reason of this V1PersistentVolumeStatus. # noqa: E501 + + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. # noqa: E501 - :return: The reason of this V1PersistentVolumeStatus. + :return: The reason of this V1PersistentVolumeStatus. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1PersistentVolumeStatus. - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + """Sets the reason of this V1PersistentVolumeStatus. + + Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. # noqa: E501 - :param reason: The reason of this V1PersistentVolumeStatus. + :param reason: The reason of this V1PersistentVolumeStatus. # noqa: E501 :type: str """ self._reason = reason def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PersistentVolumeStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py index fafe7e6027..5b070eab8d 100644 --- a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PhotonPersistentDiskVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'pd_id': 'str' } @@ -40,37 +40,35 @@ class V1PhotonPersistentDiskVolumeSource(object): 'pd_id': 'pdID' } - def __init__(self, fs_type=None, pd_id=None): - """ - V1PhotonPersistentDiskVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, pd_id=None): # noqa: E501 + """V1PhotonPersistentDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._pd_id = None self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.pd_id = pd_id @property def fs_type(self): - """ - Gets the fs_type of this V1PhotonPersistentDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 - :return: The fs_type of this V1PhotonPersistentDiskVolumeSource. + :return: The fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1PhotonPersistentDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1PhotonPersistentDiskVolumeSource. - :param fs_type: The fs_type of this V1PhotonPersistentDiskVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 :type: str """ @@ -78,36 +76,34 @@ def fs_type(self, fs_type): @property def pd_id(self): - """ - Gets the pd_id of this V1PhotonPersistentDiskVolumeSource. - ID that identifies Photon Controller persistent disk + """Gets the pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 + + ID that identifies Photon Controller persistent disk # noqa: E501 - :return: The pd_id of this V1PhotonPersistentDiskVolumeSource. + :return: The pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 :rtype: str """ return self._pd_id @pd_id.setter def pd_id(self, pd_id): - """ - Sets the pd_id of this V1PhotonPersistentDiskVolumeSource. - ID that identifies Photon Controller persistent disk + """Sets the pd_id of this V1PhotonPersistentDiskVolumeSource. + + ID that identifies Photon Controller persistent disk # noqa: E501 - :param pd_id: The pd_id of this V1PhotonPersistentDiskVolumeSource. + :param pd_id: The pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 :type: str """ if pd_id is None: - raise ValueError("Invalid value for `pd_id`, must not be `None`") + raise ValueError("Invalid value for `pd_id`, must not be `None`") # noqa: E501 self._pd_id = pd_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PhotonPersistentDiskVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod.py b/kubernetes/client/models/v1_pod.py index 963b066305..c9a514b8ac 100644 --- a/kubernetes/client/models/v1_pod.py +++ b/kubernetes/client/models/v1_pod.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Pod(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Pod(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Pod - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Pod - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Pod. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Pod. # noqa: E501 - :return: The api_version of this V1Pod. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Pod. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Pod. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Pod. - :param api_version: The api_version of this V1Pod. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Pod. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Pod. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Pod. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Pod. + :return: The kind of this V1Pod. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Pod. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Pod. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Pod. + :param kind: The kind of this V1Pod. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Pod. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Pod. # noqa: E501 + - :return: The metadata of this V1Pod. + :return: The metadata of this V1Pod. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Pod. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Pod. + - :param metadata: The metadata of this V1Pod. + :param metadata: The metadata of this V1Pod. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Pod. - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Pod. # noqa: E501 + - :return: The spec of this V1Pod. + :return: The spec of this V1Pod. # noqa: E501 :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Pod. - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Pod. - :param spec: The spec of this V1Pod. + + :param spec: The spec of this V1Pod. # noqa: E501 :type: V1PodSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Pod. - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Pod. # noqa: E501 - :return: The status of this V1Pod. + + :return: The status of this V1Pod. # noqa: E501 :rtype: V1PodStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Pod. - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Pod. - :param status: The status of this V1Pod. + + :param status: The status of this V1Pod. # noqa: E501 :type: V1PodStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Pod): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_affinity.py b/kubernetes/client/models/v1_pod_affinity.py index 4073d67d4e..7ed44bbdc2 100644 --- a/kubernetes/client/models/v1_pod_affinity.py +++ b/kubernetes/client/models/v1_pod_affinity.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' } @@ -40,38 +40,36 @@ class V1PodAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1PodAffinity - a model defined in Swagger - """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + """V1PodAffinity - a model defined in OpenAPI""" # noqa: E501 self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None self.discriminator = None if preferred_during_scheduling_ignored_during_execution is not None: - self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution if required_during_scheduling_ignored_during_execution is not None: - self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @property def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + """Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 :rtype: list[V1WeightedPodAffinityTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + """Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 :type: list[V1WeightedPodAffinityTerm] """ @@ -79,34 +77,32 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """Gets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 + + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 - :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :return: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 :rtype: list[V1PodAffinityTerm] """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """Sets the required_during_scheduling_ignored_during_execution of this V1PodAffinity. + + If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAffinity. # noqa: E501 :type: list[V1PodAffinityTerm] """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodAffinity): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_affinity_term.py b/kubernetes/client/models/v1_pod_affinity_term.py index 8597a96583..85e0502e8a 100644 --- a/kubernetes/client/models/v1_pod_affinity_term.py +++ b/kubernetes/client/models/v1_pod_affinity_term.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodAffinityTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'label_selector': 'V1LabelSelector', 'namespaces': 'list[str]', 'topology_key': 'str' @@ -42,10 +42,8 @@ class V1PodAffinityTerm(object): 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespaces=None, topology_key=None): - """ - V1PodAffinityTerm - a model defined in Swagger - """ + def __init__(self, label_selector=None, namespaces=None, topology_key=None): # noqa: E501 + """V1PodAffinityTerm - a model defined in OpenAPI""" # noqa: E501 self._label_selector = None self._namespaces = None @@ -53,29 +51,27 @@ def __init__(self, label_selector=None, namespaces=None, topology_key=None): self.discriminator = None if label_selector is not None: - self.label_selector = label_selector + self.label_selector = label_selector if namespaces is not None: - self.namespaces = namespaces + self.namespaces = namespaces self.topology_key = topology_key @property def label_selector(self): - """ - Gets the label_selector of this V1PodAffinityTerm. - A label query over a set of resources, in this case pods. + """Gets the label_selector of this V1PodAffinityTerm. # noqa: E501 - :return: The label_selector of this V1PodAffinityTerm. + + :return: The label_selector of this V1PodAffinityTerm. # noqa: E501 :rtype: V1LabelSelector """ return self._label_selector @label_selector.setter def label_selector(self, label_selector): - """ - Sets the label_selector of this V1PodAffinityTerm. - A label query over a set of resources, in this case pods. + """Sets the label_selector of this V1PodAffinityTerm. - :param label_selector: The label_selector of this V1PodAffinityTerm. + + :param label_selector: The label_selector of this V1PodAffinityTerm. # noqa: E501 :type: V1LabelSelector """ @@ -83,22 +79,22 @@ def label_selector(self, label_selector): @property def namespaces(self): - """ - Gets the namespaces of this V1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + """Gets the namespaces of this V1PodAffinityTerm. # noqa: E501 - :return: The namespaces of this V1PodAffinityTerm. + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" # noqa: E501 + + :return: The namespaces of this V1PodAffinityTerm. # noqa: E501 :rtype: list[str] """ return self._namespaces @namespaces.setter def namespaces(self, namespaces): - """ - Sets the namespaces of this V1PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" + """Sets the namespaces of this V1PodAffinityTerm. + + namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" # noqa: E501 - :param namespaces: The namespaces of this V1PodAffinityTerm. + :param namespaces: The namespaces of this V1PodAffinityTerm. # noqa: E501 :type: list[str] """ @@ -106,36 +102,34 @@ def namespaces(self, namespaces): @property def topology_key(self): - """ - Gets the topology_key of this V1PodAffinityTerm. - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + """Gets the topology_key of this V1PodAffinityTerm. # noqa: E501 + + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. # noqa: E501 - :return: The topology_key of this V1PodAffinityTerm. + :return: The topology_key of this V1PodAffinityTerm. # noqa: E501 :rtype: str """ return self._topology_key @topology_key.setter def topology_key(self, topology_key): - """ - Sets the topology_key of this V1PodAffinityTerm. - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + """Sets the topology_key of this V1PodAffinityTerm. + + This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. # noqa: E501 - :param topology_key: The topology_key of this V1PodAffinityTerm. + :param topology_key: The topology_key of this V1PodAffinityTerm. # noqa: E501 :type: str """ if topology_key is None: - raise ValueError("Invalid value for `topology_key`, must not be `None`") + raise ValueError("Invalid value for `topology_key`, must not be `None`") # noqa: E501 self._topology_key = topology_key def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +150,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodAffinityTerm): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_anti_affinity.py b/kubernetes/client/models/v1_pod_anti_affinity.py index 1ad8292a0f..2d9e0df2aa 100644 --- a/kubernetes/client/models/v1_pod_anti_affinity.py +++ b/kubernetes/client/models/v1_pod_anti_affinity.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodAntiAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'preferred_during_scheduling_ignored_during_execution': 'list[V1WeightedPodAffinityTerm]', 'required_during_scheduling_ignored_during_execution': 'list[V1PodAffinityTerm]' } @@ -40,38 +40,36 @@ class V1PodAntiAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): - """ - V1PodAntiAffinity - a model defined in Swagger - """ + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + """V1PodAntiAffinity - a model defined in OpenAPI""" # noqa: E501 self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None self.discriminator = None if preferred_during_scheduling_ignored_during_execution is not None: - self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution + self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution if required_during_scheduling_ignored_during_execution is not None: - self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution + self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution @property def preferred_during_scheduling_ignored_during_execution(self): - """ - Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + """Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 - :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 :rtype: list[V1WeightedPodAffinityTerm] """ return self._preferred_during_scheduling_ignored_during_execution @preferred_during_scheduling_ignored_during_execution.setter def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): - """ - Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + """Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501 + + :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 :type: list[V1WeightedPodAffinityTerm] """ @@ -79,34 +77,32 @@ def preferred_during_scheduling_ignored_during_execution(self, preferred_during_ @property def required_during_scheduling_ignored_during_execution(self): - """ - Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """Gets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 + + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 - :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :return: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 :rtype: list[V1PodAffinityTerm] """ return self._required_during_scheduling_ignored_during_execution @required_during_scheduling_ignored_during_execution.setter def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution): - """ - Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + """Sets the required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + + If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. # noqa: E501 - :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. + :param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501 :type: list[V1PodAffinityTerm] """ self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodAntiAffinity): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index abb5f45e01..4a771c8952 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_probe_time': 'datetime', 'last_transition_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1PodCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1PodCondition - a model defined in Swagger - """ + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1PodCondition - a model defined in OpenAPI""" # noqa: E501 self._last_probe_time = None self._last_transition_time = None @@ -62,34 +60,34 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None self.discriminator = None if last_probe_time is not None: - self.last_probe_time = last_probe_time + self.last_probe_time = last_probe_time if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_probe_time(self): - """ - Gets the last_probe_time of this V1PodCondition. - Last time we probed the condition. + """Gets the last_probe_time of this V1PodCondition. # noqa: E501 + + Last time we probed the condition. # noqa: E501 - :return: The last_probe_time of this V1PodCondition. + :return: The last_probe_time of this V1PodCondition. # noqa: E501 :rtype: datetime """ return self._last_probe_time @last_probe_time.setter def last_probe_time(self, last_probe_time): - """ - Sets the last_probe_time of this V1PodCondition. - Last time we probed the condition. + """Sets the last_probe_time of this V1PodCondition. + + Last time we probed the condition. # noqa: E501 - :param last_probe_time: The last_probe_time of this V1PodCondition. + :param last_probe_time: The last_probe_time of this V1PodCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_probe_time(self, last_probe_time): @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1PodCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1PodCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this V1PodCondition. + :return: The last_transition_time of this V1PodCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1PodCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1PodCondition. - :param last_transition_time: The last_transition_time of this V1PodCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1PodCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1PodCondition. - Human-readable message indicating details about last transition. + """Gets the message of this V1PodCondition. # noqa: E501 - :return: The message of this V1PodCondition. + Human-readable message indicating details about last transition. # noqa: E501 + + :return: The message of this V1PodCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1PodCondition. - Human-readable message indicating details about last transition. + """Sets the message of this V1PodCondition. + + Human-readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1PodCondition. + :param message: The message of this V1PodCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1PodCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Gets the reason of this V1PodCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1PodCondition. + :return: The reason of this V1PodCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1PodCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Sets the reason of this V1PodCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1PodCondition. + :param reason: The reason of this V1PodCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1PodCondition. - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Gets the status of this V1PodCondition. # noqa: E501 - :return: The status of this V1PodCondition. + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :return: The status of this V1PodCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1PodCondition. - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Sets the status of this V1PodCondition. - :param status: The status of this V1PodCondition. + Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 + + :param status: The status of this V1PodCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1PodCondition. - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Gets the type of this V1PodCondition. # noqa: E501 + + Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 - :return: The type of this V1PodCondition. + :return: The type of this V1PodCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1PodCondition. - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Sets the type of this V1PodCondition. + + Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 - :param type: The type of this V1PodCondition. + :param type: The type of this V1PodCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_dns_config.py b/kubernetes/client/models/v1_pod_dns_config.py index 2c14eef6f5..b440e82635 100644 --- a/kubernetes/client/models/v1_pod_dns_config.py +++ b/kubernetes/client/models/v1_pod_dns_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodDNSConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'nameservers': 'list[str]', 'options': 'list[V1PodDNSConfigOption]', 'searches': 'list[str]' @@ -42,10 +42,8 @@ class V1PodDNSConfig(object): 'searches': 'searches' } - def __init__(self, nameservers=None, options=None, searches=None): - """ - V1PodDNSConfig - a model defined in Swagger - """ + def __init__(self, nameservers=None, options=None, searches=None): # noqa: E501 + """V1PodDNSConfig - a model defined in OpenAPI""" # noqa: E501 self._nameservers = None self._options = None @@ -53,30 +51,30 @@ def __init__(self, nameservers=None, options=None, searches=None): self.discriminator = None if nameservers is not None: - self.nameservers = nameservers + self.nameservers = nameservers if options is not None: - self.options = options + self.options = options if searches is not None: - self.searches = searches + self.searches = searches @property def nameservers(self): - """ - Gets the nameservers of this V1PodDNSConfig. - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + """Gets the nameservers of this V1PodDNSConfig. # noqa: E501 - :return: The nameservers of this V1PodDNSConfig. + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. # noqa: E501 + + :return: The nameservers of this V1PodDNSConfig. # noqa: E501 :rtype: list[str] """ return self._nameservers @nameservers.setter def nameservers(self, nameservers): - """ - Sets the nameservers of this V1PodDNSConfig. - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + """Sets the nameservers of this V1PodDNSConfig. - :param nameservers: The nameservers of this V1PodDNSConfig. + A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. # noqa: E501 + + :param nameservers: The nameservers of this V1PodDNSConfig. # noqa: E501 :type: list[str] """ @@ -84,22 +82,22 @@ def nameservers(self, nameservers): @property def options(self): - """ - Gets the options of this V1PodDNSConfig. - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + """Gets the options of this V1PodDNSConfig. # noqa: E501 - :return: The options of this V1PodDNSConfig. + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. # noqa: E501 + + :return: The options of this V1PodDNSConfig. # noqa: E501 :rtype: list[V1PodDNSConfigOption] """ return self._options @options.setter def options(self, options): - """ - Sets the options of this V1PodDNSConfig. - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + """Sets the options of this V1PodDNSConfig. + + A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. # noqa: E501 - :param options: The options of this V1PodDNSConfig. + :param options: The options of this V1PodDNSConfig. # noqa: E501 :type: list[V1PodDNSConfigOption] """ @@ -107,34 +105,32 @@ def options(self, options): @property def searches(self): - """ - Gets the searches of this V1PodDNSConfig. - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + """Gets the searches of this V1PodDNSConfig. # noqa: E501 + + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. # noqa: E501 - :return: The searches of this V1PodDNSConfig. + :return: The searches of this V1PodDNSConfig. # noqa: E501 :rtype: list[str] """ return self._searches @searches.setter def searches(self, searches): - """ - Sets the searches of this V1PodDNSConfig. - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + """Sets the searches of this V1PodDNSConfig. + + A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. # noqa: E501 - :param searches: The searches of this V1PodDNSConfig. + :param searches: The searches of this V1PodDNSConfig. # noqa: E501 :type: list[str] """ self._searches = searches def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodDNSConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_dns_config_option.py b/kubernetes/client/models/v1_pod_dns_config_option.py index ca275a340f..4b3418f8b9 100644 --- a/kubernetes/client/models/v1_pod_dns_config_option.py +++ b/kubernetes/client/models/v1_pod_dns_config_option.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodDNSConfigOption(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'value': 'str' } @@ -40,38 +40,36 @@ class V1PodDNSConfigOption(object): 'value': 'value' } - def __init__(self, name=None, value=None): - """ - V1PodDNSConfigOption - a model defined in Swagger - """ + def __init__(self, name=None, value=None): # noqa: E501 + """V1PodDNSConfigOption - a model defined in OpenAPI""" # noqa: E501 self._name = None self._value = None self.discriminator = None if name is not None: - self.name = name + self.name = name if value is not None: - self.value = value + self.value = value @property def name(self): - """ - Gets the name of this V1PodDNSConfigOption. - Required. + """Gets the name of this V1PodDNSConfigOption. # noqa: E501 + + Required. # noqa: E501 - :return: The name of this V1PodDNSConfigOption. + :return: The name of this V1PodDNSConfigOption. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1PodDNSConfigOption. - Required. + """Sets the name of this V1PodDNSConfigOption. - :param name: The name of this V1PodDNSConfigOption. + Required. # noqa: E501 + + :param name: The name of this V1PodDNSConfigOption. # noqa: E501 :type: str """ @@ -79,32 +77,30 @@ def name(self, name): @property def value(self): - """ - Gets the value of this V1PodDNSConfigOption. + """Gets the value of this V1PodDNSConfigOption. # noqa: E501 + - :return: The value of this V1PodDNSConfigOption. + :return: The value of this V1PodDNSConfigOption. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1PodDNSConfigOption. + """Sets the value of this V1PodDNSConfigOption. + - :param value: The value of this V1PodDNSConfigOption. + :param value: The value of this V1PodDNSConfigOption. # noqa: E501 :type: str """ self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -125,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodDNSConfigOption): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_list.py b/kubernetes/client/models/v1_pod_list.py index 37493d5264..6dcd69df57 100644 --- a/kubernetes/client/models/v1_pod_list.py +++ b/kubernetes/client/models/v1_pod_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Pod]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1PodList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1PodList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1PodList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1PodList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PodList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PodList. + :return: The api_version of this V1PodList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PodList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PodList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PodList. + :param api_version: The api_version of this V1PodList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1PodList. - List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md + """Gets the items of this V1PodList. # noqa: E501 + + List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md # noqa: E501 - :return: The items of this V1PodList. + :return: The items of this V1PodList. # noqa: E501 :rtype: list[V1Pod] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1PodList. - List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md + """Sets the items of this V1PodList. + + List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md # noqa: E501 - :param items: The items of this V1PodList. + :param items: The items of this V1PodList. # noqa: E501 :type: list[V1Pod] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1PodList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PodList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PodList. + :return: The kind of this V1PodList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PodList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PodList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PodList. + :param kind: The kind of this V1PodList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PodList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1PodList. # noqa: E501 + - :return: The metadata of this V1PodList. + :return: The metadata of this V1PodList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PodList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1PodList. + - :param metadata: The metadata of this V1PodList. + :param metadata: The metadata of this V1PodList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_readiness_gate.py b/kubernetes/client/models/v1_pod_readiness_gate.py index 3524da18b1..bb56a8156d 100644 --- a/kubernetes/client/models/v1_pod_readiness_gate.py +++ b/kubernetes/client/models/v1_pod_readiness_gate.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodReadinessGate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'condition_type': 'str' } @@ -38,10 +38,8 @@ class V1PodReadinessGate(object): 'condition_type': 'conditionType' } - def __init__(self, condition_type=None): - """ - V1PodReadinessGate - a model defined in Swagger - """ + def __init__(self, condition_type=None): # noqa: E501 + """V1PodReadinessGate - a model defined in OpenAPI""" # noqa: E501 self._condition_type = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, condition_type=None): @property def condition_type(self): - """ - Gets the condition_type of this V1PodReadinessGate. - ConditionType refers to a condition in the pod's condition list with matching type. + """Gets the condition_type of this V1PodReadinessGate. # noqa: E501 + + ConditionType refers to a condition in the pod's condition list with matching type. # noqa: E501 - :return: The condition_type of this V1PodReadinessGate. + :return: The condition_type of this V1PodReadinessGate. # noqa: E501 :rtype: str """ return self._condition_type @condition_type.setter def condition_type(self, condition_type): - """ - Sets the condition_type of this V1PodReadinessGate. - ConditionType refers to a condition in the pod's condition list with matching type. + """Sets the condition_type of this V1PodReadinessGate. + + ConditionType refers to a condition in the pod's condition list with matching type. # noqa: E501 - :param condition_type: The condition_type of this V1PodReadinessGate. + :param condition_type: The condition_type of this V1PodReadinessGate. # noqa: E501 :type: str """ if condition_type is None: - raise ValueError("Invalid value for `condition_type`, must not be `None`") + raise ValueError("Invalid value for `condition_type`, must not be `None`") # noqa: E501 self._condition_type = condition_type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodReadinessGate): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_security_context.py b/kubernetes/client/models/v1_pod_security_context.py index 95f8fead1e..27f2804de7 100644 --- a/kubernetes/client/models/v1_pod_security_context.py +++ b/kubernetes/client/models/v1_pod_security_context.py @@ -3,41 +3,42 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodSecurityContext(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_group': 'int', 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', 'se_linux_options': 'V1SELinuxOptions', 'supplemental_groups': 'list[int]', - 'sysctls': 'list[V1Sysctl]' + 'sysctls': 'list[V1Sysctl]', + 'windows_options': 'V1WindowsSecurityContextOptions' } attribute_map = { @@ -47,13 +48,12 @@ class V1PodSecurityContext(object): 'run_as_user': 'runAsUser', 'se_linux_options': 'seLinuxOptions', 'supplemental_groups': 'supplementalGroups', - 'sysctls': 'sysctls' + 'sysctls': 'sysctls', + 'windows_options': 'windowsOptions' } - def __init__(self, fs_group=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None, sysctls=None): - """ - V1PodSecurityContext - a model defined in Swagger - """ + def __init__(self, fs_group=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None, sysctls=None, windows_options=None): # noqa: E501 + """V1PodSecurityContext - a model defined in OpenAPI""" # noqa: E501 self._fs_group = None self._run_as_group = None @@ -62,41 +62,44 @@ def __init__(self, fs_group=None, run_as_group=None, run_as_non_root=None, run_a self._se_linux_options = None self._supplemental_groups = None self._sysctls = None + self._windows_options = None self.discriminator = None if fs_group is not None: - self.fs_group = fs_group + self.fs_group = fs_group if run_as_group is not None: - self.run_as_group = run_as_group + self.run_as_group = run_as_group if run_as_non_root is not None: - self.run_as_non_root = run_as_non_root + self.run_as_non_root = run_as_non_root if run_as_user is not None: - self.run_as_user = run_as_user + self.run_as_user = run_as_user if se_linux_options is not None: - self.se_linux_options = se_linux_options + self.se_linux_options = se_linux_options if supplemental_groups is not None: - self.supplemental_groups = supplemental_groups + self.supplemental_groups = supplemental_groups if sysctls is not None: - self.sysctls = sysctls + self.sysctls = sysctls + if windows_options is not None: + self.windows_options = windows_options @property def fs_group(self): - """ - Gets the fs_group of this V1PodSecurityContext. - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + """Gets the fs_group of this V1PodSecurityContext. # noqa: E501 - :return: The fs_group of this V1PodSecurityContext. + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. # noqa: E501 + + :return: The fs_group of this V1PodSecurityContext. # noqa: E501 :rtype: int """ return self._fs_group @fs_group.setter def fs_group(self, fs_group): - """ - Sets the fs_group of this V1PodSecurityContext. - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + """Sets the fs_group of this V1PodSecurityContext. + + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. # noqa: E501 - :param fs_group: The fs_group of this V1PodSecurityContext. + :param fs_group: The fs_group of this V1PodSecurityContext. # noqa: E501 :type: int """ @@ -104,22 +107,22 @@ def fs_group(self, fs_group): @property def run_as_group(self): - """ - Gets the run_as_group of this V1PodSecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Gets the run_as_group of this V1PodSecurityContext. # noqa: E501 + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. # noqa: E501 - :return: The run_as_group of this V1PodSecurityContext. + :return: The run_as_group of this V1PodSecurityContext. # noqa: E501 :rtype: int """ return self._run_as_group @run_as_group.setter def run_as_group(self, run_as_group): - """ - Sets the run_as_group of this V1PodSecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Sets the run_as_group of this V1PodSecurityContext. - :param run_as_group: The run_as_group of this V1PodSecurityContext. + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. # noqa: E501 + + :param run_as_group: The run_as_group of this V1PodSecurityContext. # noqa: E501 :type: int """ @@ -127,22 +130,22 @@ def run_as_group(self, run_as_group): @property def run_as_non_root(self): - """ - Gets the run_as_non_root of this V1PodSecurityContext. - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Gets the run_as_non_root of this V1PodSecurityContext. # noqa: E501 - :return: The run_as_non_root of this V1PodSecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :return: The run_as_non_root of this V1PodSecurityContext. # noqa: E501 :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): - """ - Sets the run_as_non_root of this V1PodSecurityContext. - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Sets the run_as_non_root of this V1PodSecurityContext. - :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :param run_as_non_root: The run_as_non_root of this V1PodSecurityContext. # noqa: E501 :type: bool """ @@ -150,22 +153,22 @@ def run_as_non_root(self, run_as_non_root): @property def run_as_user(self): - """ - Gets the run_as_user of this V1PodSecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Gets the run_as_user of this V1PodSecurityContext. # noqa: E501 + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. # noqa: E501 - :return: The run_as_user of this V1PodSecurityContext. + :return: The run_as_user of this V1PodSecurityContext. # noqa: E501 :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): - """ - Sets the run_as_user of this V1PodSecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Sets the run_as_user of this V1PodSecurityContext. + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. # noqa: E501 - :param run_as_user: The run_as_user of this V1PodSecurityContext. + :param run_as_user: The run_as_user of this V1PodSecurityContext. # noqa: E501 :type: int """ @@ -173,22 +176,20 @@ def run_as_user(self, run_as_user): @property def se_linux_options(self): - """ - Gets the se_linux_options of this V1PodSecurityContext. - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Gets the se_linux_options of this V1PodSecurityContext. # noqa: E501 - :return: The se_linux_options of this V1PodSecurityContext. + + :return: The se_linux_options of this V1PodSecurityContext. # noqa: E501 :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): - """ - Sets the se_linux_options of this V1PodSecurityContext. - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + """Sets the se_linux_options of this V1PodSecurityContext. + - :param se_linux_options: The se_linux_options of this V1PodSecurityContext. + :param se_linux_options: The se_linux_options of this V1PodSecurityContext. # noqa: E501 :type: V1SELinuxOptions """ @@ -196,22 +197,22 @@ def se_linux_options(self, se_linux_options): @property def supplemental_groups(self): - """ - Gets the supplemental_groups of this V1PodSecurityContext. - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + """Gets the supplemental_groups of this V1PodSecurityContext. # noqa: E501 + + A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. # noqa: E501 - :return: The supplemental_groups of this V1PodSecurityContext. + :return: The supplemental_groups of this V1PodSecurityContext. # noqa: E501 :rtype: list[int] """ return self._supplemental_groups @supplemental_groups.setter def supplemental_groups(self, supplemental_groups): - """ - Sets the supplemental_groups of this V1PodSecurityContext. - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + """Sets the supplemental_groups of this V1PodSecurityContext. + + A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. # noqa: E501 - :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. + :param supplemental_groups: The supplemental_groups of this V1PodSecurityContext. # noqa: E501 :type: list[int] """ @@ -219,34 +220,53 @@ def supplemental_groups(self, supplemental_groups): @property def sysctls(self): - """ - Gets the sysctls of this V1PodSecurityContext. - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + """Gets the sysctls of this V1PodSecurityContext. # noqa: E501 + + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. # noqa: E501 - :return: The sysctls of this V1PodSecurityContext. + :return: The sysctls of this V1PodSecurityContext. # noqa: E501 :rtype: list[V1Sysctl] """ return self._sysctls @sysctls.setter def sysctls(self, sysctls): - """ - Sets the sysctls of this V1PodSecurityContext. - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + """Sets the sysctls of this V1PodSecurityContext. - :param sysctls: The sysctls of this V1PodSecurityContext. + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. # noqa: E501 + + :param sysctls: The sysctls of this V1PodSecurityContext. # noqa: E501 :type: list[V1Sysctl] """ self._sysctls = sysctls - def to_dict(self): + @property + def windows_options(self): + """Gets the windows_options of this V1PodSecurityContext. # noqa: E501 + + + :return: The windows_options of this V1PodSecurityContext. # noqa: E501 + :rtype: V1WindowsSecurityContextOptions """ - Returns the model properties as a dict + return self._windows_options + + @windows_options.setter + def windows_options(self, windows_options): + """Sets the windows_options of this V1PodSecurityContext. + + + :param windows_options: The windows_options of this V1PodSecurityContext. # noqa: E501 + :type: V1WindowsSecurityContextOptions """ + + self._windows_options = windows_options + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +287,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodSecurityContext): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_spec.py b/kubernetes/client/models/v1_pod_spec.py index abeda9ce45..a7cf5f5944 100644 --- a/kubernetes/client/models/v1_pod_spec.py +++ b/kubernetes/client/models/v1_pod_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active_deadline_seconds': 'int', 'affinity': 'V1Affinity', 'automount_service_account_token': 'bool', @@ -47,6 +47,7 @@ class V1PodSpec(object): 'init_containers': 'list[V1Container]', 'node_name': 'str', 'node_selector': 'dict(str, str)', + 'preemption_policy': 'str', 'priority': 'int', 'priority_class_name': 'str', 'readiness_gates': 'list[V1PodReadinessGate]', @@ -80,6 +81,7 @@ class V1PodSpec(object): 'init_containers': 'initContainers', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', + 'preemption_policy': 'preemptionPolicy', 'priority': 'priority', 'priority_class_name': 'priorityClassName', 'readiness_gates': 'readinessGates', @@ -96,10 +98,8 @@ class V1PodSpec(object): 'volumes': 'volumes' } - def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): - """ - V1PodSpec - a model defined in Swagger - """ + def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, volumes=None): # noqa: E501 + """V1PodSpec - a model defined in OpenAPI""" # noqa: E501 self._active_deadline_seconds = None self._affinity = None @@ -117,6 +117,7 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self._init_containers = None self._node_name = None self._node_selector = None + self._preemption_policy = None self._priority = None self._priority_class_name = None self._readiness_gates = None @@ -134,83 +135,85 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self.discriminator = None if active_deadline_seconds is not None: - self.active_deadline_seconds = active_deadline_seconds + self.active_deadline_seconds = active_deadline_seconds if affinity is not None: - self.affinity = affinity + self.affinity = affinity if automount_service_account_token is not None: - self.automount_service_account_token = automount_service_account_token + self.automount_service_account_token = automount_service_account_token self.containers = containers if dns_config is not None: - self.dns_config = dns_config + self.dns_config = dns_config if dns_policy is not None: - self.dns_policy = dns_policy + self.dns_policy = dns_policy if enable_service_links is not None: - self.enable_service_links = enable_service_links + self.enable_service_links = enable_service_links if host_aliases is not None: - self.host_aliases = host_aliases + self.host_aliases = host_aliases if host_ipc is not None: - self.host_ipc = host_ipc + self.host_ipc = host_ipc if host_network is not None: - self.host_network = host_network + self.host_network = host_network if host_pid is not None: - self.host_pid = host_pid + self.host_pid = host_pid if hostname is not None: - self.hostname = hostname + self.hostname = hostname if image_pull_secrets is not None: - self.image_pull_secrets = image_pull_secrets + self.image_pull_secrets = image_pull_secrets if init_containers is not None: - self.init_containers = init_containers + self.init_containers = init_containers if node_name is not None: - self.node_name = node_name + self.node_name = node_name if node_selector is not None: - self.node_selector = node_selector + self.node_selector = node_selector + if preemption_policy is not None: + self.preemption_policy = preemption_policy if priority is not None: - self.priority = priority + self.priority = priority if priority_class_name is not None: - self.priority_class_name = priority_class_name + self.priority_class_name = priority_class_name if readiness_gates is not None: - self.readiness_gates = readiness_gates + self.readiness_gates = readiness_gates if restart_policy is not None: - self.restart_policy = restart_policy + self.restart_policy = restart_policy if runtime_class_name is not None: - self.runtime_class_name = runtime_class_name + self.runtime_class_name = runtime_class_name if scheduler_name is not None: - self.scheduler_name = scheduler_name + self.scheduler_name = scheduler_name if security_context is not None: - self.security_context = security_context + self.security_context = security_context if service_account is not None: - self.service_account = service_account + self.service_account = service_account if service_account_name is not None: - self.service_account_name = service_account_name + self.service_account_name = service_account_name if share_process_namespace is not None: - self.share_process_namespace = share_process_namespace + self.share_process_namespace = share_process_namespace if subdomain is not None: - self.subdomain = subdomain + self.subdomain = subdomain if termination_grace_period_seconds is not None: - self.termination_grace_period_seconds = termination_grace_period_seconds + self.termination_grace_period_seconds = termination_grace_period_seconds if tolerations is not None: - self.tolerations = tolerations + self.tolerations = tolerations if volumes is not None: - self.volumes = volumes + self.volumes = volumes @property def active_deadline_seconds(self): - """ - Gets the active_deadline_seconds of this V1PodSpec. - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + """Gets the active_deadline_seconds of this V1PodSpec. # noqa: E501 + + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501 - :return: The active_deadline_seconds of this V1PodSpec. + :return: The active_deadline_seconds of this V1PodSpec. # noqa: E501 :rtype: int """ return self._active_deadline_seconds @active_deadline_seconds.setter def active_deadline_seconds(self, active_deadline_seconds): - """ - Sets the active_deadline_seconds of this V1PodSpec. - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + """Sets the active_deadline_seconds of this V1PodSpec. + + Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. # noqa: E501 - :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. + :param active_deadline_seconds: The active_deadline_seconds of this V1PodSpec. # noqa: E501 :type: int """ @@ -218,22 +221,20 @@ def active_deadline_seconds(self, active_deadline_seconds): @property def affinity(self): - """ - Gets the affinity of this V1PodSpec. - If specified, the pod's scheduling constraints + """Gets the affinity of this V1PodSpec. # noqa: E501 + - :return: The affinity of this V1PodSpec. + :return: The affinity of this V1PodSpec. # noqa: E501 :rtype: V1Affinity """ return self._affinity @affinity.setter def affinity(self, affinity): - """ - Sets the affinity of this V1PodSpec. - If specified, the pod's scheduling constraints + """Sets the affinity of this V1PodSpec. - :param affinity: The affinity of this V1PodSpec. + + :param affinity: The affinity of this V1PodSpec. # noqa: E501 :type: V1Affinity """ @@ -241,22 +242,22 @@ def affinity(self, affinity): @property def automount_service_account_token(self): - """ - Gets the automount_service_account_token of this V1PodSpec. - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + """Gets the automount_service_account_token of this V1PodSpec. # noqa: E501 - :return: The automount_service_account_token of this V1PodSpec. + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501 + + :return: The automount_service_account_token of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._automount_service_account_token @automount_service_account_token.setter def automount_service_account_token(self, automount_service_account_token): - """ - Sets the automount_service_account_token of this V1PodSpec. - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + """Sets the automount_service_account_token of this V1PodSpec. - :param automount_service_account_token: The automount_service_account_token of this V1PodSpec. + AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. # noqa: E501 + + :param automount_service_account_token: The automount_service_account_token of this V1PodSpec. # noqa: E501 :type: bool """ @@ -264,47 +265,45 @@ def automount_service_account_token(self, automount_service_account_token): @property def containers(self): - """ - Gets the containers of this V1PodSpec. - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + """Gets the containers of this V1PodSpec. # noqa: E501 - :return: The containers of this V1PodSpec. + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501 + + :return: The containers of this V1PodSpec. # noqa: E501 :rtype: list[V1Container] """ return self._containers @containers.setter def containers(self, containers): - """ - Sets the containers of this V1PodSpec. - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + """Sets the containers of this V1PodSpec. + + List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. # noqa: E501 - :param containers: The containers of this V1PodSpec. + :param containers: The containers of this V1PodSpec. # noqa: E501 :type: list[V1Container] """ if containers is None: - raise ValueError("Invalid value for `containers`, must not be `None`") + raise ValueError("Invalid value for `containers`, must not be `None`") # noqa: E501 self._containers = containers @property def dns_config(self): - """ - Gets the dns_config of this V1PodSpec. - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + """Gets the dns_config of this V1PodSpec. # noqa: E501 + - :return: The dns_config of this V1PodSpec. + :return: The dns_config of this V1PodSpec. # noqa: E501 :rtype: V1PodDNSConfig """ return self._dns_config @dns_config.setter def dns_config(self, dns_config): - """ - Sets the dns_config of this V1PodSpec. - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + """Sets the dns_config of this V1PodSpec. + - :param dns_config: The dns_config of this V1PodSpec. + :param dns_config: The dns_config of this V1PodSpec. # noqa: E501 :type: V1PodDNSConfig """ @@ -312,22 +311,22 @@ def dns_config(self, dns_config): @property def dns_policy(self): - """ - Gets the dns_policy of this V1PodSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + """Gets the dns_policy of this V1PodSpec. # noqa: E501 + + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501 - :return: The dns_policy of this V1PodSpec. + :return: The dns_policy of this V1PodSpec. # noqa: E501 :rtype: str """ return self._dns_policy @dns_policy.setter def dns_policy(self, dns_policy): - """ - Sets the dns_policy of this V1PodSpec. - Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + """Sets the dns_policy of this V1PodSpec. + + Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501 - :param dns_policy: The dns_policy of this V1PodSpec. + :param dns_policy: The dns_policy of this V1PodSpec. # noqa: E501 :type: str """ @@ -335,22 +334,22 @@ def dns_policy(self, dns_policy): @property def enable_service_links(self): - """ - Gets the enable_service_links of this V1PodSpec. - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + """Gets the enable_service_links of this V1PodSpec. # noqa: E501 - :return: The enable_service_links of this V1PodSpec. + EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501 + + :return: The enable_service_links of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._enable_service_links @enable_service_links.setter def enable_service_links(self, enable_service_links): - """ - Sets the enable_service_links of this V1PodSpec. - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + """Sets the enable_service_links of this V1PodSpec. - :param enable_service_links: The enable_service_links of this V1PodSpec. + EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. # noqa: E501 + + :param enable_service_links: The enable_service_links of this V1PodSpec. # noqa: E501 :type: bool """ @@ -358,22 +357,22 @@ def enable_service_links(self, enable_service_links): @property def host_aliases(self): - """ - Gets the host_aliases of this V1PodSpec. - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + """Gets the host_aliases of this V1PodSpec. # noqa: E501 - :return: The host_aliases of this V1PodSpec. + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. # noqa: E501 + + :return: The host_aliases of this V1PodSpec. # noqa: E501 :rtype: list[V1HostAlias] """ return self._host_aliases @host_aliases.setter def host_aliases(self, host_aliases): - """ - Sets the host_aliases of this V1PodSpec. - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + """Sets the host_aliases of this V1PodSpec. - :param host_aliases: The host_aliases of this V1PodSpec. + HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. # noqa: E501 + + :param host_aliases: The host_aliases of this V1PodSpec. # noqa: E501 :type: list[V1HostAlias] """ @@ -381,22 +380,22 @@ def host_aliases(self, host_aliases): @property def host_ipc(self): - """ - Gets the host_ipc of this V1PodSpec. - Use the host's ipc namespace. Optional: Default to false. + """Gets the host_ipc of this V1PodSpec. # noqa: E501 + + Use the host's ipc namespace. Optional: Default to false. # noqa: E501 - :return: The host_ipc of this V1PodSpec. + :return: The host_ipc of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._host_ipc @host_ipc.setter def host_ipc(self, host_ipc): - """ - Sets the host_ipc of this V1PodSpec. - Use the host's ipc namespace. Optional: Default to false. + """Sets the host_ipc of this V1PodSpec. + + Use the host's ipc namespace. Optional: Default to false. # noqa: E501 - :param host_ipc: The host_ipc of this V1PodSpec. + :param host_ipc: The host_ipc of this V1PodSpec. # noqa: E501 :type: bool """ @@ -404,22 +403,22 @@ def host_ipc(self, host_ipc): @property def host_network(self): - """ - Gets the host_network of this V1PodSpec. - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + """Gets the host_network of this V1PodSpec. # noqa: E501 + + Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501 - :return: The host_network of this V1PodSpec. + :return: The host_network of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._host_network @host_network.setter def host_network(self, host_network): - """ - Sets the host_network of this V1PodSpec. - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + """Sets the host_network of this V1PodSpec. - :param host_network: The host_network of this V1PodSpec. + Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501 + + :param host_network: The host_network of this V1PodSpec. # noqa: E501 :type: bool """ @@ -427,22 +426,22 @@ def host_network(self, host_network): @property def host_pid(self): - """ - Gets the host_pid of this V1PodSpec. - Use the host's pid namespace. Optional: Default to false. + """Gets the host_pid of this V1PodSpec. # noqa: E501 - :return: The host_pid of this V1PodSpec. + Use the host's pid namespace. Optional: Default to false. # noqa: E501 + + :return: The host_pid of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._host_pid @host_pid.setter def host_pid(self, host_pid): - """ - Sets the host_pid of this V1PodSpec. - Use the host's pid namespace. Optional: Default to false. + """Sets the host_pid of this V1PodSpec. + + Use the host's pid namespace. Optional: Default to false. # noqa: E501 - :param host_pid: The host_pid of this V1PodSpec. + :param host_pid: The host_pid of this V1PodSpec. # noqa: E501 :type: bool """ @@ -450,22 +449,22 @@ def host_pid(self, host_pid): @property def hostname(self): - """ - Gets the hostname of this V1PodSpec. - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + """Gets the hostname of this V1PodSpec. # noqa: E501 + + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501 - :return: The hostname of this V1PodSpec. + :return: The hostname of this V1PodSpec. # noqa: E501 :rtype: str """ return self._hostname @hostname.setter def hostname(self, hostname): - """ - Sets the hostname of this V1PodSpec. - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + """Sets the hostname of this V1PodSpec. + + Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. # noqa: E501 - :param hostname: The hostname of this V1PodSpec. + :param hostname: The hostname of this V1PodSpec. # noqa: E501 :type: str """ @@ -473,22 +472,22 @@ def hostname(self, hostname): @property def image_pull_secrets(self): - """ - Gets the image_pull_secrets of this V1PodSpec. - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + """Gets the image_pull_secrets of this V1PodSpec. # noqa: E501 + + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501 - :return: The image_pull_secrets of this V1PodSpec. + :return: The image_pull_secrets of this V1PodSpec. # noqa: E501 :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): - """ - Sets the image_pull_secrets of this V1PodSpec. - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + """Sets the image_pull_secrets of this V1PodSpec. + + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod # noqa: E501 - :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. + :param image_pull_secrets: The image_pull_secrets of this V1PodSpec. # noqa: E501 :type: list[V1LocalObjectReference] """ @@ -496,22 +495,22 @@ def image_pull_secrets(self, image_pull_secrets): @property def init_containers(self): - """ - Gets the init_containers of this V1PodSpec. - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + """Gets the init_containers of this V1PodSpec. # noqa: E501 - :return: The init_containers of this V1PodSpec. + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501 + + :return: The init_containers of this V1PodSpec. # noqa: E501 :rtype: list[V1Container] """ return self._init_containers @init_containers.setter def init_containers(self, init_containers): - """ - Sets the init_containers of this V1PodSpec. - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + """Sets the init_containers of this V1PodSpec. - :param init_containers: The init_containers of this V1PodSpec. + List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ # noqa: E501 + + :param init_containers: The init_containers of this V1PodSpec. # noqa: E501 :type: list[V1Container] """ @@ -519,22 +518,22 @@ def init_containers(self, init_containers): @property def node_name(self): - """ - Gets the node_name of this V1PodSpec. - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + """Gets the node_name of this V1PodSpec. # noqa: E501 - :return: The node_name of this V1PodSpec. + NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. # noqa: E501 + + :return: The node_name of this V1PodSpec. # noqa: E501 :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): - """ - Sets the node_name of this V1PodSpec. - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + """Sets the node_name of this V1PodSpec. - :param node_name: The node_name of this V1PodSpec. + NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. # noqa: E501 + + :param node_name: The node_name of this V1PodSpec. # noqa: E501 :type: str """ @@ -542,45 +541,68 @@ def node_name(self, node_name): @property def node_selector(self): - """ - Gets the node_selector of this V1PodSpec. - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + """Gets the node_selector of this V1PodSpec. # noqa: E501 + + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501 - :return: The node_selector of this V1PodSpec. + :return: The node_selector of this V1PodSpec. # noqa: E501 :rtype: dict(str, str) """ return self._node_selector @node_selector.setter def node_selector(self, node_selector): - """ - Sets the node_selector of this V1PodSpec. - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + """Sets the node_selector of this V1PodSpec. + + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # noqa: E501 - :param node_selector: The node_selector of this V1PodSpec. + :param node_selector: The node_selector of this V1PodSpec. # noqa: E501 :type: dict(str, str) """ self._node_selector = node_selector @property - def priority(self): + def preemption_policy(self): + """Gets the preemption_policy of this V1PodSpec. # noqa: E501 + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :return: The preemption_policy of this V1PodSpec. # noqa: E501 + :rtype: str """ - Gets the priority of this V1PodSpec. - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + return self._preemption_policy - :return: The priority of this V1PodSpec. + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1PodSpec. + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1PodSpec. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def priority(self): + """Gets the priority of this V1PodSpec. # noqa: E501 + + The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501 + + :return: The priority of this V1PodSpec. # noqa: E501 :rtype: int """ return self._priority @priority.setter def priority(self, priority): - """ - Sets the priority of this V1PodSpec. - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + """Sets the priority of this V1PodSpec. + + The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501 - :param priority: The priority of this V1PodSpec. + :param priority: The priority of this V1PodSpec. # noqa: E501 :type: int """ @@ -588,22 +610,22 @@ def priority(self, priority): @property def priority_class_name(self): - """ - Gets the priority_class_name of this V1PodSpec. - If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + """Gets the priority_class_name of this V1PodSpec. # noqa: E501 - :return: The priority_class_name of this V1PodSpec. + If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501 + + :return: The priority_class_name of this V1PodSpec. # noqa: E501 :rtype: str """ return self._priority_class_name @priority_class_name.setter def priority_class_name(self, priority_class_name): - """ - Sets the priority_class_name of this V1PodSpec. - If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + """Sets the priority_class_name of this V1PodSpec. - :param priority_class_name: The priority_class_name of this V1PodSpec. + If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501 + + :param priority_class_name: The priority_class_name of this V1PodSpec. # noqa: E501 :type: str """ @@ -611,22 +633,22 @@ def priority_class_name(self, priority_class_name): @property def readiness_gates(self): - """ - Gets the readiness_gates of this V1PodSpec. - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + """Gets the readiness_gates of this V1PodSpec. # noqa: E501 - :return: The readiness_gates of this V1PodSpec. + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md # noqa: E501 + + :return: The readiness_gates of this V1PodSpec. # noqa: E501 :rtype: list[V1PodReadinessGate] """ return self._readiness_gates @readiness_gates.setter def readiness_gates(self, readiness_gates): - """ - Sets the readiness_gates of this V1PodSpec. - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + """Sets the readiness_gates of this V1PodSpec. - :param readiness_gates: The readiness_gates of this V1PodSpec. + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md # noqa: E501 + + :param readiness_gates: The readiness_gates of this V1PodSpec. # noqa: E501 :type: list[V1PodReadinessGate] """ @@ -634,22 +656,22 @@ def readiness_gates(self, readiness_gates): @property def restart_policy(self): - """ - Gets the restart_policy of this V1PodSpec. - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + """Gets the restart_policy of this V1PodSpec. # noqa: E501 + + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy # noqa: E501 - :return: The restart_policy of this V1PodSpec. + :return: The restart_policy of this V1PodSpec. # noqa: E501 :rtype: str """ return self._restart_policy @restart_policy.setter def restart_policy(self, restart_policy): - """ - Sets the restart_policy of this V1PodSpec. - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + """Sets the restart_policy of this V1PodSpec. + + Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy # noqa: E501 - :param restart_policy: The restart_policy of this V1PodSpec. + :param restart_policy: The restart_policy of this V1PodSpec. # noqa: E501 :type: str """ @@ -657,22 +679,22 @@ def restart_policy(self, restart_policy): @property def runtime_class_name(self): - """ - Gets the runtime_class_name of this V1PodSpec. - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future. + """Gets the runtime_class_name of this V1PodSpec. # noqa: E501 + + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. # noqa: E501 - :return: The runtime_class_name of this V1PodSpec. + :return: The runtime_class_name of this V1PodSpec. # noqa: E501 :rtype: str """ return self._runtime_class_name @runtime_class_name.setter def runtime_class_name(self, runtime_class_name): - """ - Sets the runtime_class_name of this V1PodSpec. - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future. + """Sets the runtime_class_name of this V1PodSpec. + + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. # noqa: E501 - :param runtime_class_name: The runtime_class_name of this V1PodSpec. + :param runtime_class_name: The runtime_class_name of this V1PodSpec. # noqa: E501 :type: str """ @@ -680,22 +702,22 @@ def runtime_class_name(self, runtime_class_name): @property def scheduler_name(self): - """ - Gets the scheduler_name of this V1PodSpec. - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + """Gets the scheduler_name of this V1PodSpec. # noqa: E501 + + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501 - :return: The scheduler_name of this V1PodSpec. + :return: The scheduler_name of this V1PodSpec. # noqa: E501 :rtype: str """ return self._scheduler_name @scheduler_name.setter def scheduler_name(self, scheduler_name): - """ - Sets the scheduler_name of this V1PodSpec. - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + """Sets the scheduler_name of this V1PodSpec. - :param scheduler_name: The scheduler_name of this V1PodSpec. + If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. # noqa: E501 + + :param scheduler_name: The scheduler_name of this V1PodSpec. # noqa: E501 :type: str """ @@ -703,22 +725,20 @@ def scheduler_name(self, scheduler_name): @property def security_context(self): - """ - Gets the security_context of this V1PodSpec. - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + """Gets the security_context of this V1PodSpec. # noqa: E501 - :return: The security_context of this V1PodSpec. + + :return: The security_context of this V1PodSpec. # noqa: E501 :rtype: V1PodSecurityContext """ return self._security_context @security_context.setter def security_context(self, security_context): - """ - Sets the security_context of this V1PodSpec. - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + """Sets the security_context of this V1PodSpec. - :param security_context: The security_context of this V1PodSpec. + + :param security_context: The security_context of this V1PodSpec. # noqa: E501 :type: V1PodSecurityContext """ @@ -726,22 +746,22 @@ def security_context(self, security_context): @property def service_account(self): - """ - Gets the service_account of this V1PodSpec. - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + """Gets the service_account of this V1PodSpec. # noqa: E501 - :return: The service_account of this V1PodSpec. + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501 + + :return: The service_account of this V1PodSpec. # noqa: E501 :rtype: str """ return self._service_account @service_account.setter def service_account(self, service_account): - """ - Sets the service_account of this V1PodSpec. - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + """Sets the service_account of this V1PodSpec. + + DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. # noqa: E501 - :param service_account: The service_account of this V1PodSpec. + :param service_account: The service_account of this V1PodSpec. # noqa: E501 :type: str """ @@ -749,22 +769,22 @@ def service_account(self, service_account): @property def service_account_name(self): - """ - Gets the service_account_name of this V1PodSpec. - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """Gets the service_account_name of this V1PodSpec. # noqa: E501 + + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 - :return: The service_account_name of this V1PodSpec. + :return: The service_account_name of this V1PodSpec. # noqa: E501 :rtype: str """ return self._service_account_name @service_account_name.setter def service_account_name(self, service_account_name): - """ - Sets the service_account_name of this V1PodSpec. - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """Sets the service_account_name of this V1PodSpec. + + ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 - :param service_account_name: The service_account_name of this V1PodSpec. + :param service_account_name: The service_account_name of this V1PodSpec. # noqa: E501 :type: str """ @@ -772,22 +792,22 @@ def service_account_name(self, service_account_name): @property def share_process_namespace(self): - """ - Gets the share_process_namespace of this V1PodSpec. - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. + """Gets the share_process_namespace of this V1PodSpec. # noqa: E501 - :return: The share_process_namespace of this V1PodSpec. + Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. # noqa: E501 + + :return: The share_process_namespace of this V1PodSpec. # noqa: E501 :rtype: bool """ return self._share_process_namespace @share_process_namespace.setter def share_process_namespace(self, share_process_namespace): - """ - Sets the share_process_namespace of this V1PodSpec. - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. + """Sets the share_process_namespace of this V1PodSpec. - :param share_process_namespace: The share_process_namespace of this V1PodSpec. + Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. # noqa: E501 + + :param share_process_namespace: The share_process_namespace of this V1PodSpec. # noqa: E501 :type: bool """ @@ -795,22 +815,22 @@ def share_process_namespace(self, share_process_namespace): @property def subdomain(self): - """ - Gets the subdomain of this V1PodSpec. - If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. + """Gets the subdomain of this V1PodSpec. # noqa: E501 + + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. # noqa: E501 - :return: The subdomain of this V1PodSpec. + :return: The subdomain of this V1PodSpec. # noqa: E501 :rtype: str """ return self._subdomain @subdomain.setter def subdomain(self, subdomain): - """ - Sets the subdomain of this V1PodSpec. - If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. + """Sets the subdomain of this V1PodSpec. + + If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all. # noqa: E501 - :param subdomain: The subdomain of this V1PodSpec. + :param subdomain: The subdomain of this V1PodSpec. # noqa: E501 :type: str """ @@ -818,22 +838,22 @@ def subdomain(self, subdomain): @property def termination_grace_period_seconds(self): - """ - Gets the termination_grace_period_seconds of this V1PodSpec. - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + """Gets the termination_grace_period_seconds of this V1PodSpec. # noqa: E501 + + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501 - :return: The termination_grace_period_seconds of this V1PodSpec. + :return: The termination_grace_period_seconds of this V1PodSpec. # noqa: E501 :rtype: int """ return self._termination_grace_period_seconds @termination_grace_period_seconds.setter def termination_grace_period_seconds(self, termination_grace_period_seconds): - """ - Sets the termination_grace_period_seconds of this V1PodSpec. - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + """Sets the termination_grace_period_seconds of this V1PodSpec. + + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. # noqa: E501 - :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. + :param termination_grace_period_seconds: The termination_grace_period_seconds of this V1PodSpec. # noqa: E501 :type: int """ @@ -841,22 +861,22 @@ def termination_grace_period_seconds(self, termination_grace_period_seconds): @property def tolerations(self): - """ - Gets the tolerations of this V1PodSpec. - If specified, the pod's tolerations. + """Gets the tolerations of this V1PodSpec. # noqa: E501 + + If specified, the pod's tolerations. # noqa: E501 - :return: The tolerations of this V1PodSpec. + :return: The tolerations of this V1PodSpec. # noqa: E501 :rtype: list[V1Toleration] """ return self._tolerations @tolerations.setter def tolerations(self, tolerations): - """ - Sets the tolerations of this V1PodSpec. - If specified, the pod's tolerations. + """Sets the tolerations of this V1PodSpec. - :param tolerations: The tolerations of this V1PodSpec. + If specified, the pod's tolerations. # noqa: E501 + + :param tolerations: The tolerations of this V1PodSpec. # noqa: E501 :type: list[V1Toleration] """ @@ -864,34 +884,32 @@ def tolerations(self, tolerations): @property def volumes(self): - """ - Gets the volumes of this V1PodSpec. - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + """Gets the volumes of this V1PodSpec. # noqa: E501 - :return: The volumes of this V1PodSpec. + List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501 + + :return: The volumes of this V1PodSpec. # noqa: E501 :rtype: list[V1Volume] """ return self._volumes @volumes.setter def volumes(self, volumes): - """ - Sets the volumes of this V1PodSpec. - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + """Sets the volumes of this V1PodSpec. - :param volumes: The volumes of this V1PodSpec. + List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes # noqa: E501 + + :param volumes: The volumes of this V1PodSpec. # noqa: E501 :type: list[V1Volume] """ self._volumes = volumes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -912,28 +930,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index ea49904cd6..2a26e53610 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conditions': 'list[V1PodCondition]', 'container_statuses': 'list[V1ContainerStatus]', 'host_ip': 'str', @@ -58,10 +58,8 @@ class V1PodStatus(object): 'start_time': 'startTime' } - def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, qos_class=None, reason=None, start_time=None): - """ - V1PodStatus - a model defined in Swagger - """ + def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, qos_class=None, reason=None, start_time=None): # noqa: E501 + """V1PodStatus - a model defined in OpenAPI""" # noqa: E501 self._conditions = None self._container_statuses = None @@ -77,46 +75,46 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_ self.discriminator = None if conditions is not None: - self.conditions = conditions + self.conditions = conditions if container_statuses is not None: - self.container_statuses = container_statuses + self.container_statuses = container_statuses if host_ip is not None: - self.host_ip = host_ip + self.host_ip = host_ip if init_container_statuses is not None: - self.init_container_statuses = init_container_statuses + self.init_container_statuses = init_container_statuses if message is not None: - self.message = message + self.message = message if nominated_node_name is not None: - self.nominated_node_name = nominated_node_name + self.nominated_node_name = nominated_node_name if phase is not None: - self.phase = phase + self.phase = phase if pod_ip is not None: - self.pod_ip = pod_ip + self.pod_ip = pod_ip if qos_class is not None: - self.qos_class = qos_class + self.qos_class = qos_class if reason is not None: - self.reason = reason + self.reason = reason if start_time is not None: - self.start_time = start_time + self.start_time = start_time @property def conditions(self): - """ - Gets the conditions of this V1PodStatus. - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Gets the conditions of this V1PodStatus. # noqa: E501 + + Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 - :return: The conditions of this V1PodStatus. + :return: The conditions of this V1PodStatus. # noqa: E501 :rtype: list[V1PodCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1PodStatus. - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + """Sets the conditions of this V1PodStatus. + + Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions # noqa: E501 - :param conditions: The conditions of this V1PodStatus. + :param conditions: The conditions of this V1PodStatus. # noqa: E501 :type: list[V1PodCondition] """ @@ -124,22 +122,22 @@ def conditions(self, conditions): @property def container_statuses(self): - """ - Gets the container_statuses of this V1PodStatus. - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + """Gets the container_statuses of this V1PodStatus. # noqa: E501 + + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 - :return: The container_statuses of this V1PodStatus. + :return: The container_statuses of this V1PodStatus. # noqa: E501 :rtype: list[V1ContainerStatus] """ return self._container_statuses @container_statuses.setter def container_statuses(self, container_statuses): - """ - Sets the container_statuses of this V1PodStatus. - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + """Sets the container_statuses of this V1PodStatus. + + The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 - :param container_statuses: The container_statuses of this V1PodStatus. + :param container_statuses: The container_statuses of this V1PodStatus. # noqa: E501 :type: list[V1ContainerStatus] """ @@ -147,22 +145,22 @@ def container_statuses(self, container_statuses): @property def host_ip(self): - """ - Gets the host_ip of this V1PodStatus. - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + """Gets the host_ip of this V1PodStatus. # noqa: E501 - :return: The host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned. Empty if not yet scheduled. # noqa: E501 + + :return: The host_ip of this V1PodStatus. # noqa: E501 :rtype: str """ return self._host_ip @host_ip.setter def host_ip(self, host_ip): - """ - Sets the host_ip of this V1PodStatus. - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + """Sets the host_ip of this V1PodStatus. - :param host_ip: The host_ip of this V1PodStatus. + IP address of the host to which the pod is assigned. Empty if not yet scheduled. # noqa: E501 + + :param host_ip: The host_ip of this V1PodStatus. # noqa: E501 :type: str """ @@ -170,22 +168,22 @@ def host_ip(self, host_ip): @property def init_container_statuses(self): - """ - Gets the init_container_statuses of this V1PodStatus. - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + """Gets the init_container_statuses of this V1PodStatus. # noqa: E501 - :return: The init_container_statuses of this V1PodStatus. + The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :return: The init_container_statuses of this V1PodStatus. # noqa: E501 :rtype: list[V1ContainerStatus] """ return self._init_container_statuses @init_container_statuses.setter def init_container_statuses(self, init_container_statuses): - """ - Sets the init_container_statuses of this V1PodStatus. - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + """Sets the init_container_statuses of this V1PodStatus. - :param init_container_statuses: The init_container_statuses of this V1PodStatus. + The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status # noqa: E501 + + :param init_container_statuses: The init_container_statuses of this V1PodStatus. # noqa: E501 :type: list[V1ContainerStatus] """ @@ -193,22 +191,22 @@ def init_container_statuses(self, init_container_statuses): @property def message(self): - """ - Gets the message of this V1PodStatus. - A human readable message indicating details about why the pod is in this condition. + """Gets the message of this V1PodStatus. # noqa: E501 - :return: The message of this V1PodStatus. + A human readable message indicating details about why the pod is in this condition. # noqa: E501 + + :return: The message of this V1PodStatus. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1PodStatus. - A human readable message indicating details about why the pod is in this condition. + """Sets the message of this V1PodStatus. - :param message: The message of this V1PodStatus. + A human readable message indicating details about why the pod is in this condition. # noqa: E501 + + :param message: The message of this V1PodStatus. # noqa: E501 :type: str """ @@ -216,22 +214,22 @@ def message(self, message): @property def nominated_node_name(self): - """ - Gets the nominated_node_name of this V1PodStatus. - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + """Gets the nominated_node_name of this V1PodStatus. # noqa: E501 - :return: The nominated_node_name of this V1PodStatus. + nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. # noqa: E501 + + :return: The nominated_node_name of this V1PodStatus. # noqa: E501 :rtype: str """ return self._nominated_node_name @nominated_node_name.setter def nominated_node_name(self, nominated_node_name): - """ - Sets the nominated_node_name of this V1PodStatus. - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + """Sets the nominated_node_name of this V1PodStatus. + + nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. # noqa: E501 - :param nominated_node_name: The nominated_node_name of this V1PodStatus. + :param nominated_node_name: The nominated_node_name of this V1PodStatus. # noqa: E501 :type: str """ @@ -239,22 +237,22 @@ def nominated_node_name(self, nominated_node_name): @property def phase(self): - """ - Gets the phase of this V1PodStatus. - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + """Gets the phase of this V1PodStatus. # noqa: E501 + + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase # noqa: E501 - :return: The phase of this V1PodStatus. + :return: The phase of this V1PodStatus. # noqa: E501 :rtype: str """ return self._phase @phase.setter def phase(self, phase): - """ - Sets the phase of this V1PodStatus. - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + """Sets the phase of this V1PodStatus. + + The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase # noqa: E501 - :param phase: The phase of this V1PodStatus. + :param phase: The phase of this V1PodStatus. # noqa: E501 :type: str """ @@ -262,22 +260,22 @@ def phase(self, phase): @property def pod_ip(self): - """ - Gets the pod_ip of this V1PodStatus. - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + """Gets the pod_ip of this V1PodStatus. # noqa: E501 + + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. # noqa: E501 - :return: The pod_ip of this V1PodStatus. + :return: The pod_ip of this V1PodStatus. # noqa: E501 :rtype: str """ return self._pod_ip @pod_ip.setter def pod_ip(self, pod_ip): - """ - Sets the pod_ip of this V1PodStatus. - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + """Sets the pod_ip of this V1PodStatus. + + IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. # noqa: E501 - :param pod_ip: The pod_ip of this V1PodStatus. + :param pod_ip: The pod_ip of this V1PodStatus. # noqa: E501 :type: str """ @@ -285,22 +283,22 @@ def pod_ip(self, pod_ip): @property def qos_class(self): - """ - Gets the qos_class of this V1PodStatus. - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + """Gets the qos_class of this V1PodStatus. # noqa: E501 + + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md # noqa: E501 - :return: The qos_class of this V1PodStatus. + :return: The qos_class of this V1PodStatus. # noqa: E501 :rtype: str """ return self._qos_class @qos_class.setter def qos_class(self, qos_class): - """ - Sets the qos_class of this V1PodStatus. - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + """Sets the qos_class of this V1PodStatus. + + The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md # noqa: E501 - :param qos_class: The qos_class of this V1PodStatus. + :param qos_class: The qos_class of this V1PodStatus. # noqa: E501 :type: str """ @@ -308,22 +306,22 @@ def qos_class(self, qos_class): @property def reason(self): - """ - Gets the reason of this V1PodStatus. - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + """Gets the reason of this V1PodStatus. # noqa: E501 + + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' # noqa: E501 - :return: The reason of this V1PodStatus. + :return: The reason of this V1PodStatus. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1PodStatus. - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + """Sets the reason of this V1PodStatus. - :param reason: The reason of this V1PodStatus. + A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' # noqa: E501 + + :param reason: The reason of this V1PodStatus. # noqa: E501 :type: str """ @@ -331,34 +329,32 @@ def reason(self, reason): @property def start_time(self): - """ - Gets the start_time of this V1PodStatus. - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + """Gets the start_time of this V1PodStatus. # noqa: E501 - :return: The start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. # noqa: E501 + + :return: The start_time of this V1PodStatus. # noqa: E501 :rtype: datetime """ return self._start_time @start_time.setter def start_time(self, start_time): - """ - Sets the start_time of this V1PodStatus. - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + """Sets the start_time of this V1PodStatus. - :param start_time: The start_time of this V1PodStatus. + RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. # noqa: E501 + + :param start_time: The start_time of this V1PodStatus. # noqa: E501 :type: datetime """ self._start_time = start_time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -379,28 +375,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_template.py b/kubernetes/client/models/v1_pod_template.py index dbe385df2e..26c7a3c7c3 100644 --- a/kubernetes/client/models/v1_pod_template.py +++ b/kubernetes/client/models/v1_pod_template.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodTemplate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1PodTemplate(object): 'template': 'template' } - def __init__(self, api_version=None, kind=None, metadata=None, template=None): - """ - V1PodTemplate - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, template=None): # noqa: E501 + """V1PodTemplate - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, template=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if template is not None: - self.template = template + self.template = template @property def api_version(self): - """ - Gets the api_version of this V1PodTemplate. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PodTemplate. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PodTemplate. + :return: The api_version of this V1PodTemplate. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PodTemplate. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PodTemplate. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PodTemplate. + :param api_version: The api_version of this V1PodTemplate. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1PodTemplate. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PodTemplate. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PodTemplate. + :return: The kind of this V1PodTemplate. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PodTemplate. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PodTemplate. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PodTemplate. + :param kind: The kind of this V1PodTemplate. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PodTemplate. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PodTemplate. # noqa: E501 + - :return: The metadata of this V1PodTemplate. + :return: The metadata of this V1PodTemplate. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PodTemplate. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PodTemplate. + - :param metadata: The metadata of this V1PodTemplate. + :param metadata: The metadata of this V1PodTemplate. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def template(self): - """ - Gets the template of this V1PodTemplate. - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the template of this V1PodTemplate. # noqa: E501 + - :return: The template of this V1PodTemplate. + :return: The template of this V1PodTemplate. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1PodTemplate. - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the template of this V1PodTemplate. + - :param template: The template of this V1PodTemplate. + :param template: The template of this V1PodTemplate. # noqa: E501 :type: V1PodTemplateSpec """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodTemplate): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_template_list.py b/kubernetes/client/models/v1_pod_template_list.py index ce3ce707fb..4661351df1 100644 --- a/kubernetes/client/models/v1_pod_template_list.py +++ b/kubernetes/client/models/v1_pod_template_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodTemplateList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1PodTemplate]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1PodTemplateList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1PodTemplateList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1PodTemplateList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1PodTemplateList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PodTemplateList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PodTemplateList. + :return: The api_version of this V1PodTemplateList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PodTemplateList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PodTemplateList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PodTemplateList. + :param api_version: The api_version of this V1PodTemplateList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1PodTemplateList. - List of pod templates + """Gets the items of this V1PodTemplateList. # noqa: E501 + + List of pod templates # noqa: E501 - :return: The items of this V1PodTemplateList. + :return: The items of this V1PodTemplateList. # noqa: E501 :rtype: list[V1PodTemplate] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1PodTemplateList. - List of pod templates + """Sets the items of this V1PodTemplateList. + + List of pod templates # noqa: E501 - :param items: The items of this V1PodTemplateList. + :param items: The items of this V1PodTemplateList. # noqa: E501 :type: list[V1PodTemplate] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1PodTemplateList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PodTemplateList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PodTemplateList. + :return: The kind of this V1PodTemplateList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PodTemplateList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PodTemplateList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PodTemplateList. + :param kind: The kind of this V1PodTemplateList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PodTemplateList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1PodTemplateList. # noqa: E501 + - :return: The metadata of this V1PodTemplateList. + :return: The metadata of this V1PodTemplateList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PodTemplateList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1PodTemplateList. + - :param metadata: The metadata of this V1PodTemplateList. + :param metadata: The metadata of this V1PodTemplateList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodTemplateList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_pod_template_spec.py b/kubernetes/client/models/v1_pod_template_spec.py index 08b7e7505b..2262e5987d 100644 --- a/kubernetes/client/models/v1_pod_template_spec.py +++ b/kubernetes/client/models/v1_pod_template_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PodTemplateSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1PodSpec' } @@ -40,38 +40,34 @@ class V1PodTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): - """ - V1PodTemplateSpec - a model defined in Swagger - """ + def __init__(self, metadata=None, spec=None): # noqa: E501 + """V1PodTemplateSpec - a model defined in OpenAPI""" # noqa: E501 self._metadata = None self._spec = None self.discriminator = None if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def metadata(self): - """ - Gets the metadata of this V1PodTemplateSpec. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PodTemplateSpec. # noqa: E501 + - :return: The metadata of this V1PodTemplateSpec. + :return: The metadata of this V1PodTemplateSpec. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PodTemplateSpec. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PodTemplateSpec. - :param metadata: The metadata of this V1PodTemplateSpec. + + :param metadata: The metadata of this V1PodTemplateSpec. # noqa: E501 :type: V1ObjectMeta """ @@ -79,34 +75,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1PodTemplateSpec. - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1PodTemplateSpec. # noqa: E501 + - :return: The spec of this V1PodTemplateSpec. + :return: The spec of this V1PodTemplateSpec. # noqa: E501 :rtype: V1PodSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1PodTemplateSpec. - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1PodTemplateSpec. + - :param spec: The spec of this V1PodTemplateSpec. + :param spec: The spec of this V1PodTemplateSpec. # noqa: E501 :type: V1PodSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PodTemplateSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_policy_rule.py b/kubernetes/client/models/v1_policy_rule.py index c9a56af257..87a8f0a7bf 100644 --- a/kubernetes/client/models/v1_policy_rule.py +++ b/kubernetes/client/models/v1_policy_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PolicyRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'non_resource_ur_ls': 'list[str]', 'resource_names': 'list[str]', @@ -46,10 +46,8 @@ class V1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): - """ - V1PolicyRule - a model defined in Swagger - """ + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + """V1PolicyRule - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._non_resource_ur_ls = None @@ -59,33 +57,33 @@ def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if non_resource_ur_ls is not None: - self.non_resource_ur_ls = non_resource_ur_ls + self.non_resource_ur_ls = non_resource_ur_ls if resource_names is not None: - self.resource_names = resource_names + self.resource_names = resource_names if resources is not None: - self.resources = resources + self.resources = resources self.verbs = verbs @property def api_groups(self): - """ - Gets the api_groups of this V1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Gets the api_groups of this V1PolicyRule. # noqa: E501 - :return: The api_groups of this V1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :return: The api_groups of this V1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Sets the api_groups of this V1PolicyRule. - :param api_groups: The api_groups of this V1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :param api_groups: The api_groups of this V1PolicyRule. # noqa: E501 :type: list[str] """ @@ -93,22 +91,22 @@ def api_groups(self, api_groups): @property def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Gets the non_resource_ur_ls of this V1PolicyRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :return: The non_resource_ur_ls of this V1PolicyRule. + :return: The non_resource_ur_ls of this V1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._non_resource_ur_ls @non_resource_ur_ls.setter def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Sets the non_resource_ur_ls of this V1PolicyRule. + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :param non_resource_ur_ls: The non_resource_ur_ls of this V1PolicyRule. + :param non_resource_ur_ls: The non_resource_ur_ls of this V1PolicyRule. # noqa: E501 :type: list[str] """ @@ -116,22 +114,22 @@ def non_resource_ur_ls(self, non_resource_ur_ls): @property def resource_names(self): - """ - Gets the resource_names of this V1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Gets the resource_names of this V1PolicyRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :return: The resource_names of this V1PolicyRule. + :return: The resource_names of this V1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resource_names @resource_names.setter def resource_names(self, resource_names): - """ - Sets the resource_names of this V1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Sets the resource_names of this V1PolicyRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :param resource_names: The resource_names of this V1PolicyRule. + :param resource_names: The resource_names of this V1PolicyRule. # noqa: E501 :type: list[str] """ @@ -139,22 +137,22 @@ def resource_names(self, resource_names): @property def resources(self): - """ - Gets the resources of this V1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + """Gets the resources of this V1PolicyRule. # noqa: E501 + + Resources is a list of resources this rule applies to. ResourceAll represents all resources. # noqa: E501 - :return: The resources of this V1PolicyRule. + :return: The resources of this V1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + """Sets the resources of this V1PolicyRule. - :param resources: The resources of this V1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. # noqa: E501 + + :param resources: The resources of this V1PolicyRule. # noqa: E501 :type: list[str] """ @@ -162,36 +160,34 @@ def resources(self, resources): @property def verbs(self): - """ - Gets the verbs of this V1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Gets the verbs of this V1PolicyRule. # noqa: E501 - :return: The verbs of this V1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :return: The verbs of this V1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Sets the verbs of this V1PolicyRule. - :param verbs: The verbs of this V1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :param verbs: The verbs of this V1PolicyRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PolicyRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_portworx_volume_source.py b/kubernetes/client/models/v1_portworx_volume_source.py index 9541855923..7d91f2247f 100644 --- a/kubernetes/client/models/v1_portworx_volume_source.py +++ b/kubernetes/client/models/v1_portworx_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PortworxVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'read_only': 'bool', 'volume_id': 'str' @@ -42,10 +42,8 @@ class V1PortworxVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, volume_id=None): - """ - V1PortworxVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, read_only=None, volume_id=None): # noqa: E501 + """V1PortworxVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._read_only = None @@ -53,29 +51,29 @@ def __init__(self, fs_type=None, read_only=None, volume_id=None): self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.volume_id = volume_id @property def fs_type(self): - """ - Gets the fs_type of this V1PortworxVolumeSource. - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1PortworxVolumeSource. # noqa: E501 - :return: The fs_type of this V1PortworxVolumeSource. + FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1PortworxVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1PortworxVolumeSource. - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1PortworxVolumeSource. - :param fs_type: The fs_type of this V1PortworxVolumeSource. + FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1PortworxVolumeSource. # noqa: E501 :type: str """ @@ -83,22 +81,22 @@ def fs_type(self, fs_type): @property def read_only(self): - """ - Gets the read_only of this V1PortworxVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1PortworxVolumeSource. # noqa: E501 - :return: The read_only of this V1PortworxVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :return: The read_only of this V1PortworxVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1PortworxVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1PortworxVolumeSource. + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1PortworxVolumeSource. + :param read_only: The read_only of this V1PortworxVolumeSource. # noqa: E501 :type: bool """ @@ -106,36 +104,34 @@ def read_only(self, read_only): @property def volume_id(self): - """ - Gets the volume_id of this V1PortworxVolumeSource. - VolumeID uniquely identifies a Portworx volume + """Gets the volume_id of this V1PortworxVolumeSource. # noqa: E501 + + VolumeID uniquely identifies a Portworx volume # noqa: E501 - :return: The volume_id of this V1PortworxVolumeSource. + :return: The volume_id of this V1PortworxVolumeSource. # noqa: E501 :rtype: str """ return self._volume_id @volume_id.setter def volume_id(self, volume_id): - """ - Sets the volume_id of this V1PortworxVolumeSource. - VolumeID uniquely identifies a Portworx volume + """Sets the volume_id of this V1PortworxVolumeSource. + + VolumeID uniquely identifies a Portworx volume # noqa: E501 - :param volume_id: The volume_id of this V1PortworxVolumeSource. + :param volume_id: The volume_id of this V1PortworxVolumeSource. # noqa: E501 :type: str """ if volume_id is None: - raise ValueError("Invalid value for `volume_id`, must not be `None`") + raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PortworxVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_preconditions.py b/kubernetes/client/models/v1_preconditions.py index 2aa7c67874..3e32c3ac84 100644 --- a/kubernetes/client/models/v1_preconditions.py +++ b/kubernetes/client/models/v1_preconditions.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Preconditions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'resource_version': 'str', 'uid': 'str' } @@ -40,38 +40,36 @@ class V1Preconditions(object): 'uid': 'uid' } - def __init__(self, resource_version=None, uid=None): - """ - V1Preconditions - a model defined in Swagger - """ + def __init__(self, resource_version=None, uid=None): # noqa: E501 + """V1Preconditions - a model defined in OpenAPI""" # noqa: E501 self._resource_version = None self._uid = None self.discriminator = None if resource_version is not None: - self.resource_version = resource_version + self.resource_version = resource_version if uid is not None: - self.uid = uid + self.uid = uid @property def resource_version(self): - """ - Gets the resource_version of this V1Preconditions. - Specifies the target ResourceVersion + """Gets the resource_version of this V1Preconditions. # noqa: E501 + + Specifies the target ResourceVersion # noqa: E501 - :return: The resource_version of this V1Preconditions. + :return: The resource_version of this V1Preconditions. # noqa: E501 :rtype: str """ return self._resource_version @resource_version.setter def resource_version(self, resource_version): - """ - Sets the resource_version of this V1Preconditions. - Specifies the target ResourceVersion + """Sets the resource_version of this V1Preconditions. - :param resource_version: The resource_version of this V1Preconditions. + Specifies the target ResourceVersion # noqa: E501 + + :param resource_version: The resource_version of this V1Preconditions. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def resource_version(self, resource_version): @property def uid(self): - """ - Gets the uid of this V1Preconditions. - Specifies the target UID. + """Gets the uid of this V1Preconditions. # noqa: E501 + + Specifies the target UID. # noqa: E501 - :return: The uid of this V1Preconditions. + :return: The uid of this V1Preconditions. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1Preconditions. - Specifies the target UID. + """Sets the uid of this V1Preconditions. + + Specifies the target UID. # noqa: E501 - :param uid: The uid of this V1Preconditions. + :param uid: The uid of this V1Preconditions. # noqa: E501 :type: str """ self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Preconditions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_preferred_scheduling_term.py b/kubernetes/client/models/v1_preferred_scheduling_term.py index 3e31bb207f..4605c253a7 100644 --- a/kubernetes/client/models/v1_preferred_scheduling_term.py +++ b/kubernetes/client/models/v1_preferred_scheduling_term.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PreferredSchedulingTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'preference': 'V1NodeSelectorTerm', 'weight': 'int' } @@ -40,10 +40,8 @@ class V1PreferredSchedulingTerm(object): 'weight': 'weight' } - def __init__(self, preference=None, weight=None): - """ - V1PreferredSchedulingTerm - a model defined in Swagger - """ + def __init__(self, preference=None, weight=None): # noqa: E501 + """V1PreferredSchedulingTerm - a model defined in OpenAPI""" # noqa: E501 self._preference = None self._weight = None @@ -54,61 +52,57 @@ def __init__(self, preference=None, weight=None): @property def preference(self): - """ - Gets the preference of this V1PreferredSchedulingTerm. - A node selector term, associated with the corresponding weight. + """Gets the preference of this V1PreferredSchedulingTerm. # noqa: E501 + - :return: The preference of this V1PreferredSchedulingTerm. + :return: The preference of this V1PreferredSchedulingTerm. # noqa: E501 :rtype: V1NodeSelectorTerm """ return self._preference @preference.setter def preference(self, preference): - """ - Sets the preference of this V1PreferredSchedulingTerm. - A node selector term, associated with the corresponding weight. + """Sets the preference of this V1PreferredSchedulingTerm. - :param preference: The preference of this V1PreferredSchedulingTerm. + + :param preference: The preference of this V1PreferredSchedulingTerm. # noqa: E501 :type: V1NodeSelectorTerm """ if preference is None: - raise ValueError("Invalid value for `preference`, must not be `None`") + raise ValueError("Invalid value for `preference`, must not be `None`") # noqa: E501 self._preference = preference @property def weight(self): - """ - Gets the weight of this V1PreferredSchedulingTerm. - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + """Gets the weight of this V1PreferredSchedulingTerm. # noqa: E501 + + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. # noqa: E501 - :return: The weight of this V1PreferredSchedulingTerm. + :return: The weight of this V1PreferredSchedulingTerm. # noqa: E501 :rtype: int """ return self._weight @weight.setter def weight(self, weight): - """ - Sets the weight of this V1PreferredSchedulingTerm. - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + """Sets the weight of this V1PreferredSchedulingTerm. + + Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. # noqa: E501 - :param weight: The weight of this V1PreferredSchedulingTerm. + :param weight: The weight of this V1PreferredSchedulingTerm. # noqa: E501 :type: int """ if weight is None: - raise ValueError("Invalid value for `weight`, must not be `None`") + raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 self._weight = weight def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PreferredSchedulingTerm): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_priority_class.py b/kubernetes/client/models/v1_priority_class.py index 29f0e522ff..3f4a8d97fc 100644 --- a/kubernetes/client/models/v1_priority_class.py +++ b/kubernetes/client/models/v1_priority_class.py @@ -3,39 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PriorityClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'description': 'str', 'global_default': 'bool', 'kind': 'str', 'metadata': 'V1ObjectMeta', + 'preemption_policy': 'str', 'value': 'int' } @@ -45,52 +46,54 @@ class V1PriorityClass(object): 'global_default': 'globalDefault', 'kind': 'kind', 'metadata': 'metadata', + 'preemption_policy': 'preemptionPolicy', 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, value=None): - """ - V1PriorityClass - a model defined in Swagger - """ + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + """V1PriorityClass - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._description = None self._global_default = None self._kind = None self._metadata = None + self._preemption_policy = None self._value = None self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if description is not None: - self.description = description + self.description = description if global_default is not None: - self.global_default = global_default + self.global_default = global_default if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata + if preemption_policy is not None: + self.preemption_policy = preemption_policy self.value = value @property def api_version(self): - """ - Gets the api_version of this V1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PriorityClass. # noqa: E501 - :return: The api_version of this V1PriorityClass. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1PriorityClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PriorityClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PriorityClass. + :param api_version: The api_version of this V1PriorityClass. # noqa: E501 :type: str """ @@ -98,22 +101,22 @@ def api_version(self, api_version): @property def description(self): - """ - Gets the description of this V1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Gets the description of this V1PriorityClass. # noqa: E501 + + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 - :return: The description of this V1PriorityClass. + :return: The description of this V1PriorityClass. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Sets the description of this V1PriorityClass. - :param description: The description of this V1PriorityClass. + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 + + :param description: The description of this V1PriorityClass. # noqa: E501 :type: str """ @@ -121,22 +124,22 @@ def description(self, description): @property def global_default(self): - """ - Gets the global_default of this V1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Gets the global_default of this V1PriorityClass. # noqa: E501 - :return: The global_default of this V1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :return: The global_default of this V1PriorityClass. # noqa: E501 :rtype: bool """ return self._global_default @global_default.setter def global_default(self, global_default): - """ - Sets the global_default of this V1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Sets the global_default of this V1PriorityClass. - :param global_default: The global_default of this V1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :param global_default: The global_default of this V1PriorityClass. # noqa: E501 :type: bool """ @@ -144,22 +147,22 @@ def global_default(self, global_default): @property def kind(self): - """ - Gets the kind of this V1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PriorityClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PriorityClass. + :return: The kind of this V1PriorityClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PriorityClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PriorityClass. + :param kind: The kind of this V1PriorityClass. # noqa: E501 :type: str """ @@ -167,59 +170,78 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PriorityClass. # noqa: E501 - :return: The metadata of this V1PriorityClass. + + :return: The metadata of this V1PriorityClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PriorityClass. + - :param metadata: The metadata of this V1PriorityClass. + :param metadata: The metadata of this V1PriorityClass. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata @property - def value(self): + def preemption_policy(self): + """Gets the preemption_policy of this V1PriorityClass. # noqa: E501 + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :return: The preemption_policy of this V1PriorityClass. # noqa: E501 + :rtype: str """ - Gets the value of this V1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + return self._preemption_policy + + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1PriorityClass. + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1PriorityClass. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def value(self): + """Gets the value of this V1PriorityClass. # noqa: E501 - :return: The value of this V1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :return: The value of this V1PriorityClass. # noqa: E501 :rtype: int """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """Sets the value of this V1PriorityClass. - :param value: The value of this V1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :param value: The value of this V1PriorityClass. # noqa: E501 :type: int """ if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +262,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PriorityClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_priority_class_list.py b/kubernetes/client/models/v1_priority_class_list.py index 9f1eec4267..19d63d5b2b 100644 --- a/kubernetes/client/models/v1_priority_class_list.py +++ b/kubernetes/client/models/v1_priority_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1PriorityClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1PriorityClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1PriorityClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1PriorityClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1PriorityClassList. + :return: The api_version of this V1PriorityClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1PriorityClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1PriorityClassList. + :param api_version: The api_version of this V1PriorityClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1PriorityClassList. - items is the list of PriorityClasses + """Gets the items of this V1PriorityClassList. # noqa: E501 + + items is the list of PriorityClasses # noqa: E501 - :return: The items of this V1PriorityClassList. + :return: The items of this V1PriorityClassList. # noqa: E501 :rtype: list[V1PriorityClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1PriorityClassList. - items is the list of PriorityClasses + """Sets the items of this V1PriorityClassList. + + items is the list of PriorityClasses # noqa: E501 - :param items: The items of this V1PriorityClassList. + :param items: The items of this V1PriorityClassList. # noqa: E501 :type: list[V1PriorityClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1PriorityClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1PriorityClassList. + :return: The kind of this V1PriorityClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1PriorityClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1PriorityClassList. + :param kind: The kind of this V1PriorityClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1PriorityClassList. # noqa: E501 + - :return: The metadata of this V1PriorityClassList. + :return: The metadata of this V1PriorityClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1PriorityClassList. + - :param metadata: The metadata of this V1PriorityClassList. + :param metadata: The metadata of this V1PriorityClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1PriorityClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_probe.py b/kubernetes/client/models/v1_probe.py index d1bf3ee46b..73c776cb23 100644 --- a/kubernetes/client/models/v1_probe.py +++ b/kubernetes/client/models/v1_probe.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Probe(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { '_exec': 'V1ExecAction', 'failure_threshold': 'int', 'http_get': 'V1HTTPGetAction', @@ -52,10 +52,8 @@ class V1Probe(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): - """ - V1Probe - a model defined in Swagger - """ + def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): # noqa: E501 + """V1Probe - a model defined in OpenAPI""" # noqa: E501 self.__exec = None self._failure_threshold = None @@ -68,40 +66,38 @@ def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_de self.discriminator = None if _exec is not None: - self._exec = _exec + self._exec = _exec if failure_threshold is not None: - self.failure_threshold = failure_threshold + self.failure_threshold = failure_threshold if http_get is not None: - self.http_get = http_get + self.http_get = http_get if initial_delay_seconds is not None: - self.initial_delay_seconds = initial_delay_seconds + self.initial_delay_seconds = initial_delay_seconds if period_seconds is not None: - self.period_seconds = period_seconds + self.period_seconds = period_seconds if success_threshold is not None: - self.success_threshold = success_threshold + self.success_threshold = success_threshold if tcp_socket is not None: - self.tcp_socket = tcp_socket + self.tcp_socket = tcp_socket if timeout_seconds is not None: - self.timeout_seconds = timeout_seconds + self.timeout_seconds = timeout_seconds @property def _exec(self): - """ - Gets the _exec of this V1Probe. - One and only one of the following should be specified. Exec specifies the action to take. + """Gets the _exec of this V1Probe. # noqa: E501 + - :return: The _exec of this V1Probe. + :return: The _exec of this V1Probe. # noqa: E501 :rtype: V1ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): - """ - Sets the _exec of this V1Probe. - One and only one of the following should be specified. Exec specifies the action to take. + """Sets the _exec of this V1Probe. - :param _exec: The _exec of this V1Probe. + + :param _exec: The _exec of this V1Probe. # noqa: E501 :type: V1ExecAction """ @@ -109,22 +105,22 @@ def _exec(self, _exec): @property def failure_threshold(self): - """ - Gets the failure_threshold of this V1Probe. - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + """Gets the failure_threshold of this V1Probe. # noqa: E501 + + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. # noqa: E501 - :return: The failure_threshold of this V1Probe. + :return: The failure_threshold of this V1Probe. # noqa: E501 :rtype: int """ return self._failure_threshold @failure_threshold.setter def failure_threshold(self, failure_threshold): - """ - Sets the failure_threshold of this V1Probe. - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + """Sets the failure_threshold of this V1Probe. + + Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. # noqa: E501 - :param failure_threshold: The failure_threshold of this V1Probe. + :param failure_threshold: The failure_threshold of this V1Probe. # noqa: E501 :type: int """ @@ -132,22 +128,20 @@ def failure_threshold(self, failure_threshold): @property def http_get(self): - """ - Gets the http_get of this V1Probe. - HTTPGet specifies the http request to perform. + """Gets the http_get of this V1Probe. # noqa: E501 - :return: The http_get of this V1Probe. + + :return: The http_get of this V1Probe. # noqa: E501 :rtype: V1HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): - """ - Sets the http_get of this V1Probe. - HTTPGet specifies the http request to perform. + """Sets the http_get of this V1Probe. + - :param http_get: The http_get of this V1Probe. + :param http_get: The http_get of this V1Probe. # noqa: E501 :type: V1HTTPGetAction """ @@ -155,22 +149,22 @@ def http_get(self, http_get): @property def initial_delay_seconds(self): - """ - Gets the initial_delay_seconds of this V1Probe. - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Gets the initial_delay_seconds of this V1Probe. # noqa: E501 + + Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 - :return: The initial_delay_seconds of this V1Probe. + :return: The initial_delay_seconds of this V1Probe. # noqa: E501 :rtype: int """ return self._initial_delay_seconds @initial_delay_seconds.setter def initial_delay_seconds(self, initial_delay_seconds): - """ - Sets the initial_delay_seconds of this V1Probe. - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Sets the initial_delay_seconds of this V1Probe. - :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. + Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 + + :param initial_delay_seconds: The initial_delay_seconds of this V1Probe. # noqa: E501 :type: int """ @@ -178,22 +172,22 @@ def initial_delay_seconds(self, initial_delay_seconds): @property def period_seconds(self): - """ - Gets the period_seconds of this V1Probe. - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + """Gets the period_seconds of this V1Probe. # noqa: E501 + + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. # noqa: E501 - :return: The period_seconds of this V1Probe. + :return: The period_seconds of this V1Probe. # noqa: E501 :rtype: int """ return self._period_seconds @period_seconds.setter def period_seconds(self, period_seconds): - """ - Sets the period_seconds of this V1Probe. - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + """Sets the period_seconds of this V1Probe. + + How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. # noqa: E501 - :param period_seconds: The period_seconds of this V1Probe. + :param period_seconds: The period_seconds of this V1Probe. # noqa: E501 :type: int """ @@ -201,22 +195,22 @@ def period_seconds(self, period_seconds): @property def success_threshold(self): - """ - Gets the success_threshold of this V1Probe. - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + """Gets the success_threshold of this V1Probe. # noqa: E501 - :return: The success_threshold of this V1Probe. + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. # noqa: E501 + + :return: The success_threshold of this V1Probe. # noqa: E501 :rtype: int """ return self._success_threshold @success_threshold.setter def success_threshold(self, success_threshold): - """ - Sets the success_threshold of this V1Probe. - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. + """Sets the success_threshold of this V1Probe. + + Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. # noqa: E501 - :param success_threshold: The success_threshold of this V1Probe. + :param success_threshold: The success_threshold of this V1Probe. # noqa: E501 :type: int """ @@ -224,22 +218,20 @@ def success_threshold(self, success_threshold): @property def tcp_socket(self): - """ - Gets the tcp_socket of this V1Probe. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + """Gets the tcp_socket of this V1Probe. # noqa: E501 + - :return: The tcp_socket of this V1Probe. + :return: The tcp_socket of this V1Probe. # noqa: E501 :rtype: V1TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): - """ - Sets the tcp_socket of this V1Probe. - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + """Sets the tcp_socket of this V1Probe. - :param tcp_socket: The tcp_socket of this V1Probe. + + :param tcp_socket: The tcp_socket of this V1Probe. # noqa: E501 :type: V1TCPSocketAction """ @@ -247,34 +239,32 @@ def tcp_socket(self, tcp_socket): @property def timeout_seconds(self): - """ - Gets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Gets the timeout_seconds of this V1Probe. # noqa: E501 + + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 - :return: The timeout_seconds of this V1Probe. + :return: The timeout_seconds of this V1Probe. # noqa: E501 :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): - """ - Sets the timeout_seconds of this V1Probe. - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + """Sets the timeout_seconds of this V1Probe. + + Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes # noqa: E501 - :param timeout_seconds: The timeout_seconds of this V1Probe. + :param timeout_seconds: The timeout_seconds of this V1Probe. # noqa: E501 :type: int """ self._timeout_seconds = timeout_seconds def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +285,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Probe): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_projected_volume_source.py b/kubernetes/client/models/v1_projected_volume_source.py index 0203e4eb62..fa6cffd0dd 100644 --- a/kubernetes/client/models/v1_projected_volume_source.py +++ b/kubernetes/client/models/v1_projected_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ProjectedVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'default_mode': 'int', 'sources': 'list[V1VolumeProjection]' } @@ -40,37 +40,35 @@ class V1ProjectedVolumeSource(object): 'sources': 'sources' } - def __init__(self, default_mode=None, sources=None): - """ - V1ProjectedVolumeSource - a model defined in Swagger - """ + def __init__(self, default_mode=None, sources=None): # noqa: E501 + """V1ProjectedVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._default_mode = None self._sources = None self.discriminator = None if default_mode is not None: - self.default_mode = default_mode + self.default_mode = default_mode self.sources = sources @property def default_mode(self): - """ - Gets the default_mode of this V1ProjectedVolumeSource. - Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the default_mode of this V1ProjectedVolumeSource. # noqa: E501 + + Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :return: The default_mode of this V1ProjectedVolumeSource. + :return: The default_mode of this V1ProjectedVolumeSource. # noqa: E501 :rtype: int """ return self._default_mode @default_mode.setter def default_mode(self, default_mode): - """ - Sets the default_mode of this V1ProjectedVolumeSource. - Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the default_mode of this V1ProjectedVolumeSource. - :param default_mode: The default_mode of this V1ProjectedVolumeSource. + Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 + + :param default_mode: The default_mode of this V1ProjectedVolumeSource. # noqa: E501 :type: int """ @@ -78,36 +76,34 @@ def default_mode(self, default_mode): @property def sources(self): - """ - Gets the sources of this V1ProjectedVolumeSource. - list of volume projections + """Gets the sources of this V1ProjectedVolumeSource. # noqa: E501 + + list of volume projections # noqa: E501 - :return: The sources of this V1ProjectedVolumeSource. + :return: The sources of this V1ProjectedVolumeSource. # noqa: E501 :rtype: list[V1VolumeProjection] """ return self._sources @sources.setter def sources(self, sources): - """ - Sets the sources of this V1ProjectedVolumeSource. - list of volume projections + """Sets the sources of this V1ProjectedVolumeSource. + + list of volume projections # noqa: E501 - :param sources: The sources of this V1ProjectedVolumeSource. + :param sources: The sources of this V1ProjectedVolumeSource. # noqa: E501 :type: list[V1VolumeProjection] """ if sources is None: - raise ValueError("Invalid value for `sources`, must not be `None`") + raise ValueError("Invalid value for `sources`, must not be `None`") # noqa: E501 self._sources = sources def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ProjectedVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_quobyte_volume_source.py b/kubernetes/client/models/v1_quobyte_volume_source.py index f522be2ed7..3b922541e2 100644 --- a/kubernetes/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/client/models/v1_quobyte_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1QuobyteVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'group': 'str', 'read_only': 'bool', 'registry': 'str', @@ -48,10 +48,8 @@ class V1QuobyteVolumeSource(object): 'volume': 'volume' } - def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None): - """ - V1QuobyteVolumeSource - a model defined in Swagger - """ + def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None): # noqa: E501 + """V1QuobyteVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._group = None self._read_only = None @@ -62,34 +60,34 @@ def __init__(self, group=None, read_only=None, registry=None, tenant=None, user= self.discriminator = None if group is not None: - self.group = group + self.group = group if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.registry = registry if tenant is not None: - self.tenant = tenant + self.tenant = tenant if user is not None: - self.user = user + self.user = user self.volume = volume @property def group(self): - """ - Gets the group of this V1QuobyteVolumeSource. - Group to map volume access to Default is no group + """Gets the group of this V1QuobyteVolumeSource. # noqa: E501 + + Group to map volume access to Default is no group # noqa: E501 - :return: The group of this V1QuobyteVolumeSource. + :return: The group of this V1QuobyteVolumeSource. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1QuobyteVolumeSource. - Group to map volume access to Default is no group + """Sets the group of this V1QuobyteVolumeSource. + + Group to map volume access to Default is no group # noqa: E501 - :param group: The group of this V1QuobyteVolumeSource. + :param group: The group of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ @@ -97,22 +95,22 @@ def group(self, group): @property def read_only(self): - """ - Gets the read_only of this V1QuobyteVolumeSource. - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + """Gets the read_only of this V1QuobyteVolumeSource. # noqa: E501 + + ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501 - :return: The read_only of this V1QuobyteVolumeSource. + :return: The read_only of this V1QuobyteVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1QuobyteVolumeSource. - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + """Sets the read_only of this V1QuobyteVolumeSource. - :param read_only: The read_only of this V1QuobyteVolumeSource. + ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501 + + :param read_only: The read_only of this V1QuobyteVolumeSource. # noqa: E501 :type: bool """ @@ -120,47 +118,47 @@ def read_only(self, read_only): @property def registry(self): - """ - Gets the registry of this V1QuobyteVolumeSource. - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + """Gets the registry of this V1QuobyteVolumeSource. # noqa: E501 - :return: The registry of this V1QuobyteVolumeSource. + Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 + + :return: The registry of this V1QuobyteVolumeSource. # noqa: E501 :rtype: str """ return self._registry @registry.setter def registry(self, registry): - """ - Sets the registry of this V1QuobyteVolumeSource. - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + """Sets the registry of this V1QuobyteVolumeSource. + + Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 - :param registry: The registry of this V1QuobyteVolumeSource. + :param registry: The registry of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ if registry is None: - raise ValueError("Invalid value for `registry`, must not be `None`") + raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501 self._registry = registry @property def tenant(self): - """ - Gets the tenant of this V1QuobyteVolumeSource. - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + """Gets the tenant of this V1QuobyteVolumeSource. # noqa: E501 + + Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501 - :return: The tenant of this V1QuobyteVolumeSource. + :return: The tenant of this V1QuobyteVolumeSource. # noqa: E501 :rtype: str """ return self._tenant @tenant.setter def tenant(self, tenant): - """ - Sets the tenant of this V1QuobyteVolumeSource. - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + """Sets the tenant of this V1QuobyteVolumeSource. + + Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501 - :param tenant: The tenant of this V1QuobyteVolumeSource. + :param tenant: The tenant of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ @@ -168,22 +166,22 @@ def tenant(self, tenant): @property def user(self): - """ - Gets the user of this V1QuobyteVolumeSource. - User to map volume access to Defaults to serivceaccount user + """Gets the user of this V1QuobyteVolumeSource. # noqa: E501 - :return: The user of this V1QuobyteVolumeSource. + User to map volume access to Defaults to serivceaccount user # noqa: E501 + + :return: The user of this V1QuobyteVolumeSource. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1QuobyteVolumeSource. - User to map volume access to Defaults to serivceaccount user + """Sets the user of this V1QuobyteVolumeSource. - :param user: The user of this V1QuobyteVolumeSource. + User to map volume access to Defaults to serivceaccount user # noqa: E501 + + :param user: The user of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ @@ -191,36 +189,34 @@ def user(self, user): @property def volume(self): - """ - Gets the volume of this V1QuobyteVolumeSource. - Volume is a string that references an already created Quobyte volume by name. + """Gets the volume of this V1QuobyteVolumeSource. # noqa: E501 + + Volume is a string that references an already created Quobyte volume by name. # noqa: E501 - :return: The volume of this V1QuobyteVolumeSource. + :return: The volume of this V1QuobyteVolumeSource. # noqa: E501 :rtype: str """ return self._volume @volume.setter def volume(self, volume): - """ - Sets the volume of this V1QuobyteVolumeSource. - Volume is a string that references an already created Quobyte volume by name. + """Sets the volume of this V1QuobyteVolumeSource. + + Volume is a string that references an already created Quobyte volume by name. # noqa: E501 - :param volume: The volume of this V1QuobyteVolumeSource. + :param volume: The volume of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ if volume is None: - raise ValueError("Invalid value for `volume`, must not be `None`") + raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501 self._volume = volume def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1QuobyteVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_rbd_persistent_volume_source.py b/kubernetes/client/models/v1_rbd_persistent_volume_source.py index e5751121e5..aa1247183d 100644 --- a/kubernetes/client/models/v1_rbd_persistent_volume_source.py +++ b/kubernetes/client/models/v1_rbd_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RBDPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'image': 'str', 'keyring': 'str', @@ -52,10 +52,8 @@ class V1RBDPersistentVolumeSource(object): 'user': 'user' } - def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): - """ - V1RBDPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): # noqa: E501 + """V1RBDPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._image = None @@ -68,38 +66,38 @@ def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=N self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.image = image if keyring is not None: - self.keyring = keyring + self.keyring = keyring self.monitors = monitors if pool is not None: - self.pool = pool + self.pool = pool if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if user is not None: - self.user = user + self.user = user @property def fs_type(self): - """ - Gets the fs_type of this V1RBDPersistentVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + """Gets the fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 - :return: The fs_type of this V1RBDPersistentVolumeSource. + :return: The fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1RBDPersistentVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + """Sets the fs_type of this V1RBDPersistentVolumeSource. - :param fs_type: The fs_type of this V1RBDPersistentVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :param fs_type: The fs_type of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ @@ -107,47 +105,47 @@ def fs_type(self, fs_type): @property def image(self): - """ - Gets the image of this V1RBDPersistentVolumeSource. - The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the image of this V1RBDPersistentVolumeSource. # noqa: E501 + + The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The image of this V1RBDPersistentVolumeSource. + :return: The image of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._image @image.setter def image(self, image): - """ - Sets the image of this V1RBDPersistentVolumeSource. - The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the image of this V1RBDPersistentVolumeSource. + + The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param image: The image of this V1RBDPersistentVolumeSource. + :param image: The image of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ if image is None: - raise ValueError("Invalid value for `image`, must not be `None`") + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @property def keyring(self): - """ - Gets the keyring of this V1RBDPersistentVolumeSource. - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the keyring of this V1RBDPersistentVolumeSource. # noqa: E501 - :return: The keyring of this V1RBDPersistentVolumeSource. + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The keyring of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._keyring @keyring.setter def keyring(self, keyring): - """ - Sets the keyring of this V1RBDPersistentVolumeSource. - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the keyring of this V1RBDPersistentVolumeSource. + + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param keyring: The keyring of this V1RBDPersistentVolumeSource. + :param keyring: The keyring of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ @@ -155,47 +153,47 @@ def keyring(self, keyring): @property def monitors(self): - """ - Gets the monitors of this V1RBDPersistentVolumeSource. - A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the monitors of this V1RBDPersistentVolumeSource. # noqa: E501 + + A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The monitors of this V1RBDPersistentVolumeSource. + :return: The monitors of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): - """ - Sets the monitors of this V1RBDPersistentVolumeSource. - A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the monitors of this V1RBDPersistentVolumeSource. - :param monitors: The monitors of this V1RBDPersistentVolumeSource. + A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param monitors: The monitors of this V1RBDPersistentVolumeSource. # noqa: E501 :type: list[str] """ if monitors is None: - raise ValueError("Invalid value for `monitors`, must not be `None`") + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @property def pool(self): - """ - Gets the pool of this V1RBDPersistentVolumeSource. - The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the pool of this V1RBDPersistentVolumeSource. # noqa: E501 + + The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The pool of this V1RBDPersistentVolumeSource. + :return: The pool of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._pool @pool.setter def pool(self, pool): - """ - Sets the pool of this V1RBDPersistentVolumeSource. - The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the pool of this V1RBDPersistentVolumeSource. + + The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param pool: The pool of this V1RBDPersistentVolumeSource. + :param pool: The pool of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ @@ -203,22 +201,22 @@ def pool(self, pool): @property def read_only(self): - """ - Gets the read_only of this V1RBDPersistentVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the read_only of this V1RBDPersistentVolumeSource. # noqa: E501 - :return: The read_only of this V1RBDPersistentVolumeSource. + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1RBDPersistentVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the read_only of this V1RBDPersistentVolumeSource. + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param read_only: The read_only of this V1RBDPersistentVolumeSource. + :param read_only: The read_only of this V1RBDPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -226,22 +224,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1RBDPersistentVolumeSource. - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1RBDPersistentVolumeSource. + :return: The secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1RBDPersistentVolumeSource. - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the secret_ref of this V1RBDPersistentVolumeSource. - :param secret_ref: The secret_ref of this V1RBDPersistentVolumeSource. + + :param secret_ref: The secret_ref of this V1RBDPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ @@ -249,34 +245,32 @@ def secret_ref(self, secret_ref): @property def user(self): - """ - Gets the user of this V1RBDPersistentVolumeSource. - The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the user of this V1RBDPersistentVolumeSource. # noqa: E501 + + The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The user of this V1RBDPersistentVolumeSource. + :return: The user of this V1RBDPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1RBDPersistentVolumeSource. - The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the user of this V1RBDPersistentVolumeSource. + + The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param user: The user of this V1RBDPersistentVolumeSource. + :param user: The user of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RBDPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_rbd_volume_source.py b/kubernetes/client/models/v1_rbd_volume_source.py index 866914b166..16e33cb20d 100644 --- a/kubernetes/client/models/v1_rbd_volume_source.py +++ b/kubernetes/client/models/v1_rbd_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RBDVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'image': 'str', 'keyring': 'str', @@ -52,10 +52,8 @@ class V1RBDVolumeSource(object): 'user': 'user' } - def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): - """ - V1RBDVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): # noqa: E501 + """V1RBDVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._image = None @@ -68,38 +66,38 @@ def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=N self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.image = image if keyring is not None: - self.keyring = keyring + self.keyring = keyring self.monitors = monitors if pool is not None: - self.pool = pool + self.pool = pool if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if user is not None: - self.user = user + self.user = user @property def fs_type(self): - """ - Gets the fs_type of this V1RBDVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + """Gets the fs_type of this V1RBDVolumeSource. # noqa: E501 + + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 - :return: The fs_type of this V1RBDVolumeSource. + :return: The fs_type of this V1RBDVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1RBDVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + """Sets the fs_type of this V1RBDVolumeSource. - :param fs_type: The fs_type of this V1RBDVolumeSource. + Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd # noqa: E501 + + :param fs_type: The fs_type of this V1RBDVolumeSource. # noqa: E501 :type: str """ @@ -107,47 +105,47 @@ def fs_type(self, fs_type): @property def image(self): - """ - Gets the image of this V1RBDVolumeSource. - The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the image of this V1RBDVolumeSource. # noqa: E501 + + The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The image of this V1RBDVolumeSource. + :return: The image of this V1RBDVolumeSource. # noqa: E501 :rtype: str """ return self._image @image.setter def image(self, image): - """ - Sets the image of this V1RBDVolumeSource. - The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the image of this V1RBDVolumeSource. + + The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param image: The image of this V1RBDVolumeSource. + :param image: The image of this V1RBDVolumeSource. # noqa: E501 :type: str """ if image is None: - raise ValueError("Invalid value for `image`, must not be `None`") + raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @property def keyring(self): - """ - Gets the keyring of this V1RBDVolumeSource. - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the keyring of this V1RBDVolumeSource. # noqa: E501 - :return: The keyring of this V1RBDVolumeSource. + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The keyring of this V1RBDVolumeSource. # noqa: E501 :rtype: str """ return self._keyring @keyring.setter def keyring(self, keyring): - """ - Sets the keyring of this V1RBDVolumeSource. - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the keyring of this V1RBDVolumeSource. + + Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param keyring: The keyring of this V1RBDVolumeSource. + :param keyring: The keyring of this V1RBDVolumeSource. # noqa: E501 :type: str """ @@ -155,47 +153,47 @@ def keyring(self, keyring): @property def monitors(self): - """ - Gets the monitors of this V1RBDVolumeSource. - A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the monitors of this V1RBDVolumeSource. # noqa: E501 + + A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The monitors of this V1RBDVolumeSource. + :return: The monitors of this V1RBDVolumeSource. # noqa: E501 :rtype: list[str] """ return self._monitors @monitors.setter def monitors(self, monitors): - """ - Sets the monitors of this V1RBDVolumeSource. - A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the monitors of this V1RBDVolumeSource. - :param monitors: The monitors of this V1RBDVolumeSource. + A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :param monitors: The monitors of this V1RBDVolumeSource. # noqa: E501 :type: list[str] """ if monitors is None: - raise ValueError("Invalid value for `monitors`, must not be `None`") + raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @property def pool(self): - """ - Gets the pool of this V1RBDVolumeSource. - The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the pool of this V1RBDVolumeSource. # noqa: E501 + + The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The pool of this V1RBDVolumeSource. + :return: The pool of this V1RBDVolumeSource. # noqa: E501 :rtype: str """ return self._pool @pool.setter def pool(self, pool): - """ - Sets the pool of this V1RBDVolumeSource. - The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the pool of this V1RBDVolumeSource. + + The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param pool: The pool of this V1RBDVolumeSource. + :param pool: The pool of this V1RBDVolumeSource. # noqa: E501 :type: str """ @@ -203,22 +201,22 @@ def pool(self, pool): @property def read_only(self): - """ - Gets the read_only of this V1RBDVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the read_only of this V1RBDVolumeSource. # noqa: E501 - :return: The read_only of this V1RBDVolumeSource. + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 + + :return: The read_only of this V1RBDVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1RBDVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the read_only of this V1RBDVolumeSource. + + ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param read_only: The read_only of this V1RBDVolumeSource. + :param read_only: The read_only of this V1RBDVolumeSource. # noqa: E501 :type: bool """ @@ -226,22 +224,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1RBDVolumeSource. - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the secret_ref of this V1RBDVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1RBDVolumeSource. + :return: The secret_ref of this V1RBDVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1RBDVolumeSource. - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the secret_ref of this V1RBDVolumeSource. - :param secret_ref: The secret_ref of this V1RBDVolumeSource. + + :param secret_ref: The secret_ref of this V1RBDVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -249,34 +245,32 @@ def secret_ref(self, secret_ref): @property def user(self): - """ - Gets the user of this V1RBDVolumeSource. - The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Gets the user of this V1RBDVolumeSource. # noqa: E501 + + The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :return: The user of this V1RBDVolumeSource. + :return: The user of this V1RBDVolumeSource. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1RBDVolumeSource. - The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + """Sets the user of this V1RBDVolumeSource. + + The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it # noqa: E501 - :param user: The user of this V1RBDVolumeSource. + :param user: The user of this V1RBDVolumeSource. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RBDVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replica_set.py b/kubernetes/client/models/v1_replica_set.py index 504cf0d916..778dd5550f 100644 --- a/kubernetes/client/models/v1_replica_set.py +++ b/kubernetes/client/models/v1_replica_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicaSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1ReplicaSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1ReplicaSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ReplicaSet. # noqa: E501 - :return: The api_version of this V1ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicaSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ReplicaSet. - :param api_version: The api_version of this V1ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicaSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ReplicaSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ReplicaSet. + :return: The kind of this V1ReplicaSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ReplicaSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ReplicaSet. + :param kind: The kind of this V1ReplicaSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ReplicaSet. # noqa: E501 + - :return: The metadata of this V1ReplicaSet. + :return: The metadata of this V1ReplicaSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ReplicaSet. + - :param metadata: The metadata of this V1ReplicaSet. + :param metadata: The metadata of this V1ReplicaSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1ReplicaSet. # noqa: E501 + - :return: The spec of this V1ReplicaSet. + :return: The spec of this V1ReplicaSet. # noqa: E501 :rtype: V1ReplicaSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1ReplicaSet. - :param spec: The spec of this V1ReplicaSet. + + :param spec: The spec of this V1ReplicaSet. # noqa: E501 :type: V1ReplicaSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1ReplicaSet. # noqa: E501 - :return: The status of this V1ReplicaSet. + + :return: The status of this V1ReplicaSet. # noqa: E501 :rtype: V1ReplicaSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1ReplicaSet. - :param status: The status of this V1ReplicaSet. + + :param status: The status of this V1ReplicaSet. # noqa: E501 :type: V1ReplicaSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicaSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replica_set_condition.py b/kubernetes/client/models/v1_replica_set_condition.py index d320521a0d..5fb6f55571 100644 --- a/kubernetes/client/models/v1_replica_set_condition.py +++ b/kubernetes/client/models/v1_replica_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicaSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1ReplicaSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1ReplicaSetCondition. # noqa: E501 - :return: The last_transition_time of this V1ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1ReplicaSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1ReplicaSetCondition. - :param last_transition_time: The last_transition_time of this V1ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1ReplicaSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1ReplicaSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1ReplicaSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1ReplicaSetCondition. + :return: The message of this V1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1ReplicaSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1ReplicaSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1ReplicaSetCondition. + :param message: The message of this V1ReplicaSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1ReplicaSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1ReplicaSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1ReplicaSetCondition. + :return: The reason of this V1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1ReplicaSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1ReplicaSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1ReplicaSetCondition. + :param reason: The reason of this V1ReplicaSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1ReplicaSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1ReplicaSetCondition. + :return: The status of this V1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1ReplicaSetCondition. - :param status: The status of this V1ReplicaSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1ReplicaSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1ReplicaSetCondition. - Type of replica set condition. + """Gets the type of this V1ReplicaSetCondition. # noqa: E501 - :return: The type of this V1ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :return: The type of this V1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1ReplicaSetCondition. - Type of replica set condition. + """Sets the type of this V1ReplicaSetCondition. - :param type: The type of this V1ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :param type: The type of this V1ReplicaSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicaSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replica_set_list.py b/kubernetes/client/models/v1_replica_set_list.py index 45b5240754..450d80e9a0 100644 --- a/kubernetes/client/models/v1_replica_set_list.py +++ b/kubernetes/client/models/v1_replica_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicaSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ReplicaSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ReplicaSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ReplicaSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ReplicaSetList. + :return: The api_version of this V1ReplicaSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ReplicaSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ReplicaSetList. + :param api_version: The api_version of this V1ReplicaSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Gets the items of this V1ReplicaSetList. # noqa: E501 + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :return: The items of this V1ReplicaSetList. + :return: The items of this V1ReplicaSetList. # noqa: E501 :rtype: list[V1ReplicaSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Sets the items of this V1ReplicaSetList. + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :param items: The items of this V1ReplicaSetList. + :param items: The items of this V1ReplicaSetList. # noqa: E501 :type: list[V1ReplicaSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ReplicaSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ReplicaSetList. + :return: The kind of this V1ReplicaSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ReplicaSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ReplicaSetList. + :param kind: The kind of this V1ReplicaSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ReplicaSetList. # noqa: E501 + - :return: The metadata of this V1ReplicaSetList. + :return: The metadata of this V1ReplicaSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ReplicaSetList. + - :param metadata: The metadata of this V1ReplicaSetList. + :param metadata: The metadata of this V1ReplicaSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicaSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replica_set_spec.py b/kubernetes/client/models/v1_replica_set_spec.py index 5f97735655..3d9578f3c9 100644 --- a/kubernetes/client/models/v1_replica_set_spec.py +++ b/kubernetes/client/models/v1_replica_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicaSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'V1LabelSelector', @@ -44,10 +44,8 @@ class V1ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): - """ - V1ReplicaSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + """V1ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._replicas = None @@ -56,31 +54,31 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas self.selector = selector if template is not None: - self.template = template + self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1ReplicaSetSpec. + :return: The min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1ReplicaSetSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this V1ReplicaSetSpec. + :param min_ready_seconds: The min_ready_seconds of this V1ReplicaSetSpec. # noqa: E501 :type: int """ @@ -88,22 +86,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def replicas(self): - """ - Gets the replicas of this V1ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1ReplicaSetSpec. # noqa: E501 + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1ReplicaSetSpec. + :return: The replicas of this V1ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1ReplicaSetSpec. + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1ReplicaSetSpec. + :param replicas: The replicas of this V1ReplicaSetSpec. # noqa: E501 :type: int """ @@ -111,59 +109,53 @@ def replicas(self, replicas): @property def selector(self): - """ - Gets the selector of this V1ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1ReplicaSetSpec. # noqa: E501 + - :return: The selector of this V1ReplicaSetSpec. + :return: The selector of this V1ReplicaSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1ReplicaSetSpec. + - :param selector: The selector of this V1ReplicaSetSpec. + :param selector: The selector of this V1ReplicaSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def template(self): - """ - Gets the template of this V1ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1ReplicaSetSpec. # noqa: E501 + - :return: The template of this V1ReplicaSetSpec. + :return: The template of this V1ReplicaSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1ReplicaSetSpec. + - :param template: The template of this V1ReplicaSetSpec. + :param template: The template of this V1ReplicaSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicaSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replica_set_status.py b/kubernetes/client/models/v1_replica_set_status.py index 34f88e5967..8e27806493 100644 --- a/kubernetes/client/models/v1_replica_set_status.py +++ b/kubernetes/client/models/v1_replica_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicaSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'conditions': 'list[V1ReplicaSetCondition]', 'fully_labeled_replicas': 'int', @@ -48,10 +48,8 @@ class V1ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): - """ - V1ReplicaSetStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + """V1ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._conditions = None @@ -62,35 +60,35 @@ def __init__(self, available_replicas=None, conditions=None, fully_labeled_repli self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if conditions is not None: - self.conditions = conditions + self.conditions = conditions if fully_labeled_replicas is not None: - self.fully_labeled_replicas = fully_labeled_replicas + self.fully_labeled_replicas = fully_labeled_replicas if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Gets the available_replicas of this V1ReplicaSetStatus. # noqa: E501 + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :return: The available_replicas of this V1ReplicaSetStatus. + :return: The available_replicas of this V1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Sets the available_replicas of this V1ReplicaSetStatus. + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :param available_replicas: The available_replicas of this V1ReplicaSetStatus. + :param available_replicas: The available_replicas of this V1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -98,22 +96,22 @@ def available_replicas(self, available_replicas): @property def conditions(self): - """ - Gets the conditions of this V1ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Gets the conditions of this V1ReplicaSetStatus. # noqa: E501 + + Represents the latest available observations of a replica set's current state. # noqa: E501 - :return: The conditions of this V1ReplicaSetStatus. + :return: The conditions of this V1ReplicaSetStatus. # noqa: E501 :rtype: list[V1ReplicaSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Sets the conditions of this V1ReplicaSetStatus. - :param conditions: The conditions of this V1ReplicaSetStatus. + Represents the latest available observations of a replica set's current state. # noqa: E501 + + :param conditions: The conditions of this V1ReplicaSetStatus. # noqa: E501 :type: list[V1ReplicaSetCondition] """ @@ -121,22 +119,22 @@ def conditions(self, conditions): @property def fully_labeled_replicas(self): - """ - Gets the fully_labeled_replicas of this V1ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Gets the fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 - :return: The fully_labeled_replicas of this V1ReplicaSetStatus. + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 + + :return: The fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): - """ - Sets the fully_labeled_replicas of this V1ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Sets the fully_labeled_replicas of this V1ReplicaSetStatus. + + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 - :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicaSetStatus. + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -144,22 +142,22 @@ def fully_labeled_replicas(self, fully_labeled_replicas): @property def observed_generation(self): - """ - Gets the observed_generation of this V1ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Gets the observed_generation of this V1ReplicaSetStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :return: The observed_generation of this V1ReplicaSetStatus. + :return: The observed_generation of this V1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Sets the observed_generation of this V1ReplicaSetStatus. + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :param observed_generation: The observed_generation of this V1ReplicaSetStatus. + :param observed_generation: The observed_generation of this V1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -167,22 +165,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1ReplicaSetStatus. - The number of ready replicas for this replica set. + """Gets the ready_replicas of this V1ReplicaSetStatus. # noqa: E501 - :return: The ready_replicas of this V1ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :return: The ready_replicas of this V1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1ReplicaSetStatus. - The number of ready replicas for this replica set. + """Sets the ready_replicas of this V1ReplicaSetStatus. - :param ready_replicas: The ready_replicas of this V1ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -190,36 +188,34 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1ReplicaSetStatus. # noqa: E501 + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1ReplicaSetStatus. + :return: The replicas of this V1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1ReplicaSetStatus. + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1ReplicaSetStatus. + :param replicas: The replicas of this V1ReplicaSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +236,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicaSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replication_controller.py b/kubernetes/client/models/v1_replication_controller.py index de902d61ab..3f6347e1f5 100644 --- a/kubernetes/client/models/v1_replication_controller.py +++ b/kubernetes/client/models/v1_replication_controller.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicationController(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1ReplicationController(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1ReplicationController - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1ReplicationController - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1ReplicationController. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ReplicationController. # noqa: E501 - :return: The api_version of this V1ReplicationController. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ReplicationController. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ReplicationController. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ReplicationController. - :param api_version: The api_version of this V1ReplicationController. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ReplicationController. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1ReplicationController. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ReplicationController. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ReplicationController. + :return: The kind of this V1ReplicationController. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ReplicationController. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ReplicationController. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ReplicationController. + :param kind: The kind of this V1ReplicationController. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ReplicationController. - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ReplicationController. # noqa: E501 + - :return: The metadata of this V1ReplicationController. + :return: The metadata of this V1ReplicationController. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ReplicationController. - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ReplicationController. + - :param metadata: The metadata of this V1ReplicationController. + :param metadata: The metadata of this V1ReplicationController. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1ReplicationController. - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1ReplicationController. # noqa: E501 + - :return: The spec of this V1ReplicationController. + :return: The spec of this V1ReplicationController. # noqa: E501 :rtype: V1ReplicationControllerSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1ReplicationController. - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1ReplicationController. - :param spec: The spec of this V1ReplicationController. + + :param spec: The spec of this V1ReplicationController. # noqa: E501 :type: V1ReplicationControllerSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1ReplicationController. - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1ReplicationController. # noqa: E501 - :return: The status of this V1ReplicationController. + + :return: The status of this V1ReplicationController. # noqa: E501 :rtype: V1ReplicationControllerStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ReplicationController. - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1ReplicationController. - :param status: The status of this V1ReplicationController. + + :param status: The status of this V1ReplicationController. # noqa: E501 :type: V1ReplicationControllerStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicationController): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index c2cbb5adc8..53040d470c 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicationControllerCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1ReplicationControllerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1ReplicationControllerCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1ReplicationControllerCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1ReplicationControllerCondition. - The last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 - :return: The last_transition_time of this V1ReplicationControllerCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1ReplicationControllerCondition. - The last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1ReplicationControllerCondition. - :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1ReplicationControllerCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1ReplicationControllerCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1ReplicationControllerCondition. + :return: The message of this V1ReplicationControllerCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1ReplicationControllerCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1ReplicationControllerCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1ReplicationControllerCondition. + :param message: The message of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1ReplicationControllerCondition. - The reason for the condition's last transition. + """Gets the reason of this V1ReplicationControllerCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1ReplicationControllerCondition. + :return: The reason of this V1ReplicationControllerCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1ReplicationControllerCondition. - The reason for the condition's last transition. + """Sets the reason of this V1ReplicationControllerCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1ReplicationControllerCondition. + :param reason: The reason of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1ReplicationControllerCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1ReplicationControllerCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1ReplicationControllerCondition. + :return: The status of this V1ReplicationControllerCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ReplicationControllerCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1ReplicationControllerCondition. - :param status: The status of this V1ReplicationControllerCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1ReplicationControllerCondition. - Type of replication controller condition. + """Gets the type of this V1ReplicationControllerCondition. # noqa: E501 - :return: The type of this V1ReplicationControllerCondition. + Type of replication controller condition. # noqa: E501 + + :return: The type of this V1ReplicationControllerCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1ReplicationControllerCondition. - Type of replication controller condition. + """Sets the type of this V1ReplicationControllerCondition. - :param type: The type of this V1ReplicationControllerCondition. + Type of replication controller condition. # noqa: E501 + + :param type: The type of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicationControllerCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replication_controller_list.py b/kubernetes/client/models/v1_replication_controller_list.py index 9e120b009d..1c2da67d00 100644 --- a/kubernetes/client/models/v1_replication_controller_list.py +++ b/kubernetes/client/models/v1_replication_controller_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicationControllerList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ReplicationController]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ReplicationControllerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ReplicationControllerList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ReplicationControllerList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ReplicationControllerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ReplicationControllerList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ReplicationControllerList. + :return: The api_version of this V1ReplicationControllerList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ReplicationControllerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ReplicationControllerList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ReplicationControllerList. + :param api_version: The api_version of this V1ReplicationControllerList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ReplicationControllerList. - List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Gets the items of this V1ReplicationControllerList. # noqa: E501 + + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :return: The items of this V1ReplicationControllerList. + :return: The items of this V1ReplicationControllerList. # noqa: E501 :rtype: list[V1ReplicationController] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ReplicationControllerList. - List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Sets the items of this V1ReplicationControllerList. + + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :param items: The items of this V1ReplicationControllerList. + :param items: The items of this V1ReplicationControllerList. # noqa: E501 :type: list[V1ReplicationController] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ReplicationControllerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ReplicationControllerList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ReplicationControllerList. + :return: The kind of this V1ReplicationControllerList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ReplicationControllerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ReplicationControllerList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ReplicationControllerList. + :param kind: The kind of this V1ReplicationControllerList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ReplicationControllerList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ReplicationControllerList. # noqa: E501 + - :return: The metadata of this V1ReplicationControllerList. + :return: The metadata of this V1ReplicationControllerList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ReplicationControllerList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ReplicationControllerList. + - :param metadata: The metadata of this V1ReplicationControllerList. + :param metadata: The metadata of this V1ReplicationControllerList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicationControllerList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replication_controller_spec.py b/kubernetes/client/models/v1_replication_controller_spec.py index e23a759973..2eb255ae89 100644 --- a/kubernetes/client/models/v1_replication_controller_spec.py +++ b/kubernetes/client/models/v1_replication_controller_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicationControllerSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'dict(str, str)', @@ -44,10 +44,8 @@ class V1ReplicationControllerSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): - """ - V1ReplicationControllerSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + """V1ReplicationControllerSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._replicas = None @@ -56,32 +54,32 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector if template is not None: - self.template = template + self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1ReplicationControllerSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1ReplicationControllerSpec. + :return: The min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1ReplicationControllerSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1ReplicationControllerSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this V1ReplicationControllerSpec. + :param min_ready_seconds: The min_ready_seconds of this V1ReplicationControllerSpec. # noqa: E501 :type: int """ @@ -89,22 +87,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def replicas(self): - """ - Gets the replicas of this V1ReplicationControllerSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """Gets the replicas of this V1ReplicationControllerSpec. # noqa: E501 + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1ReplicationControllerSpec. + :return: The replicas of this V1ReplicationControllerSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ReplicationControllerSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """Sets the replicas of this V1ReplicationControllerSpec. + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1ReplicationControllerSpec. + :param replicas: The replicas of this V1ReplicationControllerSpec. # noqa: E501 :type: int """ @@ -112,22 +110,22 @@ def replicas(self, replicas): @property def selector(self): - """ - Gets the selector of this V1ReplicationControllerSpec. - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1ReplicationControllerSpec. # noqa: E501 + + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :return: The selector of this V1ReplicationControllerSpec. + :return: The selector of this V1ReplicationControllerSpec. # noqa: E501 :rtype: dict(str, str) """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1ReplicationControllerSpec. - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1ReplicationControllerSpec. + + Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :param selector: The selector of this V1ReplicationControllerSpec. + :param selector: The selector of this V1ReplicationControllerSpec. # noqa: E501 :type: dict(str, str) """ @@ -135,34 +133,30 @@ def selector(self, selector): @property def template(self): - """ - Gets the template of this V1ReplicationControllerSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1ReplicationControllerSpec. # noqa: E501 + - :return: The template of this V1ReplicationControllerSpec. + :return: The template of this V1ReplicationControllerSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1ReplicationControllerSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1ReplicationControllerSpec. + - :param template: The template of this V1ReplicationControllerSpec. + :param template: The template of this V1ReplicationControllerSpec. # noqa: E501 :type: V1PodTemplateSpec """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicationControllerSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_replication_controller_status.py b/kubernetes/client/models/v1_replication_controller_status.py index efbd01bf5c..74decebfe5 100644 --- a/kubernetes/client/models/v1_replication_controller_status.py +++ b/kubernetes/client/models/v1_replication_controller_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ReplicationControllerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'conditions': 'list[V1ReplicationControllerCondition]', 'fully_labeled_replicas': 'int', @@ -48,10 +48,8 @@ class V1ReplicationControllerStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): - """ - V1ReplicationControllerStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + """V1ReplicationControllerStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._conditions = None @@ -62,35 +60,35 @@ def __init__(self, available_replicas=None, conditions=None, fully_labeled_repli self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if conditions is not None: - self.conditions = conditions + self.conditions = conditions if fully_labeled_replicas is not None: - self.fully_labeled_replicas = fully_labeled_replicas + self.fully_labeled_replicas = fully_labeled_replicas if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1ReplicationControllerStatus. - The number of available replicas (ready for at least minReadySeconds) for this replication controller. + """Gets the available_replicas of this V1ReplicationControllerStatus. # noqa: E501 + + The number of available replicas (ready for at least minReadySeconds) for this replication controller. # noqa: E501 - :return: The available_replicas of this V1ReplicationControllerStatus. + :return: The available_replicas of this V1ReplicationControllerStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1ReplicationControllerStatus. - The number of available replicas (ready for at least minReadySeconds) for this replication controller. + """Sets the available_replicas of this V1ReplicationControllerStatus. + + The number of available replicas (ready for at least minReadySeconds) for this replication controller. # noqa: E501 - :param available_replicas: The available_replicas of this V1ReplicationControllerStatus. + :param available_replicas: The available_replicas of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ @@ -98,22 +96,22 @@ def available_replicas(self, available_replicas): @property def conditions(self): - """ - Gets the conditions of this V1ReplicationControllerStatus. - Represents the latest available observations of a replication controller's current state. + """Gets the conditions of this V1ReplicationControllerStatus. # noqa: E501 + + Represents the latest available observations of a replication controller's current state. # noqa: E501 - :return: The conditions of this V1ReplicationControllerStatus. + :return: The conditions of this V1ReplicationControllerStatus. # noqa: E501 :rtype: list[V1ReplicationControllerCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1ReplicationControllerStatus. - Represents the latest available observations of a replication controller's current state. + """Sets the conditions of this V1ReplicationControllerStatus. - :param conditions: The conditions of this V1ReplicationControllerStatus. + Represents the latest available observations of a replication controller's current state. # noqa: E501 + + :param conditions: The conditions of this V1ReplicationControllerStatus. # noqa: E501 :type: list[V1ReplicationControllerCondition] """ @@ -121,22 +119,22 @@ def conditions(self, conditions): @property def fully_labeled_replicas(self): - """ - Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. - The number of pods that have labels matching the labels of the pod template of the replication controller. + """Gets the fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 - :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. + The number of pods that have labels matching the labels of the pod template of the replication controller. # noqa: E501 + + :return: The fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): - """ - Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. - The number of pods that have labels matching the labels of the pod template of the replication controller. + """Sets the fully_labeled_replicas of this V1ReplicationControllerStatus. + + The number of pods that have labels matching the labels of the pod template of the replication controller. # noqa: E501 - :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. + :param fully_labeled_replicas: The fully_labeled_replicas of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ @@ -144,22 +142,22 @@ def fully_labeled_replicas(self, fully_labeled_replicas): @property def observed_generation(self): - """ - Gets the observed_generation of this V1ReplicationControllerStatus. - ObservedGeneration reflects the generation of the most recently observed replication controller. + """Gets the observed_generation of this V1ReplicationControllerStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed replication controller. # noqa: E501 - :return: The observed_generation of this V1ReplicationControllerStatus. + :return: The observed_generation of this V1ReplicationControllerStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1ReplicationControllerStatus. - ObservedGeneration reflects the generation of the most recently observed replication controller. + """Sets the observed_generation of this V1ReplicationControllerStatus. + + ObservedGeneration reflects the generation of the most recently observed replication controller. # noqa: E501 - :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. + :param observed_generation: The observed_generation of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ @@ -167,22 +165,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1ReplicationControllerStatus. - The number of ready replicas for this replication controller. + """Gets the ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 - :return: The ready_replicas of this V1ReplicationControllerStatus. + The number of ready replicas for this replication controller. # noqa: E501 + + :return: The ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1ReplicationControllerStatus. - The number of ready replicas for this replication controller. + """Sets the ready_replicas of this V1ReplicationControllerStatus. - :param ready_replicas: The ready_replicas of this V1ReplicationControllerStatus. + The number of ready replicas for this replication controller. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ @@ -190,36 +188,34 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1ReplicationControllerStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """Gets the replicas of this V1ReplicationControllerStatus. # noqa: E501 + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1ReplicationControllerStatus. + :return: The replicas of this V1ReplicationControllerStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ReplicationControllerStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """Sets the replicas of this V1ReplicationControllerStatus. + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1ReplicationControllerStatus. + :param replicas: The replicas of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +236,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ReplicationControllerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_attributes.py b/kubernetes/client/models/v1_resource_attributes.py index 71971a4733..5816f142ac 100644 --- a/kubernetes/client/models/v1_resource_attributes.py +++ b/kubernetes/client/models/v1_resource_attributes.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'group': 'str', 'name': 'str', 'namespace': 'str', @@ -50,10 +50,8 @@ class V1ResourceAttributes(object): 'version': 'version' } - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): - """ - V1ResourceAttributes - a model defined in Swagger - """ + def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): # noqa: E501 + """V1ResourceAttributes - a model defined in OpenAPI""" # noqa: E501 self._group = None self._name = None @@ -65,38 +63,38 @@ def __init__(self, group=None, name=None, namespace=None, resource=None, subreso self.discriminator = None if group is not None: - self.group = group + self.group = group if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if resource is not None: - self.resource = resource + self.resource = resource if subresource is not None: - self.subresource = subresource + self.subresource = subresource if verb is not None: - self.verb = verb + self.verb = verb if version is not None: - self.version = version + self.version = version @property def group(self): - """ - Gets the group of this V1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. + """Gets the group of this V1ResourceAttributes. # noqa: E501 + + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 - :return: The group of this V1ResourceAttributes. + :return: The group of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. + """Sets the group of this V1ResourceAttributes. - :param group: The group of this V1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 + + :param group: The group of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -104,22 +102,22 @@ def group(self, group): @property def name(self): - """ - Gets the name of this V1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + """Gets the name of this V1ResourceAttributes. # noqa: E501 - :return: The name of this V1ResourceAttributes. + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 + + :return: The name of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + """Sets the name of this V1ResourceAttributes. + + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 - :param name: The name of this V1ResourceAttributes. + :param name: The name of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -127,22 +125,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + """Gets the namespace of this V1ResourceAttributes. # noqa: E501 + + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 - :return: The namespace of this V1ResourceAttributes. + :return: The namespace of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + """Sets the namespace of this V1ResourceAttributes. - :param namespace: The namespace of this V1ResourceAttributes. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 + + :param namespace: The namespace of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -150,22 +148,22 @@ def namespace(self, namespace): @property def resource(self): - """ - Gets the resource of this V1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. + """Gets the resource of this V1ResourceAttributes. # noqa: E501 + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 - :return: The resource of this V1ResourceAttributes. + :return: The resource of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. + """Sets the resource of this V1ResourceAttributes. + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 - :param resource: The resource of this V1ResourceAttributes. + :param resource: The resource of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -173,22 +171,22 @@ def resource(self, resource): @property def subresource(self): - """ - Gets the subresource of this V1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. + """Gets the subresource of this V1ResourceAttributes. # noqa: E501 + + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 - :return: The subresource of this V1ResourceAttributes. + :return: The subresource of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._subresource @subresource.setter def subresource(self, subresource): - """ - Sets the subresource of this V1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. + """Sets the subresource of this V1ResourceAttributes. - :param subresource: The subresource of this V1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 + + :param subresource: The subresource of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -196,22 +194,22 @@ def subresource(self, subresource): @property def verb(self): - """ - Gets the verb of this V1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Gets the verb of this V1ResourceAttributes. # noqa: E501 + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :return: The verb of this V1ResourceAttributes. + :return: The verb of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._verb @verb.setter def verb(self, verb): - """ - Sets the verb of this V1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Sets the verb of this V1ResourceAttributes. + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :param verb: The verb of this V1ResourceAttributes. + :param verb: The verb of this V1ResourceAttributes. # noqa: E501 :type: str """ @@ -219,34 +217,32 @@ def verb(self, verb): @property def version(self): - """ - Gets the version of this V1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. + """Gets the version of this V1ResourceAttributes. # noqa: E501 - :return: The version of this V1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :return: The version of this V1ResourceAttributes. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. + """Sets the version of this V1ResourceAttributes. - :param version: The version of this V1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :param version: The version of this V1ResourceAttributes. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +263,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceAttributes): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index 6c3256ddd8..abf466b2d5 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceFieldSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'container_name': 'str', 'divisor': 'str', 'resource': 'str' @@ -42,10 +42,8 @@ class V1ResourceFieldSelector(object): 'resource': 'resource' } - def __init__(self, container_name=None, divisor=None, resource=None): - """ - V1ResourceFieldSelector - a model defined in Swagger - """ + def __init__(self, container_name=None, divisor=None, resource=None): # noqa: E501 + """V1ResourceFieldSelector - a model defined in OpenAPI""" # noqa: E501 self._container_name = None self._divisor = None @@ -53,29 +51,29 @@ def __init__(self, container_name=None, divisor=None, resource=None): self.discriminator = None if container_name is not None: - self.container_name = container_name + self.container_name = container_name if divisor is not None: - self.divisor = divisor + self.divisor = divisor self.resource = resource @property def container_name(self): - """ - Gets the container_name of this V1ResourceFieldSelector. - Container name: required for volumes, optional for env vars + """Gets the container_name of this V1ResourceFieldSelector. # noqa: E501 - :return: The container_name of this V1ResourceFieldSelector. + Container name: required for volumes, optional for env vars # noqa: E501 + + :return: The container_name of this V1ResourceFieldSelector. # noqa: E501 :rtype: str """ return self._container_name @container_name.setter def container_name(self, container_name): - """ - Sets the container_name of this V1ResourceFieldSelector. - Container name: required for volumes, optional for env vars + """Sets the container_name of this V1ResourceFieldSelector. - :param container_name: The container_name of this V1ResourceFieldSelector. + Container name: required for volumes, optional for env vars # noqa: E501 + + :param container_name: The container_name of this V1ResourceFieldSelector. # noqa: E501 :type: str """ @@ -83,22 +81,22 @@ def container_name(self, container_name): @property def divisor(self): - """ - Gets the divisor of this V1ResourceFieldSelector. - Specifies the output format of the exposed resources, defaults to \"1\" + """Gets the divisor of this V1ResourceFieldSelector. # noqa: E501 - :return: The divisor of this V1ResourceFieldSelector. + Specifies the output format of the exposed resources, defaults to \"1\" # noqa: E501 + + :return: The divisor of this V1ResourceFieldSelector. # noqa: E501 :rtype: str """ return self._divisor @divisor.setter def divisor(self, divisor): - """ - Sets the divisor of this V1ResourceFieldSelector. - Specifies the output format of the exposed resources, defaults to \"1\" + """Sets the divisor of this V1ResourceFieldSelector. + + Specifies the output format of the exposed resources, defaults to \"1\" # noqa: E501 - :param divisor: The divisor of this V1ResourceFieldSelector. + :param divisor: The divisor of this V1ResourceFieldSelector. # noqa: E501 :type: str """ @@ -106,36 +104,34 @@ def divisor(self, divisor): @property def resource(self): - """ - Gets the resource of this V1ResourceFieldSelector. - Required: resource to select + """Gets the resource of this V1ResourceFieldSelector. # noqa: E501 + + Required: resource to select # noqa: E501 - :return: The resource of this V1ResourceFieldSelector. + :return: The resource of this V1ResourceFieldSelector. # noqa: E501 :rtype: str """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V1ResourceFieldSelector. - Required: resource to select + """Sets the resource of this V1ResourceFieldSelector. + + Required: resource to select # noqa: E501 - :param resource: The resource of this V1ResourceFieldSelector. + :param resource: The resource of this V1ResourceFieldSelector. # noqa: E501 :type: str """ if resource is None: - raise ValueError("Invalid value for `resource`, must not be `None`") + raise ValueError("Invalid value for `resource`, must not be `None`") # noqa: E501 self._resource = resource def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceFieldSelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_quota.py b/kubernetes/client/models/v1_resource_quota.py index 98782c9d6e..a338688273 100644 --- a/kubernetes/client/models/v1_resource_quota.py +++ b/kubernetes/client/models/v1_resource_quota.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceQuota(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1ResourceQuota(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1ResourceQuota - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1ResourceQuota - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1ResourceQuota. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ResourceQuota. # noqa: E501 - :return: The api_version of this V1ResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1ResourceQuota. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ResourceQuota. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ResourceQuota. - :param api_version: The api_version of this V1ResourceQuota. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1ResourceQuota. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1ResourceQuota. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ResourceQuota. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ResourceQuota. + :return: The kind of this V1ResourceQuota. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ResourceQuota. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ResourceQuota. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ResourceQuota. + :param kind: The kind of this V1ResourceQuota. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ResourceQuota. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ResourceQuota. # noqa: E501 + - :return: The metadata of this V1ResourceQuota. + :return: The metadata of this V1ResourceQuota. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ResourceQuota. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ResourceQuota. + - :param metadata: The metadata of this V1ResourceQuota. + :param metadata: The metadata of this V1ResourceQuota. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1ResourceQuota. - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1ResourceQuota. # noqa: E501 + - :return: The spec of this V1ResourceQuota. + :return: The spec of this V1ResourceQuota. # noqa: E501 :rtype: V1ResourceQuotaSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1ResourceQuota. - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1ResourceQuota. - :param spec: The spec of this V1ResourceQuota. + + :param spec: The spec of this V1ResourceQuota. # noqa: E501 :type: V1ResourceQuotaSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1ResourceQuota. - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1ResourceQuota. # noqa: E501 - :return: The status of this V1ResourceQuota. + + :return: The status of this V1ResourceQuota. # noqa: E501 :rtype: V1ResourceQuotaStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1ResourceQuota. - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1ResourceQuota. - :param status: The status of this V1ResourceQuota. + + :param status: The status of this V1ResourceQuota. # noqa: E501 :type: V1ResourceQuotaStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceQuota): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_quota_list.py b/kubernetes/client/models/v1_resource_quota_list.py index 0a7b2dd961..2d15b5cceb 100644 --- a/kubernetes/client/models/v1_resource_quota_list.py +++ b/kubernetes/client/models/v1_resource_quota_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceQuotaList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ResourceQuota]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ResourceQuotaList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ResourceQuotaList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ResourceQuotaList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ResourceQuotaList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ResourceQuotaList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ResourceQuotaList. + :return: The api_version of this V1ResourceQuotaList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ResourceQuotaList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ResourceQuotaList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ResourceQuotaList. + :param api_version: The api_version of this V1ResourceQuotaList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ResourceQuotaList. - Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Gets the items of this V1ResourceQuotaList. # noqa: E501 + + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 - :return: The items of this V1ResourceQuotaList. + :return: The items of this V1ResourceQuotaList. # noqa: E501 :rtype: list[V1ResourceQuota] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ResourceQuotaList. - Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Sets the items of this V1ResourceQuotaList. + + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 - :param items: The items of this V1ResourceQuotaList. + :param items: The items of this V1ResourceQuotaList. # noqa: E501 :type: list[V1ResourceQuota] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ResourceQuotaList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ResourceQuotaList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ResourceQuotaList. + :return: The kind of this V1ResourceQuotaList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ResourceQuotaList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ResourceQuotaList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ResourceQuotaList. + :param kind: The kind of this V1ResourceQuotaList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ResourceQuotaList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ResourceQuotaList. # noqa: E501 + - :return: The metadata of this V1ResourceQuotaList. + :return: The metadata of this V1ResourceQuotaList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ResourceQuotaList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ResourceQuotaList. + - :param metadata: The metadata of this V1ResourceQuotaList. + :param metadata: The metadata of this V1ResourceQuotaList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceQuotaList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index 4b233721c1..25e47270fd 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceQuotaSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hard': 'dict(str, str)', 'scope_selector': 'V1ScopeSelector', 'scopes': 'list[str]' @@ -42,10 +42,8 @@ class V1ResourceQuotaSpec(object): 'scopes': 'scopes' } - def __init__(self, hard=None, scope_selector=None, scopes=None): - """ - V1ResourceQuotaSpec - a model defined in Swagger - """ + def __init__(self, hard=None, scope_selector=None, scopes=None): # noqa: E501 + """V1ResourceQuotaSpec - a model defined in OpenAPI""" # noqa: E501 self._hard = None self._scope_selector = None @@ -53,30 +51,30 @@ def __init__(self, hard=None, scope_selector=None, scopes=None): self.discriminator = None if hard is not None: - self.hard = hard + self.hard = hard if scope_selector is not None: - self.scope_selector = scope_selector + self.scope_selector = scope_selector if scopes is not None: - self.scopes = scopes + self.scopes = scopes @property def hard(self): - """ - Gets the hard of this V1ResourceQuotaSpec. - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Gets the hard of this V1ResourceQuotaSpec. # noqa: E501 - :return: The hard of this V1ResourceQuotaSpec. + hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :return: The hard of this V1ResourceQuotaSpec. # noqa: E501 :rtype: dict(str, str) """ return self._hard @hard.setter def hard(self, hard): - """ - Sets the hard of this V1ResourceQuotaSpec. - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Sets the hard of this V1ResourceQuotaSpec. - :param hard: The hard of this V1ResourceQuotaSpec. + hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :param hard: The hard of this V1ResourceQuotaSpec. # noqa: E501 :type: dict(str, str) """ @@ -84,22 +82,20 @@ def hard(self, hard): @property def scope_selector(self): - """ - Gets the scope_selector of this V1ResourceQuotaSpec. - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + """Gets the scope_selector of this V1ResourceQuotaSpec. # noqa: E501 - :return: The scope_selector of this V1ResourceQuotaSpec. + + :return: The scope_selector of this V1ResourceQuotaSpec. # noqa: E501 :rtype: V1ScopeSelector """ return self._scope_selector @scope_selector.setter def scope_selector(self, scope_selector): - """ - Sets the scope_selector of this V1ResourceQuotaSpec. - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + """Sets the scope_selector of this V1ResourceQuotaSpec. + - :param scope_selector: The scope_selector of this V1ResourceQuotaSpec. + :param scope_selector: The scope_selector of this V1ResourceQuotaSpec. # noqa: E501 :type: V1ScopeSelector """ @@ -107,34 +103,32 @@ def scope_selector(self, scope_selector): @property def scopes(self): - """ - Gets the scopes of this V1ResourceQuotaSpec. - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + """Gets the scopes of this V1ResourceQuotaSpec. # noqa: E501 + + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. # noqa: E501 - :return: The scopes of this V1ResourceQuotaSpec. + :return: The scopes of this V1ResourceQuotaSpec. # noqa: E501 :rtype: list[str] """ return self._scopes @scopes.setter def scopes(self, scopes): - """ - Sets the scopes of this V1ResourceQuotaSpec. - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + """Sets the scopes of this V1ResourceQuotaSpec. + + A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. # noqa: E501 - :param scopes: The scopes of this V1ResourceQuotaSpec. + :param scopes: The scopes of this V1ResourceQuotaSpec. # noqa: E501 :type: list[str] """ self._scopes = scopes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +149,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceQuotaSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index cbdab9e14b..1c13fa30c0 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceQuotaStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'hard': 'dict(str, str)', 'used': 'dict(str, str)' } @@ -40,38 +40,36 @@ class V1ResourceQuotaStatus(object): 'used': 'used' } - def __init__(self, hard=None, used=None): - """ - V1ResourceQuotaStatus - a model defined in Swagger - """ + def __init__(self, hard=None, used=None): # noqa: E501 + """V1ResourceQuotaStatus - a model defined in OpenAPI""" # noqa: E501 self._hard = None self._used = None self.discriminator = None if hard is not None: - self.hard = hard + self.hard = hard if used is not None: - self.used = used + self.used = used @property def hard(self): - """ - Gets the hard of this V1ResourceQuotaStatus. - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Gets the hard of this V1ResourceQuotaStatus. # noqa: E501 + + Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 - :return: The hard of this V1ResourceQuotaStatus. + :return: The hard of this V1ResourceQuotaStatus. # noqa: E501 :rtype: dict(str, str) """ return self._hard @hard.setter def hard(self, hard): - """ - Sets the hard of this V1ResourceQuotaStatus. - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """Sets the hard of this V1ResourceQuotaStatus. - :param hard: The hard of this V1ResourceQuotaStatus. + Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ # noqa: E501 + + :param hard: The hard of this V1ResourceQuotaStatus. # noqa: E501 :type: dict(str, str) """ @@ -79,34 +77,32 @@ def hard(self, hard): @property def used(self): - """ - Gets the used of this V1ResourceQuotaStatus. - Used is the current observed total usage of the resource in the namespace. + """Gets the used of this V1ResourceQuotaStatus. # noqa: E501 + + Used is the current observed total usage of the resource in the namespace. # noqa: E501 - :return: The used of this V1ResourceQuotaStatus. + :return: The used of this V1ResourceQuotaStatus. # noqa: E501 :rtype: dict(str, str) """ return self._used @used.setter def used(self, used): - """ - Sets the used of this V1ResourceQuotaStatus. - Used is the current observed total usage of the resource in the namespace. + """Sets the used of this V1ResourceQuotaStatus. + + Used is the current observed total usage of the resource in the namespace. # noqa: E501 - :param used: The used of this V1ResourceQuotaStatus. + :param used: The used of this V1ResourceQuotaStatus. # noqa: E501 :type: dict(str, str) """ self._used = used def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceQuotaStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 8e4eebde49..cbab2861ff 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceRequirements(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'limits': 'dict(str, str)', 'requests': 'dict(str, str)' } @@ -40,38 +40,36 @@ class V1ResourceRequirements(object): 'requests': 'requests' } - def __init__(self, limits=None, requests=None): - """ - V1ResourceRequirements - a model defined in Swagger - """ + def __init__(self, limits=None, requests=None): # noqa: E501 + """V1ResourceRequirements - a model defined in OpenAPI""" # noqa: E501 self._limits = None self._requests = None self.discriminator = None if limits is not None: - self.limits = limits + self.limits = limits if requests is not None: - self.requests = requests + self.requests = requests @property def limits(self): - """ - Gets the limits of this V1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Gets the limits of this V1ResourceRequirements. # noqa: E501 + + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 - :return: The limits of this V1ResourceRequirements. + :return: The limits of this V1ResourceRequirements. # noqa: E501 :rtype: dict(str, str) """ return self._limits @limits.setter def limits(self, limits): - """ - Sets the limits of this V1ResourceRequirements. - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Sets the limits of this V1ResourceRequirements. - :param limits: The limits of this V1ResourceRequirements. + Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 + + :param limits: The limits of this V1ResourceRequirements. # noqa: E501 :type: dict(str, str) """ @@ -79,34 +77,32 @@ def limits(self, limits): @property def requests(self): - """ - Gets the requests of this V1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Gets the requests of this V1ResourceRequirements. # noqa: E501 + + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 - :return: The requests of this V1ResourceRequirements. + :return: The requests of this V1ResourceRequirements. # noqa: E501 :rtype: dict(str, str) """ return self._requests @requests.setter def requests(self, requests): - """ - Sets the requests of this V1ResourceRequirements. - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """Sets the requests of this V1ResourceRequirements. + + Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ # noqa: E501 - :param requests: The requests of this V1ResourceRequirements. + :param requests: The requests of this V1ResourceRequirements. # noqa: E501 :type: dict(str, str) """ self._requests = requests def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceRequirements): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_resource_rule.py b/kubernetes/client/models/v1_resource_rule.py index f40fcc2317..d892ad4f91 100644 --- a/kubernetes/client/models/v1_resource_rule.py +++ b/kubernetes/client/models/v1_resource_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ResourceRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', @@ -44,10 +44,8 @@ class V1ResourceRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): - """ - V1ResourceRule - a model defined in Swagger - """ + def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + """V1ResourceRule - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._resource_names = None @@ -56,31 +54,31 @@ def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=N self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if resource_names is not None: - self.resource_names = resource_names + self.resource_names = resource_names if resources is not None: - self.resources = resources + self.resources = resources self.verbs = verbs @property def api_groups(self): - """ - Gets the api_groups of this V1ResourceRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + """Gets the api_groups of this V1ResourceRule. # noqa: E501 + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 - :return: The api_groups of this V1ResourceRule. + :return: The api_groups of this V1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1ResourceRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + """Sets the api_groups of this V1ResourceRule. + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 - :param api_groups: The api_groups of this V1ResourceRule. + :param api_groups: The api_groups of this V1ResourceRule. # noqa: E501 :type: list[str] """ @@ -88,22 +86,22 @@ def api_groups(self, api_groups): @property def resource_names(self): - """ - Gets the resource_names of this V1ResourceRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + """Gets the resource_names of this V1ResourceRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 - :return: The resource_names of this V1ResourceRule. + :return: The resource_names of this V1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._resource_names @resource_names.setter def resource_names(self, resource_names): - """ - Sets the resource_names of this V1ResourceRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + """Sets the resource_names of this V1ResourceRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 - :param resource_names: The resource_names of this V1ResourceRule. + :param resource_names: The resource_names of this V1ResourceRule. # noqa: E501 :type: list[str] """ @@ -111,22 +109,22 @@ def resource_names(self, resource_names): @property def resources(self): - """ - Gets the resources of this V1ResourceRule. - Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + """Gets the resources of this V1ResourceRule. # noqa: E501 + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 - :return: The resources of this V1ResourceRule. + :return: The resources of this V1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1ResourceRule. - Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + """Sets the resources of this V1ResourceRule. + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 - :param resources: The resources of this V1ResourceRule. + :param resources: The resources of this V1ResourceRule. # noqa: E501 :type: list[str] """ @@ -134,36 +132,34 @@ def resources(self, resources): @property def verbs(self): - """ - Gets the verbs of this V1ResourceRule. - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Gets the verbs of this V1ResourceRule. # noqa: E501 + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :return: The verbs of this V1ResourceRule. + :return: The verbs of this V1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1ResourceRule. - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Sets the verbs of this V1ResourceRule. + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :param verbs: The verbs of this V1ResourceRule. + :param verbs: The verbs of this V1ResourceRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ResourceRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_role.py b/kubernetes/client/models/v1_role.py index f234812b79..c74197064f 100644 --- a/kubernetes/client/models/v1_role.py +++ b/kubernetes/client/models/v1_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Role(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1Role - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1Role - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, rules=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def api_version(self): - """ - Gets the api_version of this V1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Role. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Role. + :return: The api_version of this V1Role. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Role. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Role. + :param api_version: The api_version of this V1Role. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Role. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Role. + :return: The kind of this V1Role. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Role. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Role. + :param kind: The kind of this V1Role. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Role. - Standard object's metadata. + """Gets the metadata of this V1Role. # noqa: E501 + - :return: The metadata of this V1Role. + :return: The metadata of this V1Role. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Role. - Standard object's metadata. + """Sets the metadata of this V1Role. + - :param metadata: The metadata of this V1Role. + :param metadata: The metadata of this V1Role. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1Role. - Rules holds all the PolicyRules for this Role + """Gets the rules of this V1Role. # noqa: E501 + + Rules holds all the PolicyRules for this Role # noqa: E501 - :return: The rules of this V1Role. + :return: The rules of this V1Role. # noqa: E501 :rtype: list[V1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1Role. - Rules holds all the PolicyRules for this Role + """Sets the rules of this V1Role. + + Rules holds all the PolicyRules for this Role # noqa: E501 - :param rules: The rules of this V1Role. + :param rules: The rules of this V1Role. # noqa: E501 :type: list[V1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Role): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_role_binding.py b/kubernetes/client/models/v1_role_binding.py index 220ca219da..d5867e44d9 100644 --- a/kubernetes/client/models/v1_role_binding.py +++ b/kubernetes/client/models/v1_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1RoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1RoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1RoleBinding. # noqa: E501 - :return: The api_version of this V1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1RoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1RoleBinding. - :param api_version: The api_version of this V1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1RoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1RoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1RoleBinding. + :return: The kind of this V1RoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1RoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1RoleBinding. + :param kind: The kind of this V1RoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1RoleBinding. - Standard object's metadata. + """Gets the metadata of this V1RoleBinding. # noqa: E501 + - :return: The metadata of this V1RoleBinding. + :return: The metadata of this V1RoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1RoleBinding. - Standard object's metadata. + """Sets the metadata of this V1RoleBinding. + - :param metadata: The metadata of this V1RoleBinding. + :param metadata: The metadata of this V1RoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1RoleBinding. # noqa: E501 + - :return: The role_ref of this V1RoleBinding. + :return: The role_ref of this V1RoleBinding. # noqa: E501 :rtype: V1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1RoleBinding. - :param role_ref: The role_ref of this V1RoleBinding. + + :param role_ref: The role_ref of this V1RoleBinding. # noqa: E501 :type: V1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1RoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1RoleBinding. # noqa: E501 - :return: The subjects of this V1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1RoleBinding. # noqa: E501 :rtype: list[V1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1RoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1RoleBinding. - :param subjects: The subjects of this V1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1RoleBinding. # noqa: E501 :type: list[V1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_role_binding_list.py b/kubernetes/client/models/v1_role_binding_list.py index c910591eca..b3e7b721a2 100644 --- a/kubernetes/client/models/v1_role_binding_list.py +++ b/kubernetes/client/models/v1_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1RoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1RoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1RoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1RoleBindingList. + :return: The api_version of this V1RoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1RoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1RoleBindingList. + :param api_version: The api_version of this V1RoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1RoleBindingList. - Items is a list of RoleBindings + """Gets the items of this V1RoleBindingList. # noqa: E501 + + Items is a list of RoleBindings # noqa: E501 - :return: The items of this V1RoleBindingList. + :return: The items of this V1RoleBindingList. # noqa: E501 :rtype: list[V1RoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1RoleBindingList. - Items is a list of RoleBindings + """Sets the items of this V1RoleBindingList. + + Items is a list of RoleBindings # noqa: E501 - :param items: The items of this V1RoleBindingList. + :param items: The items of this V1RoleBindingList. # noqa: E501 :type: list[V1RoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1RoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1RoleBindingList. + :return: The kind of this V1RoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1RoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1RoleBindingList. + :param kind: The kind of this V1RoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1RoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1RoleBindingList. # noqa: E501 + - :return: The metadata of this V1RoleBindingList. + :return: The metadata of this V1RoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1RoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1RoleBindingList. + - :param metadata: The metadata of this V1RoleBindingList. + :param metadata: The metadata of this V1RoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_role_list.py b/kubernetes/client/models/v1_role_list.py index 6b7d000b29..7d189eb965 100644 --- a/kubernetes/client/models/v1_role_list.py +++ b/kubernetes/client/models/v1_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Role]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1RoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1RoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1RoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1RoleList. + :return: The api_version of this V1RoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1RoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1RoleList. + :param api_version: The api_version of this V1RoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1RoleList. - Items is a list of Roles + """Gets the items of this V1RoleList. # noqa: E501 + + Items is a list of Roles # noqa: E501 - :return: The items of this V1RoleList. + :return: The items of this V1RoleList. # noqa: E501 :rtype: list[V1Role] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1RoleList. - Items is a list of Roles + """Sets the items of this V1RoleList. + + Items is a list of Roles # noqa: E501 - :param items: The items of this V1RoleList. + :param items: The items of this V1RoleList. # noqa: E501 :type: list[V1Role] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1RoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1RoleList. + :return: The kind of this V1RoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1RoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1RoleList. + :param kind: The kind of this V1RoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1RoleList. - Standard object's metadata. + """Gets the metadata of this V1RoleList. # noqa: E501 + - :return: The metadata of this V1RoleList. + :return: The metadata of this V1RoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1RoleList. - Standard object's metadata. + """Sets the metadata of this V1RoleList. + - :param metadata: The metadata of this V1RoleList. + :param metadata: The metadata of this V1RoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_role_ref.py b/kubernetes/client/models/v1_role_ref.py index eb8533d156..1bc5cf55df 100644 --- a/kubernetes/client/models/v1_role_ref.py +++ b/kubernetes/client/models/v1_role_ref.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RoleRef(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): - """ - V1RoleRef - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + """V1RoleRef - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -58,86 +56,84 @@ def __init__(self, api_group=None, kind=None, name=None): @property def api_group(self): - """ - Gets the api_group of this V1RoleRef. - APIGroup is the group for the resource being referenced + """Gets the api_group of this V1RoleRef. # noqa: E501 - :return: The api_group of this V1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :return: The api_group of this V1RoleRef. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1RoleRef. - APIGroup is the group for the resource being referenced + """Sets the api_group of this V1RoleRef. - :param api_group: The api_group of this V1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :param api_group: The api_group of this V1RoleRef. # noqa: E501 :type: str """ if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") + raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @property def kind(self): - """ - Gets the kind of this V1RoleRef. - Kind is the type of resource being referenced + """Gets the kind of this V1RoleRef. # noqa: E501 - :return: The kind of this V1RoleRef. + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this V1RoleRef. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1RoleRef. - Kind is the type of resource being referenced + """Sets the kind of this V1RoleRef. + + Kind is the type of resource being referenced # noqa: E501 - :param kind: The kind of this V1RoleRef. + :param kind: The kind of this V1RoleRef. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1RoleRef. - Name is the name of resource being referenced + """Gets the name of this V1RoleRef. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 - :return: The name of this V1RoleRef. + :return: The name of this V1RoleRef. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1RoleRef. - Name is the name of resource being referenced + """Sets the name of this V1RoleRef. + + Name is the name of resource being referenced # noqa: E501 - :param name: The name of this V1RoleRef. + :param name: The name of this V1RoleRef. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +154,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RoleRef): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_rolling_update_daemon_set.py b/kubernetes/client/models/v1_rolling_update_daemon_set.py index 9c0f95ffab..cee2d9e139 100644 --- a/kubernetes/client/models/v1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1_rolling_update_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RollingUpdateDaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_unavailable': 'object' } @@ -38,47 +38,43 @@ class V1RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): - """ - V1RollingUpdateDaemonSet - a model defined in Swagger - """ + def __init__(self, max_unavailable=None): # noqa: E501 + """V1RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 self._max_unavailable = None self.discriminator = None if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Gets the max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :return: The max_unavailable of this V1RollingUpdateDaemonSet. + :return: The max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Sets the max_unavailable of this V1RollingUpdateDaemonSet. + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :param max_unavailable: The max_unavailable of this V1RollingUpdateDaemonSet. + :param max_unavailable: The max_unavailable of this V1RollingUpdateDaemonSet. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RollingUpdateDaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_rolling_update_deployment.py b/kubernetes/client/models/v1_rolling_update_deployment.py index 6dd913675e..5a3bef41f0 100644 --- a/kubernetes/client/models/v1_rolling_update_deployment.py +++ b/kubernetes/client/models/v1_rolling_update_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_surge': 'object', 'max_unavailable': 'object' } @@ -40,38 +40,36 @@ class V1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): - """ - V1RollingUpdateDeployment - a model defined in Swagger - """ + def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + """V1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 self._max_surge = None self._max_unavailable = None self.discriminator = None if max_surge is not None: - self.max_surge = max_surge + self.max_surge = max_surge if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_surge(self): - """ - Gets the max_surge of this V1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Gets the max_surge of this V1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 - :return: The max_surge of this V1RollingUpdateDeployment. + :return: The max_surge of this V1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_surge @max_surge.setter def max_surge(self, max_surge): - """ - Sets the max_surge of this V1RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Sets the max_surge of this V1RollingUpdateDeployment. - :param max_surge: The max_surge of this V1RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :param max_surge: The max_surge of this V1RollingUpdateDeployment. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def max_surge(self, max_surge): @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Gets the max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :return: The max_unavailable of this V1RollingUpdateDeployment. + :return: The max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Sets the max_unavailable of this V1RollingUpdateDeployment. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :param max_unavailable: The max_unavailable of this V1RollingUpdateDeployment. + :param max_unavailable: The max_unavailable of this V1RollingUpdateDeployment. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RollingUpdateDeployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py index c7e87b38bb..ff18fd7854 100644 --- a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1RollingUpdateStatefulSetStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'partition': 'int' } @@ -38,47 +38,43 @@ class V1RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): - """ - V1RollingUpdateStatefulSetStrategy - a model defined in Swagger - """ + def __init__(self, partition=None): # noqa: E501 + """V1RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 self._partition = None self.discriminator = None if partition is not None: - self.partition = partition + self.partition = partition @property def partition(self): - """ - Gets the partition of this V1RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + """Gets the partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 + + Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. # noqa: E501 - :return: The partition of this V1RollingUpdateStatefulSetStrategy. + :return: The partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 :rtype: int """ return self._partition @partition.setter def partition(self, partition): - """ - Sets the partition of this V1RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + """Sets the partition of this V1RollingUpdateStatefulSetStrategy. + + Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. # noqa: E501 - :param partition: The partition of this V1RollingUpdateStatefulSetStrategy. + :param partition: The partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501 :type: int """ self._partition = partition def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1RollingUpdateStatefulSetStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scale.py b/kubernetes/client/models/v1_scale.py index 1bb5b59022..86bd55a49e 100644 --- a/kubernetes/client/models/v1_scale.py +++ b/kubernetes/client/models/v1_scale.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Scale - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Scale - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Scale. # noqa: E501 - :return: The api_version of this V1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Scale. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Scale. - :param api_version: The api_version of this V1Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Scale. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Scale. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Scale. + :return: The kind of this V1Scale. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Scale. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Scale. + :param kind: The kind of this V1Scale. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Gets the metadata of this V1Scale. # noqa: E501 + - :return: The metadata of this V1Scale. + :return: The metadata of this V1Scale. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Sets the metadata of this V1Scale. + - :param metadata: The metadata of this V1Scale. + :param metadata: The metadata of this V1Scale. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Gets the spec of this V1Scale. # noqa: E501 + - :return: The spec of this V1Scale. + :return: The spec of this V1Scale. # noqa: E501 :rtype: V1ScaleSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Sets the spec of this V1Scale. - :param spec: The spec of this V1Scale. + + :param spec: The spec of this V1Scale. # noqa: E501 :type: V1ScaleSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + """Gets the status of this V1Scale. # noqa: E501 - :return: The status of this V1Scale. + + :return: The status of this V1Scale. # noqa: E501 :rtype: V1ScaleStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + """Sets the status of this V1Scale. - :param status: The status of this V1Scale. + + :param status: The status of this V1Scale. # noqa: E501 :type: V1ScaleStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Scale): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py index 4329ac3824..e35ce6084f 100644 --- a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScaleIOPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'gateway': 'str', 'protection_domain': 'str', @@ -56,10 +56,8 @@ class V1ScaleIOPersistentVolumeSource(object): 'volume_name': 'volumeName' } - def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): - """ - V1ScaleIOPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): # noqa: E501 + """V1ScaleIOPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._gateway = None @@ -74,41 +72,41 @@ def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.gateway = gateway if protection_domain is not None: - self.protection_domain = protection_domain + self.protection_domain = protection_domain if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.secret_ref = secret_ref if ssl_enabled is not None: - self.ssl_enabled = ssl_enabled + self.ssl_enabled = ssl_enabled if storage_mode is not None: - self.storage_mode = storage_mode + self.storage_mode = storage_mode if storage_pool is not None: - self.storage_pool = storage_pool + self.storage_pool = storage_pool self.system = system if volume_name is not None: - self.volume_name = volume_name + self.volume_name = volume_name @property def fs_type(self): - """ - Gets the fs_type of this V1ScaleIOPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" + """Gets the fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 - :return: The fs_type of this V1ScaleIOPersistentVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" # noqa: E501 + + :return: The fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1ScaleIOPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" + """Sets the fs_type of this V1ScaleIOPersistentVolumeSource. - :param fs_type: The fs_type of this V1ScaleIOPersistentVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" # noqa: E501 + + :param fs_type: The fs_type of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ @@ -116,47 +114,47 @@ def fs_type(self, fs_type): @property def gateway(self): - """ - Gets the gateway of this V1ScaleIOPersistentVolumeSource. - The host address of the ScaleIO API Gateway. + """Gets the gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 - :return: The gateway of this V1ScaleIOPersistentVolumeSource. + The host address of the ScaleIO API Gateway. # noqa: E501 + + :return: The gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._gateway @gateway.setter def gateway(self, gateway): - """ - Sets the gateway of this V1ScaleIOPersistentVolumeSource. - The host address of the ScaleIO API Gateway. + """Sets the gateway of this V1ScaleIOPersistentVolumeSource. + + The host address of the ScaleIO API Gateway. # noqa: E501 - :param gateway: The gateway of this V1ScaleIOPersistentVolumeSource. + :param gateway: The gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ if gateway is None: - raise ValueError("Invalid value for `gateway`, must not be `None`") + raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 self._gateway = gateway @property def protection_domain(self): - """ - Gets the protection_domain of this V1ScaleIOPersistentVolumeSource. - The name of the ScaleIO Protection Domain for the configured storage. + """Gets the protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + The name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 - :return: The protection_domain of this V1ScaleIOPersistentVolumeSource. + :return: The protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._protection_domain @protection_domain.setter def protection_domain(self, protection_domain): - """ - Sets the protection_domain of this V1ScaleIOPersistentVolumeSource. - The name of the ScaleIO Protection Domain for the configured storage. + """Sets the protection_domain of this V1ScaleIOPersistentVolumeSource. + + The name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 - :param protection_domain: The protection_domain of this V1ScaleIOPersistentVolumeSource. + :param protection_domain: The protection_domain of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ @@ -164,22 +162,22 @@ def protection_domain(self, protection_domain): @property def read_only(self): - """ - Gets the read_only of this V1ScaleIOPersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1ScaleIOPersistentVolumeSource. + :return: The read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1ScaleIOPersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1ScaleIOPersistentVolumeSource. - :param read_only: The read_only of this V1ScaleIOPersistentVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -187,47 +185,45 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1ScaleIOPersistentVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + """Gets the secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 - :return: The secret_ref of this V1ScaleIOPersistentVolumeSource. + + :return: The secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: V1SecretReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1ScaleIOPersistentVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + """Sets the secret_ref of this V1ScaleIOPersistentVolumeSource. - :param secret_ref: The secret_ref of this V1ScaleIOPersistentVolumeSource. + + :param secret_ref: The secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ if secret_ref is None: - raise ValueError("Invalid value for `secret_ref`, must not be `None`") + raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 self._secret_ref = secret_ref @property def ssl_enabled(self): - """ - Gets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false + """Gets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + Flag to enable/disable SSL communication with Gateway, default false # noqa: E501 - :return: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. + :return: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._ssl_enabled @ssl_enabled.setter def ssl_enabled(self, ssl_enabled): - """ - Sets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false + """Sets the ssl_enabled of this V1ScaleIOPersistentVolumeSource. + + Flag to enable/disable SSL communication with Gateway, default false # noqa: E501 - :param ssl_enabled: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. + :param ssl_enabled: The ssl_enabled of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -235,22 +231,22 @@ def ssl_enabled(self, ssl_enabled): @property def storage_mode(self): - """ - Gets the storage_mode of this V1ScaleIOPersistentVolumeSource. - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + """Gets the storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 - :return: The storage_mode of this V1ScaleIOPersistentVolumeSource. + :return: The storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._storage_mode @storage_mode.setter def storage_mode(self, storage_mode): - """ - Sets the storage_mode of this V1ScaleIOPersistentVolumeSource. - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + """Sets the storage_mode of this V1ScaleIOPersistentVolumeSource. + + Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 - :param storage_mode: The storage_mode of this V1ScaleIOPersistentVolumeSource. + :param storage_mode: The storage_mode of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ @@ -258,22 +254,22 @@ def storage_mode(self, storage_mode): @property def storage_pool(self): - """ - Gets the storage_pool of this V1ScaleIOPersistentVolumeSource. - The ScaleIO Storage Pool associated with the protection domain. + """Gets the storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 - :return: The storage_pool of this V1ScaleIOPersistentVolumeSource. + The ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :return: The storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._storage_pool @storage_pool.setter def storage_pool(self, storage_pool): - """ - Sets the storage_pool of this V1ScaleIOPersistentVolumeSource. - The ScaleIO Storage Pool associated with the protection domain. + """Sets the storage_pool of this V1ScaleIOPersistentVolumeSource. - :param storage_pool: The storage_pool of this V1ScaleIOPersistentVolumeSource. + The ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :param storage_pool: The storage_pool of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ @@ -281,59 +277,57 @@ def storage_pool(self, storage_pool): @property def system(self): - """ - Gets the system of this V1ScaleIOPersistentVolumeSource. - The name of the storage system as configured in ScaleIO. + """Gets the system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 - :return: The system of this V1ScaleIOPersistentVolumeSource. + The name of the storage system as configured in ScaleIO. # noqa: E501 + + :return: The system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._system @system.setter def system(self, system): - """ - Sets the system of this V1ScaleIOPersistentVolumeSource. - The name of the storage system as configured in ScaleIO. + """Sets the system of this V1ScaleIOPersistentVolumeSource. + + The name of the storage system as configured in ScaleIO. # noqa: E501 - :param system: The system of this V1ScaleIOPersistentVolumeSource. + :param system: The system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ if system is None: - raise ValueError("Invalid value for `system`, must not be `None`") + raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 self._system = system @property def volume_name(self): - """ - Gets the volume_name of this V1ScaleIOPersistentVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. + """Gets the volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 + + The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 - :return: The volume_name of this V1ScaleIOPersistentVolumeSource. + :return: The volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): - """ - Sets the volume_name of this V1ScaleIOPersistentVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. + """Sets the volume_name of this V1ScaleIOPersistentVolumeSource. + + The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 - :param volume_name: The volume_name of this V1ScaleIOPersistentVolumeSource. + :param volume_name: The volume_name of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ self._volume_name = volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -354,28 +348,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScaleIOPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scale_io_volume_source.py b/kubernetes/client/models/v1_scale_io_volume_source.py index 9749e1a88f..834a94402a 100644 --- a/kubernetes/client/models/v1_scale_io_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScaleIOVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'gateway': 'str', 'protection_domain': 'str', @@ -56,10 +56,8 @@ class V1ScaleIOVolumeSource(object): 'volume_name': 'volumeName' } - def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): - """ - V1ScaleIOVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): # noqa: E501 + """V1ScaleIOVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._gateway = None @@ -74,41 +72,41 @@ def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type self.gateway = gateway if protection_domain is not None: - self.protection_domain = protection_domain + self.protection_domain = protection_domain if read_only is not None: - self.read_only = read_only + self.read_only = read_only self.secret_ref = secret_ref if ssl_enabled is not None: - self.ssl_enabled = ssl_enabled + self.ssl_enabled = ssl_enabled if storage_mode is not None: - self.storage_mode = storage_mode + self.storage_mode = storage_mode if storage_pool is not None: - self.storage_pool = storage_pool + self.storage_pool = storage_pool self.system = system if volume_name is not None: - self.volume_name = volume_name + self.volume_name = volume_name @property def fs_type(self): - """ - Gets the fs_type of this V1ScaleIOVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". + """Gets the fs_type of this V1ScaleIOVolumeSource. # noqa: E501 - :return: The fs_type of this V1ScaleIOVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". # noqa: E501 + + :return: The fs_type of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1ScaleIOVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". + """Sets the fs_type of this V1ScaleIOVolumeSource. - :param fs_type: The fs_type of this V1ScaleIOVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". # noqa: E501 + + :param fs_type: The fs_type of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ @@ -116,47 +114,47 @@ def fs_type(self, fs_type): @property def gateway(self): - """ - Gets the gateway of this V1ScaleIOVolumeSource. - The host address of the ScaleIO API Gateway. + """Gets the gateway of this V1ScaleIOVolumeSource. # noqa: E501 - :return: The gateway of this V1ScaleIOVolumeSource. + The host address of the ScaleIO API Gateway. # noqa: E501 + + :return: The gateway of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._gateway @gateway.setter def gateway(self, gateway): - """ - Sets the gateway of this V1ScaleIOVolumeSource. - The host address of the ScaleIO API Gateway. + """Sets the gateway of this V1ScaleIOVolumeSource. + + The host address of the ScaleIO API Gateway. # noqa: E501 - :param gateway: The gateway of this V1ScaleIOVolumeSource. + :param gateway: The gateway of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ if gateway is None: - raise ValueError("Invalid value for `gateway`, must not be `None`") + raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 self._gateway = gateway @property def protection_domain(self): - """ - Gets the protection_domain of this V1ScaleIOVolumeSource. - The name of the ScaleIO Protection Domain for the configured storage. + """Gets the protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 + + The name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 - :return: The protection_domain of this V1ScaleIOVolumeSource. + :return: The protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._protection_domain @protection_domain.setter def protection_domain(self, protection_domain): - """ - Sets the protection_domain of this V1ScaleIOVolumeSource. - The name of the ScaleIO Protection Domain for the configured storage. + """Sets the protection_domain of this V1ScaleIOVolumeSource. + + The name of the ScaleIO Protection Domain for the configured storage. # noqa: E501 - :param protection_domain: The protection_domain of this V1ScaleIOVolumeSource. + :param protection_domain: The protection_domain of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ @@ -164,22 +162,22 @@ def protection_domain(self, protection_domain): @property def read_only(self): - """ - Gets the read_only of this V1ScaleIOVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1ScaleIOVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1ScaleIOVolumeSource. + :return: The read_only of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1ScaleIOVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1ScaleIOVolumeSource. - :param read_only: The read_only of this V1ScaleIOVolumeSource. + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 + + :param read_only: The read_only of this V1ScaleIOVolumeSource. # noqa: E501 :type: bool """ @@ -187,47 +185,45 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1ScaleIOVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + """Gets the secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 - :return: The secret_ref of this V1ScaleIOVolumeSource. + + :return: The secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1ScaleIOVolumeSource. - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + """Sets the secret_ref of this V1ScaleIOVolumeSource. - :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. + + :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ if secret_ref is None: - raise ValueError("Invalid value for `secret_ref`, must not be `None`") + raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 self._secret_ref = secret_ref @property def ssl_enabled(self): - """ - Gets the ssl_enabled of this V1ScaleIOVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false + """Gets the ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 + + Flag to enable/disable SSL communication with Gateway, default false # noqa: E501 - :return: The ssl_enabled of this V1ScaleIOVolumeSource. + :return: The ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: bool """ return self._ssl_enabled @ssl_enabled.setter def ssl_enabled(self, ssl_enabled): - """ - Sets the ssl_enabled of this V1ScaleIOVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false + """Sets the ssl_enabled of this V1ScaleIOVolumeSource. + + Flag to enable/disable SSL communication with Gateway, default false # noqa: E501 - :param ssl_enabled: The ssl_enabled of this V1ScaleIOVolumeSource. + :param ssl_enabled: The ssl_enabled of this V1ScaleIOVolumeSource. # noqa: E501 :type: bool """ @@ -235,22 +231,22 @@ def ssl_enabled(self, ssl_enabled): @property def storage_mode(self): - """ - Gets the storage_mode of this V1ScaleIOVolumeSource. - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + """Gets the storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 + + Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 - :return: The storage_mode of this V1ScaleIOVolumeSource. + :return: The storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._storage_mode @storage_mode.setter def storage_mode(self, storage_mode): - """ - Sets the storage_mode of this V1ScaleIOVolumeSource. - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + """Sets the storage_mode of this V1ScaleIOVolumeSource. + + Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. # noqa: E501 - :param storage_mode: The storage_mode of this V1ScaleIOVolumeSource. + :param storage_mode: The storage_mode of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ @@ -258,22 +254,22 @@ def storage_mode(self, storage_mode): @property def storage_pool(self): - """ - Gets the storage_pool of this V1ScaleIOVolumeSource. - The ScaleIO Storage Pool associated with the protection domain. + """Gets the storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 - :return: The storage_pool of this V1ScaleIOVolumeSource. + The ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :return: The storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._storage_pool @storage_pool.setter def storage_pool(self, storage_pool): - """ - Sets the storage_pool of this V1ScaleIOVolumeSource. - The ScaleIO Storage Pool associated with the protection domain. + """Sets the storage_pool of this V1ScaleIOVolumeSource. - :param storage_pool: The storage_pool of this V1ScaleIOVolumeSource. + The ScaleIO Storage Pool associated with the protection domain. # noqa: E501 + + :param storage_pool: The storage_pool of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ @@ -281,59 +277,57 @@ def storage_pool(self, storage_pool): @property def system(self): - """ - Gets the system of this V1ScaleIOVolumeSource. - The name of the storage system as configured in ScaleIO. + """Gets the system of this V1ScaleIOVolumeSource. # noqa: E501 - :return: The system of this V1ScaleIOVolumeSource. + The name of the storage system as configured in ScaleIO. # noqa: E501 + + :return: The system of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._system @system.setter def system(self, system): - """ - Sets the system of this V1ScaleIOVolumeSource. - The name of the storage system as configured in ScaleIO. + """Sets the system of this V1ScaleIOVolumeSource. + + The name of the storage system as configured in ScaleIO. # noqa: E501 - :param system: The system of this V1ScaleIOVolumeSource. + :param system: The system of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ if system is None: - raise ValueError("Invalid value for `system`, must not be `None`") + raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 self._system = system @property def volume_name(self): - """ - Gets the volume_name of this V1ScaleIOVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. + """Gets the volume_name of this V1ScaleIOVolumeSource. # noqa: E501 + + The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 - :return: The volume_name of this V1ScaleIOVolumeSource. + :return: The volume_name of this V1ScaleIOVolumeSource. # noqa: E501 :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): - """ - Sets the volume_name of this V1ScaleIOVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. + """Sets the volume_name of this V1ScaleIOVolumeSource. + + The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 - :param volume_name: The volume_name of this V1ScaleIOVolumeSource. + :param volume_name: The volume_name of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ self._volume_name = volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -354,28 +348,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScaleIOVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scale_spec.py b/kubernetes/client/models/v1_scale_spec.py index 25d3537899..1859496577 100644 --- a/kubernetes/client/models/v1_scale_spec.py +++ b/kubernetes/client/models/v1_scale_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int' } @@ -38,47 +38,43 @@ class V1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): - """ - V1ScaleSpec - a model defined in Swagger - """ + def __init__(self, replicas=None): # noqa: E501 + """V1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self.discriminator = None if replicas is not None: - self.replicas = replicas + self.replicas = replicas @property def replicas(self): - """ - Gets the replicas of this V1ScaleSpec. - desired number of instances for the scaled object. + """Gets the replicas of this V1ScaleSpec. # noqa: E501 + + desired number of instances for the scaled object. # noqa: E501 - :return: The replicas of this V1ScaleSpec. + :return: The replicas of this V1ScaleSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ScaleSpec. - desired number of instances for the scaled object. + """Sets the replicas of this V1ScaleSpec. + + desired number of instances for the scaled object. # noqa: E501 - :param replicas: The replicas of this V1ScaleSpec. + :param replicas: The replicas of this V1ScaleSpec. # noqa: E501 :type: int """ self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScaleSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scale_status.py b/kubernetes/client/models/v1_scale_status.py index d38294fdcd..68e2aece59 100644 --- a/kubernetes/client/models/v1_scale_status.py +++ b/kubernetes/client/models/v1_scale_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int', 'selector': 'str' } @@ -40,10 +40,8 @@ class V1ScaleStatus(object): 'selector': 'selector' } - def __init__(self, replicas=None, selector=None): - """ - V1ScaleStatus - a model defined in Swagger - """ + def __init__(self, replicas=None, selector=None): # noqa: E501 + """V1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self._selector = None @@ -51,63 +49,61 @@ def __init__(self, replicas=None, selector=None): self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector @property def replicas(self): - """ - Gets the replicas of this V1ScaleStatus. - actual number of observed instances of the scaled object. + """Gets the replicas of this V1ScaleStatus. # noqa: E501 + + actual number of observed instances of the scaled object. # noqa: E501 - :return: The replicas of this V1ScaleStatus. + :return: The replicas of this V1ScaleStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1ScaleStatus. - actual number of observed instances of the scaled object. + """Sets the replicas of this V1ScaleStatus. - :param replicas: The replicas of this V1ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :param replicas: The replicas of this V1ScaleStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def selector(self): - """ - Gets the selector of this V1ScaleStatus. - label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Gets the selector of this V1ScaleStatus. # noqa: E501 + + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 - :return: The selector of this V1ScaleStatus. + :return: The selector of this V1ScaleStatus. # noqa: E501 :rtype: str """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1ScaleStatus. - label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Sets the selector of this V1ScaleStatus. + + label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 - :param selector: The selector of this V1ScaleStatus. + :param selector: The selector of this V1ScaleStatus. # noqa: E501 :type: str """ self._selector = selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScaleStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scope_selector.py b/kubernetes/client/models/v1_scope_selector.py index 60217ff0d7..b4ce82e7c1 100644 --- a/kubernetes/client/models/v1_scope_selector.py +++ b/kubernetes/client/models/v1_scope_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScopeSelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'match_expressions': 'list[V1ScopedResourceSelectorRequirement]' } @@ -38,47 +38,43 @@ class V1ScopeSelector(object): 'match_expressions': 'matchExpressions' } - def __init__(self, match_expressions=None): - """ - V1ScopeSelector - a model defined in Swagger - """ + def __init__(self, match_expressions=None): # noqa: E501 + """V1ScopeSelector - a model defined in OpenAPI""" # noqa: E501 self._match_expressions = None self.discriminator = None if match_expressions is not None: - self.match_expressions = match_expressions + self.match_expressions = match_expressions @property def match_expressions(self): - """ - Gets the match_expressions of this V1ScopeSelector. - A list of scope selector requirements by scope of the resources. + """Gets the match_expressions of this V1ScopeSelector. # noqa: E501 + + A list of scope selector requirements by scope of the resources. # noqa: E501 - :return: The match_expressions of this V1ScopeSelector. + :return: The match_expressions of this V1ScopeSelector. # noqa: E501 :rtype: list[V1ScopedResourceSelectorRequirement] """ return self._match_expressions @match_expressions.setter def match_expressions(self, match_expressions): - """ - Sets the match_expressions of this V1ScopeSelector. - A list of scope selector requirements by scope of the resources. + """Sets the match_expressions of this V1ScopeSelector. + + A list of scope selector requirements by scope of the resources. # noqa: E501 - :param match_expressions: The match_expressions of this V1ScopeSelector. + :param match_expressions: The match_expressions of this V1ScopeSelector. # noqa: E501 :type: list[V1ScopedResourceSelectorRequirement] """ self._match_expressions = match_expressions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScopeSelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py index ace8a17717..1eb2724547 100644 --- a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py +++ b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ScopedResourceSelectorRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'operator': 'str', 'scope_name': 'str', 'values': 'list[str]' @@ -42,10 +42,8 @@ class V1ScopedResourceSelectorRequirement(object): 'values': 'values' } - def __init__(self, operator=None, scope_name=None, values=None): - """ - V1ScopedResourceSelectorRequirement - a model defined in Swagger - """ + def __init__(self, operator=None, scope_name=None, values=None): # noqa: E501 + """V1ScopedResourceSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 self._operator = None self._scope_name = None @@ -55,88 +53,86 @@ def __init__(self, operator=None, scope_name=None, values=None): self.operator = operator self.scope_name = scope_name if values is not None: - self.values = values + self.values = values @property def operator(self): - """ - Gets the operator of this V1ScopedResourceSelectorRequirement. - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + """Gets the operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 - :return: The operator of this V1ScopedResourceSelectorRequirement. + Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. # noqa: E501 + + :return: The operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """ - Sets the operator of this V1ScopedResourceSelectorRequirement. - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + """Sets the operator of this V1ScopedResourceSelectorRequirement. - :param operator: The operator of this V1ScopedResourceSelectorRequirement. + Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. # noqa: E501 + + :param operator: The operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 :type: str """ if operator is None: - raise ValueError("Invalid value for `operator`, must not be `None`") + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @property def scope_name(self): - """ - Gets the scope_name of this V1ScopedResourceSelectorRequirement. - The name of the scope that the selector applies to. + """Gets the scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 - :return: The scope_name of this V1ScopedResourceSelectorRequirement. + The name of the scope that the selector applies to. # noqa: E501 + + :return: The scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 :rtype: str """ return self._scope_name @scope_name.setter def scope_name(self, scope_name): - """ - Sets the scope_name of this V1ScopedResourceSelectorRequirement. - The name of the scope that the selector applies to. + """Sets the scope_name of this V1ScopedResourceSelectorRequirement. + + The name of the scope that the selector applies to. # noqa: E501 - :param scope_name: The scope_name of this V1ScopedResourceSelectorRequirement. + :param scope_name: The scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 :type: str """ if scope_name is None: - raise ValueError("Invalid value for `scope_name`, must not be `None`") + raise ValueError("Invalid value for `scope_name`, must not be `None`") # noqa: E501 self._scope_name = scope_name @property def values(self): - """ - Gets the values of this V1ScopedResourceSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """Gets the values of this V1ScopedResourceSelectorRequirement. # noqa: E501 + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 - :return: The values of this V1ScopedResourceSelectorRequirement. + :return: The values of this V1ScopedResourceSelectorRequirement. # noqa: E501 :rtype: list[str] """ return self._values @values.setter def values(self, values): - """ - Sets the values of this V1ScopedResourceSelectorRequirement. - An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + """Sets the values of this V1ScopedResourceSelectorRequirement. + + An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. # noqa: E501 - :param values: The values of this V1ScopedResourceSelectorRequirement. + :param values: The values of this V1ScopedResourceSelectorRequirement. # noqa: E501 :type: list[str] """ self._values = values def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ScopedResourceSelectorRequirement): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_se_linux_options.py b/kubernetes/client/models/v1_se_linux_options.py index d1069f104e..ebfe2bc7fc 100644 --- a/kubernetes/client/models/v1_se_linux_options.py +++ b/kubernetes/client/models/v1_se_linux_options.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SELinuxOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'level': 'str', 'role': 'str', 'type': 'str', @@ -44,10 +44,8 @@ class V1SELinuxOptions(object): 'user': 'user' } - def __init__(self, level=None, role=None, type=None, user=None): - """ - V1SELinuxOptions - a model defined in Swagger - """ + def __init__(self, level=None, role=None, type=None, user=None): # noqa: E501 + """V1SELinuxOptions - a model defined in OpenAPI""" # noqa: E501 self._level = None self._role = None @@ -56,32 +54,32 @@ def __init__(self, level=None, role=None, type=None, user=None): self.discriminator = None if level is not None: - self.level = level + self.level = level if role is not None: - self.role = role + self.role = role if type is not None: - self.type = type + self.type = type if user is not None: - self.user = user + self.user = user @property def level(self): - """ - Gets the level of this V1SELinuxOptions. - Level is SELinux level label that applies to the container. + """Gets the level of this V1SELinuxOptions. # noqa: E501 + + Level is SELinux level label that applies to the container. # noqa: E501 - :return: The level of this V1SELinuxOptions. + :return: The level of this V1SELinuxOptions. # noqa: E501 :rtype: str """ return self._level @level.setter def level(self, level): - """ - Sets the level of this V1SELinuxOptions. - Level is SELinux level label that applies to the container. + """Sets the level of this V1SELinuxOptions. + + Level is SELinux level label that applies to the container. # noqa: E501 - :param level: The level of this V1SELinuxOptions. + :param level: The level of this V1SELinuxOptions. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def level(self, level): @property def role(self): - """ - Gets the role of this V1SELinuxOptions. - Role is a SELinux role label that applies to the container. + """Gets the role of this V1SELinuxOptions. # noqa: E501 + + Role is a SELinux role label that applies to the container. # noqa: E501 - :return: The role of this V1SELinuxOptions. + :return: The role of this V1SELinuxOptions. # noqa: E501 :rtype: str """ return self._role @role.setter def role(self, role): - """ - Sets the role of this V1SELinuxOptions. - Role is a SELinux role label that applies to the container. + """Sets the role of this V1SELinuxOptions. + + Role is a SELinux role label that applies to the container. # noqa: E501 - :param role: The role of this V1SELinuxOptions. + :param role: The role of this V1SELinuxOptions. # noqa: E501 :type: str """ @@ -112,22 +110,22 @@ def role(self, role): @property def type(self): - """ - Gets the type of this V1SELinuxOptions. - Type is a SELinux type label that applies to the container. + """Gets the type of this V1SELinuxOptions. # noqa: E501 + + Type is a SELinux type label that applies to the container. # noqa: E501 - :return: The type of this V1SELinuxOptions. + :return: The type of this V1SELinuxOptions. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1SELinuxOptions. - Type is a SELinux type label that applies to the container. + """Sets the type of this V1SELinuxOptions. + + Type is a SELinux type label that applies to the container. # noqa: E501 - :param type: The type of this V1SELinuxOptions. + :param type: The type of this V1SELinuxOptions. # noqa: E501 :type: str """ @@ -135,34 +133,32 @@ def type(self, type): @property def user(self): - """ - Gets the user of this V1SELinuxOptions. - User is a SELinux user label that applies to the container. + """Gets the user of this V1SELinuxOptions. # noqa: E501 + + User is a SELinux user label that applies to the container. # noqa: E501 - :return: The user of this V1SELinuxOptions. + :return: The user of this V1SELinuxOptions. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1SELinuxOptions. - User is a SELinux user label that applies to the container. + """Sets the user of this V1SELinuxOptions. + + User is a SELinux user label that applies to the container. # noqa: E501 - :param user: The user of this V1SELinuxOptions. + :param user: The user of this V1SELinuxOptions. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SELinuxOptions): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret.py b/kubernetes/client/models/v1_secret.py index 9ab77888ff..849b162c99 100644 --- a/kubernetes/client/models/v1_secret.py +++ b/kubernetes/client/models/v1_secret.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Secret(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'data': 'dict(str, str)', 'kind': 'str', @@ -48,10 +48,8 @@ class V1Secret(object): 'type': 'type' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, string_data=None, type=None): - """ - V1Secret - a model defined in Swagger - """ + def __init__(self, api_version=None, data=None, kind=None, metadata=None, string_data=None, type=None): # noqa: E501 + """V1Secret - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._data = None @@ -62,36 +60,36 @@ def __init__(self, api_version=None, data=None, kind=None, metadata=None, string self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if data is not None: - self.data = data + self.data = data if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if string_data is not None: - self.string_data = string_data + self.string_data = string_data if type is not None: - self.type = type + self.type = type @property def api_version(self): - """ - Gets the api_version of this V1Secret. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Secret. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Secret. + :return: The api_version of this V1Secret. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Secret. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Secret. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1Secret. + :param api_version: The api_version of this V1Secret. # noqa: E501 :type: str """ @@ -99,22 +97,22 @@ def api_version(self, api_version): @property def data(self): - """ - Gets the data of this V1Secret. - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + """Gets the data of this V1Secret. # noqa: E501 + + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 # noqa: E501 - :return: The data of this V1Secret. + :return: The data of this V1Secret. # noqa: E501 :rtype: dict(str, str) """ return self._data @data.setter def data(self, data): - """ - Sets the data of this V1Secret. - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + """Sets the data of this V1Secret. - :param data: The data of this V1Secret. + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 # noqa: E501 + + :param data: The data of this V1Secret. # noqa: E501 :type: dict(str, str) """ @@ -122,22 +120,22 @@ def data(self, data): @property def kind(self): - """ - Gets the kind of this V1Secret. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Secret. # noqa: E501 - :return: The kind of this V1Secret. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1Secret. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Secret. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Secret. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Secret. + :param kind: The kind of this V1Secret. # noqa: E501 :type: str """ @@ -145,22 +143,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Secret. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Secret. # noqa: E501 + - :return: The metadata of this V1Secret. + :return: The metadata of this V1Secret. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Secret. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Secret. + - :param metadata: The metadata of this V1Secret. + :param metadata: The metadata of this V1Secret. # noqa: E501 :type: V1ObjectMeta """ @@ -168,22 +164,22 @@ def metadata(self, metadata): @property def string_data(self): - """ - Gets the string_data of this V1Secret. - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + """Gets the string_data of this V1Secret. # noqa: E501 - :return: The string_data of this V1Secret. + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. # noqa: E501 + + :return: The string_data of this V1Secret. # noqa: E501 :rtype: dict(str, str) """ return self._string_data @string_data.setter def string_data(self, string_data): - """ - Sets the string_data of this V1Secret. - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + """Sets the string_data of this V1Secret. - :param string_data: The string_data of this V1Secret. + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. # noqa: E501 + + :param string_data: The string_data of this V1Secret. # noqa: E501 :type: dict(str, str) """ @@ -191,34 +187,32 @@ def string_data(self, string_data): @property def type(self): - """ - Gets the type of this V1Secret. - Used to facilitate programmatic handling of secret data. + """Gets the type of this V1Secret. # noqa: E501 + + Used to facilitate programmatic handling of secret data. # noqa: E501 - :return: The type of this V1Secret. + :return: The type of this V1Secret. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1Secret. - Used to facilitate programmatic handling of secret data. + """Sets the type of this V1Secret. + + Used to facilitate programmatic handling of secret data. # noqa: E501 - :param type: The type of this V1Secret. + :param type: The type of this V1Secret. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +233,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Secret): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_env_source.py b/kubernetes/client/models/v1_secret_env_source.py index b9e315c1bb..2d26823902 100644 --- a/kubernetes/client/models/v1_secret_env_source.py +++ b/kubernetes/client/models/v1_secret_env_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretEnvSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'optional': 'bool' } @@ -40,38 +40,36 @@ class V1SecretEnvSource(object): 'optional': 'optional' } - def __init__(self, name=None, optional=None): - """ - V1SecretEnvSource - a model defined in Swagger - """ + def __init__(self, name=None, optional=None): # noqa: E501 + """V1SecretEnvSource - a model defined in OpenAPI""" # noqa: E501 self._name = None self._optional = None self.discriminator = None if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def name(self): - """ - Gets the name of this V1SecretEnvSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1SecretEnvSource. # noqa: E501 + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :return: The name of this V1SecretEnvSource. + :return: The name of this V1SecretEnvSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1SecretEnvSource. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1SecretEnvSource. - :param name: The name of this V1SecretEnvSource. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1SecretEnvSource. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1SecretEnvSource. - Specify whether the Secret must be defined + """Gets the optional of this V1SecretEnvSource. # noqa: E501 + + Specify whether the Secret must be defined # noqa: E501 - :return: The optional of this V1SecretEnvSource. + :return: The optional of this V1SecretEnvSource. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1SecretEnvSource. - Specify whether the Secret must be defined + """Sets the optional of this V1SecretEnvSource. + + Specify whether the Secret must be defined # noqa: E501 - :param optional: The optional of this V1SecretEnvSource. + :param optional: The optional of this V1SecretEnvSource. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretEnvSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_key_selector.py b/kubernetes/client/models/v1_secret_key_selector.py index d353696ba5..4e7409bf2c 100644 --- a/kubernetes/client/models/v1_secret_key_selector.py +++ b/kubernetes/client/models/v1_secret_key_selector.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretKeySelector(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'name': 'str', 'optional': 'bool' @@ -42,10 +42,8 @@ class V1SecretKeySelector(object): 'optional': 'optional' } - def __init__(self, key=None, name=None, optional=None): - """ - V1SecretKeySelector - a model defined in Swagger - """ + def __init__(self, key=None, name=None, optional=None): # noqa: E501 + """V1SecretKeySelector - a model defined in OpenAPI""" # noqa: E501 self._key = None self._name = None @@ -54,53 +52,53 @@ def __init__(self, key=None, name=None, optional=None): self.key = key if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def key(self): - """ - Gets the key of this V1SecretKeySelector. - The key of the secret to select from. Must be a valid secret key. + """Gets the key of this V1SecretKeySelector. # noqa: E501 - :return: The key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. # noqa: E501 + + :return: The key of this V1SecretKeySelector. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1SecretKeySelector. - The key of the secret to select from. Must be a valid secret key. + """Sets the key of this V1SecretKeySelector. - :param key: The key of this V1SecretKeySelector. + The key of the secret to select from. Must be a valid secret key. # noqa: E501 + + :param key: The key of this V1SecretKeySelector. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def name(self): - """ - Gets the name of this V1SecretKeySelector. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1SecretKeySelector. # noqa: E501 - :return: The name of this V1SecretKeySelector. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1SecretKeySelector. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1SecretKeySelector. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1SecretKeySelector. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1SecretKeySelector. + :param name: The name of this V1SecretKeySelector. # noqa: E501 :type: str """ @@ -108,34 +106,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1SecretKeySelector. - Specify whether the Secret or it's key must be defined + """Gets the optional of this V1SecretKeySelector. # noqa: E501 + + Specify whether the Secret or its key must be defined # noqa: E501 - :return: The optional of this V1SecretKeySelector. + :return: The optional of this V1SecretKeySelector. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1SecretKeySelector. - Specify whether the Secret or it's key must be defined + """Sets the optional of this V1SecretKeySelector. + + Specify whether the Secret or its key must be defined # noqa: E501 - :param optional: The optional of this V1SecretKeySelector. + :param optional: The optional of this V1SecretKeySelector. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretKeySelector): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_list.py b/kubernetes/client/models/v1_secret_list.py index 33828002d8..eabdfb41c4 100644 --- a/kubernetes/client/models/v1_secret_list.py +++ b/kubernetes/client/models/v1_secret_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Secret]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1SecretList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1SecretList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1SecretList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1SecretList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1SecretList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1SecretList. + :return: The api_version of this V1SecretList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1SecretList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1SecretList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1SecretList. + :param api_version: The api_version of this V1SecretList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1SecretList. - Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + """Gets the items of this V1SecretList. # noqa: E501 + + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 - :return: The items of this V1SecretList. + :return: The items of this V1SecretList. # noqa: E501 :rtype: list[V1Secret] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1SecretList. - Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + """Sets the items of this V1SecretList. + + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 - :param items: The items of this V1SecretList. + :param items: The items of this V1SecretList. # noqa: E501 :type: list[V1Secret] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1SecretList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1SecretList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1SecretList. + :return: The kind of this V1SecretList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1SecretList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1SecretList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1SecretList. + :param kind: The kind of this V1SecretList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1SecretList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1SecretList. # noqa: E501 + - :return: The metadata of this V1SecretList. + :return: The metadata of this V1SecretList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1SecretList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1SecretList. + - :param metadata: The metadata of this V1SecretList. + :param metadata: The metadata of this V1SecretList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_projection.py b/kubernetes/client/models/v1_secret_projection.py index 1049ea3ed4..690d4f88ab 100644 --- a/kubernetes/client/models/v1_secret_projection.py +++ b/kubernetes/client/models/v1_secret_projection.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'items': 'list[V1KeyToPath]', 'name': 'str', 'optional': 'bool' @@ -42,10 +42,8 @@ class V1SecretProjection(object): 'optional': 'optional' } - def __init__(self, items=None, name=None, optional=None): - """ - V1SecretProjection - a model defined in Swagger - """ + def __init__(self, items=None, name=None, optional=None): # noqa: E501 + """V1SecretProjection - a model defined in OpenAPI""" # noqa: E501 self._items = None self._name = None @@ -53,30 +51,30 @@ def __init__(self, items=None, name=None, optional=None): self.discriminator = None if items is not None: - self.items = items + self.items = items if name is not None: - self.name = name + self.name = name if optional is not None: - self.optional = optional + self.optional = optional @property def items(self): - """ - Gets the items of this V1SecretProjection. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Gets the items of this V1SecretProjection. # noqa: E501 - :return: The items of this V1SecretProjection. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :return: The items of this V1SecretProjection. # noqa: E501 :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1SecretProjection. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Sets the items of this V1SecretProjection. - :param items: The items of this V1SecretProjection. + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 + + :param items: The items of this V1SecretProjection. # noqa: E501 :type: list[V1KeyToPath] """ @@ -84,22 +82,22 @@ def items(self, items): @property def name(self): - """ - Gets the name of this V1SecretProjection. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1SecretProjection. # noqa: E501 - :return: The name of this V1SecretProjection. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1SecretProjection. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1SecretProjection. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1SecretProjection. + + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 - :param name: The name of this V1SecretProjection. + :param name: The name of this V1SecretProjection. # noqa: E501 :type: str """ @@ -107,34 +105,32 @@ def name(self, name): @property def optional(self): - """ - Gets the optional of this V1SecretProjection. - Specify whether the Secret or its key must be defined + """Gets the optional of this V1SecretProjection. # noqa: E501 + + Specify whether the Secret or its key must be defined # noqa: E501 - :return: The optional of this V1SecretProjection. + :return: The optional of this V1SecretProjection. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1SecretProjection. - Specify whether the Secret or its key must be defined + """Sets the optional of this V1SecretProjection. + + Specify whether the Secret or its key must be defined # noqa: E501 - :param optional: The optional of this V1SecretProjection. + :param optional: The optional of this V1SecretProjection. # noqa: E501 :type: bool """ self._optional = optional def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretProjection): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_reference.py b/kubernetes/client/models/v1_secret_reference.py index 372751e362..5dce763094 100644 --- a/kubernetes/client/models/v1_secret_reference.py +++ b/kubernetes/client/models/v1_secret_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'namespace': 'str' } @@ -40,38 +40,36 @@ class V1SecretReference(object): 'namespace': 'namespace' } - def __init__(self, name=None, namespace=None): - """ - V1SecretReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None): # noqa: E501 + """V1SecretReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None self.discriminator = None if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def name(self): - """ - Gets the name of this V1SecretReference. - Name is unique within a namespace to reference a secret resource. + """Gets the name of this V1SecretReference. # noqa: E501 + + Name is unique within a namespace to reference a secret resource. # noqa: E501 - :return: The name of this V1SecretReference. + :return: The name of this V1SecretReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1SecretReference. - Name is unique within a namespace to reference a secret resource. + """Sets the name of this V1SecretReference. - :param name: The name of this V1SecretReference. + Name is unique within a namespace to reference a secret resource. # noqa: E501 + + :param name: The name of this V1SecretReference. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1SecretReference. - Namespace defines the space within which the secret name must be unique. + """Gets the namespace of this V1SecretReference. # noqa: E501 + + Namespace defines the space within which the secret name must be unique. # noqa: E501 - :return: The namespace of this V1SecretReference. + :return: The namespace of this V1SecretReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1SecretReference. - Namespace defines the space within which the secret name must be unique. + """Sets the namespace of this V1SecretReference. + + Namespace defines the space within which the secret name must be unique. # noqa: E501 - :param namespace: The namespace of this V1SecretReference. + :param namespace: The namespace of this V1SecretReference. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_secret_volume_source.py b/kubernetes/client/models/v1_secret_volume_source.py index 980b86f775..cd9812716e 100644 --- a/kubernetes/client/models/v1_secret_volume_source.py +++ b/kubernetes/client/models/v1_secret_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecretVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'default_mode': 'int', 'items': 'list[V1KeyToPath]', 'optional': 'bool', @@ -44,10 +44,8 @@ class V1SecretVolumeSource(object): 'secret_name': 'secretName' } - def __init__(self, default_mode=None, items=None, optional=None, secret_name=None): - """ - V1SecretVolumeSource - a model defined in Swagger - """ + def __init__(self, default_mode=None, items=None, optional=None, secret_name=None): # noqa: E501 + """V1SecretVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._default_mode = None self._items = None @@ -56,32 +54,32 @@ def __init__(self, default_mode=None, items=None, optional=None, secret_name=Non self.discriminator = None if default_mode is not None: - self.default_mode = default_mode + self.default_mode = default_mode if items is not None: - self.items = items + self.items = items if optional is not None: - self.optional = optional + self.optional = optional if secret_name is not None: - self.secret_name = secret_name + self.secret_name = secret_name @property def default_mode(self): - """ - Gets the default_mode of this V1SecretVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Gets the default_mode of this V1SecretVolumeSource. # noqa: E501 + + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :return: The default_mode of this V1SecretVolumeSource. + :return: The default_mode of this V1SecretVolumeSource. # noqa: E501 :rtype: int """ return self._default_mode @default_mode.setter def default_mode(self, default_mode): - """ - Sets the default_mode of this V1SecretVolumeSource. - Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + """Sets the default_mode of this V1SecretVolumeSource. + + Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. # noqa: E501 - :param default_mode: The default_mode of this V1SecretVolumeSource. + :param default_mode: The default_mode of this V1SecretVolumeSource. # noqa: E501 :type: int """ @@ -89,22 +87,22 @@ def default_mode(self, default_mode): @property def items(self): - """ - Gets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Gets the items of this V1SecretVolumeSource. # noqa: E501 + + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 - :return: The items of this V1SecretVolumeSource. + :return: The items of this V1SecretVolumeSource. # noqa: E501 :rtype: list[V1KeyToPath] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + """Sets the items of this V1SecretVolumeSource. + + If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. # noqa: E501 - :param items: The items of this V1SecretVolumeSource. + :param items: The items of this V1SecretVolumeSource. # noqa: E501 :type: list[V1KeyToPath] """ @@ -112,22 +110,22 @@ def items(self, items): @property def optional(self): - """ - Gets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined + """Gets the optional of this V1SecretVolumeSource. # noqa: E501 + + Specify whether the Secret or its keys must be defined # noqa: E501 - :return: The optional of this V1SecretVolumeSource. + :return: The optional of this V1SecretVolumeSource. # noqa: E501 :rtype: bool """ return self._optional @optional.setter def optional(self, optional): - """ - Sets the optional of this V1SecretVolumeSource. - Specify whether the Secret or it's keys must be defined + """Sets the optional of this V1SecretVolumeSource. + + Specify whether the Secret or its keys must be defined # noqa: E501 - :param optional: The optional of this V1SecretVolumeSource. + :param optional: The optional of this V1SecretVolumeSource. # noqa: E501 :type: bool """ @@ -135,34 +133,32 @@ def optional(self, optional): @property def secret_name(self): - """ - Gets the secret_name of this V1SecretVolumeSource. - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + """Gets the secret_name of this V1SecretVolumeSource. # noqa: E501 + + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret # noqa: E501 - :return: The secret_name of this V1SecretVolumeSource. + :return: The secret_name of this V1SecretVolumeSource. # noqa: E501 :rtype: str """ return self._secret_name @secret_name.setter def secret_name(self, secret_name): - """ - Sets the secret_name of this V1SecretVolumeSource. - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + """Sets the secret_name of this V1SecretVolumeSource. + + Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret # noqa: E501 - :param secret_name: The secret_name of this V1SecretVolumeSource. + :param secret_name: The secret_name of this V1SecretVolumeSource. # noqa: E501 :type: str """ self._secret_name = secret_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecretVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_security_context.py b/kubernetes/client/models/v1_security_context.py index 96be6a7e4d..0701591fb1 100644 --- a/kubernetes/client/models/v1_security_context.py +++ b/kubernetes/client/models/v1_security_context.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SecurityContext(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allow_privilege_escalation': 'bool', 'capabilities': 'V1Capabilities', 'privileged': 'bool', @@ -39,7 +39,8 @@ class V1SecurityContext(object): 'run_as_group': 'int', 'run_as_non_root': 'bool', 'run_as_user': 'int', - 'se_linux_options': 'V1SELinuxOptions' + 'se_linux_options': 'V1SELinuxOptions', + 'windows_options': 'V1WindowsSecurityContextOptions' } attribute_map = { @@ -51,13 +52,12 @@ class V1SecurityContext(object): 'run_as_group': 'runAsGroup', 'run_as_non_root': 'runAsNonRoot', 'run_as_user': 'runAsUser', - 'se_linux_options': 'seLinuxOptions' + 'se_linux_options': 'seLinuxOptions', + 'windows_options': 'windowsOptions' } - def __init__(self, allow_privilege_escalation=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None): - """ - V1SecurityContext - a model defined in Swagger - """ + def __init__(self, allow_privilege_escalation=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, windows_options=None): # noqa: E501 + """V1SecurityContext - a model defined in OpenAPI""" # noqa: E501 self._allow_privilege_escalation = None self._capabilities = None @@ -68,45 +68,48 @@ def __init__(self, allow_privilege_escalation=None, capabilities=None, privilege self._run_as_non_root = None self._run_as_user = None self._se_linux_options = None + self._windows_options = None self.discriminator = None if allow_privilege_escalation is not None: - self.allow_privilege_escalation = allow_privilege_escalation + self.allow_privilege_escalation = allow_privilege_escalation if capabilities is not None: - self.capabilities = capabilities + self.capabilities = capabilities if privileged is not None: - self.privileged = privileged + self.privileged = privileged if proc_mount is not None: - self.proc_mount = proc_mount + self.proc_mount = proc_mount if read_only_root_filesystem is not None: - self.read_only_root_filesystem = read_only_root_filesystem + self.read_only_root_filesystem = read_only_root_filesystem if run_as_group is not None: - self.run_as_group = run_as_group + self.run_as_group = run_as_group if run_as_non_root is not None: - self.run_as_non_root = run_as_non_root + self.run_as_non_root = run_as_non_root if run_as_user is not None: - self.run_as_user = run_as_user + self.run_as_user = run_as_user if se_linux_options is not None: - self.se_linux_options = se_linux_options + self.se_linux_options = se_linux_options + if windows_options is not None: + self.windows_options = windows_options @property def allow_privilege_escalation(self): - """ - Gets the allow_privilege_escalation of this V1SecurityContext. - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + """Gets the allow_privilege_escalation of this V1SecurityContext. # noqa: E501 + + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN # noqa: E501 - :return: The allow_privilege_escalation of this V1SecurityContext. + :return: The allow_privilege_escalation of this V1SecurityContext. # noqa: E501 :rtype: bool """ return self._allow_privilege_escalation @allow_privilege_escalation.setter def allow_privilege_escalation(self, allow_privilege_escalation): - """ - Sets the allow_privilege_escalation of this V1SecurityContext. - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + """Sets the allow_privilege_escalation of this V1SecurityContext. + + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN # noqa: E501 - :param allow_privilege_escalation: The allow_privilege_escalation of this V1SecurityContext. + :param allow_privilege_escalation: The allow_privilege_escalation of this V1SecurityContext. # noqa: E501 :type: bool """ @@ -114,22 +117,20 @@ def allow_privilege_escalation(self, allow_privilege_escalation): @property def capabilities(self): - """ - Gets the capabilities of this V1SecurityContext. - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + """Gets the capabilities of this V1SecurityContext. # noqa: E501 + - :return: The capabilities of this V1SecurityContext. + :return: The capabilities of this V1SecurityContext. # noqa: E501 :rtype: V1Capabilities """ return self._capabilities @capabilities.setter def capabilities(self, capabilities): - """ - Sets the capabilities of this V1SecurityContext. - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + """Sets the capabilities of this V1SecurityContext. + - :param capabilities: The capabilities of this V1SecurityContext. + :param capabilities: The capabilities of this V1SecurityContext. # noqa: E501 :type: V1Capabilities """ @@ -137,22 +138,22 @@ def capabilities(self, capabilities): @property def privileged(self): - """ - Gets the privileged of this V1SecurityContext. - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + """Gets the privileged of this V1SecurityContext. # noqa: E501 - :return: The privileged of this V1SecurityContext. + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. # noqa: E501 + + :return: The privileged of this V1SecurityContext. # noqa: E501 :rtype: bool """ return self._privileged @privileged.setter def privileged(self, privileged): - """ - Sets the privileged of this V1SecurityContext. - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + """Sets the privileged of this V1SecurityContext. - :param privileged: The privileged of this V1SecurityContext. + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. # noqa: E501 + + :param privileged: The privileged of this V1SecurityContext. # noqa: E501 :type: bool """ @@ -160,22 +161,22 @@ def privileged(self, privileged): @property def proc_mount(self): - """ - Gets the proc_mount of this V1SecurityContext. - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + """Gets the proc_mount of this V1SecurityContext. # noqa: E501 - :return: The proc_mount of this V1SecurityContext. + procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. # noqa: E501 + + :return: The proc_mount of this V1SecurityContext. # noqa: E501 :rtype: str """ return self._proc_mount @proc_mount.setter def proc_mount(self, proc_mount): - """ - Sets the proc_mount of this V1SecurityContext. - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + """Sets the proc_mount of this V1SecurityContext. - :param proc_mount: The proc_mount of this V1SecurityContext. + procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. # noqa: E501 + + :param proc_mount: The proc_mount of this V1SecurityContext. # noqa: E501 :type: str """ @@ -183,22 +184,22 @@ def proc_mount(self, proc_mount): @property def read_only_root_filesystem(self): - """ - Gets the read_only_root_filesystem of this V1SecurityContext. - Whether this container has a read-only root filesystem. Default is false. + """Gets the read_only_root_filesystem of this V1SecurityContext. # noqa: E501 - :return: The read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. # noqa: E501 + + :return: The read_only_root_filesystem of this V1SecurityContext. # noqa: E501 :rtype: bool """ return self._read_only_root_filesystem @read_only_root_filesystem.setter def read_only_root_filesystem(self, read_only_root_filesystem): - """ - Sets the read_only_root_filesystem of this V1SecurityContext. - Whether this container has a read-only root filesystem. Default is false. + """Sets the read_only_root_filesystem of this V1SecurityContext. - :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. + Whether this container has a read-only root filesystem. Default is false. # noqa: E501 + + :param read_only_root_filesystem: The read_only_root_filesystem of this V1SecurityContext. # noqa: E501 :type: bool """ @@ -206,22 +207,22 @@ def read_only_root_filesystem(self, read_only_root_filesystem): @property def run_as_group(self): - """ - Gets the run_as_group of this V1SecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Gets the run_as_group of this V1SecurityContext. # noqa: E501 - :return: The run_as_group of this V1SecurityContext. + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 + + :return: The run_as_group of this V1SecurityContext. # noqa: E501 :rtype: int """ return self._run_as_group @run_as_group.setter def run_as_group(self, run_as_group): - """ - Sets the run_as_group of this V1SecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Sets the run_as_group of this V1SecurityContext. + + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 - :param run_as_group: The run_as_group of this V1SecurityContext. + :param run_as_group: The run_as_group of this V1SecurityContext. # noqa: E501 :type: int """ @@ -229,22 +230,22 @@ def run_as_group(self, run_as_group): @property def run_as_non_root(self): - """ - Gets the run_as_non_root of this V1SecurityContext. - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Gets the run_as_non_root of this V1SecurityContext. # noqa: E501 + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 - :return: The run_as_non_root of this V1SecurityContext. + :return: The run_as_non_root of this V1SecurityContext. # noqa: E501 :rtype: bool """ return self._run_as_non_root @run_as_non_root.setter def run_as_non_root(self, run_as_non_root): - """ - Sets the run_as_non_root of this V1SecurityContext. - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Sets the run_as_non_root of this V1SecurityContext. + + Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 - :param run_as_non_root: The run_as_non_root of this V1SecurityContext. + :param run_as_non_root: The run_as_non_root of this V1SecurityContext. # noqa: E501 :type: bool """ @@ -252,22 +253,22 @@ def run_as_non_root(self, run_as_non_root): @property def run_as_user(self): - """ - Gets the run_as_user of this V1SecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Gets the run_as_user of this V1SecurityContext. # noqa: E501 + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 - :return: The run_as_user of this V1SecurityContext. + :return: The run_as_user of this V1SecurityContext. # noqa: E501 :rtype: int """ return self._run_as_user @run_as_user.setter def run_as_user(self, run_as_user): - """ - Sets the run_as_user of this V1SecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Sets the run_as_user of this V1SecurityContext. + + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. # noqa: E501 - :param run_as_user: The run_as_user of this V1SecurityContext. + :param run_as_user: The run_as_user of this V1SecurityContext. # noqa: E501 :type: int """ @@ -275,34 +276,51 @@ def run_as_user(self, run_as_user): @property def se_linux_options(self): - """ - Gets the se_linux_options of this V1SecurityContext. - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Gets the se_linux_options of this V1SecurityContext. # noqa: E501 + - :return: The se_linux_options of this V1SecurityContext. + :return: The se_linux_options of this V1SecurityContext. # noqa: E501 :rtype: V1SELinuxOptions """ return self._se_linux_options @se_linux_options.setter def se_linux_options(self, se_linux_options): - """ - Sets the se_linux_options of this V1SecurityContext. - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + """Sets the se_linux_options of this V1SecurityContext. + - :param se_linux_options: The se_linux_options of this V1SecurityContext. + :param se_linux_options: The se_linux_options of this V1SecurityContext. # noqa: E501 :type: V1SELinuxOptions """ self._se_linux_options = se_linux_options - def to_dict(self): + @property + def windows_options(self): + """Gets the windows_options of this V1SecurityContext. # noqa: E501 + + + :return: The windows_options of this V1SecurityContext. # noqa: E501 + :rtype: V1WindowsSecurityContextOptions """ - Returns the model properties as a dict + return self._windows_options + + @windows_options.setter + def windows_options(self, windows_options): + """Sets the windows_options of this V1SecurityContext. + + + :param windows_options: The windows_options of this V1SecurityContext. # noqa: E501 + :type: V1WindowsSecurityContextOptions """ + + self._windows_options = windows_options + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -323,28 +341,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SecurityContext): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_self_subject_access_review.py b/kubernetes/client/models/v1_self_subject_access_review.py index 3a1ef1e8f8..f2d4f9af15 100644 --- a/kubernetes/client/models/v1_self_subject_access_review.py +++ b/kubernetes/client/models/v1_self_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SelfSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1SelfSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1SelfSubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1SelfSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1SelfSubjectAccessReview. # noqa: E501 - :return: The api_version of this V1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SelfSubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1SelfSubjectAccessReview. - :param api_version: The api_version of this V1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SelfSubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1SelfSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1SelfSubjectAccessReview. + :return: The kind of this V1SelfSubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1SelfSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1SelfSubjectAccessReview. + :param kind: The kind of this V1SelfSubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1SelfSubjectAccessReview. + """Gets the metadata of this V1SelfSubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1SelfSubjectAccessReview. + :return: The metadata of this V1SelfSubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1SelfSubjectAccessReview. + """Sets the metadata of this V1SelfSubjectAccessReview. + - :param metadata: The metadata of this V1SelfSubjectAccessReview. + :param metadata: The metadata of this V1SelfSubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty + """Gets the spec of this V1SelfSubjectAccessReview. # noqa: E501 + - :return: The spec of this V1SelfSubjectAccessReview. + :return: The spec of this V1SelfSubjectAccessReview. # noqa: E501 :rtype: V1SelfSubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty + """Sets the spec of this V1SelfSubjectAccessReview. - :param spec: The spec of this V1SelfSubjectAccessReview. + + :param spec: The spec of this V1SelfSubjectAccessReview. # noqa: E501 :type: V1SelfSubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1SelfSubjectAccessReview. # noqa: E501 - :return: The status of this V1SelfSubjectAccessReview. + + :return: The status of this V1SelfSubjectAccessReview. # noqa: E501 :rtype: V1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1SelfSubjectAccessReview. - :param status: The status of this V1SelfSubjectAccessReview. + + :param status: The status of this V1SelfSubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SelfSubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_self_subject_access_review_spec.py b/kubernetes/client/models/v1_self_subject_access_review_spec.py index 7c0ad5f159..3f18c13b0c 100644 --- a/kubernetes/client/models/v1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_access_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SelfSubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'non_resource_attributes': 'V1NonResourceAttributes', 'resource_attributes': 'V1ResourceAttributes' } @@ -40,38 +40,34 @@ class V1SelfSubjectAccessReviewSpec(object): 'resource_attributes': 'resourceAttributes' } - def __init__(self, non_resource_attributes=None, resource_attributes=None): - """ - V1SelfSubjectAccessReviewSpec - a model defined in Swagger - """ + def __init__(self, non_resource_attributes=None, resource_attributes=None): # noqa: E501 + """V1SelfSubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._non_resource_attributes = None self._resource_attributes = None self.discriminator = None if non_resource_attributes is not None: - self.non_resource_attributes = non_resource_attributes + self.non_resource_attributes = non_resource_attributes if resource_attributes is not None: - self.resource_attributes = resource_attributes + self.resource_attributes = resource_attributes @property def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Gets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + - :return: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + :return: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 :rtype: V1NonResourceAttributes """ return self._non_resource_attributes @non_resource_attributes.setter def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Sets the non_resource_attributes of this V1SelfSubjectAccessReviewSpec. - :param non_resource_attributes: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. + + :param non_resource_attributes: The non_resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 :type: V1NonResourceAttributes """ @@ -79,34 +75,30 @@ def non_resource_attributes(self, non_resource_attributes): @property def resource_attributes(self): - """ - Gets the resource_attributes of this V1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Gets the resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 + - :return: The resource_attributes of this V1SelfSubjectAccessReviewSpec. + :return: The resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 :rtype: V1ResourceAttributes """ return self._resource_attributes @resource_attributes.setter def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Sets the resource_attributes of this V1SelfSubjectAccessReviewSpec. + - :param resource_attributes: The resource_attributes of this V1SelfSubjectAccessReviewSpec. + :param resource_attributes: The resource_attributes of this V1SelfSubjectAccessReviewSpec. # noqa: E501 :type: V1ResourceAttributes """ self._resource_attributes = resource_attributes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SelfSubjectAccessReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_self_subject_rules_review.py b/kubernetes/client/models/v1_self_subject_rules_review.py index e87b9e4982..5e7cffa4c4 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review.py +++ b/kubernetes/client/models/v1_self_subject_rules_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SelfSubjectRulesReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1SelfSubjectRulesReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1SelfSubjectRulesReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1SelfSubjectRulesReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1SelfSubjectRulesReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1SelfSubjectRulesReview. # noqa: E501 - :return: The api_version of this V1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SelfSubjectRulesReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1SelfSubjectRulesReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1SelfSubjectRulesReview. - :param api_version: The api_version of this V1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SelfSubjectRulesReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1SelfSubjectRulesReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1SelfSubjectRulesReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1SelfSubjectRulesReview. + :return: The kind of this V1SelfSubjectRulesReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1SelfSubjectRulesReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1SelfSubjectRulesReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1SelfSubjectRulesReview. + :param kind: The kind of this V1SelfSubjectRulesReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1SelfSubjectRulesReview. + """Gets the metadata of this V1SelfSubjectRulesReview. # noqa: E501 + - :return: The metadata of this V1SelfSubjectRulesReview. + :return: The metadata of this V1SelfSubjectRulesReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1SelfSubjectRulesReview. + """Sets the metadata of this V1SelfSubjectRulesReview. + - :param metadata: The metadata of this V1SelfSubjectRulesReview. + :param metadata: The metadata of this V1SelfSubjectRulesReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1SelfSubjectRulesReview. - Spec holds information about the request being evaluated. + """Gets the spec of this V1SelfSubjectRulesReview. # noqa: E501 + - :return: The spec of this V1SelfSubjectRulesReview. + :return: The spec of this V1SelfSubjectRulesReview. # noqa: E501 :rtype: V1SelfSubjectRulesReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1SelfSubjectRulesReview. - Spec holds information about the request being evaluated. + """Sets the spec of this V1SelfSubjectRulesReview. - :param spec: The spec of this V1SelfSubjectRulesReview. + + :param spec: The spec of this V1SelfSubjectRulesReview. # noqa: E501 :type: V1SelfSubjectRulesReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1SelfSubjectRulesReview. - Status is filled in by the server and indicates the set of actions a user can perform. + """Gets the status of this V1SelfSubjectRulesReview. # noqa: E501 - :return: The status of this V1SelfSubjectRulesReview. + + :return: The status of this V1SelfSubjectRulesReview. # noqa: E501 :rtype: V1SubjectRulesReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1SelfSubjectRulesReview. - Status is filled in by the server and indicates the set of actions a user can perform. + """Sets the status of this V1SelfSubjectRulesReview. - :param status: The status of this V1SelfSubjectRulesReview. + + :param status: The status of this V1SelfSubjectRulesReview. # noqa: E501 :type: V1SubjectRulesReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SelfSubjectRulesReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1_self_subject_rules_review_spec.py index b052f630bf..7b196c7b42 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_rules_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SelfSubjectRulesReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'namespace': 'str' } @@ -38,47 +38,43 @@ class V1SelfSubjectRulesReviewSpec(object): 'namespace': 'namespace' } - def __init__(self, namespace=None): - """ - V1SelfSubjectRulesReviewSpec - a model defined in Swagger - """ + def __init__(self, namespace=None): # noqa: E501 + """V1SelfSubjectRulesReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._namespace = None self.discriminator = None if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def namespace(self): - """ - Gets the namespace of this V1SelfSubjectRulesReviewSpec. - Namespace to evaluate rules for. Required. + """Gets the namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 + + Namespace to evaluate rules for. Required. # noqa: E501 - :return: The namespace of this V1SelfSubjectRulesReviewSpec. + :return: The namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1SelfSubjectRulesReviewSpec. - Namespace to evaluate rules for. Required. + """Sets the namespace of this V1SelfSubjectRulesReviewSpec. + + Namespace to evaluate rules for. Required. # noqa: E501 - :param namespace: The namespace of this V1SelfSubjectRulesReviewSpec. + :param namespace: The namespace of this V1SelfSubjectRulesReviewSpec. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SelfSubjectRulesReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_server_address_by_client_cidr.py b/kubernetes/client/models/v1_server_address_by_client_cidr.py index b66a095799..f46738a3ac 100644 --- a/kubernetes/client/models/v1_server_address_by_client_cidr.py +++ b/kubernetes/client/models/v1_server_address_by_client_cidr.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServerAddressByClientCIDR(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'client_cidr': 'str', 'server_address': 'str' } @@ -40,10 +40,8 @@ class V1ServerAddressByClientCIDR(object): 'server_address': 'serverAddress' } - def __init__(self, client_cidr=None, server_address=None): - """ - V1ServerAddressByClientCIDR - a model defined in Swagger - """ + def __init__(self, client_cidr=None, server_address=None): # noqa: E501 + """V1ServerAddressByClientCIDR - a model defined in OpenAPI""" # noqa: E501 self._client_cidr = None self._server_address = None @@ -54,61 +52,59 @@ def __init__(self, client_cidr=None, server_address=None): @property def client_cidr(self): - """ - Gets the client_cidr of this V1ServerAddressByClientCIDR. - The CIDR with which clients can match their IP to figure out the server address that they should use. + """Gets the client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 + + The CIDR with which clients can match their IP to figure out the server address that they should use. # noqa: E501 - :return: The client_cidr of this V1ServerAddressByClientCIDR. + :return: The client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 :rtype: str """ return self._client_cidr @client_cidr.setter def client_cidr(self, client_cidr): - """ - Sets the client_cidr of this V1ServerAddressByClientCIDR. - The CIDR with which clients can match their IP to figure out the server address that they should use. + """Sets the client_cidr of this V1ServerAddressByClientCIDR. - :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. + The CIDR with which clients can match their IP to figure out the server address that they should use. # noqa: E501 + + :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 :type: str """ if client_cidr is None: - raise ValueError("Invalid value for `client_cidr`, must not be `None`") + raise ValueError("Invalid value for `client_cidr`, must not be `None`") # noqa: E501 self._client_cidr = client_cidr @property def server_address(self): - """ - Gets the server_address of this V1ServerAddressByClientCIDR. - Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + """Gets the server_address of this V1ServerAddressByClientCIDR. # noqa: E501 + + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. # noqa: E501 - :return: The server_address of this V1ServerAddressByClientCIDR. + :return: The server_address of this V1ServerAddressByClientCIDR. # noqa: E501 :rtype: str """ return self._server_address @server_address.setter def server_address(self, server_address): - """ - Sets the server_address of this V1ServerAddressByClientCIDR. - Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + """Sets the server_address of this V1ServerAddressByClientCIDR. + + Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. # noqa: E501 - :param server_address: The server_address of this V1ServerAddressByClientCIDR. + :param server_address: The server_address of this V1ServerAddressByClientCIDR. # noqa: E501 :type: str """ if server_address is None: - raise ValueError("Invalid value for `server_address`, must not be `None`") + raise ValueError("Invalid value for `server_address`, must not be `None`") # noqa: E501 self._server_address = server_address def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServerAddressByClientCIDR): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service.py b/kubernetes/client/models/v1_service.py index 4e7be56cef..2963bd359b 100644 --- a/kubernetes/client/models/v1_service.py +++ b/kubernetes/client/models/v1_service.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Service(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1Service(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1Service - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1Service - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Service. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Service. # noqa: E501 - :return: The api_version of this V1Service. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1Service. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Service. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Service. - :param api_version: The api_version of this V1Service. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Service. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1Service. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Service. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Service. + :return: The kind of this V1Service. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Service. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Service. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1Service. + :param kind: The kind of this V1Service. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1Service. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1Service. # noqa: E501 + - :return: The metadata of this V1Service. + :return: The metadata of this V1Service. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Service. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1Service. + - :param metadata: The metadata of this V1Service. + :param metadata: The metadata of this V1Service. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1Service. - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1Service. # noqa: E501 + - :return: The spec of this V1Service. + :return: The spec of this V1Service. # noqa: E501 :rtype: V1ServiceSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1Service. - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1Service. - :param spec: The spec of this V1Service. + + :param spec: The spec of this V1Service. # noqa: E501 :type: V1ServiceSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1Service. - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Service. # noqa: E501 - :return: The status of this V1Service. + + :return: The status of this V1Service. # noqa: E501 :rtype: V1ServiceStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Service. - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Service. - :param status: The status of this V1Service. + + :param status: The status of this V1Service. # noqa: E501 :type: V1ServiceStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Service): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_account.py b/kubernetes/client/models/v1_service_account.py index fc8c863fb1..773ff142f7 100644 --- a/kubernetes/client/models/v1_service_account.py +++ b/kubernetes/client/models/v1_service_account.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceAccount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'automount_service_account_token': 'bool', 'image_pull_secrets': 'list[V1LocalObjectReference]', @@ -48,10 +48,8 @@ class V1ServiceAccount(object): 'secrets': 'secrets' } - def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): - """ - V1ServiceAccount - a model defined in Swagger - """ + def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): # noqa: E501 + """V1ServiceAccount - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._automount_service_account_token = None @@ -62,36 +60,36 @@ def __init__(self, api_version=None, automount_service_account_token=None, image self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if automount_service_account_token is not None: - self.automount_service_account_token = automount_service_account_token + self.automount_service_account_token = automount_service_account_token if image_pull_secrets is not None: - self.image_pull_secrets = image_pull_secrets + self.image_pull_secrets = image_pull_secrets if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if secrets is not None: - self.secrets = secrets + self.secrets = secrets @property def api_version(self): - """ - Gets the api_version of this V1ServiceAccount. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ServiceAccount. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ServiceAccount. + :return: The api_version of this V1ServiceAccount. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ServiceAccount. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ServiceAccount. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ServiceAccount. + :param api_version: The api_version of this V1ServiceAccount. # noqa: E501 :type: str """ @@ -99,22 +97,22 @@ def api_version(self, api_version): @property def automount_service_account_token(self): - """ - Gets the automount_service_account_token of this V1ServiceAccount. - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + """Gets the automount_service_account_token of this V1ServiceAccount. # noqa: E501 + + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. # noqa: E501 - :return: The automount_service_account_token of this V1ServiceAccount. + :return: The automount_service_account_token of this V1ServiceAccount. # noqa: E501 :rtype: bool """ return self._automount_service_account_token @automount_service_account_token.setter def automount_service_account_token(self, automount_service_account_token): - """ - Sets the automount_service_account_token of this V1ServiceAccount. - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + """Sets the automount_service_account_token of this V1ServiceAccount. - :param automount_service_account_token: The automount_service_account_token of this V1ServiceAccount. + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. # noqa: E501 + + :param automount_service_account_token: The automount_service_account_token of this V1ServiceAccount. # noqa: E501 :type: bool """ @@ -122,22 +120,22 @@ def automount_service_account_token(self, automount_service_account_token): @property def image_pull_secrets(self): - """ - Gets the image_pull_secrets of this V1ServiceAccount. - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + """Gets the image_pull_secrets of this V1ServiceAccount. # noqa: E501 - :return: The image_pull_secrets of this V1ServiceAccount. + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod # noqa: E501 + + :return: The image_pull_secrets of this V1ServiceAccount. # noqa: E501 :rtype: list[V1LocalObjectReference] """ return self._image_pull_secrets @image_pull_secrets.setter def image_pull_secrets(self, image_pull_secrets): - """ - Sets the image_pull_secrets of this V1ServiceAccount. - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + """Sets the image_pull_secrets of this V1ServiceAccount. + + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod # noqa: E501 - :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. + :param image_pull_secrets: The image_pull_secrets of this V1ServiceAccount. # noqa: E501 :type: list[V1LocalObjectReference] """ @@ -145,22 +143,22 @@ def image_pull_secrets(self, image_pull_secrets): @property def kind(self): - """ - Gets the kind of this V1ServiceAccount. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ServiceAccount. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ServiceAccount. + :return: The kind of this V1ServiceAccount. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ServiceAccount. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ServiceAccount. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ServiceAccount. + :param kind: The kind of this V1ServiceAccount. # noqa: E501 :type: str """ @@ -168,22 +166,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ServiceAccount. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1ServiceAccount. # noqa: E501 - :return: The metadata of this V1ServiceAccount. + + :return: The metadata of this V1ServiceAccount. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ServiceAccount. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1ServiceAccount. - :param metadata: The metadata of this V1ServiceAccount. + + :param metadata: The metadata of this V1ServiceAccount. # noqa: E501 :type: V1ObjectMeta """ @@ -191,34 +187,32 @@ def metadata(self, metadata): @property def secrets(self): - """ - Gets the secrets of this V1ServiceAccount. - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """Gets the secrets of this V1ServiceAccount. # noqa: E501 + + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 - :return: The secrets of this V1ServiceAccount. + :return: The secrets of this V1ServiceAccount. # noqa: E501 :rtype: list[V1ObjectReference] """ return self._secrets @secrets.setter def secrets(self, secrets): - """ - Sets the secrets of this V1ServiceAccount. - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """Sets the secrets of this V1ServiceAccount. + + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret # noqa: E501 - :param secrets: The secrets of this V1ServiceAccount. + :param secrets: The secrets of this V1ServiceAccount. # noqa: E501 :type: list[V1ObjectReference] """ self._secrets = secrets def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +233,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceAccount): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_account_list.py b/kubernetes/client/models/v1_service_account_list.py index 6f7f690638..86dfe8583c 100644 --- a/kubernetes/client/models/v1_service_account_list.py +++ b/kubernetes/client/models/v1_service_account_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceAccountList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1ServiceAccount]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ServiceAccountList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ServiceAccountList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ServiceAccountList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ServiceAccountList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ServiceAccountList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ServiceAccountList. + :return: The api_version of this V1ServiceAccountList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ServiceAccountList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ServiceAccountList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ServiceAccountList. + :param api_version: The api_version of this V1ServiceAccountList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ServiceAccountList. - List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """Gets the items of this V1ServiceAccountList. # noqa: E501 + + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 - :return: The items of this V1ServiceAccountList. + :return: The items of this V1ServiceAccountList. # noqa: E501 :rtype: list[V1ServiceAccount] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ServiceAccountList. - List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """Sets the items of this V1ServiceAccountList. + + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ # noqa: E501 - :param items: The items of this V1ServiceAccountList. + :param items: The items of this V1ServiceAccountList. # noqa: E501 :type: list[V1ServiceAccount] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ServiceAccountList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ServiceAccountList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ServiceAccountList. + :return: The kind of this V1ServiceAccountList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ServiceAccountList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ServiceAccountList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ServiceAccountList. + :param kind: The kind of this V1ServiceAccountList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ServiceAccountList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ServiceAccountList. # noqa: E501 + - :return: The metadata of this V1ServiceAccountList. + :return: The metadata of this V1ServiceAccountList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ServiceAccountList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ServiceAccountList. + - :param metadata: The metadata of this V1ServiceAccountList. + :param metadata: The metadata of this V1ServiceAccountList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceAccountList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_account_token_projection.py b/kubernetes/client/models/v1_service_account_token_projection.py index 6244615adb..4ef279815c 100644 --- a/kubernetes/client/models/v1_service_account_token_projection.py +++ b/kubernetes/client/models/v1_service_account_token_projection.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceAccountTokenProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'audience': 'str', 'expiration_seconds': 'int', 'path': 'str' @@ -42,10 +42,8 @@ class V1ServiceAccountTokenProjection(object): 'path': 'path' } - def __init__(self, audience=None, expiration_seconds=None, path=None): - """ - V1ServiceAccountTokenProjection - a model defined in Swagger - """ + def __init__(self, audience=None, expiration_seconds=None, path=None): # noqa: E501 + """V1ServiceAccountTokenProjection - a model defined in OpenAPI""" # noqa: E501 self._audience = None self._expiration_seconds = None @@ -53,29 +51,29 @@ def __init__(self, audience=None, expiration_seconds=None, path=None): self.discriminator = None if audience is not None: - self.audience = audience + self.audience = audience if expiration_seconds is not None: - self.expiration_seconds = expiration_seconds + self.expiration_seconds = expiration_seconds self.path = path @property def audience(self): - """ - Gets the audience of this V1ServiceAccountTokenProjection. - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + """Gets the audience of this V1ServiceAccountTokenProjection. # noqa: E501 - :return: The audience of this V1ServiceAccountTokenProjection. + Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. # noqa: E501 + + :return: The audience of this V1ServiceAccountTokenProjection. # noqa: E501 :rtype: str """ return self._audience @audience.setter def audience(self, audience): - """ - Sets the audience of this V1ServiceAccountTokenProjection. - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + """Sets the audience of this V1ServiceAccountTokenProjection. - :param audience: The audience of this V1ServiceAccountTokenProjection. + Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. # noqa: E501 + + :param audience: The audience of this V1ServiceAccountTokenProjection. # noqa: E501 :type: str """ @@ -83,22 +81,22 @@ def audience(self, audience): @property def expiration_seconds(self): - """ - Gets the expiration_seconds of this V1ServiceAccountTokenProjection. - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + """Gets the expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 - :return: The expiration_seconds of this V1ServiceAccountTokenProjection. + ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. # noqa: E501 + + :return: The expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 :rtype: int """ return self._expiration_seconds @expiration_seconds.setter def expiration_seconds(self, expiration_seconds): - """ - Sets the expiration_seconds of this V1ServiceAccountTokenProjection. - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + """Sets the expiration_seconds of this V1ServiceAccountTokenProjection. + + ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. # noqa: E501 - :param expiration_seconds: The expiration_seconds of this V1ServiceAccountTokenProjection. + :param expiration_seconds: The expiration_seconds of this V1ServiceAccountTokenProjection. # noqa: E501 :type: int """ @@ -106,36 +104,34 @@ def expiration_seconds(self, expiration_seconds): @property def path(self): - """ - Gets the path of this V1ServiceAccountTokenProjection. - Path is the path relative to the mount point of the file to project the token into. + """Gets the path of this V1ServiceAccountTokenProjection. # noqa: E501 + + Path is the path relative to the mount point of the file to project the token into. # noqa: E501 - :return: The path of this V1ServiceAccountTokenProjection. + :return: The path of this V1ServiceAccountTokenProjection. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1ServiceAccountTokenProjection. - Path is the path relative to the mount point of the file to project the token into. + """Sets the path of this V1ServiceAccountTokenProjection. + + Path is the path relative to the mount point of the file to project the token into. # noqa: E501 - :param path: The path of this V1ServiceAccountTokenProjection. + :param path: The path of this V1ServiceAccountTokenProjection. # noqa: E501 :type: str """ if path is None: - raise ValueError("Invalid value for `path`, must not be `None`") + raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceAccountTokenProjection): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_list.py b/kubernetes/client/models/v1_service_list.py index 858b013166..1fd9732ef6 100644 --- a/kubernetes/client/models/v1_service_list.py +++ b/kubernetes/client/models/v1_service_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1Service]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1ServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1ServiceList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1ServiceList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1ServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1ServiceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1ServiceList. + :return: The api_version of this V1ServiceList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1ServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1ServiceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1ServiceList. + :param api_version: The api_version of this V1ServiceList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1ServiceList. - List of services + """Gets the items of this V1ServiceList. # noqa: E501 + + List of services # noqa: E501 - :return: The items of this V1ServiceList. + :return: The items of this V1ServiceList. # noqa: E501 :rtype: list[V1Service] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1ServiceList. - List of services + """Sets the items of this V1ServiceList. + + List of services # noqa: E501 - :param items: The items of this V1ServiceList. + :param items: The items of this V1ServiceList. # noqa: E501 :type: list[V1Service] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1ServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1ServiceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1ServiceList. + :return: The kind of this V1ServiceList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1ServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1ServiceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1ServiceList. + :param kind: The kind of this V1ServiceList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1ServiceList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1ServiceList. # noqa: E501 + - :return: The metadata of this V1ServiceList. + :return: The metadata of this V1ServiceList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1ServiceList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1ServiceList. + - :param metadata: The metadata of this V1ServiceList. + :param metadata: The metadata of this V1ServiceList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index b17aee9cc4..48d85a1448 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServicePort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'node_port': 'int', 'port': 'int', @@ -46,10 +46,8 @@ class V1ServicePort(object): 'target_port': 'targetPort' } - def __init__(self, name=None, node_port=None, port=None, protocol=None, target_port=None): - """ - V1ServicePort - a model defined in Swagger - """ + def __init__(self, name=None, node_port=None, port=None, protocol=None, target_port=None): # noqa: E501 + """V1ServicePort - a model defined in OpenAPI""" # noqa: E501 self._name = None self._node_port = None @@ -59,33 +57,33 @@ def __init__(self, name=None, node_port=None, port=None, protocol=None, target_p self.discriminator = None if name is not None: - self.name = name + self.name = name if node_port is not None: - self.node_port = node_port + self.node_port = node_port self.port = port if protocol is not None: - self.protocol = protocol + self.protocol = protocol if target_port is not None: - self.target_port = target_port + self.target_port = target_port @property def name(self): - """ - Gets the name of this V1ServicePort. - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. + """Gets the name of this V1ServicePort. # noqa: E501 - :return: The name of this V1ServicePort. + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. # noqa: E501 + + :return: The name of this V1ServicePort. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ServicePort. - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. + """Sets the name of this V1ServicePort. - :param name: The name of this V1ServicePort. + The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. # noqa: E501 + + :param name: The name of this V1ServicePort. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def name(self, name): @property def node_port(self): - """ - Gets the node_port of this V1ServicePort. - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + """Gets the node_port of this V1ServicePort. # noqa: E501 + + The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport # noqa: E501 - :return: The node_port of this V1ServicePort. + :return: The node_port of this V1ServicePort. # noqa: E501 :rtype: int """ return self._node_port @node_port.setter def node_port(self, node_port): - """ - Sets the node_port of this V1ServicePort. - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + """Sets the node_port of this V1ServicePort. + + The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport # noqa: E501 - :param node_port: The node_port of this V1ServicePort. + :param node_port: The node_port of this V1ServicePort. # noqa: E501 :type: int """ @@ -116,47 +114,47 @@ def node_port(self, node_port): @property def port(self): - """ - Gets the port of this V1ServicePort. - The port that will be exposed by this service. + """Gets the port of this V1ServicePort. # noqa: E501 + + The port that will be exposed by this service. # noqa: E501 - :return: The port of this V1ServicePort. + :return: The port of this V1ServicePort. # noqa: E501 :rtype: int """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1ServicePort. - The port that will be exposed by this service. + """Sets the port of this V1ServicePort. + + The port that will be exposed by this service. # noqa: E501 - :param port: The port of this V1ServicePort. + :param port: The port of this V1ServicePort. # noqa: E501 :type: int """ if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @property def protocol(self): - """ - Gets the protocol of this V1ServicePort. - The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. + """Gets the protocol of this V1ServicePort. # noqa: E501 + + The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. # noqa: E501 - :return: The protocol of this V1ServicePort. + :return: The protocol of this V1ServicePort. # noqa: E501 :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): - """ - Sets the protocol of this V1ServicePort. - The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. + """Sets the protocol of this V1ServicePort. - :param protocol: The protocol of this V1ServicePort. + The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. # noqa: E501 + + :param protocol: The protocol of this V1ServicePort. # noqa: E501 :type: str """ @@ -164,34 +162,32 @@ def protocol(self, protocol): @property def target_port(self): - """ - Gets the target_port of this V1ServicePort. - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + """Gets the target_port of this V1ServicePort. # noqa: E501 - :return: The target_port of this V1ServicePort. + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service # noqa: E501 + + :return: The target_port of this V1ServicePort. # noqa: E501 :rtype: object """ return self._target_port @target_port.setter def target_port(self, target_port): - """ - Sets the target_port of this V1ServicePort. - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + """Sets the target_port of this V1ServicePort. - :param target_port: The target_port of this V1ServicePort. + Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service # noqa: E501 + + :param target_port: The target_port of this V1ServicePort. # noqa: E501 :type: object """ self._target_port = target_port def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServicePort): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_reference.py b/kubernetes/client/models/v1_service_reference.py index 4fc0cc1eda..5cdb30434a 100644 --- a/kubernetes/client/models/v1_service_reference.py +++ b/kubernetes/client/models/v1_service_reference.py @@ -3,75 +3,78 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', - 'namespace': 'str' + 'namespace': 'str', + 'port': 'int' } attribute_map = { 'name': 'name', - 'namespace': 'namespace' + 'namespace': 'namespace', + 'port': 'port' } - def __init__(self, name=None, namespace=None): - """ - V1ServiceReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None, port=None): # noqa: E501 + """V1ServiceReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None + self._port = None self.discriminator = None if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace + if port is not None: + self.port = port @property def name(self): - """ - Gets the name of this V1ServiceReference. - Name is the name of the service + """Gets the name of this V1ServiceReference. # noqa: E501 + + Name is the name of the service # noqa: E501 - :return: The name of this V1ServiceReference. + :return: The name of this V1ServiceReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1ServiceReference. - Name is the name of the service + """Sets the name of this V1ServiceReference. + + Name is the name of the service # noqa: E501 - :param name: The name of this V1ServiceReference. + :param name: The name of this V1ServiceReference. # noqa: E501 :type: str """ @@ -79,34 +82,55 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1ServiceReference. - Namespace is the namespace of the service + """Gets the namespace of this V1ServiceReference. # noqa: E501 + + Namespace is the namespace of the service # noqa: E501 - :return: The namespace of this V1ServiceReference. + :return: The namespace of this V1ServiceReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1ServiceReference. - Namespace is the namespace of the service + """Sets the namespace of this V1ServiceReference. + + Namespace is the namespace of the service # noqa: E501 - :param namespace: The namespace of this V1ServiceReference. + :param namespace: The namespace of this V1ServiceReference. # noqa: E501 :type: str """ self._namespace = namespace - def to_dict(self): + @property + def port(self): + """Gets the port of this V1ServiceReference. # noqa: E501 + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :return: The port of this V1ServiceReference. # noqa: E501 + :rtype: int """ - Returns the model properties as a dict + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1ServiceReference. + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :param port: The port of this V1ServiceReference. # noqa: E501 + :type: int """ + + self._port = port + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_spec.py b/kubernetes/client/models/v1_service_spec.py index 95b0ef61e8..d56a566311 100644 --- a/kubernetes/client/models/v1_service_spec.py +++ b/kubernetes/client/models/v1_service_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cluster_ip': 'str', 'external_i_ps': 'list[str]', 'external_name': 'str', @@ -62,10 +62,8 @@ class V1ServiceSpec(object): 'type': 'type' } - def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None): - """ - V1ServiceSpec - a model defined in Swagger - """ + def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None): # noqa: E501 + """V1ServiceSpec - a model defined in OpenAPI""" # noqa: E501 self._cluster_ip = None self._external_i_ps = None @@ -83,50 +81,50 @@ def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, exte self.discriminator = None if cluster_ip is not None: - self.cluster_ip = cluster_ip + self.cluster_ip = cluster_ip if external_i_ps is not None: - self.external_i_ps = external_i_ps + self.external_i_ps = external_i_ps if external_name is not None: - self.external_name = external_name + self.external_name = external_name if external_traffic_policy is not None: - self.external_traffic_policy = external_traffic_policy + self.external_traffic_policy = external_traffic_policy if health_check_node_port is not None: - self.health_check_node_port = health_check_node_port + self.health_check_node_port = health_check_node_port if load_balancer_ip is not None: - self.load_balancer_ip = load_balancer_ip + self.load_balancer_ip = load_balancer_ip if load_balancer_source_ranges is not None: - self.load_balancer_source_ranges = load_balancer_source_ranges + self.load_balancer_source_ranges = load_balancer_source_ranges if ports is not None: - self.ports = ports + self.ports = ports if publish_not_ready_addresses is not None: - self.publish_not_ready_addresses = publish_not_ready_addresses + self.publish_not_ready_addresses = publish_not_ready_addresses if selector is not None: - self.selector = selector + self.selector = selector if session_affinity is not None: - self.session_affinity = session_affinity + self.session_affinity = session_affinity if session_affinity_config is not None: - self.session_affinity_config = session_affinity_config + self.session_affinity_config = session_affinity_config if type is not None: - self.type = type + self.type = type @property def cluster_ip(self): - """ - Gets the cluster_ip of this V1ServiceSpec. - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Gets the cluster_ip of this V1ServiceSpec. # noqa: E501 - :return: The cluster_ip of this V1ServiceSpec. + clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The cluster_ip of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._cluster_ip @cluster_ip.setter def cluster_ip(self, cluster_ip): - """ - Sets the cluster_ip of this V1ServiceSpec. - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Sets the cluster_ip of this V1ServiceSpec. - :param cluster_ip: The cluster_ip of this V1ServiceSpec. + clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param cluster_ip: The cluster_ip of this V1ServiceSpec. # noqa: E501 :type: str """ @@ -134,22 +132,22 @@ def cluster_ip(self, cluster_ip): @property def external_i_ps(self): - """ - Gets the external_i_ps of this V1ServiceSpec. - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + """Gets the external_i_ps of this V1ServiceSpec. # noqa: E501 - :return: The external_i_ps of this V1ServiceSpec. + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. # noqa: E501 + + :return: The external_i_ps of this V1ServiceSpec. # noqa: E501 :rtype: list[str] """ return self._external_i_ps @external_i_ps.setter def external_i_ps(self, external_i_ps): - """ - Sets the external_i_ps of this V1ServiceSpec. - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + """Sets the external_i_ps of this V1ServiceSpec. - :param external_i_ps: The external_i_ps of this V1ServiceSpec. + externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. # noqa: E501 + + :param external_i_ps: The external_i_ps of this V1ServiceSpec. # noqa: E501 :type: list[str] """ @@ -157,22 +155,22 @@ def external_i_ps(self, external_i_ps): @property def external_name(self): - """ - Gets the external_name of this V1ServiceSpec. - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + """Gets the external_name of this V1ServiceSpec. # noqa: E501 - :return: The external_name of this V1ServiceSpec. + externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. # noqa: E501 + + :return: The external_name of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._external_name @external_name.setter def external_name(self, external_name): - """ - Sets the external_name of this V1ServiceSpec. - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + """Sets the external_name of this V1ServiceSpec. - :param external_name: The external_name of this V1ServiceSpec. + externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. # noqa: E501 + + :param external_name: The external_name of this V1ServiceSpec. # noqa: E501 :type: str """ @@ -180,22 +178,22 @@ def external_name(self, external_name): @property def external_traffic_policy(self): - """ - Gets the external_traffic_policy of this V1ServiceSpec. - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + """Gets the external_traffic_policy of this V1ServiceSpec. # noqa: E501 + + externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. # noqa: E501 - :return: The external_traffic_policy of this V1ServiceSpec. + :return: The external_traffic_policy of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._external_traffic_policy @external_traffic_policy.setter def external_traffic_policy(self, external_traffic_policy): - """ - Sets the external_traffic_policy of this V1ServiceSpec. - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + """Sets the external_traffic_policy of this V1ServiceSpec. + + externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. # noqa: E501 - :param external_traffic_policy: The external_traffic_policy of this V1ServiceSpec. + :param external_traffic_policy: The external_traffic_policy of this V1ServiceSpec. # noqa: E501 :type: str """ @@ -203,22 +201,22 @@ def external_traffic_policy(self, external_traffic_policy): @property def health_check_node_port(self): - """ - Gets the health_check_node_port of this V1ServiceSpec. - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + """Gets the health_check_node_port of this V1ServiceSpec. # noqa: E501 + + healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. # noqa: E501 - :return: The health_check_node_port of this V1ServiceSpec. + :return: The health_check_node_port of this V1ServiceSpec. # noqa: E501 :rtype: int """ return self._health_check_node_port @health_check_node_port.setter def health_check_node_port(self, health_check_node_port): - """ - Sets the health_check_node_port of this V1ServiceSpec. - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + """Sets the health_check_node_port of this V1ServiceSpec. + + healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. # noqa: E501 - :param health_check_node_port: The health_check_node_port of this V1ServiceSpec. + :param health_check_node_port: The health_check_node_port of this V1ServiceSpec. # noqa: E501 :type: int """ @@ -226,22 +224,22 @@ def health_check_node_port(self, health_check_node_port): @property def load_balancer_ip(self): - """ - Gets the load_balancer_ip of this V1ServiceSpec. - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + """Gets the load_balancer_ip of this V1ServiceSpec. # noqa: E501 + + Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. # noqa: E501 - :return: The load_balancer_ip of this V1ServiceSpec. + :return: The load_balancer_ip of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._load_balancer_ip @load_balancer_ip.setter def load_balancer_ip(self, load_balancer_ip): - """ - Sets the load_balancer_ip of this V1ServiceSpec. - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + """Sets the load_balancer_ip of this V1ServiceSpec. + + Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. # noqa: E501 - :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. + :param load_balancer_ip: The load_balancer_ip of this V1ServiceSpec. # noqa: E501 :type: str """ @@ -249,22 +247,22 @@ def load_balancer_ip(self, load_balancer_ip): @property def load_balancer_source_ranges(self): - """ - Gets the load_balancer_source_ranges of this V1ServiceSpec. - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + """Gets the load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 + + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ # noqa: E501 - :return: The load_balancer_source_ranges of this V1ServiceSpec. + :return: The load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 :rtype: list[str] """ return self._load_balancer_source_ranges @load_balancer_source_ranges.setter def load_balancer_source_ranges(self, load_balancer_source_ranges): - """ - Sets the load_balancer_source_ranges of this V1ServiceSpec. - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + """Sets the load_balancer_source_ranges of this V1ServiceSpec. + + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ # noqa: E501 - :param load_balancer_source_ranges: The load_balancer_source_ranges of this V1ServiceSpec. + :param load_balancer_source_ranges: The load_balancer_source_ranges of this V1ServiceSpec. # noqa: E501 :type: list[str] """ @@ -272,22 +270,22 @@ def load_balancer_source_ranges(self, load_balancer_source_ranges): @property def ports(self): - """ - Gets the ports of this V1ServiceSpec. - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Gets the ports of this V1ServiceSpec. # noqa: E501 + + The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 - :return: The ports of this V1ServiceSpec. + :return: The ports of this V1ServiceSpec. # noqa: E501 :rtype: list[V1ServicePort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1ServiceSpec. - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Sets the ports of this V1ServiceSpec. - :param ports: The ports of this V1ServiceSpec. + The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param ports: The ports of this V1ServiceSpec. # noqa: E501 :type: list[V1ServicePort] """ @@ -295,22 +293,22 @@ def ports(self, ports): @property def publish_not_ready_addresses(self): - """ - Gets the publish_not_ready_addresses of this V1ServiceSpec. - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + """Gets the publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 - :return: The publish_not_ready_addresses of this V1ServiceSpec. + publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. # noqa: E501 + + :return: The publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 :rtype: bool """ return self._publish_not_ready_addresses @publish_not_ready_addresses.setter def publish_not_ready_addresses(self, publish_not_ready_addresses): - """ - Sets the publish_not_ready_addresses of this V1ServiceSpec. - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + """Sets the publish_not_ready_addresses of this V1ServiceSpec. - :param publish_not_ready_addresses: The publish_not_ready_addresses of this V1ServiceSpec. + publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. # noqa: E501 + + :param publish_not_ready_addresses: The publish_not_ready_addresses of this V1ServiceSpec. # noqa: E501 :type: bool """ @@ -318,22 +316,22 @@ def publish_not_ready_addresses(self, publish_not_ready_addresses): @property def selector(self): - """ - Gets the selector of this V1ServiceSpec. - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + """Gets the selector of this V1ServiceSpec. # noqa: E501 - :return: The selector of this V1ServiceSpec. + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ # noqa: E501 + + :return: The selector of this V1ServiceSpec. # noqa: E501 :rtype: dict(str, str) """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1ServiceSpec. - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + """Sets the selector of this V1ServiceSpec. - :param selector: The selector of this V1ServiceSpec. + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ # noqa: E501 + + :param selector: The selector of this V1ServiceSpec. # noqa: E501 :type: dict(str, str) """ @@ -341,22 +339,22 @@ def selector(self, selector): @property def session_affinity(self): - """ - Gets the session_affinity of this V1ServiceSpec. - Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Gets the session_affinity of this V1ServiceSpec. # noqa: E501 - :return: The session_affinity of this V1ServiceSpec. + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :return: The session_affinity of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._session_affinity @session_affinity.setter def session_affinity(self, session_affinity): - """ - Sets the session_affinity of this V1ServiceSpec. - Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + """Sets the session_affinity of this V1ServiceSpec. - :param session_affinity: The session_affinity of this V1ServiceSpec. + Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies # noqa: E501 + + :param session_affinity: The session_affinity of this V1ServiceSpec. # noqa: E501 :type: str """ @@ -364,22 +362,20 @@ def session_affinity(self, session_affinity): @property def session_affinity_config(self): - """ - Gets the session_affinity_config of this V1ServiceSpec. - sessionAffinityConfig contains the configurations of session affinity. + """Gets the session_affinity_config of this V1ServiceSpec. # noqa: E501 - :return: The session_affinity_config of this V1ServiceSpec. + + :return: The session_affinity_config of this V1ServiceSpec. # noqa: E501 :rtype: V1SessionAffinityConfig """ return self._session_affinity_config @session_affinity_config.setter def session_affinity_config(self, session_affinity_config): - """ - Sets the session_affinity_config of this V1ServiceSpec. - sessionAffinityConfig contains the configurations of session affinity. + """Sets the session_affinity_config of this V1ServiceSpec. + - :param session_affinity_config: The session_affinity_config of this V1ServiceSpec. + :param session_affinity_config: The session_affinity_config of this V1ServiceSpec. # noqa: E501 :type: V1SessionAffinityConfig """ @@ -387,34 +383,32 @@ def session_affinity_config(self, session_affinity_config): @property def type(self): - """ - Gets the type of this V1ServiceSpec. - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + """Gets the type of this V1ServiceSpec. # noqa: E501 + + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types # noqa: E501 - :return: The type of this V1ServiceSpec. + :return: The type of this V1ServiceSpec. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1ServiceSpec. - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + """Sets the type of this V1ServiceSpec. + + type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types # noqa: E501 - :param type: The type of this V1ServiceSpec. + :param type: The type of this V1ServiceSpec. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -435,28 +429,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_service_status.py b/kubernetes/client/models/v1_service_status.py index b2e793dd91..1ef92f48ef 100644 --- a/kubernetes/client/models/v1_service_status.py +++ b/kubernetes/client/models/v1_service_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1ServiceStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'load_balancer': 'V1LoadBalancerStatus' } @@ -38,47 +38,41 @@ class V1ServiceStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): - """ - V1ServiceStatus - a model defined in Swagger - """ + def __init__(self, load_balancer=None): # noqa: E501 + """V1ServiceStatus - a model defined in OpenAPI""" # noqa: E501 self._load_balancer = None self.discriminator = None if load_balancer is not None: - self.load_balancer = load_balancer + self.load_balancer = load_balancer @property def load_balancer(self): - """ - Gets the load_balancer of this V1ServiceStatus. - LoadBalancer contains the current status of the load-balancer, if one is present. + """Gets the load_balancer of this V1ServiceStatus. # noqa: E501 + - :return: The load_balancer of this V1ServiceStatus. + :return: The load_balancer of this V1ServiceStatus. # noqa: E501 :rtype: V1LoadBalancerStatus """ return self._load_balancer @load_balancer.setter def load_balancer(self, load_balancer): - """ - Sets the load_balancer of this V1ServiceStatus. - LoadBalancer contains the current status of the load-balancer, if one is present. + """Sets the load_balancer of this V1ServiceStatus. + - :param load_balancer: The load_balancer of this V1ServiceStatus. + :param load_balancer: The load_balancer of this V1ServiceStatus. # noqa: E501 :type: V1LoadBalancerStatus """ self._load_balancer = load_balancer def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1ServiceStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_session_affinity_config.py b/kubernetes/client/models/v1_session_affinity_config.py index fc33d32d96..7375efd252 100644 --- a/kubernetes/client/models/v1_session_affinity_config.py +++ b/kubernetes/client/models/v1_session_affinity_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SessionAffinityConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'client_ip': 'V1ClientIPConfig' } @@ -38,47 +38,41 @@ class V1SessionAffinityConfig(object): 'client_ip': 'clientIP' } - def __init__(self, client_ip=None): - """ - V1SessionAffinityConfig - a model defined in Swagger - """ + def __init__(self, client_ip=None): # noqa: E501 + """V1SessionAffinityConfig - a model defined in OpenAPI""" # noqa: E501 self._client_ip = None self.discriminator = None if client_ip is not None: - self.client_ip = client_ip + self.client_ip = client_ip @property def client_ip(self): - """ - Gets the client_ip of this V1SessionAffinityConfig. - clientIP contains the configurations of Client IP based session affinity. + """Gets the client_ip of this V1SessionAffinityConfig. # noqa: E501 + - :return: The client_ip of this V1SessionAffinityConfig. + :return: The client_ip of this V1SessionAffinityConfig. # noqa: E501 :rtype: V1ClientIPConfig """ return self._client_ip @client_ip.setter def client_ip(self, client_ip): - """ - Sets the client_ip of this V1SessionAffinityConfig. - clientIP contains the configurations of Client IP based session affinity. + """Sets the client_ip of this V1SessionAffinityConfig. + - :param client_ip: The client_ip of this V1SessionAffinityConfig. + :param client_ip: The client_ip of this V1SessionAffinityConfig. # noqa: E501 :type: V1ClientIPConfig """ self._client_ip = client_ip def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SessionAffinityConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set.py b/kubernetes/client/models/v1_stateful_set.py index de5cbd2685..19ed839917 100644 --- a/kubernetes/client/models/v1_stateful_set.py +++ b/kubernetes/client/models/v1_stateful_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1StatefulSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1StatefulSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1StatefulSet. # noqa: E501 - :return: The api_version of this V1StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1StatefulSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1StatefulSet. - :param api_version: The api_version of this V1StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1StatefulSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1StatefulSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1StatefulSet. + :return: The kind of this V1StatefulSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1StatefulSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1StatefulSet. + :param kind: The kind of this V1StatefulSet. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1StatefulSet. + """Gets the metadata of this V1StatefulSet. # noqa: E501 + - :return: The metadata of this V1StatefulSet. + :return: The metadata of this V1StatefulSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1StatefulSet. + """Sets the metadata of this V1StatefulSet. + - :param metadata: The metadata of this V1StatefulSet. + :param metadata: The metadata of this V1StatefulSet. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1StatefulSet. - Spec defines the desired identities of pods in this set. + """Gets the spec of this V1StatefulSet. # noqa: E501 + - :return: The spec of this V1StatefulSet. + :return: The spec of this V1StatefulSet. # noqa: E501 :rtype: V1StatefulSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1StatefulSet. - Spec defines the desired identities of pods in this set. + """Sets the spec of this V1StatefulSet. - :param spec: The spec of this V1StatefulSet. + + :param spec: The spec of this V1StatefulSet. # noqa: E501 :type: V1StatefulSetSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Gets the status of this V1StatefulSet. # noqa: E501 - :return: The status of this V1StatefulSet. + + :return: The status of this V1StatefulSet. # noqa: E501 :rtype: V1StatefulSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Sets the status of this V1StatefulSet. - :param status: The status of this V1StatefulSet. + + :param status: The status of this V1StatefulSet. # noqa: E501 :type: V1StatefulSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set_condition.py b/kubernetes/client/models/v1_stateful_set_condition.py index 7c5c082684..1284c51b42 100644 --- a/kubernetes/client/models/v1_stateful_set_condition.py +++ b/kubernetes/client/models/v1_stateful_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1StatefulSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1StatefulSetCondition. # noqa: E501 - :return: The last_transition_time of this V1StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1StatefulSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1StatefulSetCondition. - :param last_transition_time: The last_transition_time of this V1StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1StatefulSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1StatefulSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1StatefulSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1StatefulSetCondition. + :return: The message of this V1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1StatefulSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1StatefulSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1StatefulSetCondition. + :param message: The message of this V1StatefulSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1StatefulSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1StatefulSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1StatefulSetCondition. + :return: The reason of this V1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1StatefulSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1StatefulSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1StatefulSetCondition. + :param reason: The reason of this V1StatefulSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1StatefulSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1StatefulSetCondition. + :return: The status of this V1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1StatefulSetCondition. - :param status: The status of this V1StatefulSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1StatefulSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1StatefulSetCondition. - Type of statefulset condition. + """Gets the type of this V1StatefulSetCondition. # noqa: E501 - :return: The type of this V1StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :return: The type of this V1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1StatefulSetCondition. - Type of statefulset condition. + """Sets the type of this V1StatefulSetCondition. - :param type: The type of this V1StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :param type: The type of this V1StatefulSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set_list.py b/kubernetes/client/models/v1_stateful_set_list.py index 0fdd95a5cf..df65c28415 100644 --- a/kubernetes/client/models/v1_stateful_set_list.py +++ b/kubernetes/client/models/v1_stateful_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1StatefulSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1StatefulSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1StatefulSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1StatefulSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1StatefulSetList. + :return: The api_version of this V1StatefulSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1StatefulSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1StatefulSetList. + :param api_version: The api_version of this V1StatefulSetList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1StatefulSetList. + """Gets the items of this V1StatefulSetList. # noqa: E501 + - :return: The items of this V1StatefulSetList. + :return: The items of this V1StatefulSetList. # noqa: E501 :rtype: list[V1StatefulSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1StatefulSetList. + """Sets the items of this V1StatefulSetList. + - :param items: The items of this V1StatefulSetList. + :param items: The items of this V1StatefulSetList. # noqa: E501 :type: list[V1StatefulSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1StatefulSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1StatefulSetList. + :return: The kind of this V1StatefulSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1StatefulSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1StatefulSetList. + :param kind: The kind of this V1StatefulSetList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1StatefulSetList. + """Gets the metadata of this V1StatefulSetList. # noqa: E501 + - :return: The metadata of this V1StatefulSetList. + :return: The metadata of this V1StatefulSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1StatefulSetList. + """Sets the metadata of this V1StatefulSetList. + - :param metadata: The metadata of this V1StatefulSetList. + :param metadata: The metadata of this V1StatefulSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set_spec.py b/kubernetes/client/models/v1_stateful_set_spec.py index 048ed564f8..41262d41b0 100644 --- a/kubernetes/client/models/v1_stateful_set_spec.py +++ b/kubernetes/client/models/v1_stateful_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pod_management_policy': 'str', 'replicas': 'int', 'revision_history_limit': 'int', @@ -52,10 +52,8 @@ class V1StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): - """ - V1StatefulSetSpec - a model defined in Swagger - """ + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + """V1StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 self._pod_management_policy = None self._replicas = None @@ -68,37 +66,37 @@ def __init__(self, pod_management_policy=None, replicas=None, revision_history_l self.discriminator = None if pod_management_policy is not None: - self.pod_management_policy = pod_management_policy + self.pod_management_policy = pod_management_policy if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector self.service_name = service_name self.template = template if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy if volume_claim_templates is not None: - self.volume_claim_templates = volume_claim_templates + self.volume_claim_templates = volume_claim_templates @property def pod_management_policy(self): - """ - Gets the pod_management_policy of this V1StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Gets the pod_management_policy of this V1StatefulSetSpec. # noqa: E501 + + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 - :return: The pod_management_policy of this V1StatefulSetSpec. + :return: The pod_management_policy of this V1StatefulSetSpec. # noqa: E501 :rtype: str """ return self._pod_management_policy @pod_management_policy.setter def pod_management_policy(self, pod_management_policy): - """ - Sets the pod_management_policy of this V1StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Sets the pod_management_policy of this V1StatefulSetSpec. - :param pod_management_policy: The pod_management_policy of this V1StatefulSetSpec. + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 + + :param pod_management_policy: The pod_management_policy of this V1StatefulSetSpec. # noqa: E501 :type: str """ @@ -106,22 +104,22 @@ def pod_management_policy(self, pod_management_policy): @property def replicas(self): - """ - Gets the replicas of this V1StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Gets the replicas of this V1StatefulSetSpec. # noqa: E501 + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :return: The replicas of this V1StatefulSetSpec. + :return: The replicas of this V1StatefulSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Sets the replicas of this V1StatefulSetSpec. + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :param replicas: The replicas of this V1StatefulSetSpec. + :param replicas: The replicas of this V1StatefulSetSpec. # noqa: E501 :type: int """ @@ -129,22 +127,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Gets the revision_history_limit of this V1StatefulSetSpec. # noqa: E501 - :return: The revision_history_limit of this V1StatefulSetSpec. + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 + + :return: The revision_history_limit of this V1StatefulSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Sets the revision_history_limit of this V1StatefulSetSpec. + + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1StatefulSetSpec. + :param revision_history_limit: The revision_history_limit of this V1StatefulSetSpec. # noqa: E501 :type: int """ @@ -152,97 +150,91 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1StatefulSetSpec. - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1StatefulSetSpec. # noqa: E501 + - :return: The selector of this V1StatefulSetSpec. + :return: The selector of this V1StatefulSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1StatefulSetSpec. - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1StatefulSetSpec. - :param selector: The selector of this V1StatefulSetSpec. + + :param selector: The selector of this V1StatefulSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def service_name(self): - """ - Gets the service_name of this V1StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Gets the service_name of this V1StatefulSetSpec. # noqa: E501 + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :return: The service_name of this V1StatefulSetSpec. + :return: The service_name of this V1StatefulSetSpec. # noqa: E501 :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): - """ - Sets the service_name of this V1StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Sets the service_name of this V1StatefulSetSpec. + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :param service_name: The service_name of this V1StatefulSetSpec. + :param service_name: The service_name of this V1StatefulSetSpec. # noqa: E501 :type: str """ if service_name is None: - raise ValueError("Invalid value for `service_name`, must not be `None`") + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @property def template(self): - """ - Gets the template of this V1StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Gets the template of this V1StatefulSetSpec. # noqa: E501 - :return: The template of this V1StatefulSetSpec. + + :return: The template of this V1StatefulSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Sets the template of this V1StatefulSetSpec. + - :param template: The template of this V1StatefulSetSpec. + :param template: The template of this V1StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def update_strategy(self): - """ - Gets the update_strategy of this V1StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Gets the update_strategy of this V1StatefulSetSpec. # noqa: E501 + - :return: The update_strategy of this V1StatefulSetSpec. + :return: The update_strategy of this V1StatefulSetSpec. # noqa: E501 :rtype: V1StatefulSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Sets the update_strategy of this V1StatefulSetSpec. - :param update_strategy: The update_strategy of this V1StatefulSetSpec. + + :param update_strategy: The update_strategy of this V1StatefulSetSpec. # noqa: E501 :type: V1StatefulSetUpdateStrategy """ @@ -250,34 +242,32 @@ def update_strategy(self, update_strategy): @property def volume_claim_templates(self): - """ - Gets the volume_claim_templates of this V1StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Gets the volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :return: The volume_claim_templates of this V1StatefulSetSpec. + :return: The volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 :rtype: list[V1PersistentVolumeClaim] """ return self._volume_claim_templates @volume_claim_templates.setter def volume_claim_templates(self, volume_claim_templates): - """ - Sets the volume_claim_templates of this V1StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Sets the volume_claim_templates of this V1StatefulSetSpec. + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :param volume_claim_templates: The volume_claim_templates of this V1StatefulSetSpec. + :param volume_claim_templates: The volume_claim_templates of this V1StatefulSetSpec. # noqa: E501 :type: list[V1PersistentVolumeClaim] """ self._volume_claim_templates = volume_claim_templates def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -298,28 +288,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set_status.py b/kubernetes/client/models/v1_stateful_set_status.py index b414cc5488..e86c0f7483 100644 --- a/kubernetes/client/models/v1_stateful_set_status.py +++ b/kubernetes/client/models/v1_stateful_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1StatefulSetCondition]', 'current_replicas': 'int', @@ -54,10 +54,8 @@ class V1StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): - """ - V1StatefulSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + """V1StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -71,41 +69,41 @@ def __init__(self, collision_count=None, conditions=None, current_replicas=None, self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if current_replicas is not None: - self.current_replicas = current_replicas + self.current_replicas = current_replicas if current_revision is not None: - self.current_revision = current_revision + self.current_revision = current_revision if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas if update_revision is not None: - self.update_revision = update_revision + self.update_revision = update_revision if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def collision_count(self): - """ - Gets the collision_count of this V1StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1StatefulSetStatus. # noqa: E501 - :return: The collision_count of this V1StatefulSetStatus. + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1StatefulSetStatus. + + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 - :param collision_count: The collision_count of this V1StatefulSetStatus. + :param collision_count: The collision_count of this V1StatefulSetStatus. # noqa: E501 :type: int """ @@ -113,22 +111,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Gets the conditions of this V1StatefulSetStatus. # noqa: E501 + + Represents the latest available observations of a statefulset's current state. # noqa: E501 - :return: The conditions of this V1StatefulSetStatus. + :return: The conditions of this V1StatefulSetStatus. # noqa: E501 :rtype: list[V1StatefulSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Sets the conditions of this V1StatefulSetStatus. - :param conditions: The conditions of this V1StatefulSetStatus. + Represents the latest available observations of a statefulset's current state. # noqa: E501 + + :param conditions: The conditions of this V1StatefulSetStatus. # noqa: E501 :type: list[V1StatefulSetCondition] """ @@ -136,22 +134,22 @@ def conditions(self, conditions): @property def current_replicas(self): - """ - Gets the current_replicas of this V1StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Gets the current_replicas of this V1StatefulSetStatus. # noqa: E501 - :return: The current_replicas of this V1StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :return: The current_replicas of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V1StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Sets the current_replicas of this V1StatefulSetStatus. - :param current_replicas: The current_replicas of this V1StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :param current_replicas: The current_replicas of this V1StatefulSetStatus. # noqa: E501 :type: int """ @@ -159,22 +157,22 @@ def current_replicas(self, current_replicas): @property def current_revision(self): - """ - Gets the current_revision of this V1StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Gets the current_revision of this V1StatefulSetStatus. # noqa: E501 + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :return: The current_revision of this V1StatefulSetStatus. + :return: The current_revision of this V1StatefulSetStatus. # noqa: E501 :rtype: str """ return self._current_revision @current_revision.setter def current_revision(self, current_revision): - """ - Sets the current_revision of this V1StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Sets the current_revision of this V1StatefulSetStatus. + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :param current_revision: The current_revision of this V1StatefulSetStatus. + :param current_revision: The current_revision of this V1StatefulSetStatus. # noqa: E501 :type: str """ @@ -182,22 +180,22 @@ def current_revision(self, current_revision): @property def observed_generation(self): - """ - Gets the observed_generation of this V1StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Gets the observed_generation of this V1StatefulSetStatus. # noqa: E501 - :return: The observed_generation of this V1StatefulSetStatus. + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 + + :return: The observed_generation of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Sets the observed_generation of this V1StatefulSetStatus. + + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 - :param observed_generation: The observed_generation of this V1StatefulSetStatus. + :param observed_generation: The observed_generation of this V1StatefulSetStatus. # noqa: E501 :type: int """ @@ -205,22 +203,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Gets the ready_replicas of this V1StatefulSetStatus. # noqa: E501 + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :return: The ready_replicas of this V1StatefulSetStatus. + :return: The ready_replicas of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Sets the ready_replicas of this V1StatefulSetStatus. + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :param ready_replicas: The ready_replicas of this V1StatefulSetStatus. + :param ready_replicas: The ready_replicas of this V1StatefulSetStatus. # noqa: E501 :type: int """ @@ -228,47 +226,47 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Gets the replicas of this V1StatefulSetStatus. # noqa: E501 + + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 - :return: The replicas of this V1StatefulSetStatus. + :return: The replicas of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Sets the replicas of this V1StatefulSetStatus. - :param replicas: The replicas of this V1StatefulSetStatus. + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 + + :param replicas: The replicas of this V1StatefulSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def update_revision(self): - """ - Gets the update_revision of this V1StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Gets the update_revision of this V1StatefulSetStatus. # noqa: E501 + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :return: The update_revision of this V1StatefulSetStatus. + :return: The update_revision of this V1StatefulSetStatus. # noqa: E501 :rtype: str """ return self._update_revision @update_revision.setter def update_revision(self, update_revision): - """ - Sets the update_revision of this V1StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Sets the update_revision of this V1StatefulSetStatus. + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :param update_revision: The update_revision of this V1StatefulSetStatus. + :param update_revision: The update_revision of this V1StatefulSetStatus. # noqa: E501 :type: str """ @@ -276,34 +274,32 @@ def update_revision(self, update_revision): @property def updated_replicas(self): - """ - Gets the updated_replicas of this V1StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Gets the updated_replicas of this V1StatefulSetStatus. # noqa: E501 - :return: The updated_replicas of this V1StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :return: The updated_replicas of this V1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this V1StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Sets the updated_replicas of this V1StatefulSetStatus. - :param updated_replicas: The updated_replicas of this V1StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :param updated_replicas: The updated_replicas of this V1StatefulSetStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,28 +320,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_stateful_set_update_strategy.py b/kubernetes/client/models/v1_stateful_set_update_strategy.py index 61aef4695a..936003d4bf 100644 --- a/kubernetes/client/models/v1_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1_stateful_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatefulSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1RollingUpdateStatefulSetStrategy', 'type': 'str' } @@ -40,38 +40,34 @@ class V1StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1StatefulSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Gets the rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1StatefulSetUpdateStrategy. + :return: The rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 :rtype: V1RollingUpdateStatefulSetStrategy """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Sets the rolling_update of this V1StatefulSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1StatefulSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1StatefulSetUpdateStrategy. # noqa: E501 :type: V1RollingUpdateStatefulSetStrategy """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + """Gets the type of this V1StatefulSetUpdateStrategy. # noqa: E501 + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 - :return: The type of this V1StatefulSetUpdateStrategy. + :return: The type of this V1StatefulSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + """Sets the type of this V1StatefulSetUpdateStrategy. + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1StatefulSetUpdateStrategy. + :param type: The type of this V1StatefulSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatefulSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_status.py b/kubernetes/client/models/v1_status.py index 5103936da4..d39db099ba 100644 --- a/kubernetes/client/models/v1_status.py +++ b/kubernetes/client/models/v1_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Status(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'code': 'int', 'details': 'V1StatusDetails', @@ -52,10 +52,8 @@ class V1Status(object): 'status': 'status' } - def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): - """ - V1Status - a model defined in Swagger - """ + def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): # noqa: E501 + """V1Status - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._code = None @@ -68,40 +66,40 @@ def __init__(self, api_version=None, code=None, details=None, kind=None, message self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if code is not None: - self.code = code + self.code = code if details is not None: - self.details = details + self.details = details if kind is not None: - self.kind = kind + self.kind = kind if message is not None: - self.message = message + self.message = message if metadata is not None: - self.metadata = metadata + self.metadata = metadata if reason is not None: - self.reason = reason + self.reason = reason if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1Status. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1Status. + :return: The api_version of this V1Status. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1Status. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1Status. - :param api_version: The api_version of this V1Status. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1Status. # noqa: E501 :type: str """ @@ -109,22 +107,22 @@ def api_version(self, api_version): @property def code(self): - """ - Gets the code of this V1Status. - Suggested HTTP return code for this status, 0 if not set. + """Gets the code of this V1Status. # noqa: E501 + + Suggested HTTP return code for this status, 0 if not set. # noqa: E501 - :return: The code of this V1Status. + :return: The code of this V1Status. # noqa: E501 :rtype: int """ return self._code @code.setter def code(self, code): - """ - Sets the code of this V1Status. - Suggested HTTP return code for this status, 0 if not set. + """Sets the code of this V1Status. + + Suggested HTTP return code for this status, 0 if not set. # noqa: E501 - :param code: The code of this V1Status. + :param code: The code of this V1Status. # noqa: E501 :type: int """ @@ -132,22 +130,20 @@ def code(self, code): @property def details(self): - """ - Gets the details of this V1Status. - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + """Gets the details of this V1Status. # noqa: E501 - :return: The details of this V1Status. + + :return: The details of this V1Status. # noqa: E501 :rtype: V1StatusDetails """ return self._details @details.setter def details(self, details): - """ - Sets the details of this V1Status. - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + """Sets the details of this V1Status. + - :param details: The details of this V1Status. + :param details: The details of this V1Status. # noqa: E501 :type: V1StatusDetails """ @@ -155,22 +151,22 @@ def details(self, details): @property def kind(self): - """ - Gets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1Status. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1Status. + :return: The kind of this V1Status. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Status. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1Status. - :param kind: The kind of this V1Status. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1Status. # noqa: E501 :type: str """ @@ -178,22 +174,22 @@ def kind(self, kind): @property def message(self): - """ - Gets the message of this V1Status. - A human-readable description of the status of this operation. + """Gets the message of this V1Status. # noqa: E501 + + A human-readable description of the status of this operation. # noqa: E501 - :return: The message of this V1Status. + :return: The message of this V1Status. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1Status. - A human-readable description of the status of this operation. + """Sets the message of this V1Status. + + A human-readable description of the status of this operation. # noqa: E501 - :param message: The message of this V1Status. + :param message: The message of this V1Status. # noqa: E501 :type: str """ @@ -201,22 +197,20 @@ def message(self, message): @property def metadata(self): - """ - Gets the metadata of this V1Status. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1Status. # noqa: E501 - :return: The metadata of this V1Status. + + :return: The metadata of this V1Status. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1Status. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1Status. + - :param metadata: The metadata of this V1Status. + :param metadata: The metadata of this V1Status. # noqa: E501 :type: V1ListMeta """ @@ -224,22 +218,22 @@ def metadata(self, metadata): @property def reason(self): - """ - Gets the reason of this V1Status. - A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """Gets the reason of this V1Status. # noqa: E501 + + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. # noqa: E501 - :return: The reason of this V1Status. + :return: The reason of this V1Status. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1Status. - A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """Sets the reason of this V1Status. - :param reason: The reason of this V1Status. + A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. # noqa: E501 + + :param reason: The reason of this V1Status. # noqa: E501 :type: str """ @@ -247,34 +241,32 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1Status. # noqa: E501 + + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status # noqa: E501 - :return: The status of this V1Status. + :return: The status of this V1Status. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1Status. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1Status. + + Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status # noqa: E501 - :param status: The status of this V1Status. + :param status: The status of this V1Status. # noqa: E501 :type: str """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +287,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Status): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_status_cause.py b/kubernetes/client/models/v1_status_cause.py index 75bc6456ca..2625e42fd1 100644 --- a/kubernetes/client/models/v1_status_cause.py +++ b/kubernetes/client/models/v1_status_cause.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatusCause(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'field': 'str', 'message': 'str', 'reason': 'str' @@ -42,10 +42,8 @@ class V1StatusCause(object): 'reason': 'reason' } - def __init__(self, field=None, message=None, reason=None): - """ - V1StatusCause - a model defined in Swagger - """ + def __init__(self, field=None, message=None, reason=None): # noqa: E501 + """V1StatusCause - a model defined in OpenAPI""" # noqa: E501 self._field = None self._message = None @@ -53,30 +51,30 @@ def __init__(self, field=None, message=None, reason=None): self.discriminator = None if field is not None: - self.field = field + self.field = field if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason @property def field(self): - """ - Gets the field of this V1StatusCause. - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + """Gets the field of this V1StatusCause. # noqa: E501 - :return: The field of this V1StatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" # noqa: E501 + + :return: The field of this V1StatusCause. # noqa: E501 :rtype: str """ return self._field @field.setter def field(self, field): - """ - Sets the field of this V1StatusCause. - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + """Sets the field of this V1StatusCause. - :param field: The field of this V1StatusCause. + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" # noqa: E501 + + :param field: The field of this V1StatusCause. # noqa: E501 :type: str """ @@ -84,22 +82,22 @@ def field(self, field): @property def message(self): - """ - Gets the message of this V1StatusCause. - A human-readable description of the cause of the error. This field may be presented as-is to a reader. + """Gets the message of this V1StatusCause. # noqa: E501 - :return: The message of this V1StatusCause. + A human-readable description of the cause of the error. This field may be presented as-is to a reader. # noqa: E501 + + :return: The message of this V1StatusCause. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1StatusCause. - A human-readable description of the cause of the error. This field may be presented as-is to a reader. + """Sets the message of this V1StatusCause. + + A human-readable description of the cause of the error. This field may be presented as-is to a reader. # noqa: E501 - :param message: The message of this V1StatusCause. + :param message: The message of this V1StatusCause. # noqa: E501 :type: str """ @@ -107,34 +105,32 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1StatusCause. - A machine-readable description of the cause of the error. If this value is empty there is no information available. + """Gets the reason of this V1StatusCause. # noqa: E501 + + A machine-readable description of the cause of the error. If this value is empty there is no information available. # noqa: E501 - :return: The reason of this V1StatusCause. + :return: The reason of this V1StatusCause. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1StatusCause. - A machine-readable description of the cause of the error. If this value is empty there is no information available. + """Sets the reason of this V1StatusCause. + + A machine-readable description of the cause of the error. If this value is empty there is no information available. # noqa: E501 - :param reason: The reason of this V1StatusCause. + :param reason: The reason of this V1StatusCause. # noqa: E501 :type: str """ self._reason = reason def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatusCause): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_status_details.py b/kubernetes/client/models/v1_status_details.py index 90f9e787f1..cb96efa79b 100644 --- a/kubernetes/client/models/v1_status_details.py +++ b/kubernetes/client/models/v1_status_details.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StatusDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'causes': 'list[V1StatusCause]', 'group': 'str', 'kind': 'str', @@ -48,10 +48,8 @@ class V1StatusDetails(object): 'uid': 'uid' } - def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None): - """ - V1StatusDetails - a model defined in Swagger - """ + def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None): # noqa: E501 + """V1StatusDetails - a model defined in OpenAPI""" # noqa: E501 self._causes = None self._group = None @@ -62,36 +60,36 @@ def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_se self.discriminator = None if causes is not None: - self.causes = causes + self.causes = causes if group is not None: - self.group = group + self.group = group if kind is not None: - self.kind = kind + self.kind = kind if name is not None: - self.name = name + self.name = name if retry_after_seconds is not None: - self.retry_after_seconds = retry_after_seconds + self.retry_after_seconds = retry_after_seconds if uid is not None: - self.uid = uid + self.uid = uid @property def causes(self): - """ - Gets the causes of this V1StatusDetails. - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + """Gets the causes of this V1StatusDetails. # noqa: E501 + + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. # noqa: E501 - :return: The causes of this V1StatusDetails. + :return: The causes of this V1StatusDetails. # noqa: E501 :rtype: list[V1StatusCause] """ return self._causes @causes.setter def causes(self, causes): - """ - Sets the causes of this V1StatusDetails. - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + """Sets the causes of this V1StatusDetails. + + The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. # noqa: E501 - :param causes: The causes of this V1StatusDetails. + :param causes: The causes of this V1StatusDetails. # noqa: E501 :type: list[V1StatusCause] """ @@ -99,22 +97,22 @@ def causes(self, causes): @property def group(self): - """ - Gets the group of this V1StatusDetails. - The group attribute of the resource associated with the status StatusReason. + """Gets the group of this V1StatusDetails. # noqa: E501 + + The group attribute of the resource associated with the status StatusReason. # noqa: E501 - :return: The group of this V1StatusDetails. + :return: The group of this V1StatusDetails. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1StatusDetails. - The group attribute of the resource associated with the status StatusReason. + """Sets the group of this V1StatusDetails. - :param group: The group of this V1StatusDetails. + The group attribute of the resource associated with the status StatusReason. # noqa: E501 + + :param group: The group of this V1StatusDetails. # noqa: E501 :type: str """ @@ -122,22 +120,22 @@ def group(self, group): @property def kind(self): - """ - Gets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1StatusDetails. # noqa: E501 - :return: The kind of this V1StatusDetails. + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1StatusDetails. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1StatusDetails. - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1StatusDetails. + + The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1StatusDetails. + :param kind: The kind of this V1StatusDetails. # noqa: E501 :type: str """ @@ -145,22 +143,22 @@ def kind(self, kind): @property def name(self): - """ - Gets the name of this V1StatusDetails. - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + """Gets the name of this V1StatusDetails. # noqa: E501 + + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). # noqa: E501 - :return: The name of this V1StatusDetails. + :return: The name of this V1StatusDetails. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1StatusDetails. - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + """Sets the name of this V1StatusDetails. + + The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). # noqa: E501 - :param name: The name of this V1StatusDetails. + :param name: The name of this V1StatusDetails. # noqa: E501 :type: str """ @@ -168,22 +166,22 @@ def name(self, name): @property def retry_after_seconds(self): - """ - Gets the retry_after_seconds of this V1StatusDetails. - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + """Gets the retry_after_seconds of this V1StatusDetails. # noqa: E501 - :return: The retry_after_seconds of this V1StatusDetails. + If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. # noqa: E501 + + :return: The retry_after_seconds of this V1StatusDetails. # noqa: E501 :rtype: int """ return self._retry_after_seconds @retry_after_seconds.setter def retry_after_seconds(self, retry_after_seconds): - """ - Sets the retry_after_seconds of this V1StatusDetails. - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + """Sets the retry_after_seconds of this V1StatusDetails. - :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. + If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. # noqa: E501 + + :param retry_after_seconds: The retry_after_seconds of this V1StatusDetails. # noqa: E501 :type: int """ @@ -191,34 +189,32 @@ def retry_after_seconds(self, retry_after_seconds): @property def uid(self): - """ - Gets the uid of this V1StatusDetails. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Gets the uid of this V1StatusDetails. # noqa: E501 + + UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :return: The uid of this V1StatusDetails. + :return: The uid of this V1StatusDetails. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1StatusDetails. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """Sets the uid of this V1StatusDetails. + + UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids # noqa: E501 - :param uid: The uid of this V1StatusDetails. + :param uid: The uid of this V1StatusDetails. # noqa: E501 :type: str """ self._uid = uid def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +235,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StatusDetails): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_storage_class.py b/kubernetes/client/models/v1_storage_class.py index f9a6f32fb3..68b0471254 100644 --- a/kubernetes/client/models/v1_storage_class.py +++ b/kubernetes/client/models/v1_storage_class.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StorageClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allow_volume_expansion': 'bool', 'allowed_topologies': 'list[V1TopologySelectorTerm]', 'api_version': 'str', @@ -56,10 +56,8 @@ class V1StorageClass(object): 'volume_binding_mode': 'volumeBindingMode' } - def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): - """ - V1StorageClass - a model defined in Swagger - """ + def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): # noqa: E501 + """V1StorageClass - a model defined in OpenAPI""" # noqa: E501 self._allow_volume_expansion = None self._allowed_topologies = None @@ -74,43 +72,43 @@ def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_ver self.discriminator = None if allow_volume_expansion is not None: - self.allow_volume_expansion = allow_volume_expansion + self.allow_volume_expansion = allow_volume_expansion if allowed_topologies is not None: - self.allowed_topologies = allowed_topologies + self.allowed_topologies = allowed_topologies if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if mount_options is not None: - self.mount_options = mount_options + self.mount_options = mount_options if parameters is not None: - self.parameters = parameters + self.parameters = parameters self.provisioner = provisioner if reclaim_policy is not None: - self.reclaim_policy = reclaim_policy + self.reclaim_policy = reclaim_policy if volume_binding_mode is not None: - self.volume_binding_mode = volume_binding_mode + self.volume_binding_mode = volume_binding_mode @property def allow_volume_expansion(self): - """ - Gets the allow_volume_expansion of this V1StorageClass. - AllowVolumeExpansion shows whether the storage class allow volume expand + """Gets the allow_volume_expansion of this V1StorageClass. # noqa: E501 - :return: The allow_volume_expansion of this V1StorageClass. + AllowVolumeExpansion shows whether the storage class allow volume expand # noqa: E501 + + :return: The allow_volume_expansion of this V1StorageClass. # noqa: E501 :rtype: bool """ return self._allow_volume_expansion @allow_volume_expansion.setter def allow_volume_expansion(self, allow_volume_expansion): - """ - Sets the allow_volume_expansion of this V1StorageClass. - AllowVolumeExpansion shows whether the storage class allow volume expand + """Sets the allow_volume_expansion of this V1StorageClass. - :param allow_volume_expansion: The allow_volume_expansion of this V1StorageClass. + AllowVolumeExpansion shows whether the storage class allow volume expand # noqa: E501 + + :param allow_volume_expansion: The allow_volume_expansion of this V1StorageClass. # noqa: E501 :type: bool """ @@ -118,22 +116,22 @@ def allow_volume_expansion(self, allow_volume_expansion): @property def allowed_topologies(self): - """ - Gets the allowed_topologies of this V1StorageClass. - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """Gets the allowed_topologies of this V1StorageClass. # noqa: E501 - :return: The allowed_topologies of this V1StorageClass. + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :return: The allowed_topologies of this V1StorageClass. # noqa: E501 :rtype: list[V1TopologySelectorTerm] """ return self._allowed_topologies @allowed_topologies.setter def allowed_topologies(self, allowed_topologies): - """ - Sets the allowed_topologies of this V1StorageClass. - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """Sets the allowed_topologies of this V1StorageClass. + + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :param allowed_topologies: The allowed_topologies of this V1StorageClass. + :param allowed_topologies: The allowed_topologies of this V1StorageClass. # noqa: E501 :type: list[V1TopologySelectorTerm] """ @@ -141,22 +139,22 @@ def allowed_topologies(self, allowed_topologies): @property def api_version(self): - """ - Gets the api_version of this V1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1StorageClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1StorageClass. + :return: The api_version of this V1StorageClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1StorageClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1StorageClass. + :param api_version: The api_version of this V1StorageClass. # noqa: E501 :type: str """ @@ -164,22 +162,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1StorageClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1StorageClass. + :return: The kind of this V1StorageClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1StorageClass. - :param kind: The kind of this V1StorageClass. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1StorageClass. # noqa: E501 :type: str """ @@ -187,22 +185,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1StorageClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1StorageClass. # noqa: E501 - :return: The metadata of this V1StorageClass. + + :return: The metadata of this V1StorageClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1StorageClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1StorageClass. - :param metadata: The metadata of this V1StorageClass. + + :param metadata: The metadata of this V1StorageClass. # noqa: E501 :type: V1ObjectMeta """ @@ -210,22 +206,22 @@ def metadata(self, metadata): @property def mount_options(self): - """ - Gets the mount_options of this V1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + """Gets the mount_options of this V1StorageClass. # noqa: E501 + + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 - :return: The mount_options of this V1StorageClass. + :return: The mount_options of this V1StorageClass. # noqa: E501 :rtype: list[str] """ return self._mount_options @mount_options.setter def mount_options(self, mount_options): - """ - Sets the mount_options of this V1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + """Sets the mount_options of this V1StorageClass. + + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 - :param mount_options: The mount_options of this V1StorageClass. + :param mount_options: The mount_options of this V1StorageClass. # noqa: E501 :type: list[str] """ @@ -233,22 +229,22 @@ def mount_options(self, mount_options): @property def parameters(self): - """ - Gets the parameters of this V1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """Gets the parameters of this V1StorageClass. # noqa: E501 + + Parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 - :return: The parameters of this V1StorageClass. + :return: The parameters of this V1StorageClass. # noqa: E501 :rtype: dict(str, str) """ return self._parameters @parameters.setter def parameters(self, parameters): - """ - Sets the parameters of this V1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """Sets the parameters of this V1StorageClass. + + Parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 - :param parameters: The parameters of this V1StorageClass. + :param parameters: The parameters of this V1StorageClass. # noqa: E501 :type: dict(str, str) """ @@ -256,47 +252,47 @@ def parameters(self, parameters): @property def provisioner(self): - """ - Gets the provisioner of this V1StorageClass. - Provisioner indicates the type of the provisioner. + """Gets the provisioner of this V1StorageClass. # noqa: E501 - :return: The provisioner of this V1StorageClass. + Provisioner indicates the type of the provisioner. # noqa: E501 + + :return: The provisioner of this V1StorageClass. # noqa: E501 :rtype: str """ return self._provisioner @provisioner.setter def provisioner(self, provisioner): - """ - Sets the provisioner of this V1StorageClass. - Provisioner indicates the type of the provisioner. + """Sets the provisioner of this V1StorageClass. - :param provisioner: The provisioner of this V1StorageClass. + Provisioner indicates the type of the provisioner. # noqa: E501 + + :param provisioner: The provisioner of this V1StorageClass. # noqa: E501 :type: str """ if provisioner is None: - raise ValueError("Invalid value for `provisioner`, must not be `None`") + raise ValueError("Invalid value for `provisioner`, must not be `None`") # noqa: E501 self._provisioner = provisioner @property def reclaim_policy(self): - """ - Gets the reclaim_policy of this V1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """Gets the reclaim_policy of this V1StorageClass. # noqa: E501 - :return: The reclaim_policy of this V1StorageClass. + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. # noqa: E501 + + :return: The reclaim_policy of this V1StorageClass. # noqa: E501 :rtype: str """ return self._reclaim_policy @reclaim_policy.setter def reclaim_policy(self, reclaim_policy): - """ - Sets the reclaim_policy of this V1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """Sets the reclaim_policy of this V1StorageClass. + + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. # noqa: E501 - :param reclaim_policy: The reclaim_policy of this V1StorageClass. + :param reclaim_policy: The reclaim_policy of this V1StorageClass. # noqa: E501 :type: str """ @@ -304,34 +300,32 @@ def reclaim_policy(self, reclaim_policy): @property def volume_binding_mode(self): - """ - Gets the volume_binding_mode of this V1StorageClass. - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """Gets the volume_binding_mode of this V1StorageClass. # noqa: E501 + + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :return: The volume_binding_mode of this V1StorageClass. + :return: The volume_binding_mode of this V1StorageClass. # noqa: E501 :rtype: str """ return self._volume_binding_mode @volume_binding_mode.setter def volume_binding_mode(self, volume_binding_mode): - """ - Sets the volume_binding_mode of this V1StorageClass. - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """Sets the volume_binding_mode of this V1StorageClass. + + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :param volume_binding_mode: The volume_binding_mode of this V1StorageClass. + :param volume_binding_mode: The volume_binding_mode of this V1StorageClass. # noqa: E501 :type: str """ self._volume_binding_mode = volume_binding_mode def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -352,28 +346,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StorageClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_storage_class_list.py b/kubernetes/client/models/v1_storage_class_list.py index 356ec5f94c..3888c4227f 100644 --- a/kubernetes/client/models/v1_storage_class_list.py +++ b/kubernetes/client/models/v1_storage_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StorageClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1StorageClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1StorageClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1StorageClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1StorageClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1StorageClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1StorageClassList. + :return: The api_version of this V1StorageClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1StorageClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1StorageClassList. + :param api_version: The api_version of this V1StorageClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1StorageClassList. - Items is the list of StorageClasses + """Gets the items of this V1StorageClassList. # noqa: E501 + + Items is the list of StorageClasses # noqa: E501 - :return: The items of this V1StorageClassList. + :return: The items of this V1StorageClassList. # noqa: E501 :rtype: list[V1StorageClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1StorageClassList. - Items is the list of StorageClasses + """Sets the items of this V1StorageClassList. + + Items is the list of StorageClasses # noqa: E501 - :param items: The items of this V1StorageClassList. + :param items: The items of this V1StorageClassList. # noqa: E501 :type: list[V1StorageClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1StorageClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1StorageClassList. + :return: The kind of this V1StorageClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1StorageClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1StorageClassList. + :param kind: The kind of this V1StorageClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1StorageClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1StorageClassList. # noqa: E501 + - :return: The metadata of this V1StorageClassList. + :return: The metadata of this V1StorageClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1StorageClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1StorageClassList. + - :param metadata: The metadata of this V1StorageClassList. + :param metadata: The metadata of this V1StorageClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StorageClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py index 6679de0a45..d600dd3f98 100644 --- a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StorageOSPersistentVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'read_only': 'bool', 'secret_ref': 'V1ObjectReference', @@ -46,10 +46,8 @@ class V1StorageOSPersistentVolumeSource(object): 'volume_namespace': 'volumeNamespace' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): - """ - V1StorageOSPersistentVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): # noqa: E501 + """V1StorageOSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._read_only = None @@ -59,34 +57,34 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=No self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if volume_name is not None: - self.volume_name = volume_name + self.volume_name = volume_name if volume_namespace is not None: - self.volume_namespace = volume_namespace + self.volume_namespace = volume_namespace @property def fs_type(self): - """ - Gets the fs_type of this V1StorageOSPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 - :return: The fs_type of this V1StorageOSPersistentVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1StorageOSPersistentVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1StorageOSPersistentVolumeSource. - :param fs_type: The fs_type of this V1StorageOSPersistentVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1StorageOSPersistentVolumeSource. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def fs_type(self, fs_type): @property def read_only(self): - """ - Gets the read_only of this V1StorageOSPersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1StorageOSPersistentVolumeSource. + :return: The read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1StorageOSPersistentVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1StorageOSPersistentVolumeSource. + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1StorageOSPersistentVolumeSource. + :param read_only: The read_only of this V1StorageOSPersistentVolumeSource. # noqa: E501 :type: bool """ @@ -117,22 +115,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1StorageOSPersistentVolumeSource. - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + """Gets the secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1StorageOSPersistentVolumeSource. + :return: The secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 :rtype: V1ObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1StorageOSPersistentVolumeSource. - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + """Sets the secret_ref of this V1StorageOSPersistentVolumeSource. + - :param secret_ref: The secret_ref of this V1StorageOSPersistentVolumeSource. + :param secret_ref: The secret_ref of this V1StorageOSPersistentVolumeSource. # noqa: E501 :type: V1ObjectReference """ @@ -140,22 +136,22 @@ def secret_ref(self, secret_ref): @property def volume_name(self): - """ - Gets the volume_name of this V1StorageOSPersistentVolumeSource. - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + """Gets the volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 + + VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 - :return: The volume_name of this V1StorageOSPersistentVolumeSource. + :return: The volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): - """ - Sets the volume_name of this V1StorageOSPersistentVolumeSource. - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + """Sets the volume_name of this V1StorageOSPersistentVolumeSource. - :param volume_name: The volume_name of this V1StorageOSPersistentVolumeSource. + VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :param volume_name: The volume_name of this V1StorageOSPersistentVolumeSource. # noqa: E501 :type: str """ @@ -163,34 +159,32 @@ def volume_name(self, volume_name): @property def volume_namespace(self): - """ - Gets the volume_namespace of this V1StorageOSPersistentVolumeSource. - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """Gets the volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 - :return: The volume_namespace of this V1StorageOSPersistentVolumeSource. + VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :return: The volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 :rtype: str """ return self._volume_namespace @volume_namespace.setter def volume_namespace(self, volume_namespace): - """ - Sets the volume_namespace of this V1StorageOSPersistentVolumeSource. - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """Sets the volume_namespace of this V1StorageOSPersistentVolumeSource. - :param volume_namespace: The volume_namespace of this V1StorageOSPersistentVolumeSource. + VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :param volume_namespace: The volume_namespace of this V1StorageOSPersistentVolumeSource. # noqa: E501 :type: str """ self._volume_namespace = volume_namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +205,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StorageOSPersistentVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_storage_os_volume_source.py b/kubernetes/client/models/v1_storage_os_volume_source.py index 02fa9cb510..c0fa8471c6 100644 --- a/kubernetes/client/models/v1_storage_os_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1StorageOSVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'read_only': 'bool', 'secret_ref': 'V1LocalObjectReference', @@ -46,10 +46,8 @@ class V1StorageOSVolumeSource(object): 'volume_namespace': 'volumeNamespace' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): - """ - V1StorageOSVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): # noqa: E501 + """V1StorageOSVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._read_only = None @@ -59,34 +57,34 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=No self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if read_only is not None: - self.read_only = read_only + self.read_only = read_only if secret_ref is not None: - self.secret_ref = secret_ref + self.secret_ref = secret_ref if volume_name is not None: - self.volume_name = volume_name + self.volume_name = volume_name if volume_namespace is not None: - self.volume_namespace = volume_namespace + self.volume_namespace = volume_namespace @property def fs_type(self): - """ - Gets the fs_type of this V1StorageOSVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1StorageOSVolumeSource. # noqa: E501 - :return: The fs_type of this V1StorageOSVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :return: The fs_type of this V1StorageOSVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1StorageOSVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1StorageOSVolumeSource. - :param fs_type: The fs_type of this V1StorageOSVolumeSource. + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + + :param fs_type: The fs_type of this V1StorageOSVolumeSource. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def fs_type(self, fs_type): @property def read_only(self): - """ - Gets the read_only of this V1StorageOSVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Gets the read_only of this V1StorageOSVolumeSource. # noqa: E501 + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :return: The read_only of this V1StorageOSVolumeSource. + :return: The read_only of this V1StorageOSVolumeSource. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1StorageOSVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + """Sets the read_only of this V1StorageOSVolumeSource. + + Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501 - :param read_only: The read_only of this V1StorageOSVolumeSource. + :param read_only: The read_only of this V1StorageOSVolumeSource. # noqa: E501 :type: bool """ @@ -117,22 +115,20 @@ def read_only(self, read_only): @property def secret_ref(self): - """ - Gets the secret_ref of this V1StorageOSVolumeSource. - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + """Gets the secret_ref of this V1StorageOSVolumeSource. # noqa: E501 + - :return: The secret_ref of this V1StorageOSVolumeSource. + :return: The secret_ref of this V1StorageOSVolumeSource. # noqa: E501 :rtype: V1LocalObjectReference """ return self._secret_ref @secret_ref.setter def secret_ref(self, secret_ref): - """ - Sets the secret_ref of this V1StorageOSVolumeSource. - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + """Sets the secret_ref of this V1StorageOSVolumeSource. + - :param secret_ref: The secret_ref of this V1StorageOSVolumeSource. + :param secret_ref: The secret_ref of this V1StorageOSVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ @@ -140,22 +136,22 @@ def secret_ref(self, secret_ref): @property def volume_name(self): - """ - Gets the volume_name of this V1StorageOSVolumeSource. - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + """Gets the volume_name of this V1StorageOSVolumeSource. # noqa: E501 + + VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 - :return: The volume_name of this V1StorageOSVolumeSource. + :return: The volume_name of this V1StorageOSVolumeSource. # noqa: E501 :rtype: str """ return self._volume_name @volume_name.setter def volume_name(self, volume_name): - """ - Sets the volume_name of this V1StorageOSVolumeSource. - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + """Sets the volume_name of this V1StorageOSVolumeSource. - :param volume_name: The volume_name of this V1StorageOSVolumeSource. + VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + + :param volume_name: The volume_name of this V1StorageOSVolumeSource. # noqa: E501 :type: str """ @@ -163,34 +159,32 @@ def volume_name(self, volume_name): @property def volume_namespace(self): - """ - Gets the volume_namespace of this V1StorageOSVolumeSource. - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """Gets the volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 - :return: The volume_namespace of this V1StorageOSVolumeSource. + VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :return: The volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 :rtype: str """ return self._volume_namespace @volume_namespace.setter def volume_namespace(self, volume_namespace): - """ - Sets the volume_namespace of this V1StorageOSVolumeSource. - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + """Sets the volume_namespace of this V1StorageOSVolumeSource. - :param volume_namespace: The volume_namespace of this V1StorageOSVolumeSource. + VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. # noqa: E501 + + :param volume_namespace: The volume_namespace of this V1StorageOSVolumeSource. # noqa: E501 :type: str """ self._volume_namespace = volume_namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +205,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1StorageOSVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_subject.py b/kubernetes/client/models/v1_subject.py index a9e3bea153..2359206078 100644 --- a/kubernetes/client/models/v1_subject.py +++ b/kubernetes/client/models/v1_subject.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Subject(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str', @@ -44,10 +44,8 @@ class V1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_group=None, kind=None, name=None, namespace=None): - """ - V1Subject - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None, namespace=None): # noqa: E501 + """V1Subject - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -56,30 +54,30 @@ def __init__(self, api_group=None, kind=None, name=None, namespace=None): self.discriminator = None if api_group is not None: - self.api_group = api_group + self.api_group = api_group self.kind = kind self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def api_group(self): - """ - Gets the api_group of this V1Subject. - APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + """Gets the api_group of this V1Subject. # noqa: E501 + + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501 - :return: The api_group of this V1Subject. + :return: The api_group of this V1Subject. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1Subject. - APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + """Sets the api_group of this V1Subject. + + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501 - :param api_group: The api_group of this V1Subject. + :param api_group: The api_group of this V1Subject. # noqa: E501 :type: str """ @@ -87,84 +85,82 @@ def api_group(self, api_group): @property def kind(self): - """ - Gets the kind of this V1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Gets the kind of this V1Subject. # noqa: E501 + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :return: The kind of this V1Subject. + :return: The kind of this V1Subject. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Sets the kind of this V1Subject. + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :param kind: The kind of this V1Subject. + :param kind: The kind of this V1Subject. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1Subject. - Name of the object being referenced. + """Gets the name of this V1Subject. # noqa: E501 + + Name of the object being referenced. # noqa: E501 - :return: The name of this V1Subject. + :return: The name of this V1Subject. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1Subject. - Name of the object being referenced. + """Sets the name of this V1Subject. + + Name of the object being referenced. # noqa: E501 - :param name: The name of this V1Subject. + :param name: The name of this V1Subject. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this V1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Gets the namespace of this V1Subject. # noqa: E501 + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :return: The namespace of this V1Subject. + :return: The namespace of this V1Subject. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Sets the namespace of this V1Subject. + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :param namespace: The namespace of this V1Subject. + :param namespace: The namespace of this V1Subject. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Subject): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_subject_access_review.py b/kubernetes/client/models/v1_subject_access_review.py index e137401d12..fc22b3d066 100644 --- a/kubernetes/client/models/v1_subject_access_review.py +++ b/kubernetes/client/models/v1_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1SubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1SubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1SubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1SubjectAccessReview. # noqa: E501 - :return: The api_version of this V1SubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1SubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1SubjectAccessReview. - :param api_version: The api_version of this V1SubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1SubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1SubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1SubjectAccessReview. + :return: The kind of this V1SubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1SubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1SubjectAccessReview. + :param kind: The kind of this V1SubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1SubjectAccessReview. + """Gets the metadata of this V1SubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1SubjectAccessReview. + :return: The metadata of this V1SubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1SubjectAccessReview. + """Sets the metadata of this V1SubjectAccessReview. + - :param metadata: The metadata of this V1SubjectAccessReview. + :param metadata: The metadata of this V1SubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1SubjectAccessReview. - Spec holds information about the request being evaluated + """Gets the spec of this V1SubjectAccessReview. # noqa: E501 + - :return: The spec of this V1SubjectAccessReview. + :return: The spec of this V1SubjectAccessReview. # noqa: E501 :rtype: V1SubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1SubjectAccessReview. - Spec holds information about the request being evaluated + """Sets the spec of this V1SubjectAccessReview. - :param spec: The spec of this V1SubjectAccessReview. + + :param spec: The spec of this V1SubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1SubjectAccessReview. # noqa: E501 - :return: The status of this V1SubjectAccessReview. + + :return: The status of this V1SubjectAccessReview. # noqa: E501 :rtype: V1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1SubjectAccessReview. - :param status: The status of this V1SubjectAccessReview. + + :param status: The status of this V1SubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_subject_access_review_spec.py b/kubernetes/client/models/v1_subject_access_review_spec.py index f3f3979bc6..3c1961da5c 100644 --- a/kubernetes/client/models/v1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_subject_access_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'non_resource_attributes': 'V1NonResourceAttributes', @@ -48,10 +48,8 @@ class V1SubjectAccessReviewSpec(object): 'user': 'user' } - def __init__(self, extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): - """ - V1SubjectAccessReviewSpec - a model defined in Swagger - """ + def __init__(self, extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): # noqa: E501 + """V1SubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._extra = None self._groups = None @@ -62,36 +60,36 @@ def __init__(self, extra=None, groups=None, non_resource_attributes=None, resour self.discriminator = None if extra is not None: - self.extra = extra + self.extra = extra if groups is not None: - self.groups = groups + self.groups = groups if non_resource_attributes is not None: - self.non_resource_attributes = non_resource_attributes + self.non_resource_attributes = non_resource_attributes if resource_attributes is not None: - self.resource_attributes = resource_attributes + self.resource_attributes = resource_attributes if uid is not None: - self.uid = uid + self.uid = uid if user is not None: - self.user = user + self.user = user @property def extra(self): - """ - Gets the extra of this V1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + """Gets the extra of this V1SubjectAccessReviewSpec. # noqa: E501 + + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. # noqa: E501 - :return: The extra of this V1SubjectAccessReviewSpec. + :return: The extra of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: dict(str, list[str]) """ return self._extra @extra.setter def extra(self, extra): - """ - Sets the extra of this V1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + """Sets the extra of this V1SubjectAccessReviewSpec. + + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. # noqa: E501 - :param extra: The extra of this V1SubjectAccessReviewSpec. + :param extra: The extra of this V1SubjectAccessReviewSpec. # noqa: E501 :type: dict(str, list[str]) """ @@ -99,22 +97,22 @@ def extra(self, extra): @property def groups(self): - """ - Gets the groups of this V1SubjectAccessReviewSpec. - Groups is the groups you're testing for. + """Gets the groups of this V1SubjectAccessReviewSpec. # noqa: E501 + + Groups is the groups you're testing for. # noqa: E501 - :return: The groups of this V1SubjectAccessReviewSpec. + :return: The groups of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: list[str] """ return self._groups @groups.setter def groups(self, groups): - """ - Sets the groups of this V1SubjectAccessReviewSpec. - Groups is the groups you're testing for. + """Sets the groups of this V1SubjectAccessReviewSpec. - :param groups: The groups of this V1SubjectAccessReviewSpec. + Groups is the groups you're testing for. # noqa: E501 + + :param groups: The groups of this V1SubjectAccessReviewSpec. # noqa: E501 :type: list[str] """ @@ -122,22 +120,20 @@ def groups(self, groups): @property def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Gets the non_resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 - :return: The non_resource_attributes of this V1SubjectAccessReviewSpec. + + :return: The non_resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: V1NonResourceAttributes """ return self._non_resource_attributes @non_resource_attributes.setter def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Sets the non_resource_attributes of this V1SubjectAccessReviewSpec. + - :param non_resource_attributes: The non_resource_attributes of this V1SubjectAccessReviewSpec. + :param non_resource_attributes: The non_resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 :type: V1NonResourceAttributes """ @@ -145,22 +141,20 @@ def non_resource_attributes(self, non_resource_attributes): @property def resource_attributes(self): - """ - Gets the resource_attributes of this V1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Gets the resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 + - :return: The resource_attributes of this V1SubjectAccessReviewSpec. + :return: The resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: V1ResourceAttributes """ return self._resource_attributes @resource_attributes.setter def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Sets the resource_attributes of this V1SubjectAccessReviewSpec. + - :param resource_attributes: The resource_attributes of this V1SubjectAccessReviewSpec. + :param resource_attributes: The resource_attributes of this V1SubjectAccessReviewSpec. # noqa: E501 :type: V1ResourceAttributes """ @@ -168,22 +162,22 @@ def resource_attributes(self, resource_attributes): @property def uid(self): - """ - Gets the uid of this V1SubjectAccessReviewSpec. - UID information about the requesting user. + """Gets the uid of this V1SubjectAccessReviewSpec. # noqa: E501 - :return: The uid of this V1SubjectAccessReviewSpec. + UID information about the requesting user. # noqa: E501 + + :return: The uid of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1SubjectAccessReviewSpec. - UID information about the requesting user. + """Sets the uid of this V1SubjectAccessReviewSpec. - :param uid: The uid of this V1SubjectAccessReviewSpec. + UID information about the requesting user. # noqa: E501 + + :param uid: The uid of this V1SubjectAccessReviewSpec. # noqa: E501 :type: str """ @@ -191,34 +185,32 @@ def uid(self, uid): @property def user(self): - """ - Gets the user of this V1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + """Gets the user of this V1SubjectAccessReviewSpec. # noqa: E501 + + User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups # noqa: E501 - :return: The user of this V1SubjectAccessReviewSpec. + :return: The user of this V1SubjectAccessReviewSpec. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + """Sets the user of this V1SubjectAccessReviewSpec. + + User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups # noqa: E501 - :param user: The user of this V1SubjectAccessReviewSpec. + :param user: The user of this V1SubjectAccessReviewSpec. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +231,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SubjectAccessReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_subject_access_review_status.py b/kubernetes/client/models/v1_subject_access_review_status.py index 9af7b667a8..b33bdb9e8f 100644 --- a/kubernetes/client/models/v1_subject_access_review_status.py +++ b/kubernetes/client/models/v1_subject_access_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SubjectAccessReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allowed': 'bool', 'denied': 'bool', 'evaluation_error': 'str', @@ -44,10 +44,8 @@ class V1SubjectAccessReviewStatus(object): 'reason': 'reason' } - def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): - """ - V1SubjectAccessReviewStatus - a model defined in Swagger - """ + def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): # noqa: E501 + """V1SubjectAccessReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._allowed = None self._denied = None @@ -57,55 +55,55 @@ def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None self.allowed = allowed if denied is not None: - self.denied = denied + self.denied = denied if evaluation_error is not None: - self.evaluation_error = evaluation_error + self.evaluation_error = evaluation_error if reason is not None: - self.reason = reason + self.reason = reason @property def allowed(self): - """ - Gets the allowed of this V1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. + """Gets the allowed of this V1SubjectAccessReviewStatus. # noqa: E501 + + Allowed is required. True if the action would be allowed, false otherwise. # noqa: E501 - :return: The allowed of this V1SubjectAccessReviewStatus. + :return: The allowed of this V1SubjectAccessReviewStatus. # noqa: E501 :rtype: bool """ return self._allowed @allowed.setter def allowed(self, allowed): - """ - Sets the allowed of this V1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. + """Sets the allowed of this V1SubjectAccessReviewStatus. + + Allowed is required. True if the action would be allowed, false otherwise. # noqa: E501 - :param allowed: The allowed of this V1SubjectAccessReviewStatus. + :param allowed: The allowed of this V1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ if allowed is None: - raise ValueError("Invalid value for `allowed`, must not be `None`") + raise ValueError("Invalid value for `allowed`, must not be `None`") # noqa: E501 self._allowed = allowed @property def denied(self): - """ - Gets the denied of this V1SubjectAccessReviewStatus. - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + """Gets the denied of this V1SubjectAccessReviewStatus. # noqa: E501 + + Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. # noqa: E501 - :return: The denied of this V1SubjectAccessReviewStatus. + :return: The denied of this V1SubjectAccessReviewStatus. # noqa: E501 :rtype: bool """ return self._denied @denied.setter def denied(self, denied): - """ - Sets the denied of this V1SubjectAccessReviewStatus. - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + """Sets the denied of this V1SubjectAccessReviewStatus. + + Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. # noqa: E501 - :param denied: The denied of this V1SubjectAccessReviewStatus. + :param denied: The denied of this V1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ @@ -113,22 +111,22 @@ def denied(self, denied): @property def evaluation_error(self): - """ - Gets the evaluation_error of this V1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + """Gets the evaluation_error of this V1SubjectAccessReviewStatus. # noqa: E501 + + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. # noqa: E501 - :return: The evaluation_error of this V1SubjectAccessReviewStatus. + :return: The evaluation_error of this V1SubjectAccessReviewStatus. # noqa: E501 :rtype: str """ return self._evaluation_error @evaluation_error.setter def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + """Sets the evaluation_error of this V1SubjectAccessReviewStatus. + + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. # noqa: E501 - :param evaluation_error: The evaluation_error of this V1SubjectAccessReviewStatus. + :param evaluation_error: The evaluation_error of this V1SubjectAccessReviewStatus. # noqa: E501 :type: str """ @@ -136,34 +134,32 @@ def evaluation_error(self, evaluation_error): @property def reason(self): - """ - Gets the reason of this V1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. + """Gets the reason of this V1SubjectAccessReviewStatus. # noqa: E501 + + Reason is optional. It indicates why a request was allowed or denied. # noqa: E501 - :return: The reason of this V1SubjectAccessReviewStatus. + :return: The reason of this V1SubjectAccessReviewStatus. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. + """Sets the reason of this V1SubjectAccessReviewStatus. + + Reason is optional. It indicates why a request was allowed or denied. # noqa: E501 - :param reason: The reason of this V1SubjectAccessReviewStatus. + :param reason: The reason of this V1SubjectAccessReviewStatus. # noqa: E501 :type: str """ self._reason = reason def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SubjectAccessReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_subject_rules_review_status.py b/kubernetes/client/models/v1_subject_rules_review_status.py index a870dbf1bb..6bf967b536 100644 --- a/kubernetes/client/models/v1_subject_rules_review_status.py +++ b/kubernetes/client/models/v1_subject_rules_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1SubjectRulesReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'evaluation_error': 'str', 'incomplete': 'bool', 'non_resource_rules': 'list[V1NonResourceRule]', @@ -44,10 +44,8 @@ class V1SubjectRulesReviewStatus(object): 'resource_rules': 'resourceRules' } - def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): - """ - V1SubjectRulesReviewStatus - a model defined in Swagger - """ + def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): # noqa: E501 + """V1SubjectRulesReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._evaluation_error = None self._incomplete = None @@ -56,29 +54,29 @@ def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=No self.discriminator = None if evaluation_error is not None: - self.evaluation_error = evaluation_error + self.evaluation_error = evaluation_error self.incomplete = incomplete self.non_resource_rules = non_resource_rules self.resource_rules = resource_rules @property def evaluation_error(self): - """ - Gets the evaluation_error of this V1SubjectRulesReviewStatus. - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + """Gets the evaluation_error of this V1SubjectRulesReviewStatus. # noqa: E501 + + EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. # noqa: E501 - :return: The evaluation_error of this V1SubjectRulesReviewStatus. + :return: The evaluation_error of this V1SubjectRulesReviewStatus. # noqa: E501 :rtype: str """ return self._evaluation_error @evaluation_error.setter def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1SubjectRulesReviewStatus. - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + """Sets the evaluation_error of this V1SubjectRulesReviewStatus. + + EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. # noqa: E501 - :param evaluation_error: The evaluation_error of this V1SubjectRulesReviewStatus. + :param evaluation_error: The evaluation_error of this V1SubjectRulesReviewStatus. # noqa: E501 :type: str """ @@ -86,86 +84,84 @@ def evaluation_error(self, evaluation_error): @property def incomplete(self): - """ - Gets the incomplete of this V1SubjectRulesReviewStatus. - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + """Gets the incomplete of this V1SubjectRulesReviewStatus. # noqa: E501 + + Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. # noqa: E501 - :return: The incomplete of this V1SubjectRulesReviewStatus. + :return: The incomplete of this V1SubjectRulesReviewStatus. # noqa: E501 :rtype: bool """ return self._incomplete @incomplete.setter def incomplete(self, incomplete): - """ - Sets the incomplete of this V1SubjectRulesReviewStatus. - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + """Sets the incomplete of this V1SubjectRulesReviewStatus. + + Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. # noqa: E501 - :param incomplete: The incomplete of this V1SubjectRulesReviewStatus. + :param incomplete: The incomplete of this V1SubjectRulesReviewStatus. # noqa: E501 :type: bool """ if incomplete is None: - raise ValueError("Invalid value for `incomplete`, must not be `None`") + raise ValueError("Invalid value for `incomplete`, must not be `None`") # noqa: E501 self._incomplete = incomplete @property def non_resource_rules(self): - """ - Gets the non_resource_rules of this V1SubjectRulesReviewStatus. - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Gets the non_resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 + + NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :return: The non_resource_rules of this V1SubjectRulesReviewStatus. + :return: The non_resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :rtype: list[V1NonResourceRule] """ return self._non_resource_rules @non_resource_rules.setter def non_resource_rules(self, non_resource_rules): - """ - Sets the non_resource_rules of this V1SubjectRulesReviewStatus. - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Sets the non_resource_rules of this V1SubjectRulesReviewStatus. + + NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :param non_resource_rules: The non_resource_rules of this V1SubjectRulesReviewStatus. + :param non_resource_rules: The non_resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1NonResourceRule] """ if non_resource_rules is None: - raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") + raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") # noqa: E501 self._non_resource_rules = non_resource_rules @property def resource_rules(self): - """ - Gets the resource_rules of this V1SubjectRulesReviewStatus. - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Gets the resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 + + ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :return: The resource_rules of this V1SubjectRulesReviewStatus. + :return: The resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :rtype: list[V1ResourceRule] """ return self._resource_rules @resource_rules.setter def resource_rules(self, resource_rules): - """ - Sets the resource_rules of this V1SubjectRulesReviewStatus. - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Sets the resource_rules of this V1SubjectRulesReviewStatus. + + ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :param resource_rules: The resource_rules of this V1SubjectRulesReviewStatus. + :param resource_rules: The resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1ResourceRule] """ if resource_rules is None: - raise ValueError("Invalid value for `resource_rules`, must not be `None`") + raise ValueError("Invalid value for `resource_rules`, must not be `None`") # noqa: E501 self._resource_rules = resource_rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -186,28 +182,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1SubjectRulesReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_sysctl.py b/kubernetes/client/models/v1_sysctl.py index 08a12c7a41..1321db4559 100644 --- a/kubernetes/client/models/v1_sysctl.py +++ b/kubernetes/client/models/v1_sysctl.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Sysctl(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'value': 'str' } @@ -40,10 +40,8 @@ class V1Sysctl(object): 'value': 'value' } - def __init__(self, name=None, value=None): - """ - V1Sysctl - a model defined in Swagger - """ + def __init__(self, name=None, value=None): # noqa: E501 + """V1Sysctl - a model defined in OpenAPI""" # noqa: E501 self._name = None self._value = None @@ -54,61 +52,59 @@ def __init__(self, name=None, value=None): @property def name(self): - """ - Gets the name of this V1Sysctl. - Name of a property to set + """Gets the name of this V1Sysctl. # noqa: E501 + + Name of a property to set # noqa: E501 - :return: The name of this V1Sysctl. + :return: The name of this V1Sysctl. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1Sysctl. - Name of a property to set + """Sets the name of this V1Sysctl. - :param name: The name of this V1Sysctl. + Name of a property to set # noqa: E501 + + :param name: The name of this V1Sysctl. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def value(self): - """ - Gets the value of this V1Sysctl. - Value of a property to set + """Gets the value of this V1Sysctl. # noqa: E501 + + Value of a property to set # noqa: E501 - :return: The value of this V1Sysctl. + :return: The value of this V1Sysctl. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1Sysctl. - Value of a property to set + """Sets the value of this V1Sysctl. + + Value of a property to set # noqa: E501 - :param value: The value of this V1Sysctl. + :param value: The value of this V1Sysctl. # noqa: E501 :type: str """ if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Sysctl): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py index cd0145f877..540d0eadb3 100644 --- a/kubernetes/client/models/v1_taint.py +++ b/kubernetes/client/models/v1_taint.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Taint(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'effect': 'str', 'key': 'str', 'time_added': 'datetime', @@ -44,10 +44,8 @@ class V1Taint(object): 'value': 'value' } - def __init__(self, effect=None, key=None, time_added=None, value=None): - """ - V1Taint - a model defined in Swagger - """ + def __init__(self, effect=None, key=None, time_added=None, value=None): # noqa: E501 + """V1Taint - a model defined in OpenAPI""" # noqa: E501 self._effect = None self._key = None @@ -58,78 +56,78 @@ def __init__(self, effect=None, key=None, time_added=None, value=None): self.effect = effect self.key = key if time_added is not None: - self.time_added = time_added + self.time_added = time_added if value is not None: - self.value = value + self.value = value @property def effect(self): - """ - Gets the effect of this V1Taint. - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + """Gets the effect of this V1Taint. # noqa: E501 + + Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. # noqa: E501 - :return: The effect of this V1Taint. + :return: The effect of this V1Taint. # noqa: E501 :rtype: str """ return self._effect @effect.setter def effect(self, effect): - """ - Sets the effect of this V1Taint. - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + """Sets the effect of this V1Taint. + + Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. # noqa: E501 - :param effect: The effect of this V1Taint. + :param effect: The effect of this V1Taint. # noqa: E501 :type: str """ if effect is None: - raise ValueError("Invalid value for `effect`, must not be `None`") + raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 self._effect = effect @property def key(self): - """ - Gets the key of this V1Taint. - Required. The taint key to be applied to a node. + """Gets the key of this V1Taint. # noqa: E501 + + Required. The taint key to be applied to a node. # noqa: E501 - :return: The key of this V1Taint. + :return: The key of this V1Taint. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1Taint. - Required. The taint key to be applied to a node. + """Sets the key of this V1Taint. + + Required. The taint key to be applied to a node. # noqa: E501 - :param key: The key of this V1Taint. + :param key: The key of this V1Taint. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def time_added(self): - """ - Gets the time_added of this V1Taint. - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + """Gets the time_added of this V1Taint. # noqa: E501 + + TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. # noqa: E501 - :return: The time_added of this V1Taint. + :return: The time_added of this V1Taint. # noqa: E501 :rtype: datetime """ return self._time_added @time_added.setter def time_added(self, time_added): - """ - Sets the time_added of this V1Taint. - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + """Sets the time_added of this V1Taint. + + TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. # noqa: E501 - :param time_added: The time_added of this V1Taint. + :param time_added: The time_added of this V1Taint. # noqa: E501 :type: datetime """ @@ -137,34 +135,32 @@ def time_added(self, time_added): @property def value(self): - """ - Gets the value of this V1Taint. - Required. The taint value corresponding to the taint key. + """Gets the value of this V1Taint. # noqa: E501 + + Required. The taint value corresponding to the taint key. # noqa: E501 - :return: The value of this V1Taint. + :return: The value of this V1Taint. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1Taint. - Required. The taint value corresponding to the taint key. + """Sets the value of this V1Taint. + + Required. The taint value corresponding to the taint key. # noqa: E501 - :param value: The value of this V1Taint. + :param value: The value of this V1Taint. # noqa: E501 :type: str """ self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Taint): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index 40eff979c3..98b629effb 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TCPSocketAction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'host': 'str', 'port': 'object' } @@ -40,37 +40,35 @@ class V1TCPSocketAction(object): 'port': 'port' } - def __init__(self, host=None, port=None): - """ - V1TCPSocketAction - a model defined in Swagger - """ + def __init__(self, host=None, port=None): # noqa: E501 + """V1TCPSocketAction - a model defined in OpenAPI""" # noqa: E501 self._host = None self._port = None self.discriminator = None if host is not None: - self.host = host + self.host = host self.port = port @property def host(self): - """ - Gets the host of this V1TCPSocketAction. - Optional: Host name to connect to, defaults to the pod IP. + """Gets the host of this V1TCPSocketAction. # noqa: E501 + + Optional: Host name to connect to, defaults to the pod IP. # noqa: E501 - :return: The host of this V1TCPSocketAction. + :return: The host of this V1TCPSocketAction. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """ - Sets the host of this V1TCPSocketAction. - Optional: Host name to connect to, defaults to the pod IP. + """Sets the host of this V1TCPSocketAction. - :param host: The host of this V1TCPSocketAction. + Optional: Host name to connect to, defaults to the pod IP. # noqa: E501 + + :param host: The host of this V1TCPSocketAction. # noqa: E501 :type: str """ @@ -78,36 +76,34 @@ def host(self, host): @property def port(self): - """ - Gets the port of this V1TCPSocketAction. - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + """Gets the port of this V1TCPSocketAction. # noqa: E501 + + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. # noqa: E501 - :return: The port of this V1TCPSocketAction. + :return: The port of this V1TCPSocketAction. # noqa: E501 :rtype: object """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1TCPSocketAction. - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + """Sets the port of this V1TCPSocketAction. + + Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. # noqa: E501 - :param port: The port of this V1TCPSocketAction. + :param port: The port of this V1TCPSocketAction. # noqa: E501 :type: object """ if port is None: - raise ValueError("Invalid value for `port`, must not be `None`") + raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TCPSocketAction): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_token_review.py b/kubernetes/client/models/v1_token_review.py index 2495649d90..6731dbd899 100644 --- a/kubernetes/client/models/v1_token_review.py +++ b/kubernetes/client/models/v1_token_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TokenReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1TokenReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1TokenReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1TokenReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1TokenReview. # noqa: E501 - :return: The api_version of this V1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1TokenReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1TokenReview. - :param api_version: The api_version of this V1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1TokenReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1TokenReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1TokenReview. + :return: The kind of this V1TokenReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1TokenReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1TokenReview. + :param kind: The kind of this V1TokenReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1TokenReview. + """Gets the metadata of this V1TokenReview. # noqa: E501 + - :return: The metadata of this V1TokenReview. + :return: The metadata of this V1TokenReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1TokenReview. + """Sets the metadata of this V1TokenReview. + - :param metadata: The metadata of this V1TokenReview. + :param metadata: The metadata of this V1TokenReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1TokenReview. - Spec holds information about the request being evaluated + """Gets the spec of this V1TokenReview. # noqa: E501 + - :return: The spec of this V1TokenReview. + :return: The spec of this V1TokenReview. # noqa: E501 :rtype: V1TokenReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1TokenReview. - Spec holds information about the request being evaluated + """Sets the spec of this V1TokenReview. - :param spec: The spec of this V1TokenReview. + + :param spec: The spec of this V1TokenReview. # noqa: E501 :type: V1TokenReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. + """Gets the status of this V1TokenReview. # noqa: E501 - :return: The status of this V1TokenReview. + + :return: The status of this V1TokenReview. # noqa: E501 :rtype: V1TokenReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. + """Sets the status of this V1TokenReview. - :param status: The status of this V1TokenReview. + + :param status: The status of this V1TokenReview. # noqa: E501 :type: V1TokenReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TokenReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_token_review_spec.py b/kubernetes/client/models/v1_token_review_spec.py index 97c9e5a9a3..b5821530db 100644 --- a/kubernetes/client/models/v1_token_review_spec.py +++ b/kubernetes/client/models/v1_token_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TokenReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'audiences': 'list[str]', 'token': 'str' } @@ -40,38 +40,36 @@ class V1TokenReviewSpec(object): 'token': 'token' } - def __init__(self, audiences=None, token=None): - """ - V1TokenReviewSpec - a model defined in Swagger - """ + def __init__(self, audiences=None, token=None): # noqa: E501 + """V1TokenReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._audiences = None self._token = None self.discriminator = None if audiences is not None: - self.audiences = audiences + self.audiences = audiences if token is not None: - self.token = token + self.token = token @property def audiences(self): - """ - Gets the audiences of this V1TokenReviewSpec. - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + """Gets the audiences of this V1TokenReviewSpec. # noqa: E501 + + Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. # noqa: E501 - :return: The audiences of this V1TokenReviewSpec. + :return: The audiences of this V1TokenReviewSpec. # noqa: E501 :rtype: list[str] """ return self._audiences @audiences.setter def audiences(self, audiences): - """ - Sets the audiences of this V1TokenReviewSpec. - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + """Sets the audiences of this V1TokenReviewSpec. - :param audiences: The audiences of this V1TokenReviewSpec. + Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. # noqa: E501 + + :param audiences: The audiences of this V1TokenReviewSpec. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def audiences(self, audiences): @property def token(self): - """ - Gets the token of this V1TokenReviewSpec. - Token is the opaque bearer token. + """Gets the token of this V1TokenReviewSpec. # noqa: E501 + + Token is the opaque bearer token. # noqa: E501 - :return: The token of this V1TokenReviewSpec. + :return: The token of this V1TokenReviewSpec. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this V1TokenReviewSpec. - Token is the opaque bearer token. + """Sets the token of this V1TokenReviewSpec. + + Token is the opaque bearer token. # noqa: E501 - :param token: The token of this V1TokenReviewSpec. + :param token: The token of this V1TokenReviewSpec. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TokenReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_token_review_status.py b/kubernetes/client/models/v1_token_review_status.py index 95b741bd35..c2a988238a 100644 --- a/kubernetes/client/models/v1_token_review_status.py +++ b/kubernetes/client/models/v1_token_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TokenReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'audiences': 'list[str]', 'authenticated': 'bool', 'error': 'str', @@ -44,10 +44,8 @@ class V1TokenReviewStatus(object): 'user': 'user' } - def __init__(self, audiences=None, authenticated=None, error=None, user=None): - """ - V1TokenReviewStatus - a model defined in Swagger - """ + def __init__(self, audiences=None, authenticated=None, error=None, user=None): # noqa: E501 + """V1TokenReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._audiences = None self._authenticated = None @@ -56,32 +54,32 @@ def __init__(self, audiences=None, authenticated=None, error=None, user=None): self.discriminator = None if audiences is not None: - self.audiences = audiences + self.audiences = audiences if authenticated is not None: - self.authenticated = authenticated + self.authenticated = authenticated if error is not None: - self.error = error + self.error = error if user is not None: - self.user = user + self.user = user @property def audiences(self): - """ - Gets the audiences of this V1TokenReviewStatus. - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. + """Gets the audiences of this V1TokenReviewStatus. # noqa: E501 + + Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. # noqa: E501 - :return: The audiences of this V1TokenReviewStatus. + :return: The audiences of this V1TokenReviewStatus. # noqa: E501 :rtype: list[str] """ return self._audiences @audiences.setter def audiences(self, audiences): - """ - Sets the audiences of this V1TokenReviewStatus. - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. + """Sets the audiences of this V1TokenReviewStatus. + + Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. # noqa: E501 - :param audiences: The audiences of this V1TokenReviewStatus. + :param audiences: The audiences of this V1TokenReviewStatus. # noqa: E501 :type: list[str] """ @@ -89,22 +87,22 @@ def audiences(self, audiences): @property def authenticated(self): - """ - Gets the authenticated of this V1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. + """Gets the authenticated of this V1TokenReviewStatus. # noqa: E501 + + Authenticated indicates that the token was associated with a known user. # noqa: E501 - :return: The authenticated of this V1TokenReviewStatus. + :return: The authenticated of this V1TokenReviewStatus. # noqa: E501 :rtype: bool """ return self._authenticated @authenticated.setter def authenticated(self, authenticated): - """ - Sets the authenticated of this V1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. + """Sets the authenticated of this V1TokenReviewStatus. + + Authenticated indicates that the token was associated with a known user. # noqa: E501 - :param authenticated: The authenticated of this V1TokenReviewStatus. + :param authenticated: The authenticated of this V1TokenReviewStatus. # noqa: E501 :type: bool """ @@ -112,22 +110,22 @@ def authenticated(self, authenticated): @property def error(self): - """ - Gets the error of this V1TokenReviewStatus. - Error indicates that the token couldn't be checked + """Gets the error of this V1TokenReviewStatus. # noqa: E501 + + Error indicates that the token couldn't be checked # noqa: E501 - :return: The error of this V1TokenReviewStatus. + :return: The error of this V1TokenReviewStatus. # noqa: E501 :rtype: str """ return self._error @error.setter def error(self, error): - """ - Sets the error of this V1TokenReviewStatus. - Error indicates that the token couldn't be checked + """Sets the error of this V1TokenReviewStatus. + + Error indicates that the token couldn't be checked # noqa: E501 - :param error: The error of this V1TokenReviewStatus. + :param error: The error of this V1TokenReviewStatus. # noqa: E501 :type: str """ @@ -135,34 +133,30 @@ def error(self, error): @property def user(self): - """ - Gets the user of this V1TokenReviewStatus. - User is the UserInfo associated with the provided token. + """Gets the user of this V1TokenReviewStatus. # noqa: E501 + - :return: The user of this V1TokenReviewStatus. + :return: The user of this V1TokenReviewStatus. # noqa: E501 :rtype: V1UserInfo """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1TokenReviewStatus. - User is the UserInfo associated with the provided token. + """Sets the user of this V1TokenReviewStatus. + - :param user: The user of this V1TokenReviewStatus. + :param user: The user of this V1TokenReviewStatus. # noqa: E501 :type: V1UserInfo """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TokenReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_toleration.py b/kubernetes/client/models/v1_toleration.py index 8c6d0bae37..92f6061d8a 100644 --- a/kubernetes/client/models/v1_toleration.py +++ b/kubernetes/client/models/v1_toleration.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Toleration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'effect': 'str', 'key': 'str', 'operator': 'str', @@ -46,10 +46,8 @@ class V1Toleration(object): 'value': 'value' } - def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): - """ - V1Toleration - a model defined in Swagger - """ + def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): # noqa: E501 + """V1Toleration - a model defined in OpenAPI""" # noqa: E501 self._effect = None self._key = None @@ -59,34 +57,34 @@ def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None self.discriminator = None if effect is not None: - self.effect = effect + self.effect = effect if key is not None: - self.key = key + self.key = key if operator is not None: - self.operator = operator + self.operator = operator if toleration_seconds is not None: - self.toleration_seconds = toleration_seconds + self.toleration_seconds = toleration_seconds if value is not None: - self.value = value + self.value = value @property def effect(self): - """ - Gets the effect of this V1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + """Gets the effect of this V1Toleration. # noqa: E501 - :return: The effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. # noqa: E501 + + :return: The effect of this V1Toleration. # noqa: E501 :rtype: str """ return self._effect @effect.setter def effect(self, effect): - """ - Sets the effect of this V1Toleration. - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + """Sets the effect of this V1Toleration. - :param effect: The effect of this V1Toleration. + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. # noqa: E501 + + :param effect: The effect of this V1Toleration. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def effect(self, effect): @property def key(self): - """ - Gets the key of this V1Toleration. - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + """Gets the key of this V1Toleration. # noqa: E501 + + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. # noqa: E501 - :return: The key of this V1Toleration. + :return: The key of this V1Toleration. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1Toleration. - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + """Sets the key of this V1Toleration. + + Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. # noqa: E501 - :param key: The key of this V1Toleration. + :param key: The key of this V1Toleration. # noqa: E501 :type: str """ @@ -117,22 +115,22 @@ def key(self, key): @property def operator(self): - """ - Gets the operator of this V1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + """Gets the operator of this V1Toleration. # noqa: E501 + + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. # noqa: E501 - :return: The operator of this V1Toleration. + :return: The operator of this V1Toleration. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """ - Sets the operator of this V1Toleration. - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + """Sets the operator of this V1Toleration. + + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. # noqa: E501 - :param operator: The operator of this V1Toleration. + :param operator: The operator of this V1Toleration. # noqa: E501 :type: str """ @@ -140,22 +138,22 @@ def operator(self, operator): @property def toleration_seconds(self): - """ - Gets the toleration_seconds of this V1Toleration. - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + """Gets the toleration_seconds of this V1Toleration. # noqa: E501 + + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. # noqa: E501 - :return: The toleration_seconds of this V1Toleration. + :return: The toleration_seconds of this V1Toleration. # noqa: E501 :rtype: int """ return self._toleration_seconds @toleration_seconds.setter def toleration_seconds(self, toleration_seconds): - """ - Sets the toleration_seconds of this V1Toleration. - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + """Sets the toleration_seconds of this V1Toleration. - :param toleration_seconds: The toleration_seconds of this V1Toleration. + TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. # noqa: E501 + + :param toleration_seconds: The toleration_seconds of this V1Toleration. # noqa: E501 :type: int """ @@ -163,34 +161,32 @@ def toleration_seconds(self, toleration_seconds): @property def value(self): - """ - Gets the value of this V1Toleration. - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """Gets the value of this V1Toleration. # noqa: E501 - :return: The value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. # noqa: E501 + + :return: The value of this V1Toleration. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1Toleration. - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """Sets the value of this V1Toleration. - :param value: The value of this V1Toleration. + Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. # noqa: E501 + + :param value: The value of this V1Toleration. # noqa: E501 :type: str """ self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Toleration): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_topology_selector_label_requirement.py b/kubernetes/client/models/v1_topology_selector_label_requirement.py index 61a3878400..93a803b6f2 100644 --- a/kubernetes/client/models/v1_topology_selector_label_requirement.py +++ b/kubernetes/client/models/v1_topology_selector_label_requirement.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TopologySelectorLabelRequirement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'key': 'str', 'values': 'list[str]' } @@ -40,10 +40,8 @@ class V1TopologySelectorLabelRequirement(object): 'values': 'values' } - def __init__(self, key=None, values=None): - """ - V1TopologySelectorLabelRequirement - a model defined in Swagger - """ + def __init__(self, key=None, values=None): # noqa: E501 + """V1TopologySelectorLabelRequirement - a model defined in OpenAPI""" # noqa: E501 self._key = None self._values = None @@ -54,61 +52,59 @@ def __init__(self, key=None, values=None): @property def key(self): - """ - Gets the key of this V1TopologySelectorLabelRequirement. - The label key that the selector applies to. + """Gets the key of this V1TopologySelectorLabelRequirement. # noqa: E501 + + The label key that the selector applies to. # noqa: E501 - :return: The key of this V1TopologySelectorLabelRequirement. + :return: The key of this V1TopologySelectorLabelRequirement. # noqa: E501 :rtype: str """ return self._key @key.setter def key(self, key): - """ - Sets the key of this V1TopologySelectorLabelRequirement. - The label key that the selector applies to. + """Sets the key of this V1TopologySelectorLabelRequirement. - :param key: The key of this V1TopologySelectorLabelRequirement. + The label key that the selector applies to. # noqa: E501 + + :param key: The key of this V1TopologySelectorLabelRequirement. # noqa: E501 :type: str """ if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @property def values(self): - """ - Gets the values of this V1TopologySelectorLabelRequirement. - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + """Gets the values of this V1TopologySelectorLabelRequirement. # noqa: E501 + + An array of string values. One value must match the label to be selected. Each entry in Values is ORed. # noqa: E501 - :return: The values of this V1TopologySelectorLabelRequirement. + :return: The values of this V1TopologySelectorLabelRequirement. # noqa: E501 :rtype: list[str] """ return self._values @values.setter def values(self, values): - """ - Sets the values of this V1TopologySelectorLabelRequirement. - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + """Sets the values of this V1TopologySelectorLabelRequirement. + + An array of string values. One value must match the label to be selected. Each entry in Values is ORed. # noqa: E501 - :param values: The values of this V1TopologySelectorLabelRequirement. + :param values: The values of this V1TopologySelectorLabelRequirement. # noqa: E501 :type: list[str] """ if values is None: - raise ValueError("Invalid value for `values`, must not be `None`") + raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 self._values = values def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TopologySelectorLabelRequirement): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_topology_selector_term.py b/kubernetes/client/models/v1_topology_selector_term.py index f8c664bad7..fc73a8e9d4 100644 --- a/kubernetes/client/models/v1_topology_selector_term.py +++ b/kubernetes/client/models/v1_topology_selector_term.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TopologySelectorTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'match_label_expressions': 'list[V1TopologySelectorLabelRequirement]' } @@ -38,47 +38,43 @@ class V1TopologySelectorTerm(object): 'match_label_expressions': 'matchLabelExpressions' } - def __init__(self, match_label_expressions=None): - """ - V1TopologySelectorTerm - a model defined in Swagger - """ + def __init__(self, match_label_expressions=None): # noqa: E501 + """V1TopologySelectorTerm - a model defined in OpenAPI""" # noqa: E501 self._match_label_expressions = None self.discriminator = None if match_label_expressions is not None: - self.match_label_expressions = match_label_expressions + self.match_label_expressions = match_label_expressions @property def match_label_expressions(self): - """ - Gets the match_label_expressions of this V1TopologySelectorTerm. - A list of topology selector requirements by labels. + """Gets the match_label_expressions of this V1TopologySelectorTerm. # noqa: E501 + + A list of topology selector requirements by labels. # noqa: E501 - :return: The match_label_expressions of this V1TopologySelectorTerm. + :return: The match_label_expressions of this V1TopologySelectorTerm. # noqa: E501 :rtype: list[V1TopologySelectorLabelRequirement] """ return self._match_label_expressions @match_label_expressions.setter def match_label_expressions(self, match_label_expressions): - """ - Sets the match_label_expressions of this V1TopologySelectorTerm. - A list of topology selector requirements by labels. + """Sets the match_label_expressions of this V1TopologySelectorTerm. + + A list of topology selector requirements by labels. # noqa: E501 - :param match_label_expressions: The match_label_expressions of this V1TopologySelectorTerm. + :param match_label_expressions: The match_label_expressions of this V1TopologySelectorTerm. # noqa: E501 :type: list[V1TopologySelectorLabelRequirement] """ self._match_label_expressions = match_label_expressions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TopologySelectorTerm): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_typed_local_object_reference.py b/kubernetes/client/models/v1_typed_local_object_reference.py index 6b5cbcac00..a6f649c9bf 100644 --- a/kubernetes/client/models/v1_typed_local_object_reference.py +++ b/kubernetes/client/models/v1_typed_local_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1TypedLocalObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V1TypedLocalObjectReference(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): - """ - V1TypedLocalObjectReference - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + """V1TypedLocalObjectReference - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -53,28 +51,28 @@ def __init__(self, api_group=None, kind=None, name=None): self.discriminator = None if api_group is not None: - self.api_group = api_group + self.api_group = api_group self.kind = kind self.name = name @property def api_group(self): - """ - Gets the api_group of this V1TypedLocalObjectReference. - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + """Gets the api_group of this V1TypedLocalObjectReference. # noqa: E501 - :return: The api_group of this V1TypedLocalObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. # noqa: E501 + + :return: The api_group of this V1TypedLocalObjectReference. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1TypedLocalObjectReference. - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + """Sets the api_group of this V1TypedLocalObjectReference. - :param api_group: The api_group of this V1TypedLocalObjectReference. + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. # noqa: E501 + + :param api_group: The api_group of this V1TypedLocalObjectReference. # noqa: E501 :type: str """ @@ -82,61 +80,59 @@ def api_group(self, api_group): @property def kind(self): - """ - Gets the kind of this V1TypedLocalObjectReference. - Kind is the type of resource being referenced + """Gets the kind of this V1TypedLocalObjectReference. # noqa: E501 - :return: The kind of this V1TypedLocalObjectReference. + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this V1TypedLocalObjectReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1TypedLocalObjectReference. - Kind is the type of resource being referenced + """Sets the kind of this V1TypedLocalObjectReference. + + Kind is the type of resource being referenced # noqa: E501 - :param kind: The kind of this V1TypedLocalObjectReference. + :param kind: The kind of this V1TypedLocalObjectReference. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1TypedLocalObjectReference. - Name is the name of resource being referenced + """Gets the name of this V1TypedLocalObjectReference. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 - :return: The name of this V1TypedLocalObjectReference. + :return: The name of this V1TypedLocalObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1TypedLocalObjectReference. - Name is the name of resource being referenced + """Sets the name of this V1TypedLocalObjectReference. + + Name is the name of resource being referenced # noqa: E501 - :param name: The name of this V1TypedLocalObjectReference. + :param name: The name of this V1TypedLocalObjectReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1TypedLocalObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_user_info.py b/kubernetes/client/models/v1_user_info.py index 16fc1b801f..dcb54170fd 100644 --- a/kubernetes/client/models/v1_user_info.py +++ b/kubernetes/client/models/v1_user_info.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1UserInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'uid': 'str', @@ -44,10 +44,8 @@ class V1UserInfo(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, uid=None, username=None): - """ - V1UserInfo - a model defined in Swagger - """ + def __init__(self, extra=None, groups=None, uid=None, username=None): # noqa: E501 + """V1UserInfo - a model defined in OpenAPI""" # noqa: E501 self._extra = None self._groups = None @@ -56,32 +54,32 @@ def __init__(self, extra=None, groups=None, uid=None, username=None): self.discriminator = None if extra is not None: - self.extra = extra + self.extra = extra if groups is not None: - self.groups = groups + self.groups = groups if uid is not None: - self.uid = uid + self.uid = uid if username is not None: - self.username = username + self.username = username @property def extra(self): - """ - Gets the extra of this V1UserInfo. - Any additional information provided by the authenticator. + """Gets the extra of this V1UserInfo. # noqa: E501 + + Any additional information provided by the authenticator. # noqa: E501 - :return: The extra of this V1UserInfo. + :return: The extra of this V1UserInfo. # noqa: E501 :rtype: dict(str, list[str]) """ return self._extra @extra.setter def extra(self, extra): - """ - Sets the extra of this V1UserInfo. - Any additional information provided by the authenticator. + """Sets the extra of this V1UserInfo. + + Any additional information provided by the authenticator. # noqa: E501 - :param extra: The extra of this V1UserInfo. + :param extra: The extra of this V1UserInfo. # noqa: E501 :type: dict(str, list[str]) """ @@ -89,22 +87,22 @@ def extra(self, extra): @property def groups(self): - """ - Gets the groups of this V1UserInfo. - The names of groups this user is a part of. + """Gets the groups of this V1UserInfo. # noqa: E501 + + The names of groups this user is a part of. # noqa: E501 - :return: The groups of this V1UserInfo. + :return: The groups of this V1UserInfo. # noqa: E501 :rtype: list[str] """ return self._groups @groups.setter def groups(self, groups): - """ - Sets the groups of this V1UserInfo. - The names of groups this user is a part of. + """Sets the groups of this V1UserInfo. + + The names of groups this user is a part of. # noqa: E501 - :param groups: The groups of this V1UserInfo. + :param groups: The groups of this V1UserInfo. # noqa: E501 :type: list[str] """ @@ -112,22 +110,22 @@ def groups(self, groups): @property def uid(self): - """ - Gets the uid of this V1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + """Gets the uid of this V1UserInfo. # noqa: E501 + + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. # noqa: E501 - :return: The uid of this V1UserInfo. + :return: The uid of this V1UserInfo. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + """Sets the uid of this V1UserInfo. + + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. # noqa: E501 - :param uid: The uid of this V1UserInfo. + :param uid: The uid of this V1UserInfo. # noqa: E501 :type: str """ @@ -135,34 +133,32 @@ def uid(self, uid): @property def username(self): - """ - Gets the username of this V1UserInfo. - The name that uniquely identifies this user among all active users. + """Gets the username of this V1UserInfo. # noqa: E501 + + The name that uniquely identifies this user among all active users. # noqa: E501 - :return: The username of this V1UserInfo. + :return: The username of this V1UserInfo. # noqa: E501 :rtype: str """ return self._username @username.setter def username(self, username): - """ - Sets the username of this V1UserInfo. - The name that uniquely identifies this user among all active users. + """Sets the username of this V1UserInfo. + + The name that uniquely identifies this user among all active users. # noqa: E501 - :param username: The username of this V1UserInfo. + :param username: The username of this V1UserInfo. # noqa: E501 :type: str """ self._username = username def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1UserInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume.py b/kubernetes/client/models/v1_volume.py index c932afb47b..a060dd23ca 100644 --- a/kubernetes/client/models/v1_volume.py +++ b/kubernetes/client/models/v1_volume.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1Volume(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', @@ -94,10 +94,8 @@ class V1Volume(object): 'vsphere_volume': 'vsphereVolume' } - def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, csi=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, storageos=None, vsphere_volume=None): - """ - V1Volume - a model defined in Swagger - """ + def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, csi=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, storageos=None, vsphere_volume=None): # noqa: E501 + """V1Volume - a model defined in OpenAPI""" # noqa: E501 self._aws_elastic_block_store = None self._azure_disk = None @@ -131,81 +129,79 @@ def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=Non self.discriminator = None if aws_elastic_block_store is not None: - self.aws_elastic_block_store = aws_elastic_block_store + self.aws_elastic_block_store = aws_elastic_block_store if azure_disk is not None: - self.azure_disk = azure_disk + self.azure_disk = azure_disk if azure_file is not None: - self.azure_file = azure_file + self.azure_file = azure_file if cephfs is not None: - self.cephfs = cephfs + self.cephfs = cephfs if cinder is not None: - self.cinder = cinder + self.cinder = cinder if config_map is not None: - self.config_map = config_map + self.config_map = config_map if csi is not None: - self.csi = csi + self.csi = csi if downward_api is not None: - self.downward_api = downward_api + self.downward_api = downward_api if empty_dir is not None: - self.empty_dir = empty_dir + self.empty_dir = empty_dir if fc is not None: - self.fc = fc + self.fc = fc if flex_volume is not None: - self.flex_volume = flex_volume + self.flex_volume = flex_volume if flocker is not None: - self.flocker = flocker + self.flocker = flocker if gce_persistent_disk is not None: - self.gce_persistent_disk = gce_persistent_disk + self.gce_persistent_disk = gce_persistent_disk if git_repo is not None: - self.git_repo = git_repo + self.git_repo = git_repo if glusterfs is not None: - self.glusterfs = glusterfs + self.glusterfs = glusterfs if host_path is not None: - self.host_path = host_path + self.host_path = host_path if iscsi is not None: - self.iscsi = iscsi + self.iscsi = iscsi self.name = name if nfs is not None: - self.nfs = nfs + self.nfs = nfs if persistent_volume_claim is not None: - self.persistent_volume_claim = persistent_volume_claim + self.persistent_volume_claim = persistent_volume_claim if photon_persistent_disk is not None: - self.photon_persistent_disk = photon_persistent_disk + self.photon_persistent_disk = photon_persistent_disk if portworx_volume is not None: - self.portworx_volume = portworx_volume + self.portworx_volume = portworx_volume if projected is not None: - self.projected = projected + self.projected = projected if quobyte is not None: - self.quobyte = quobyte + self.quobyte = quobyte if rbd is not None: - self.rbd = rbd + self.rbd = rbd if scale_io is not None: - self.scale_io = scale_io + self.scale_io = scale_io if secret is not None: - self.secret = secret + self.secret = secret if storageos is not None: - self.storageos = storageos + self.storageos = storageos if vsphere_volume is not None: - self.vsphere_volume = vsphere_volume + self.vsphere_volume = vsphere_volume @property def aws_elastic_block_store(self): - """ - Gets the aws_elastic_block_store of this V1Volume. - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Gets the aws_elastic_block_store of this V1Volume. # noqa: E501 - :return: The aws_elastic_block_store of this V1Volume. + + :return: The aws_elastic_block_store of this V1Volume. # noqa: E501 :rtype: V1AWSElasticBlockStoreVolumeSource """ return self._aws_elastic_block_store @aws_elastic_block_store.setter def aws_elastic_block_store(self, aws_elastic_block_store): - """ - Sets the aws_elastic_block_store of this V1Volume. - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + """Sets the aws_elastic_block_store of this V1Volume. - :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. + + :param aws_elastic_block_store: The aws_elastic_block_store of this V1Volume. # noqa: E501 :type: V1AWSElasticBlockStoreVolumeSource """ @@ -213,22 +209,20 @@ def aws_elastic_block_store(self, aws_elastic_block_store): @property def azure_disk(self): - """ - Gets the azure_disk of this V1Volume. - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + """Gets the azure_disk of this V1Volume. # noqa: E501 - :return: The azure_disk of this V1Volume. + + :return: The azure_disk of this V1Volume. # noqa: E501 :rtype: V1AzureDiskVolumeSource """ return self._azure_disk @azure_disk.setter def azure_disk(self, azure_disk): - """ - Sets the azure_disk of this V1Volume. - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + """Sets the azure_disk of this V1Volume. - :param azure_disk: The azure_disk of this V1Volume. + + :param azure_disk: The azure_disk of this V1Volume. # noqa: E501 :type: V1AzureDiskVolumeSource """ @@ -236,22 +230,20 @@ def azure_disk(self, azure_disk): @property def azure_file(self): - """ - Gets the azure_file of this V1Volume. - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + """Gets the azure_file of this V1Volume. # noqa: E501 - :return: The azure_file of this V1Volume. + + :return: The azure_file of this V1Volume. # noqa: E501 :rtype: V1AzureFileVolumeSource """ return self._azure_file @azure_file.setter def azure_file(self, azure_file): - """ - Sets the azure_file of this V1Volume. - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + """Sets the azure_file of this V1Volume. - :param azure_file: The azure_file of this V1Volume. + + :param azure_file: The azure_file of this V1Volume. # noqa: E501 :type: V1AzureFileVolumeSource """ @@ -259,22 +251,20 @@ def azure_file(self, azure_file): @property def cephfs(self): - """ - Gets the cephfs of this V1Volume. - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + """Gets the cephfs of this V1Volume. # noqa: E501 - :return: The cephfs of this V1Volume. + + :return: The cephfs of this V1Volume. # noqa: E501 :rtype: V1CephFSVolumeSource """ return self._cephfs @cephfs.setter def cephfs(self, cephfs): - """ - Sets the cephfs of this V1Volume. - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + """Sets the cephfs of this V1Volume. - :param cephfs: The cephfs of this V1Volume. + + :param cephfs: The cephfs of this V1Volume. # noqa: E501 :type: V1CephFSVolumeSource """ @@ -282,22 +272,20 @@ def cephfs(self, cephfs): @property def cinder(self): - """ - Gets the cinder of this V1Volume. - Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Gets the cinder of this V1Volume. # noqa: E501 - :return: The cinder of this V1Volume. + + :return: The cinder of this V1Volume. # noqa: E501 :rtype: V1CinderVolumeSource """ return self._cinder @cinder.setter def cinder(self, cinder): - """ - Sets the cinder of this V1Volume. - Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + """Sets the cinder of this V1Volume. - :param cinder: The cinder of this V1Volume. + + :param cinder: The cinder of this V1Volume. # noqa: E501 :type: V1CinderVolumeSource """ @@ -305,22 +293,20 @@ def cinder(self, cinder): @property def config_map(self): - """ - Gets the config_map of this V1Volume. - ConfigMap represents a configMap that should populate this volume + """Gets the config_map of this V1Volume. # noqa: E501 - :return: The config_map of this V1Volume. + + :return: The config_map of this V1Volume. # noqa: E501 :rtype: V1ConfigMapVolumeSource """ return self._config_map @config_map.setter def config_map(self, config_map): - """ - Sets the config_map of this V1Volume. - ConfigMap represents a configMap that should populate this volume + """Sets the config_map of this V1Volume. - :param config_map: The config_map of this V1Volume. + + :param config_map: The config_map of this V1Volume. # noqa: E501 :type: V1ConfigMapVolumeSource """ @@ -328,22 +314,20 @@ def config_map(self, config_map): @property def csi(self): - """ - Gets the csi of this V1Volume. - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + """Gets the csi of this V1Volume. # noqa: E501 - :return: The csi of this V1Volume. + + :return: The csi of this V1Volume. # noqa: E501 :rtype: V1CSIVolumeSource """ return self._csi @csi.setter def csi(self, csi): - """ - Sets the csi of this V1Volume. - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + """Sets the csi of this V1Volume. - :param csi: The csi of this V1Volume. + + :param csi: The csi of this V1Volume. # noqa: E501 :type: V1CSIVolumeSource """ @@ -351,22 +335,20 @@ def csi(self, csi): @property def downward_api(self): - """ - Gets the downward_api of this V1Volume. - DownwardAPI represents downward API about the pod that should populate this volume + """Gets the downward_api of this V1Volume. # noqa: E501 + - :return: The downward_api of this V1Volume. + :return: The downward_api of this V1Volume. # noqa: E501 :rtype: V1DownwardAPIVolumeSource """ return self._downward_api @downward_api.setter def downward_api(self, downward_api): - """ - Sets the downward_api of this V1Volume. - DownwardAPI represents downward API about the pod that should populate this volume + """Sets the downward_api of this V1Volume. + - :param downward_api: The downward_api of this V1Volume. + :param downward_api: The downward_api of this V1Volume. # noqa: E501 :type: V1DownwardAPIVolumeSource """ @@ -374,22 +356,20 @@ def downward_api(self, downward_api): @property def empty_dir(self): - """ - Gets the empty_dir of this V1Volume. - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + """Gets the empty_dir of this V1Volume. # noqa: E501 + - :return: The empty_dir of this V1Volume. + :return: The empty_dir of this V1Volume. # noqa: E501 :rtype: V1EmptyDirVolumeSource """ return self._empty_dir @empty_dir.setter def empty_dir(self, empty_dir): - """ - Sets the empty_dir of this V1Volume. - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + """Sets the empty_dir of this V1Volume. + - :param empty_dir: The empty_dir of this V1Volume. + :param empty_dir: The empty_dir of this V1Volume. # noqa: E501 :type: V1EmptyDirVolumeSource """ @@ -397,22 +377,20 @@ def empty_dir(self, empty_dir): @property def fc(self): - """ - Gets the fc of this V1Volume. - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + """Gets the fc of this V1Volume. # noqa: E501 + - :return: The fc of this V1Volume. + :return: The fc of this V1Volume. # noqa: E501 :rtype: V1FCVolumeSource """ return self._fc @fc.setter def fc(self, fc): - """ - Sets the fc of this V1Volume. - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + """Sets the fc of this V1Volume. + - :param fc: The fc of this V1Volume. + :param fc: The fc of this V1Volume. # noqa: E501 :type: V1FCVolumeSource """ @@ -420,22 +398,20 @@ def fc(self, fc): @property def flex_volume(self): - """ - Gets the flex_volume of this V1Volume. - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + """Gets the flex_volume of this V1Volume. # noqa: E501 + - :return: The flex_volume of this V1Volume. + :return: The flex_volume of this V1Volume. # noqa: E501 :rtype: V1FlexVolumeSource """ return self._flex_volume @flex_volume.setter def flex_volume(self, flex_volume): - """ - Sets the flex_volume of this V1Volume. - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + """Sets the flex_volume of this V1Volume. + - :param flex_volume: The flex_volume of this V1Volume. + :param flex_volume: The flex_volume of this V1Volume. # noqa: E501 :type: V1FlexVolumeSource """ @@ -443,22 +419,20 @@ def flex_volume(self, flex_volume): @property def flocker(self): - """ - Gets the flocker of this V1Volume. - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + """Gets the flocker of this V1Volume. # noqa: E501 + - :return: The flocker of this V1Volume. + :return: The flocker of this V1Volume. # noqa: E501 :rtype: V1FlockerVolumeSource """ return self._flocker @flocker.setter def flocker(self, flocker): - """ - Sets the flocker of this V1Volume. - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + """Sets the flocker of this V1Volume. + - :param flocker: The flocker of this V1Volume. + :param flocker: The flocker of this V1Volume. # noqa: E501 :type: V1FlockerVolumeSource """ @@ -466,22 +440,20 @@ def flocker(self, flocker): @property def gce_persistent_disk(self): - """ - Gets the gce_persistent_disk of this V1Volume. - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Gets the gce_persistent_disk of this V1Volume. # noqa: E501 + - :return: The gce_persistent_disk of this V1Volume. + :return: The gce_persistent_disk of this V1Volume. # noqa: E501 :rtype: V1GCEPersistentDiskVolumeSource """ return self._gce_persistent_disk @gce_persistent_disk.setter def gce_persistent_disk(self, gce_persistent_disk): - """ - Sets the gce_persistent_disk of this V1Volume. - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + """Sets the gce_persistent_disk of this V1Volume. + - :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. + :param gce_persistent_disk: The gce_persistent_disk of this V1Volume. # noqa: E501 :type: V1GCEPersistentDiskVolumeSource """ @@ -489,22 +461,20 @@ def gce_persistent_disk(self, gce_persistent_disk): @property def git_repo(self): - """ - Gets the git_repo of this V1Volume. - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + """Gets the git_repo of this V1Volume. # noqa: E501 + - :return: The git_repo of this V1Volume. + :return: The git_repo of this V1Volume. # noqa: E501 :rtype: V1GitRepoVolumeSource """ return self._git_repo @git_repo.setter def git_repo(self, git_repo): - """ - Sets the git_repo of this V1Volume. - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + """Sets the git_repo of this V1Volume. + - :param git_repo: The git_repo of this V1Volume. + :param git_repo: The git_repo of this V1Volume. # noqa: E501 :type: V1GitRepoVolumeSource """ @@ -512,22 +482,20 @@ def git_repo(self, git_repo): @property def glusterfs(self): - """ - Gets the glusterfs of this V1Volume. - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + """Gets the glusterfs of this V1Volume. # noqa: E501 + - :return: The glusterfs of this V1Volume. + :return: The glusterfs of this V1Volume. # noqa: E501 :rtype: V1GlusterfsVolumeSource """ return self._glusterfs @glusterfs.setter def glusterfs(self, glusterfs): - """ - Sets the glusterfs of this V1Volume. - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + """Sets the glusterfs of this V1Volume. + - :param glusterfs: The glusterfs of this V1Volume. + :param glusterfs: The glusterfs of this V1Volume. # noqa: E501 :type: V1GlusterfsVolumeSource """ @@ -535,22 +503,20 @@ def glusterfs(self, glusterfs): @property def host_path(self): - """ - Gets the host_path of this V1Volume. - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Gets the host_path of this V1Volume. # noqa: E501 + - :return: The host_path of this V1Volume. + :return: The host_path of this V1Volume. # noqa: E501 :rtype: V1HostPathVolumeSource """ return self._host_path @host_path.setter def host_path(self, host_path): - """ - Sets the host_path of this V1Volume. - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + """Sets the host_path of this V1Volume. - :param host_path: The host_path of this V1Volume. + + :param host_path: The host_path of this V1Volume. # noqa: E501 :type: V1HostPathVolumeSource """ @@ -558,22 +524,20 @@ def host_path(self, host_path): @property def iscsi(self): - """ - Gets the iscsi of this V1Volume. - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + """Gets the iscsi of this V1Volume. # noqa: E501 - :return: The iscsi of this V1Volume. + + :return: The iscsi of this V1Volume. # noqa: E501 :rtype: V1ISCSIVolumeSource """ return self._iscsi @iscsi.setter def iscsi(self, iscsi): - """ - Sets the iscsi of this V1Volume. - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + """Sets the iscsi of this V1Volume. - :param iscsi: The iscsi of this V1Volume. + + :param iscsi: The iscsi of this V1Volume. # noqa: E501 :type: V1ISCSIVolumeSource """ @@ -581,47 +545,45 @@ def iscsi(self, iscsi): @property def name(self): - """ - Gets the name of this V1Volume. - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Gets the name of this V1Volume. # noqa: E501 - :return: The name of this V1Volume. + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :return: The name of this V1Volume. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1Volume. - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """Sets the name of this V1Volume. - :param name: The name of this V1Volume. + Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + + :param name: The name of this V1Volume. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def nfs(self): - """ - Gets the nfs of this V1Volume. - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Gets the nfs of this V1Volume. # noqa: E501 - :return: The nfs of this V1Volume. + + :return: The nfs of this V1Volume. # noqa: E501 :rtype: V1NFSVolumeSource """ return self._nfs @nfs.setter def nfs(self, nfs): - """ - Sets the nfs of this V1Volume. - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + """Sets the nfs of this V1Volume. - :param nfs: The nfs of this V1Volume. + + :param nfs: The nfs of this V1Volume. # noqa: E501 :type: V1NFSVolumeSource """ @@ -629,22 +591,20 @@ def nfs(self, nfs): @property def persistent_volume_claim(self): - """ - Gets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Gets the persistent_volume_claim of this V1Volume. # noqa: E501 - :return: The persistent_volume_claim of this V1Volume. + + :return: The persistent_volume_claim of this V1Volume. # noqa: E501 :rtype: V1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @persistent_volume_claim.setter def persistent_volume_claim(self, persistent_volume_claim): - """ - Sets the persistent_volume_claim of this V1Volume. - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """Sets the persistent_volume_claim of this V1Volume. - :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. + + :param persistent_volume_claim: The persistent_volume_claim of this V1Volume. # noqa: E501 :type: V1PersistentVolumeClaimVolumeSource """ @@ -652,22 +612,20 @@ def persistent_volume_claim(self, persistent_volume_claim): @property def photon_persistent_disk(self): - """ - Gets the photon_persistent_disk of this V1Volume. - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + """Gets the photon_persistent_disk of this V1Volume. # noqa: E501 - :return: The photon_persistent_disk of this V1Volume. + + :return: The photon_persistent_disk of this V1Volume. # noqa: E501 :rtype: V1PhotonPersistentDiskVolumeSource """ return self._photon_persistent_disk @photon_persistent_disk.setter def photon_persistent_disk(self, photon_persistent_disk): - """ - Sets the photon_persistent_disk of this V1Volume. - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + """Sets the photon_persistent_disk of this V1Volume. - :param photon_persistent_disk: The photon_persistent_disk of this V1Volume. + + :param photon_persistent_disk: The photon_persistent_disk of this V1Volume. # noqa: E501 :type: V1PhotonPersistentDiskVolumeSource """ @@ -675,22 +633,20 @@ def photon_persistent_disk(self, photon_persistent_disk): @property def portworx_volume(self): - """ - Gets the portworx_volume of this V1Volume. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + """Gets the portworx_volume of this V1Volume. # noqa: E501 - :return: The portworx_volume of this V1Volume. + + :return: The portworx_volume of this V1Volume. # noqa: E501 :rtype: V1PortworxVolumeSource """ return self._portworx_volume @portworx_volume.setter def portworx_volume(self, portworx_volume): - """ - Sets the portworx_volume of this V1Volume. - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + """Sets the portworx_volume of this V1Volume. - :param portworx_volume: The portworx_volume of this V1Volume. + + :param portworx_volume: The portworx_volume of this V1Volume. # noqa: E501 :type: V1PortworxVolumeSource """ @@ -698,22 +654,20 @@ def portworx_volume(self, portworx_volume): @property def projected(self): - """ - Gets the projected of this V1Volume. - Items for all in one resources secrets, configmaps, and downward API + """Gets the projected of this V1Volume. # noqa: E501 - :return: The projected of this V1Volume. + + :return: The projected of this V1Volume. # noqa: E501 :rtype: V1ProjectedVolumeSource """ return self._projected @projected.setter def projected(self, projected): - """ - Sets the projected of this V1Volume. - Items for all in one resources secrets, configmaps, and downward API + """Sets the projected of this V1Volume. - :param projected: The projected of this V1Volume. + + :param projected: The projected of this V1Volume. # noqa: E501 :type: V1ProjectedVolumeSource """ @@ -721,22 +675,20 @@ def projected(self, projected): @property def quobyte(self): - """ - Gets the quobyte of this V1Volume. - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + """Gets the quobyte of this V1Volume. # noqa: E501 - :return: The quobyte of this V1Volume. + + :return: The quobyte of this V1Volume. # noqa: E501 :rtype: V1QuobyteVolumeSource """ return self._quobyte @quobyte.setter def quobyte(self, quobyte): - """ - Sets the quobyte of this V1Volume. - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + """Sets the quobyte of this V1Volume. + - :param quobyte: The quobyte of this V1Volume. + :param quobyte: The quobyte of this V1Volume. # noqa: E501 :type: V1QuobyteVolumeSource """ @@ -744,22 +696,20 @@ def quobyte(self, quobyte): @property def rbd(self): - """ - Gets the rbd of this V1Volume. - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + """Gets the rbd of this V1Volume. # noqa: E501 + - :return: The rbd of this V1Volume. + :return: The rbd of this V1Volume. # noqa: E501 :rtype: V1RBDVolumeSource """ return self._rbd @rbd.setter def rbd(self, rbd): - """ - Sets the rbd of this V1Volume. - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + """Sets the rbd of this V1Volume. + - :param rbd: The rbd of this V1Volume. + :param rbd: The rbd of this V1Volume. # noqa: E501 :type: V1RBDVolumeSource """ @@ -767,22 +717,20 @@ def rbd(self, rbd): @property def scale_io(self): - """ - Gets the scale_io of this V1Volume. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + """Gets the scale_io of this V1Volume. # noqa: E501 + - :return: The scale_io of this V1Volume. + :return: The scale_io of this V1Volume. # noqa: E501 :rtype: V1ScaleIOVolumeSource """ return self._scale_io @scale_io.setter def scale_io(self, scale_io): - """ - Sets the scale_io of this V1Volume. - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + """Sets the scale_io of this V1Volume. + - :param scale_io: The scale_io of this V1Volume. + :param scale_io: The scale_io of this V1Volume. # noqa: E501 :type: V1ScaleIOVolumeSource """ @@ -790,22 +738,20 @@ def scale_io(self, scale_io): @property def secret(self): - """ - Gets the secret of this V1Volume. - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + """Gets the secret of this V1Volume. # noqa: E501 + - :return: The secret of this V1Volume. + :return: The secret of this V1Volume. # noqa: E501 :rtype: V1SecretVolumeSource """ return self._secret @secret.setter def secret(self, secret): - """ - Sets the secret of this V1Volume. - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + """Sets the secret of this V1Volume. + - :param secret: The secret of this V1Volume. + :param secret: The secret of this V1Volume. # noqa: E501 :type: V1SecretVolumeSource """ @@ -813,22 +759,20 @@ def secret(self, secret): @property def storageos(self): - """ - Gets the storageos of this V1Volume. - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + """Gets the storageos of this V1Volume. # noqa: E501 + - :return: The storageos of this V1Volume. + :return: The storageos of this V1Volume. # noqa: E501 :rtype: V1StorageOSVolumeSource """ return self._storageos @storageos.setter def storageos(self, storageos): - """ - Sets the storageos of this V1Volume. - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + """Sets the storageos of this V1Volume. + - :param storageos: The storageos of this V1Volume. + :param storageos: The storageos of this V1Volume. # noqa: E501 :type: V1StorageOSVolumeSource """ @@ -836,34 +780,30 @@ def storageos(self, storageos): @property def vsphere_volume(self): - """ - Gets the vsphere_volume of this V1Volume. - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """Gets the vsphere_volume of this V1Volume. # noqa: E501 + - :return: The vsphere_volume of this V1Volume. + :return: The vsphere_volume of this V1Volume. # noqa: E501 :rtype: V1VsphereVirtualDiskVolumeSource """ return self._vsphere_volume @vsphere_volume.setter def vsphere_volume(self, vsphere_volume): - """ - Sets the vsphere_volume of this V1Volume. - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + """Sets the vsphere_volume of this V1Volume. + - :param vsphere_volume: The vsphere_volume of this V1Volume. + :param vsphere_volume: The vsphere_volume of this V1Volume. # noqa: E501 :type: V1VsphereVirtualDiskVolumeSource """ self._vsphere_volume = vsphere_volume def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -884,28 +824,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1Volume): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_attachment.py b/kubernetes/client/models/v1_volume_attachment.py index 6f70a04b68..e69ef58234 100644 --- a/kubernetes/client/models/v1_volume_attachment.py +++ b/kubernetes/client/models/v1_volume_attachment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeAttachment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1VolumeAttachment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1VolumeAttachment. # noqa: E501 - :return: The api_version of this V1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1VolumeAttachment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1VolumeAttachment. - :param api_version: The api_version of this V1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1VolumeAttachment. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1VolumeAttachment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1VolumeAttachment. + :return: The kind of this V1VolumeAttachment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1VolumeAttachment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1VolumeAttachment. + :param kind: The kind of this V1VolumeAttachment. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1VolumeAttachment. # noqa: E501 + - :return: The metadata of this V1VolumeAttachment. + :return: The metadata of this V1VolumeAttachment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1VolumeAttachment. + - :param metadata: The metadata of this V1VolumeAttachment. + :param metadata: The metadata of this V1VolumeAttachment. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Gets the spec of this V1VolumeAttachment. # noqa: E501 + - :return: The spec of this V1VolumeAttachment. + :return: The spec of this V1VolumeAttachment. # noqa: E501 :rtype: V1VolumeAttachmentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Sets the spec of this V1VolumeAttachment. - :param spec: The spec of this V1VolumeAttachment. + + :param spec: The spec of this V1VolumeAttachment. # noqa: E501 :type: V1VolumeAttachmentSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Gets the status of this V1VolumeAttachment. # noqa: E501 - :return: The status of this V1VolumeAttachment. + + :return: The status of this V1VolumeAttachment. # noqa: E501 :rtype: V1VolumeAttachmentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Sets the status of this V1VolumeAttachment. - :param status: The status of this V1VolumeAttachment. + + :param status: The status of this V1VolumeAttachment. # noqa: E501 :type: V1VolumeAttachmentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeAttachment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_attachment_list.py b/kubernetes/client/models/v1_volume_attachment_list.py index 07d7ad14d2..4445d7a841 100644 --- a/kubernetes/client/models/v1_volume_attachment_list.py +++ b/kubernetes/client/models/v1_volume_attachment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeAttachmentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1VolumeAttachment]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1VolumeAttachmentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1VolumeAttachmentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1VolumeAttachmentList. + :return: The api_version of this V1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1VolumeAttachmentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1VolumeAttachmentList. + :param api_version: The api_version of this V1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Gets the items of this V1VolumeAttachmentList. # noqa: E501 + + Items is the list of VolumeAttachments # noqa: E501 - :return: The items of this V1VolumeAttachmentList. + :return: The items of this V1VolumeAttachmentList. # noqa: E501 :rtype: list[V1VolumeAttachment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Sets the items of this V1VolumeAttachmentList. + + Items is the list of VolumeAttachments # noqa: E501 - :param items: The items of this V1VolumeAttachmentList. + :param items: The items of this V1VolumeAttachmentList. # noqa: E501 :type: list[V1VolumeAttachment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1VolumeAttachmentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1VolumeAttachmentList. + :return: The kind of this V1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1VolumeAttachmentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1VolumeAttachmentList. + :param kind: The kind of this V1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1VolumeAttachmentList. # noqa: E501 + - :return: The metadata of this V1VolumeAttachmentList. + :return: The metadata of this V1VolumeAttachmentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1VolumeAttachmentList. + - :param metadata: The metadata of this V1VolumeAttachmentList. + :param metadata: The metadata of this V1VolumeAttachmentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeAttachmentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_attachment_source.py b/kubernetes/client/models/v1_volume_attachment_source.py index 1239d07e53..d45b7ee926 100644 --- a/kubernetes/client/models/v1_volume_attachment_source.py +++ b/kubernetes/client/models/v1_volume_attachment_source.py @@ -3,82 +3,104 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeAttachmentSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { + 'inline_volume_spec': 'V1PersistentVolumeSpec', 'persistent_volume_name': 'str' } attribute_map = { + 'inline_volume_spec': 'inlineVolumeSpec', 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, persistent_volume_name=None): - """ - V1VolumeAttachmentSource - a model defined in Swagger - """ + def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + """V1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + self._inline_volume_spec = None self._persistent_volume_name = None self.discriminator = None + if inline_volume_spec is not None: + self.inline_volume_spec = inline_volume_spec if persistent_volume_name is not None: - self.persistent_volume_name = persistent_volume_name + self.persistent_volume_name = persistent_volume_name @property - def persistent_volume_name(self): + def inline_volume_spec(self): + """Gets the inline_volume_spec of this V1VolumeAttachmentSource. # noqa: E501 + + + :return: The inline_volume_spec of this V1VolumeAttachmentSource. # noqa: E501 + :rtype: V1PersistentVolumeSpec """ - Gets the persistent_volume_name of this V1VolumeAttachmentSource. - Name of the persistent volume to attach. + return self._inline_volume_spec + + @inline_volume_spec.setter + def inline_volume_spec(self, inline_volume_spec): + """Sets the inline_volume_spec of this V1VolumeAttachmentSource. + + + :param inline_volume_spec: The inline_volume_spec of this V1VolumeAttachmentSource. # noqa: E501 + :type: V1PersistentVolumeSpec + """ + + self._inline_volume_spec = inline_volume_spec + + @property + def persistent_volume_name(self): + """Gets the persistent_volume_name of this V1VolumeAttachmentSource. # noqa: E501 - :return: The persistent_volume_name of this V1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :return: The persistent_volume_name of this V1VolumeAttachmentSource. # noqa: E501 :rtype: str """ return self._persistent_volume_name @persistent_volume_name.setter def persistent_volume_name(self, persistent_volume_name): - """ - Sets the persistent_volume_name of this V1VolumeAttachmentSource. - Name of the persistent volume to attach. + """Sets the persistent_volume_name of this V1VolumeAttachmentSource. - :param persistent_volume_name: The persistent_volume_name of this V1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :param persistent_volume_name: The persistent_volume_name of this V1VolumeAttachmentSource. # noqa: E501 :type: str """ self._persistent_volume_name = persistent_volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeAttachmentSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_attachment_spec.py b/kubernetes/client/models/v1_volume_attachment_spec.py index dd5086c2a7..0fe4f1e47e 100644 --- a/kubernetes/client/models/v1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1_volume_attachment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeAttachmentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attacher': 'str', 'node_name': 'str', 'source': 'V1VolumeAttachmentSource' @@ -42,10 +42,8 @@ class V1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): - """ - V1VolumeAttachmentSpec - a model defined in Swagger - """ + def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + """V1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 self._attacher = None self._node_name = None @@ -58,86 +56,82 @@ def __init__(self, attacher=None, node_name=None, source=None): @property def attacher(self): - """ - Gets the attacher of this V1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Gets the attacher of this V1VolumeAttachmentSpec. # noqa: E501 - :return: The attacher of this V1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :return: The attacher of this V1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._attacher @attacher.setter def attacher(self, attacher): - """ - Sets the attacher of this V1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Sets the attacher of this V1VolumeAttachmentSpec. - :param attacher: The attacher of this V1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :param attacher: The attacher of this V1VolumeAttachmentSpec. # noqa: E501 :type: str """ if attacher is None: - raise ValueError("Invalid value for `attacher`, must not be `None`") + raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @property def node_name(self): - """ - Gets the node_name of this V1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Gets the node_name of this V1VolumeAttachmentSpec. # noqa: E501 - :return: The node_name of this V1VolumeAttachmentSpec. + The node that the volume should be attached to. # noqa: E501 + + :return: The node_name of this V1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): - """ - Sets the node_name of this V1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Sets the node_name of this V1VolumeAttachmentSpec. + + The node that the volume should be attached to. # noqa: E501 - :param node_name: The node_name of this V1VolumeAttachmentSpec. + :param node_name: The node_name of this V1VolumeAttachmentSpec. # noqa: E501 :type: str """ if node_name is None: - raise ValueError("Invalid value for `node_name`, must not be `None`") + raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @property def source(self): - """ - Gets the source of this V1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Gets the source of this V1VolumeAttachmentSpec. # noqa: E501 + - :return: The source of this V1VolumeAttachmentSpec. + :return: The source of this V1VolumeAttachmentSpec. # noqa: E501 :rtype: V1VolumeAttachmentSource """ return self._source @source.setter def source(self, source): - """ - Sets the source of this V1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Sets the source of this V1VolumeAttachmentSpec. + - :param source: The source of this V1VolumeAttachmentSpec. + :param source: The source of this V1VolumeAttachmentSpec. # noqa: E501 :type: V1VolumeAttachmentSource """ if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeAttachmentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_attachment_status.py b/kubernetes/client/models/v1_volume_attachment_status.py index 478c5c7bce..26e7c52c59 100644 --- a/kubernetes/client/models/v1_volume_attachment_status.py +++ b/kubernetes/client/models/v1_volume_attachment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeAttachmentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attach_error': 'V1VolumeError', 'attached': 'bool', 'attachment_metadata': 'dict(str, str)', @@ -44,10 +44,8 @@ class V1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): - """ - V1VolumeAttachmentStatus - a model defined in Swagger - """ + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + """V1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 self._attach_error = None self._attached = None @@ -56,31 +54,29 @@ def __init__(self, attach_error=None, attached=None, attachment_metadata=None, d self.discriminator = None if attach_error is not None: - self.attach_error = attach_error + self.attach_error = attach_error self.attached = attached if attachment_metadata is not None: - self.attachment_metadata = attachment_metadata + self.attachment_metadata = attachment_metadata if detach_error is not None: - self.detach_error = detach_error + self.detach_error = detach_error @property def attach_error(self): - """ - Gets the attach_error of this V1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attach_error of this V1VolumeAttachmentStatus. # noqa: E501 + - :return: The attach_error of this V1VolumeAttachmentStatus. + :return: The attach_error of this V1VolumeAttachmentStatus. # noqa: E501 :rtype: V1VolumeError """ return self._attach_error @attach_error.setter def attach_error(self, attach_error): - """ - Sets the attach_error of this V1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attach_error of this V1VolumeAttachmentStatus. + - :param attach_error: The attach_error of this V1VolumeAttachmentStatus. + :param attach_error: The attach_error of this V1VolumeAttachmentStatus. # noqa: E501 :type: V1VolumeError """ @@ -88,47 +84,47 @@ def attach_error(self, attach_error): @property def attached(self): - """ - Gets the attached of this V1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attached of this V1VolumeAttachmentStatus. # noqa: E501 + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attached of this V1VolumeAttachmentStatus. + :return: The attached of this V1VolumeAttachmentStatus. # noqa: E501 :rtype: bool """ return self._attached @attached.setter def attached(self, attached): - """ - Sets the attached of this V1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attached of this V1VolumeAttachmentStatus. + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attached: The attached of this V1VolumeAttachmentStatus. + :param attached: The attached of this V1VolumeAttachmentStatus. # noqa: E501 :type: bool """ if attached is None: - raise ValueError("Invalid value for `attached`, must not be `None`") + raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @property def attachment_metadata(self): - """ - Gets the attachment_metadata of this V1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attachment_metadata of this V1VolumeAttachmentStatus. # noqa: E501 + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attachment_metadata of this V1VolumeAttachmentStatus. + :return: The attachment_metadata of this V1VolumeAttachmentStatus. # noqa: E501 :rtype: dict(str, str) """ return self._attachment_metadata @attachment_metadata.setter def attachment_metadata(self, attachment_metadata): - """ - Sets the attachment_metadata of this V1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attachment_metadata of this V1VolumeAttachmentStatus. + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attachment_metadata: The attachment_metadata of this V1VolumeAttachmentStatus. + :param attachment_metadata: The attachment_metadata of this V1VolumeAttachmentStatus. # noqa: E501 :type: dict(str, str) """ @@ -136,34 +132,30 @@ def attachment_metadata(self, attachment_metadata): @property def detach_error(self): - """ - Gets the detach_error of this V1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Gets the detach_error of this V1VolumeAttachmentStatus. # noqa: E501 + - :return: The detach_error of this V1VolumeAttachmentStatus. + :return: The detach_error of this V1VolumeAttachmentStatus. # noqa: E501 :rtype: V1VolumeError """ return self._detach_error @detach_error.setter def detach_error(self, detach_error): - """ - Sets the detach_error of this V1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Sets the detach_error of this V1VolumeAttachmentStatus. + - :param detach_error: The detach_error of this V1VolumeAttachmentStatus. + :param detach_error: The detach_error of this V1VolumeAttachmentStatus. # noqa: E501 :type: V1VolumeError """ self._detach_error = detach_error def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeAttachmentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_device.py b/kubernetes/client/models/v1_volume_device.py index 8cc50f5fba..110d8f1186 100644 --- a/kubernetes/client/models/v1_volume_device.py +++ b/kubernetes/client/models/v1_volume_device.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeDevice(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'device_path': 'str', 'name': 'str' } @@ -40,10 +40,8 @@ class V1VolumeDevice(object): 'name': 'name' } - def __init__(self, device_path=None, name=None): - """ - V1VolumeDevice - a model defined in Swagger - """ + def __init__(self, device_path=None, name=None): # noqa: E501 + """V1VolumeDevice - a model defined in OpenAPI""" # noqa: E501 self._device_path = None self._name = None @@ -54,61 +52,59 @@ def __init__(self, device_path=None, name=None): @property def device_path(self): - """ - Gets the device_path of this V1VolumeDevice. - devicePath is the path inside of the container that the device will be mapped to. + """Gets the device_path of this V1VolumeDevice. # noqa: E501 + + devicePath is the path inside of the container that the device will be mapped to. # noqa: E501 - :return: The device_path of this V1VolumeDevice. + :return: The device_path of this V1VolumeDevice. # noqa: E501 :rtype: str """ return self._device_path @device_path.setter def device_path(self, device_path): - """ - Sets the device_path of this V1VolumeDevice. - devicePath is the path inside of the container that the device will be mapped to. + """Sets the device_path of this V1VolumeDevice. - :param device_path: The device_path of this V1VolumeDevice. + devicePath is the path inside of the container that the device will be mapped to. # noqa: E501 + + :param device_path: The device_path of this V1VolumeDevice. # noqa: E501 :type: str """ if device_path is None: - raise ValueError("Invalid value for `device_path`, must not be `None`") + raise ValueError("Invalid value for `device_path`, must not be `None`") # noqa: E501 self._device_path = device_path @property def name(self): - """ - Gets the name of this V1VolumeDevice. - name must match the name of a persistentVolumeClaim in the pod + """Gets the name of this V1VolumeDevice. # noqa: E501 + + name must match the name of a persistentVolumeClaim in the pod # noqa: E501 - :return: The name of this V1VolumeDevice. + :return: The name of this V1VolumeDevice. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1VolumeDevice. - name must match the name of a persistentVolumeClaim in the pod + """Sets the name of this V1VolumeDevice. + + name must match the name of a persistentVolumeClaim in the pod # noqa: E501 - :param name: The name of this V1VolumeDevice. + :param name: The name of this V1VolumeDevice. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeDevice): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_error.py b/kubernetes/client/models/v1_volume_error.py index 11b1bfd326..7718b2f879 100644 --- a/kubernetes/client/models/v1_volume_error.py +++ b/kubernetes/client/models/v1_volume_error.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeError(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'message': 'str', 'time': 'datetime' } @@ -40,38 +40,36 @@ class V1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): - """ - V1VolumeError - a model defined in Swagger - """ + def __init__(self, message=None, time=None): # noqa: E501 + """V1VolumeError - a model defined in OpenAPI""" # noqa: E501 self._message = None self._time = None self.discriminator = None if message is not None: - self.message = message + self.message = message if time is not None: - self.time = time + self.time = time @property def message(self): - """ - Gets the message of this V1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + """Gets the message of this V1VolumeError. # noqa: E501 + + String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. # noqa: E501 - :return: The message of this V1VolumeError. + :return: The message of this V1VolumeError. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + """Sets the message of this V1VolumeError. - :param message: The message of this V1VolumeError. + String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. # noqa: E501 + + :param message: The message of this V1VolumeError. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def message(self, message): @property def time(self): - """ - Gets the time of this V1VolumeError. - Time the error was encountered. + """Gets the time of this V1VolumeError. # noqa: E501 + + Time the error was encountered. # noqa: E501 - :return: The time of this V1VolumeError. + :return: The time of this V1VolumeError. # noqa: E501 :rtype: datetime """ return self._time @time.setter def time(self, time): - """ - Sets the time of this V1VolumeError. - Time the error was encountered. + """Sets the time of this V1VolumeError. + + Time the error was encountered. # noqa: E501 - :param time: The time of this V1VolumeError. + :param time: The time of this V1VolumeError. # noqa: E501 :type: datetime """ self._time = time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeError): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_mount.py b/kubernetes/client/models/v1_volume_mount.py index 8285e4af4e..0e78768627 100644 --- a/kubernetes/client/models/v1_volume_mount.py +++ b/kubernetes/client/models/v1_volume_mount.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeMount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'mount_path': 'str', 'mount_propagation': 'str', 'name': 'str', @@ -48,10 +48,8 @@ class V1VolumeMount(object): 'sub_path_expr': 'subPathExpr' } - def __init__(self, mount_path=None, mount_propagation=None, name=None, read_only=None, sub_path=None, sub_path_expr=None): - """ - V1VolumeMount - a model defined in Swagger - """ + def __init__(self, mount_path=None, mount_propagation=None, name=None, read_only=None, sub_path=None, sub_path_expr=None): # noqa: E501 + """V1VolumeMount - a model defined in OpenAPI""" # noqa: E501 self._mount_path = None self._mount_propagation = None @@ -63,58 +61,58 @@ def __init__(self, mount_path=None, mount_propagation=None, name=None, read_only self.mount_path = mount_path if mount_propagation is not None: - self.mount_propagation = mount_propagation + self.mount_propagation = mount_propagation self.name = name if read_only is not None: - self.read_only = read_only + self.read_only = read_only if sub_path is not None: - self.sub_path = sub_path + self.sub_path = sub_path if sub_path_expr is not None: - self.sub_path_expr = sub_path_expr + self.sub_path_expr = sub_path_expr @property def mount_path(self): - """ - Gets the mount_path of this V1VolumeMount. - Path within the container at which the volume should be mounted. Must not contain ':'. + """Gets the mount_path of this V1VolumeMount. # noqa: E501 + + Path within the container at which the volume should be mounted. Must not contain ':'. # noqa: E501 - :return: The mount_path of this V1VolumeMount. + :return: The mount_path of this V1VolumeMount. # noqa: E501 :rtype: str """ return self._mount_path @mount_path.setter def mount_path(self, mount_path): - """ - Sets the mount_path of this V1VolumeMount. - Path within the container at which the volume should be mounted. Must not contain ':'. + """Sets the mount_path of this V1VolumeMount. + + Path within the container at which the volume should be mounted. Must not contain ':'. # noqa: E501 - :param mount_path: The mount_path of this V1VolumeMount. + :param mount_path: The mount_path of this V1VolumeMount. # noqa: E501 :type: str """ if mount_path is None: - raise ValueError("Invalid value for `mount_path`, must not be `None`") + raise ValueError("Invalid value for `mount_path`, must not be `None`") # noqa: E501 self._mount_path = mount_path @property def mount_propagation(self): - """ - Gets the mount_propagation of this V1VolumeMount. - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + """Gets the mount_propagation of this V1VolumeMount. # noqa: E501 + + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. # noqa: E501 - :return: The mount_propagation of this V1VolumeMount. + :return: The mount_propagation of this V1VolumeMount. # noqa: E501 :rtype: str """ return self._mount_propagation @mount_propagation.setter def mount_propagation(self, mount_propagation): - """ - Sets the mount_propagation of this V1VolumeMount. - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + """Sets the mount_propagation of this V1VolumeMount. - :param mount_propagation: The mount_propagation of this V1VolumeMount. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. # noqa: E501 + + :param mount_propagation: The mount_propagation of this V1VolumeMount. # noqa: E501 :type: str """ @@ -122,47 +120,47 @@ def mount_propagation(self, mount_propagation): @property def name(self): - """ - Gets the name of this V1VolumeMount. - This must match the Name of a Volume. + """Gets the name of this V1VolumeMount. # noqa: E501 - :return: The name of this V1VolumeMount. + This must match the Name of a Volume. # noqa: E501 + + :return: The name of this V1VolumeMount. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1VolumeMount. - This must match the Name of a Volume. + """Sets the name of this V1VolumeMount. + + This must match the Name of a Volume. # noqa: E501 - :param name: The name of this V1VolumeMount. + :param name: The name of this V1VolumeMount. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def read_only(self): - """ - Gets the read_only of this V1VolumeMount. - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + """Gets the read_only of this V1VolumeMount. # noqa: E501 + + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. # noqa: E501 - :return: The read_only of this V1VolumeMount. + :return: The read_only of this V1VolumeMount. # noqa: E501 :rtype: bool """ return self._read_only @read_only.setter def read_only(self, read_only): - """ - Sets the read_only of this V1VolumeMount. - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + """Sets the read_only of this V1VolumeMount. + + Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. # noqa: E501 - :param read_only: The read_only of this V1VolumeMount. + :param read_only: The read_only of this V1VolumeMount. # noqa: E501 :type: bool """ @@ -170,22 +168,22 @@ def read_only(self, read_only): @property def sub_path(self): - """ - Gets the sub_path of this V1VolumeMount. - Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + """Gets the sub_path of this V1VolumeMount. # noqa: E501 - :return: The sub_path of this V1VolumeMount. + Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). # noqa: E501 + + :return: The sub_path of this V1VolumeMount. # noqa: E501 :rtype: str """ return self._sub_path @sub_path.setter def sub_path(self, sub_path): - """ - Sets the sub_path of this V1VolumeMount. - Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + """Sets the sub_path of this V1VolumeMount. - :param sub_path: The sub_path of this V1VolumeMount. + Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). # noqa: E501 + + :param sub_path: The sub_path of this V1VolumeMount. # noqa: E501 :type: str """ @@ -193,34 +191,32 @@ def sub_path(self, sub_path): @property def sub_path_expr(self): - """ - Gets the sub_path_expr of this V1VolumeMount. - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. + """Gets the sub_path_expr of this V1VolumeMount. # noqa: E501 + + Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15. # noqa: E501 - :return: The sub_path_expr of this V1VolumeMount. + :return: The sub_path_expr of this V1VolumeMount. # noqa: E501 :rtype: str """ return self._sub_path_expr @sub_path_expr.setter def sub_path_expr(self, sub_path_expr): - """ - Sets the sub_path_expr of this V1VolumeMount. - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. + """Sets the sub_path_expr of this V1VolumeMount. + + Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15. # noqa: E501 - :param sub_path_expr: The sub_path_expr of this V1VolumeMount. + :param sub_path_expr: The sub_path_expr of this V1VolumeMount. # noqa: E501 :type: str """ self._sub_path_expr = sub_path_expr def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeMount): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_node_affinity.py b/kubernetes/client/models/v1_volume_node_affinity.py index 79b8dac7fb..afe50c1c86 100644 --- a/kubernetes/client/models/v1_volume_node_affinity.py +++ b/kubernetes/client/models/v1_volume_node_affinity.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeNodeAffinity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'required': 'V1NodeSelector' } @@ -38,47 +38,41 @@ class V1VolumeNodeAffinity(object): 'required': 'required' } - def __init__(self, required=None): - """ - V1VolumeNodeAffinity - a model defined in Swagger - """ + def __init__(self, required=None): # noqa: E501 + """V1VolumeNodeAffinity - a model defined in OpenAPI""" # noqa: E501 self._required = None self.discriminator = None if required is not None: - self.required = required + self.required = required @property def required(self): - """ - Gets the required of this V1VolumeNodeAffinity. - Required specifies hard node constraints that must be met. + """Gets the required of this V1VolumeNodeAffinity. # noqa: E501 + - :return: The required of this V1VolumeNodeAffinity. + :return: The required of this V1VolumeNodeAffinity. # noqa: E501 :rtype: V1NodeSelector """ return self._required @required.setter def required(self, required): - """ - Sets the required of this V1VolumeNodeAffinity. - Required specifies hard node constraints that must be met. + """Sets the required of this V1VolumeNodeAffinity. + - :param required: The required of this V1VolumeNodeAffinity. + :param required: The required of this V1VolumeNodeAffinity. # noqa: E501 :type: V1NodeSelector """ self._required = required def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeNodeAffinity): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_volume_projection.py b/kubernetes/client/models/v1_volume_projection.py index bcf2decf71..216a8f7896 100644 --- a/kubernetes/client/models/v1_volume_projection.py +++ b/kubernetes/client/models/v1_volume_projection.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VolumeProjection(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'config_map': 'V1ConfigMapProjection', 'downward_api': 'V1DownwardAPIProjection', 'secret': 'V1SecretProjection', @@ -44,10 +44,8 @@ class V1VolumeProjection(object): 'service_account_token': 'serviceAccountToken' } - def __init__(self, config_map=None, downward_api=None, secret=None, service_account_token=None): - """ - V1VolumeProjection - a model defined in Swagger - """ + def __init__(self, config_map=None, downward_api=None, secret=None, service_account_token=None): # noqa: E501 + """V1VolumeProjection - a model defined in OpenAPI""" # noqa: E501 self._config_map = None self._downward_api = None @@ -56,32 +54,30 @@ def __init__(self, config_map=None, downward_api=None, secret=None, service_acco self.discriminator = None if config_map is not None: - self.config_map = config_map + self.config_map = config_map if downward_api is not None: - self.downward_api = downward_api + self.downward_api = downward_api if secret is not None: - self.secret = secret + self.secret = secret if service_account_token is not None: - self.service_account_token = service_account_token + self.service_account_token = service_account_token @property def config_map(self): - """ - Gets the config_map of this V1VolumeProjection. - information about the configMap data to project + """Gets the config_map of this V1VolumeProjection. # noqa: E501 + - :return: The config_map of this V1VolumeProjection. + :return: The config_map of this V1VolumeProjection. # noqa: E501 :rtype: V1ConfigMapProjection """ return self._config_map @config_map.setter def config_map(self, config_map): - """ - Sets the config_map of this V1VolumeProjection. - information about the configMap data to project + """Sets the config_map of this V1VolumeProjection. + - :param config_map: The config_map of this V1VolumeProjection. + :param config_map: The config_map of this V1VolumeProjection. # noqa: E501 :type: V1ConfigMapProjection """ @@ -89,22 +85,20 @@ def config_map(self, config_map): @property def downward_api(self): - """ - Gets the downward_api of this V1VolumeProjection. - information about the downwardAPI data to project + """Gets the downward_api of this V1VolumeProjection. # noqa: E501 + - :return: The downward_api of this V1VolumeProjection. + :return: The downward_api of this V1VolumeProjection. # noqa: E501 :rtype: V1DownwardAPIProjection """ return self._downward_api @downward_api.setter def downward_api(self, downward_api): - """ - Sets the downward_api of this V1VolumeProjection. - information about the downwardAPI data to project + """Sets the downward_api of this V1VolumeProjection. + - :param downward_api: The downward_api of this V1VolumeProjection. + :param downward_api: The downward_api of this V1VolumeProjection. # noqa: E501 :type: V1DownwardAPIProjection """ @@ -112,22 +106,20 @@ def downward_api(self, downward_api): @property def secret(self): - """ - Gets the secret of this V1VolumeProjection. - information about the secret data to project + """Gets the secret of this V1VolumeProjection. # noqa: E501 + - :return: The secret of this V1VolumeProjection. + :return: The secret of this V1VolumeProjection. # noqa: E501 :rtype: V1SecretProjection """ return self._secret @secret.setter def secret(self, secret): - """ - Sets the secret of this V1VolumeProjection. - information about the secret data to project + """Sets the secret of this V1VolumeProjection. + - :param secret: The secret of this V1VolumeProjection. + :param secret: The secret of this V1VolumeProjection. # noqa: E501 :type: V1SecretProjection """ @@ -135,34 +127,30 @@ def secret(self, secret): @property def service_account_token(self): - """ - Gets the service_account_token of this V1VolumeProjection. - information about the serviceAccountToken data to project + """Gets the service_account_token of this V1VolumeProjection. # noqa: E501 + - :return: The service_account_token of this V1VolumeProjection. + :return: The service_account_token of this V1VolumeProjection. # noqa: E501 :rtype: V1ServiceAccountTokenProjection """ return self._service_account_token @service_account_token.setter def service_account_token(self, service_account_token): - """ - Sets the service_account_token of this V1VolumeProjection. - information about the serviceAccountToken data to project + """Sets the service_account_token of this V1VolumeProjection. + - :param service_account_token: The service_account_token of this V1VolumeProjection. + :param service_account_token: The service_account_token of this V1VolumeProjection. # noqa: E501 :type: V1ServiceAccountTokenProjection """ self._service_account_token = service_account_token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +171,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VolumeProjection): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py index 461e193fba..e9b28a20e6 100644 --- a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1VsphereVirtualDiskVolumeSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'fs_type': 'str', 'storage_policy_id': 'str', 'storage_policy_name': 'str', @@ -44,10 +44,8 @@ class V1VsphereVirtualDiskVolumeSource(object): 'volume_path': 'volumePath' } - def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=None, volume_path=None): - """ - V1VsphereVirtualDiskVolumeSource - a model defined in Swagger - """ + def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=None, volume_path=None): # noqa: E501 + """V1VsphereVirtualDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 self._fs_type = None self._storage_policy_id = None @@ -56,31 +54,31 @@ def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=Non self.discriminator = None if fs_type is not None: - self.fs_type = fs_type + self.fs_type = fs_type if storage_policy_id is not None: - self.storage_policy_id = storage_policy_id + self.storage_policy_id = storage_policy_id if storage_policy_name is not None: - self.storage_policy_name = storage_policy_name + self.storage_policy_name = storage_policy_name self.volume_path = volume_path @property def fs_type(self): - """ - Gets the fs_type of this V1VsphereVirtualDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Gets the fs_type of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 - :return: The fs_type of this V1VsphereVirtualDiskVolumeSource. + :return: The fs_type of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str """ return self._fs_type @fs_type.setter def fs_type(self, fs_type): - """ - Sets the fs_type of this V1VsphereVirtualDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. + """Sets the fs_type of this V1VsphereVirtualDiskVolumeSource. + + Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 - :param fs_type: The fs_type of this V1VsphereVirtualDiskVolumeSource. + :param fs_type: The fs_type of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def fs_type(self, fs_type): @property def storage_policy_id(self): - """ - Gets the storage_policy_id of this V1VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + """Gets the storage_policy_id of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 + + Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. # noqa: E501 - :return: The storage_policy_id of this V1VsphereVirtualDiskVolumeSource. + :return: The storage_policy_id of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str """ return self._storage_policy_id @storage_policy_id.setter def storage_policy_id(self, storage_policy_id): - """ - Sets the storage_policy_id of this V1VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + """Sets the storage_policy_id of this V1VsphereVirtualDiskVolumeSource. + + Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. # noqa: E501 - :param storage_policy_id: The storage_policy_id of this V1VsphereVirtualDiskVolumeSource. + :param storage_policy_id: The storage_policy_id of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str """ @@ -111,22 +109,22 @@ def storage_policy_id(self, storage_policy_id): @property def storage_policy_name(self): - """ - Gets the storage_policy_name of this V1VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile name. + """Gets the storage_policy_name of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 + + Storage Policy Based Management (SPBM) profile name. # noqa: E501 - :return: The storage_policy_name of this V1VsphereVirtualDiskVolumeSource. + :return: The storage_policy_name of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str """ return self._storage_policy_name @storage_policy_name.setter def storage_policy_name(self, storage_policy_name): - """ - Sets the storage_policy_name of this V1VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile name. + """Sets the storage_policy_name of this V1VsphereVirtualDiskVolumeSource. + + Storage Policy Based Management (SPBM) profile name. # noqa: E501 - :param storage_policy_name: The storage_policy_name of this V1VsphereVirtualDiskVolumeSource. + :param storage_policy_name: The storage_policy_name of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str """ @@ -134,36 +132,34 @@ def storage_policy_name(self, storage_policy_name): @property def volume_path(self): - """ - Gets the volume_path of this V1VsphereVirtualDiskVolumeSource. - Path that identifies vSphere volume vmdk + """Gets the volume_path of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 + + Path that identifies vSphere volume vmdk # noqa: E501 - :return: The volume_path of this V1VsphereVirtualDiskVolumeSource. + :return: The volume_path of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str """ return self._volume_path @volume_path.setter def volume_path(self, volume_path): - """ - Sets the volume_path of this V1VsphereVirtualDiskVolumeSource. - Path that identifies vSphere volume vmdk + """Sets the volume_path of this V1VsphereVirtualDiskVolumeSource. + + Path that identifies vSphere volume vmdk # noqa: E501 - :param volume_path: The volume_path of this V1VsphereVirtualDiskVolumeSource. + :param volume_path: The volume_path of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str """ if volume_path is None: - raise ValueError("Invalid value for `volume_path`, must not be `None`") + raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 self._volume_path = volume_path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1VsphereVirtualDiskVolumeSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_watch_event.py b/kubernetes/client/models/v1_watch_event.py index fcafbb7b57..3bd763c1e1 100644 --- a/kubernetes/client/models/v1_watch_event.py +++ b/kubernetes/client/models/v1_watch_event.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1WatchEvent(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'object': 'RuntimeRawExtension', 'type': 'str' } @@ -40,10 +40,8 @@ class V1WatchEvent(object): 'type': 'type' } - def __init__(self, object=None, type=None): - """ - V1WatchEvent - a model defined in Swagger - """ + def __init__(self, object=None, type=None): # noqa: E501 + """V1WatchEvent - a model defined in OpenAPI""" # noqa: E501 self._object = None self._type = None @@ -54,59 +52,55 @@ def __init__(self, object=None, type=None): @property def object(self): - """ - Gets the object of this V1WatchEvent. - Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. + """Gets the object of this V1WatchEvent. # noqa: E501 + - :return: The object of this V1WatchEvent. + :return: The object of this V1WatchEvent. # noqa: E501 :rtype: RuntimeRawExtension """ return self._object @object.setter def object(self, object): - """ - Sets the object of this V1WatchEvent. - Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. + """Sets the object of this V1WatchEvent. - :param object: The object of this V1WatchEvent. + + :param object: The object of this V1WatchEvent. # noqa: E501 :type: RuntimeRawExtension """ if object is None: - raise ValueError("Invalid value for `object`, must not be `None`") + raise ValueError("Invalid value for `object`, must not be `None`") # noqa: E501 self._object = object @property def type(self): - """ - Gets the type of this V1WatchEvent. + """Gets the type of this V1WatchEvent. # noqa: E501 + - :return: The type of this V1WatchEvent. + :return: The type of this V1WatchEvent. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1WatchEvent. + """Sets the type of this V1WatchEvent. + - :param type: The type of this V1WatchEvent. + :param type: The type of this V1WatchEvent. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1WatchEvent): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/client/models/v1_weighted_pod_affinity_term.py index 60378ec5cb..bb6805e1f5 100644 --- a/kubernetes/client/models/v1_weighted_pod_affinity_term.py +++ b/kubernetes/client/models/v1_weighted_pod_affinity_term.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1WeightedPodAffinityTerm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pod_affinity_term': 'V1PodAffinityTerm', 'weight': 'int' } @@ -40,10 +40,8 @@ class V1WeightedPodAffinityTerm(object): 'weight': 'weight' } - def __init__(self, pod_affinity_term=None, weight=None): - """ - V1WeightedPodAffinityTerm - a model defined in Swagger - """ + def __init__(self, pod_affinity_term=None, weight=None): # noqa: E501 + """V1WeightedPodAffinityTerm - a model defined in OpenAPI""" # noqa: E501 self._pod_affinity_term = None self._weight = None @@ -54,61 +52,57 @@ def __init__(self, pod_affinity_term=None, weight=None): @property def pod_affinity_term(self): - """ - Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. - Required. A pod affinity term, associated with the corresponding weight. + """Gets the pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501 + - :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. + :return: The pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501 :rtype: V1PodAffinityTerm """ return self._pod_affinity_term @pod_affinity_term.setter def pod_affinity_term(self, pod_affinity_term): - """ - Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. - Required. A pod affinity term, associated with the corresponding weight. + """Sets the pod_affinity_term of this V1WeightedPodAffinityTerm. - :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. + + :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501 :type: V1PodAffinityTerm """ if pod_affinity_term is None: - raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") + raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") # noqa: E501 self._pod_affinity_term = pod_affinity_term @property def weight(self): - """ - Gets the weight of this V1WeightedPodAffinityTerm. - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + """Gets the weight of this V1WeightedPodAffinityTerm. # noqa: E501 + + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. # noqa: E501 - :return: The weight of this V1WeightedPodAffinityTerm. + :return: The weight of this V1WeightedPodAffinityTerm. # noqa: E501 :rtype: int """ return self._weight @weight.setter def weight(self, weight): - """ - Sets the weight of this V1WeightedPodAffinityTerm. - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + """Sets the weight of this V1WeightedPodAffinityTerm. + + weight associated with matching the corresponding podAffinityTerm, in the range 1-100. # noqa: E501 - :param weight: The weight of this V1WeightedPodAffinityTerm. + :param weight: The weight of this V1WeightedPodAffinityTerm. # noqa: E501 :type: int """ if weight is None: - raise ValueError("Invalid value for `weight`, must not be `None`") + raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 self._weight = weight def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1WeightedPodAffinityTerm): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1_windows_security_context_options.py b/kubernetes/client/models/v1_windows_security_context_options.py new file mode 100644 index 0000000000..b20a03683f --- /dev/null +++ b/kubernetes/client/models/v1_windows_security_context_options.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class V1WindowsSecurityContextOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'gmsa_credential_spec': 'str', + 'gmsa_credential_spec_name': 'str' + } + + attribute_map = { + 'gmsa_credential_spec': 'gmsaCredentialSpec', + 'gmsa_credential_spec_name': 'gmsaCredentialSpecName' + } + + def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None): # noqa: E501 + """V1WindowsSecurityContextOptions - a model defined in OpenAPI""" # noqa: E501 + + self._gmsa_credential_spec = None + self._gmsa_credential_spec_name = None + self.discriminator = None + + if gmsa_credential_spec is not None: + self.gmsa_credential_spec = gmsa_credential_spec + if gmsa_credential_spec_name is not None: + self.gmsa_credential_spec_name = gmsa_credential_spec_name + + @property + def gmsa_credential_spec(self): + """Gets the gmsa_credential_spec of this V1WindowsSecurityContextOptions. # noqa: E501 + + GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. # noqa: E501 + + :return: The gmsa_credential_spec of this V1WindowsSecurityContextOptions. # noqa: E501 + :rtype: str + """ + return self._gmsa_credential_spec + + @gmsa_credential_spec.setter + def gmsa_credential_spec(self, gmsa_credential_spec): + """Sets the gmsa_credential_spec of this V1WindowsSecurityContextOptions. + + GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. # noqa: E501 + + :param gmsa_credential_spec: The gmsa_credential_spec of this V1WindowsSecurityContextOptions. # noqa: E501 + :type: str + """ + + self._gmsa_credential_spec = gmsa_credential_spec + + @property + def gmsa_credential_spec_name(self): + """Gets the gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. # noqa: E501 + + GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. # noqa: E501 + + :return: The gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. # noqa: E501 + :rtype: str + """ + return self._gmsa_credential_spec_name + + @gmsa_credential_spec_name.setter + def gmsa_credential_spec_name(self, gmsa_credential_spec_name): + """Sets the gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. + + GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. # noqa: E501 + + :param gmsa_credential_spec_name: The gmsa_credential_spec_name of this V1WindowsSecurityContextOptions. # noqa: E501 + :type: str + """ + + self._gmsa_credential_spec_name = gmsa_credential_spec_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1WindowsSecurityContextOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/kubernetes/client/models/v1alpha1_aggregation_rule.py b/kubernetes/client/models/v1alpha1_aggregation_rule.py index 3d3b49ffeb..9dd8dc58ab 100644 --- a/kubernetes/client/models/v1alpha1_aggregation_rule.py +++ b/kubernetes/client/models/v1alpha1_aggregation_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1AggregationRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cluster_role_selectors': 'list[V1LabelSelector]' } @@ -38,47 +38,43 @@ class V1alpha1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): - """ - V1alpha1AggregationRule - a model defined in Swagger - """ + def __init__(self, cluster_role_selectors=None): # noqa: E501 + """V1alpha1AggregationRule - a model defined in OpenAPI""" # noqa: E501 self._cluster_role_selectors = None self.discriminator = None if cluster_role_selectors is not None: - self.cluster_role_selectors = cluster_role_selectors + self.cluster_role_selectors = cluster_role_selectors @property def cluster_role_selectors(self): - """ - Gets the cluster_role_selectors of this V1alpha1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Gets the cluster_role_selectors of this V1alpha1AggregationRule. # noqa: E501 + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :return: The cluster_role_selectors of this V1alpha1AggregationRule. + :return: The cluster_role_selectors of this V1alpha1AggregationRule. # noqa: E501 :rtype: list[V1LabelSelector] """ return self._cluster_role_selectors @cluster_role_selectors.setter def cluster_role_selectors(self, cluster_role_selectors): - """ - Sets the cluster_role_selectors of this V1alpha1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Sets the cluster_role_selectors of this V1alpha1AggregationRule. + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :param cluster_role_selectors: The cluster_role_selectors of this V1alpha1AggregationRule. + :param cluster_role_selectors: The cluster_role_selectors of this V1alpha1AggregationRule. # noqa: E501 :type: list[V1LabelSelector] """ self._cluster_role_selectors = cluster_role_selectors def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1AggregationRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_audit_sink.py b/kubernetes/client/models/v1alpha1_audit_sink.py index 8490a3609f..4b64933537 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink.py +++ b/kubernetes/client/models/v1alpha1_audit_sink.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1AuditSink(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1alpha1AuditSink(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1alpha1AuditSink - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1alpha1AuditSink - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1alpha1AuditSink. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1AuditSink. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1AuditSink. + :return: The api_version of this V1alpha1AuditSink. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1AuditSink. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1AuditSink. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1AuditSink. + :param api_version: The api_version of this V1alpha1AuditSink. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1AuditSink. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1AuditSink. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1AuditSink. + :return: The kind of this V1alpha1AuditSink. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1AuditSink. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1AuditSink. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1AuditSink. + :param kind: The kind of this V1alpha1AuditSink. # noqa: E501 :type: str """ @@ -112,20 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1AuditSink. + """Gets the metadata of this V1alpha1AuditSink. # noqa: E501 + - :return: The metadata of this V1alpha1AuditSink. + :return: The metadata of this V1alpha1AuditSink. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1AuditSink. + """Sets the metadata of this V1alpha1AuditSink. + - :param metadata: The metadata of this V1alpha1AuditSink. + :param metadata: The metadata of this V1alpha1AuditSink. # noqa: E501 :type: V1ObjectMeta """ @@ -133,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1alpha1AuditSink. - Spec defines the audit configuration spec + """Gets the spec of this V1alpha1AuditSink. # noqa: E501 + - :return: The spec of this V1alpha1AuditSink. + :return: The spec of this V1alpha1AuditSink. # noqa: E501 :rtype: V1alpha1AuditSinkSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1alpha1AuditSink. - Spec defines the audit configuration spec + """Sets the spec of this V1alpha1AuditSink. + - :param spec: The spec of this V1alpha1AuditSink. + :param spec: The spec of this V1alpha1AuditSink. # noqa: E501 :type: V1alpha1AuditSinkSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -181,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1AuditSink): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_audit_sink_list.py b/kubernetes/client/models/v1alpha1_audit_sink_list.py index c214152d08..c9c5beff9b 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink_list.py +++ b/kubernetes/client/models/v1alpha1_audit_sink_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1AuditSinkList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1AuditSink]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1AuditSinkList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1AuditSinkList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1AuditSinkList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1AuditSinkList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1AuditSinkList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1AuditSinkList. + :return: The api_version of this V1alpha1AuditSinkList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1AuditSinkList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1AuditSinkList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1AuditSinkList. + :param api_version: The api_version of this V1alpha1AuditSinkList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1AuditSinkList. - List of audit configurations. + """Gets the items of this V1alpha1AuditSinkList. # noqa: E501 + + List of audit configurations. # noqa: E501 - :return: The items of this V1alpha1AuditSinkList. + :return: The items of this V1alpha1AuditSinkList. # noqa: E501 :rtype: list[V1alpha1AuditSink] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1AuditSinkList. - List of audit configurations. + """Sets the items of this V1alpha1AuditSinkList. + + List of audit configurations. # noqa: E501 - :param items: The items of this V1alpha1AuditSinkList. + :param items: The items of this V1alpha1AuditSinkList. # noqa: E501 :type: list[V1alpha1AuditSink] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1AuditSinkList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1AuditSinkList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1AuditSinkList. + :return: The kind of this V1alpha1AuditSinkList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1AuditSinkList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1AuditSinkList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1AuditSinkList. + :param kind: The kind of this V1alpha1AuditSinkList. # noqa: E501 :type: str """ @@ -136,32 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1AuditSinkList. + """Gets the metadata of this V1alpha1AuditSinkList. # noqa: E501 + - :return: The metadata of this V1alpha1AuditSinkList. + :return: The metadata of this V1alpha1AuditSinkList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1AuditSinkList. + """Sets the metadata of this V1alpha1AuditSinkList. + - :param metadata: The metadata of this V1alpha1AuditSinkList. + :param metadata: The metadata of this V1alpha1AuditSinkList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -182,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1AuditSinkList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_audit_sink_spec.py b/kubernetes/client/models/v1alpha1_audit_sink_spec.py index 3df39cbf20..d354972fea 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink_spec.py +++ b/kubernetes/client/models/v1alpha1_audit_sink_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1AuditSinkSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'policy': 'V1alpha1Policy', 'webhook': 'V1alpha1Webhook' } @@ -40,10 +40,8 @@ class V1alpha1AuditSinkSpec(object): 'webhook': 'webhook' } - def __init__(self, policy=None, webhook=None): - """ - V1alpha1AuditSinkSpec - a model defined in Swagger - """ + def __init__(self, policy=None, webhook=None): # noqa: E501 + """V1alpha1AuditSinkSpec - a model defined in OpenAPI""" # noqa: E501 self._policy = None self._webhook = None @@ -54,61 +52,55 @@ def __init__(self, policy=None, webhook=None): @property def policy(self): - """ - Gets the policy of this V1alpha1AuditSinkSpec. - Policy defines the policy for selecting which events should be sent to the webhook required + """Gets the policy of this V1alpha1AuditSinkSpec. # noqa: E501 + - :return: The policy of this V1alpha1AuditSinkSpec. + :return: The policy of this V1alpha1AuditSinkSpec. # noqa: E501 :rtype: V1alpha1Policy """ return self._policy @policy.setter def policy(self, policy): - """ - Sets the policy of this V1alpha1AuditSinkSpec. - Policy defines the policy for selecting which events should be sent to the webhook required + """Sets the policy of this V1alpha1AuditSinkSpec. - :param policy: The policy of this V1alpha1AuditSinkSpec. + + :param policy: The policy of this V1alpha1AuditSinkSpec. # noqa: E501 :type: V1alpha1Policy """ if policy is None: - raise ValueError("Invalid value for `policy`, must not be `None`") + raise ValueError("Invalid value for `policy`, must not be `None`") # noqa: E501 self._policy = policy @property def webhook(self): - """ - Gets the webhook of this V1alpha1AuditSinkSpec. - Webhook to send events required + """Gets the webhook of this V1alpha1AuditSinkSpec. # noqa: E501 + - :return: The webhook of this V1alpha1AuditSinkSpec. + :return: The webhook of this V1alpha1AuditSinkSpec. # noqa: E501 :rtype: V1alpha1Webhook """ return self._webhook @webhook.setter def webhook(self, webhook): - """ - Sets the webhook of this V1alpha1AuditSinkSpec. - Webhook to send events required + """Sets the webhook of this V1alpha1AuditSinkSpec. + - :param webhook: The webhook of this V1alpha1AuditSinkSpec. + :param webhook: The webhook of this V1alpha1AuditSinkSpec. # noqa: E501 :type: V1alpha1Webhook """ if webhook is None: - raise ValueError("Invalid value for `webhook`, must not be `None`") + raise ValueError("Invalid value for `webhook`, must not be `None`") # noqa: E501 self._webhook = webhook def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1AuditSinkSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role.py b/kubernetes/client/models/v1alpha1_cluster_role.py index 005e84ba77..c02c2f8721 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role.py +++ b/kubernetes/client/models/v1alpha1_cluster_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1ClusterRole(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'aggregation_rule': 'V1alpha1AggregationRule', 'api_version': 'str', 'kind': 'str', @@ -46,10 +46,8 @@ class V1alpha1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): - """ - V1alpha1ClusterRole - a model defined in Swagger - """ + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1alpha1ClusterRole - a model defined in OpenAPI""" # noqa: E501 self._aggregation_rule = None self._api_version = None @@ -59,34 +57,32 @@ def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata= self.discriminator = None if aggregation_rule is not None: - self.aggregation_rule = aggregation_rule + self.aggregation_rule = aggregation_rule if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def aggregation_rule(self): - """ - Gets the aggregation_rule of this V1alpha1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Gets the aggregation_rule of this V1alpha1ClusterRole. # noqa: E501 - :return: The aggregation_rule of this V1alpha1ClusterRole. + + :return: The aggregation_rule of this V1alpha1ClusterRole. # noqa: E501 :rtype: V1alpha1AggregationRule """ return self._aggregation_rule @aggregation_rule.setter def aggregation_rule(self, aggregation_rule): - """ - Sets the aggregation_rule of this V1alpha1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Sets the aggregation_rule of this V1alpha1ClusterRole. - :param aggregation_rule: The aggregation_rule of this V1alpha1ClusterRole. + + :param aggregation_rule: The aggregation_rule of this V1alpha1ClusterRole. # noqa: E501 :type: V1alpha1AggregationRule """ @@ -94,22 +90,22 @@ def aggregation_rule(self, aggregation_rule): @property def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1ClusterRole. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1ClusterRole. + :return: The api_version of this V1alpha1ClusterRole. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1ClusterRole. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1ClusterRole. + :param api_version: The api_version of this V1alpha1ClusterRole. # noqa: E501 :type: str """ @@ -117,22 +113,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1ClusterRole. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1ClusterRole. + :return: The kind of this V1alpha1ClusterRole. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1ClusterRole. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1ClusterRole. + :param kind: The kind of this V1alpha1ClusterRole. # noqa: E501 :type: str """ @@ -140,22 +136,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRole. - Standard object's metadata. + """Gets the metadata of this V1alpha1ClusterRole. # noqa: E501 + - :return: The metadata of this V1alpha1ClusterRole. + :return: The metadata of this V1alpha1ClusterRole. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRole. - Standard object's metadata. + """Sets the metadata of this V1alpha1ClusterRole. - :param metadata: The metadata of this V1alpha1ClusterRole. + + :param metadata: The metadata of this V1alpha1ClusterRole. # noqa: E501 :type: V1ObjectMeta """ @@ -163,34 +157,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1alpha1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Gets the rules of this V1alpha1ClusterRole. # noqa: E501 - :return: The rules of this V1alpha1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :return: The rules of this V1alpha1ClusterRole. # noqa: E501 :rtype: list[V1alpha1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1alpha1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Sets the rules of this V1alpha1ClusterRole. - :param rules: The rules of this V1alpha1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :param rules: The rules of this V1alpha1ClusterRole. # noqa: E501 :type: list[V1alpha1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +203,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1ClusterRole): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding.py b/kubernetes/client/models/v1alpha1_cluster_role_binding.py index 32a5ff22c9..821f521b13 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1ClusterRoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1alpha1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1alpha1ClusterRoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1alpha1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1ClusterRoleBinding. # noqa: E501 - :return: The api_version of this V1alpha1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1alpha1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1ClusterRoleBinding. - :param api_version: The api_version of this V1alpha1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1ClusterRoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1ClusterRoleBinding. + :return: The kind of this V1alpha1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1ClusterRoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1ClusterRoleBinding. + :param kind: The kind of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleBinding. - Standard object's metadata. + """Gets the metadata of this V1alpha1ClusterRoleBinding. # noqa: E501 + - :return: The metadata of this V1alpha1ClusterRoleBinding. + :return: The metadata of this V1alpha1ClusterRoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleBinding. - Standard object's metadata. + """Sets the metadata of this V1alpha1ClusterRoleBinding. + - :param metadata: The metadata of this V1alpha1ClusterRoleBinding. + :param metadata: The metadata of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1alpha1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1alpha1ClusterRoleBinding. # noqa: E501 + - :return: The role_ref of this V1alpha1ClusterRoleBinding. + :return: The role_ref of this V1alpha1ClusterRoleBinding. # noqa: E501 :rtype: V1alpha1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1alpha1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1alpha1ClusterRoleBinding. - :param role_ref: The role_ref of this V1alpha1ClusterRoleBinding. + + :param role_ref: The role_ref of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: V1alpha1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1alpha1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1alpha1ClusterRoleBinding. # noqa: E501 - :return: The subjects of this V1alpha1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1alpha1ClusterRoleBinding. # noqa: E501 :rtype: list[V1alpha1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1alpha1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1alpha1ClusterRoleBinding. - :param subjects: The subjects of this V1alpha1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: list[V1alpha1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1ClusterRoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py index 3d283f7257..976424ddf3 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1ClusterRoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1ClusterRoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1ClusterRoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1ClusterRoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1ClusterRoleBindingList. + :return: The api_version of this V1alpha1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1ClusterRoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1ClusterRoleBindingList. + :param api_version: The api_version of this V1alpha1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Gets the items of this V1alpha1ClusterRoleBindingList. # noqa: E501 + + Items is a list of ClusterRoleBindings # noqa: E501 - :return: The items of this V1alpha1ClusterRoleBindingList. + :return: The items of this V1alpha1ClusterRoleBindingList. # noqa: E501 :rtype: list[V1alpha1ClusterRoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Sets the items of this V1alpha1ClusterRoleBindingList. + + Items is a list of ClusterRoleBindings # noqa: E501 - :param items: The items of this V1alpha1ClusterRoleBindingList. + :param items: The items of this V1alpha1ClusterRoleBindingList. # noqa: E501 :type: list[V1alpha1ClusterRoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1ClusterRoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1ClusterRoleBindingList. + :return: The kind of this V1alpha1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1ClusterRoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1ClusterRoleBindingList. + :param kind: The kind of this V1alpha1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1alpha1ClusterRoleBindingList. # noqa: E501 + - :return: The metadata of this V1alpha1ClusterRoleBindingList. + :return: The metadata of this V1alpha1ClusterRoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1alpha1ClusterRoleBindingList. + - :param metadata: The metadata of this V1alpha1ClusterRoleBindingList. + :param metadata: The metadata of this V1alpha1ClusterRoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1ClusterRoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_cluster_role_list.py b/kubernetes/client/models/v1alpha1_cluster_role_list.py index 19fdee0621..c88f445ff9 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1ClusterRoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1ClusterRole]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1ClusterRoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1ClusterRoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1ClusterRoleList. + :return: The api_version of this V1alpha1ClusterRoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1ClusterRoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1ClusterRoleList. + :param api_version: The api_version of this V1alpha1ClusterRoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1ClusterRoleList. - Items is a list of ClusterRoles + """Gets the items of this V1alpha1ClusterRoleList. # noqa: E501 + + Items is a list of ClusterRoles # noqa: E501 - :return: The items of this V1alpha1ClusterRoleList. + :return: The items of this V1alpha1ClusterRoleList. # noqa: E501 :rtype: list[V1alpha1ClusterRole] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1ClusterRoleList. - Items is a list of ClusterRoles + """Sets the items of this V1alpha1ClusterRoleList. + + Items is a list of ClusterRoles # noqa: E501 - :param items: The items of this V1alpha1ClusterRoleList. + :param items: The items of this V1alpha1ClusterRoleList. # noqa: E501 :type: list[V1alpha1ClusterRole] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1ClusterRoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1ClusterRoleList. + :return: The kind of this V1alpha1ClusterRoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1ClusterRoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1ClusterRoleList. + :param kind: The kind of this V1alpha1ClusterRoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1ClusterRoleList. - Standard object's metadata. + """Gets the metadata of this V1alpha1ClusterRoleList. # noqa: E501 + - :return: The metadata of this V1alpha1ClusterRoleList. + :return: The metadata of this V1alpha1ClusterRoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1ClusterRoleList. - Standard object's metadata. + """Sets the metadata of this V1alpha1ClusterRoleList. + - :param metadata: The metadata of this V1alpha1ClusterRoleList. + :param metadata: The metadata of this V1alpha1ClusterRoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1ClusterRoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset.py b/kubernetes/client/models/v1alpha1_pod_preset.py index 2a7599c7ef..16e787117a 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset.py +++ b/kubernetes/client/models/v1alpha1_pod_preset.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PodPreset(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1alpha1PodPreset(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1alpha1PodPreset - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1alpha1PodPreset - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1alpha1PodPreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1PodPreset. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1PodPreset. + :return: The api_version of this V1alpha1PodPreset. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PodPreset. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1PodPreset. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1PodPreset. + :param api_version: The api_version of this V1alpha1PodPreset. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1PodPreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1PodPreset. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1PodPreset. + :return: The kind of this V1alpha1PodPreset. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1PodPreset. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1PodPreset. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1PodPreset. + :param kind: The kind of this V1alpha1PodPreset. # noqa: E501 :type: str """ @@ -112,20 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1PodPreset. + """Gets the metadata of this V1alpha1PodPreset. # noqa: E501 + - :return: The metadata of this V1alpha1PodPreset. + :return: The metadata of this V1alpha1PodPreset. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PodPreset. + """Sets the metadata of this V1alpha1PodPreset. + - :param metadata: The metadata of this V1alpha1PodPreset. + :param metadata: The metadata of this V1alpha1PodPreset. # noqa: E501 :type: V1ObjectMeta """ @@ -133,32 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1alpha1PodPreset. + """Gets the spec of this V1alpha1PodPreset. # noqa: E501 + - :return: The spec of this V1alpha1PodPreset. + :return: The spec of this V1alpha1PodPreset. # noqa: E501 :rtype: V1alpha1PodPresetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1alpha1PodPreset. + """Sets the spec of this V1alpha1PodPreset. + - :param spec: The spec of this V1alpha1PodPreset. + :param spec: The spec of this V1alpha1PodPreset. # noqa: E501 :type: V1alpha1PodPresetSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PodPreset): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset_list.py b/kubernetes/client/models/v1alpha1_pod_preset_list.py index 3f7ce9f7f7..77fcc73622 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset_list.py +++ b/kubernetes/client/models/v1alpha1_pod_preset_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PodPresetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1PodPreset]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1PodPresetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1PodPresetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1PodPresetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1PodPresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1PodPresetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1PodPresetList. + :return: The api_version of this V1alpha1PodPresetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PodPresetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1PodPresetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1PodPresetList. + :param api_version: The api_version of this V1alpha1PodPresetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1PodPresetList. - Items is a list of schema objects. + """Gets the items of this V1alpha1PodPresetList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1alpha1PodPresetList. + :return: The items of this V1alpha1PodPresetList. # noqa: E501 :rtype: list[V1alpha1PodPreset] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1PodPresetList. - Items is a list of schema objects. + """Sets the items of this V1alpha1PodPresetList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1alpha1PodPresetList. + :param items: The items of this V1alpha1PodPresetList. # noqa: E501 :type: list[V1alpha1PodPreset] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1PodPresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1PodPresetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1PodPresetList. + :return: The kind of this V1alpha1PodPresetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1PodPresetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1PodPresetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1PodPresetList. + :param kind: The kind of this V1alpha1PodPresetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1PodPresetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1alpha1PodPresetList. # noqa: E501 + - :return: The metadata of this V1alpha1PodPresetList. + :return: The metadata of this V1alpha1PodPresetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PodPresetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1alpha1PodPresetList. + - :param metadata: The metadata of this V1alpha1PodPresetList. + :param metadata: The metadata of this V1alpha1PodPresetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PodPresetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_pod_preset_spec.py b/kubernetes/client/models/v1alpha1_pod_preset_spec.py index 930fe5d024..31eca2cd7f 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset_spec.py +++ b/kubernetes/client/models/v1alpha1_pod_preset_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PodPresetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'env': 'list[V1EnvVar]', 'env_from': 'list[V1EnvFromSource]', 'selector': 'V1LabelSelector', @@ -46,10 +46,8 @@ class V1alpha1PodPresetSpec(object): 'volumes': 'volumes' } - def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None): - """ - V1alpha1PodPresetSpec - a model defined in Swagger - """ + def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None): # noqa: E501 + """V1alpha1PodPresetSpec - a model defined in OpenAPI""" # noqa: E501 self._env = None self._env_from = None @@ -59,34 +57,34 @@ def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, v self.discriminator = None if env is not None: - self.env = env + self.env = env if env_from is not None: - self.env_from = env_from + self.env_from = env_from if selector is not None: - self.selector = selector + self.selector = selector if volume_mounts is not None: - self.volume_mounts = volume_mounts + self.volume_mounts = volume_mounts if volumes is not None: - self.volumes = volumes + self.volumes = volumes @property def env(self): - """ - Gets the env of this V1alpha1PodPresetSpec. - Env defines the collection of EnvVar to inject into containers. + """Gets the env of this V1alpha1PodPresetSpec. # noqa: E501 - :return: The env of this V1alpha1PodPresetSpec. + Env defines the collection of EnvVar to inject into containers. # noqa: E501 + + :return: The env of this V1alpha1PodPresetSpec. # noqa: E501 :rtype: list[V1EnvVar] """ return self._env @env.setter def env(self, env): - """ - Sets the env of this V1alpha1PodPresetSpec. - Env defines the collection of EnvVar to inject into containers. + """Sets the env of this V1alpha1PodPresetSpec. - :param env: The env of this V1alpha1PodPresetSpec. + Env defines the collection of EnvVar to inject into containers. # noqa: E501 + + :param env: The env of this V1alpha1PodPresetSpec. # noqa: E501 :type: list[V1EnvVar] """ @@ -94,22 +92,22 @@ def env(self, env): @property def env_from(self): - """ - Gets the env_from of this V1alpha1PodPresetSpec. - EnvFrom defines the collection of EnvFromSource to inject into containers. + """Gets the env_from of this V1alpha1PodPresetSpec. # noqa: E501 + + EnvFrom defines the collection of EnvFromSource to inject into containers. # noqa: E501 - :return: The env_from of this V1alpha1PodPresetSpec. + :return: The env_from of this V1alpha1PodPresetSpec. # noqa: E501 :rtype: list[V1EnvFromSource] """ return self._env_from @env_from.setter def env_from(self, env_from): - """ - Sets the env_from of this V1alpha1PodPresetSpec. - EnvFrom defines the collection of EnvFromSource to inject into containers. + """Sets the env_from of this V1alpha1PodPresetSpec. + + EnvFrom defines the collection of EnvFromSource to inject into containers. # noqa: E501 - :param env_from: The env_from of this V1alpha1PodPresetSpec. + :param env_from: The env_from of this V1alpha1PodPresetSpec. # noqa: E501 :type: list[V1EnvFromSource] """ @@ -117,22 +115,20 @@ def env_from(self, env_from): @property def selector(self): - """ - Gets the selector of this V1alpha1PodPresetSpec. - Selector is a label query over a set of resources, in this case pods. Required. + """Gets the selector of this V1alpha1PodPresetSpec. # noqa: E501 + - :return: The selector of this V1alpha1PodPresetSpec. + :return: The selector of this V1alpha1PodPresetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1alpha1PodPresetSpec. - Selector is a label query over a set of resources, in this case pods. Required. + """Sets the selector of this V1alpha1PodPresetSpec. + - :param selector: The selector of this V1alpha1PodPresetSpec. + :param selector: The selector of this V1alpha1PodPresetSpec. # noqa: E501 :type: V1LabelSelector """ @@ -140,22 +136,22 @@ def selector(self, selector): @property def volume_mounts(self): - """ - Gets the volume_mounts of this V1alpha1PodPresetSpec. - VolumeMounts defines the collection of VolumeMount to inject into containers. + """Gets the volume_mounts of this V1alpha1PodPresetSpec. # noqa: E501 + + VolumeMounts defines the collection of VolumeMount to inject into containers. # noqa: E501 - :return: The volume_mounts of this V1alpha1PodPresetSpec. + :return: The volume_mounts of this V1alpha1PodPresetSpec. # noqa: E501 :rtype: list[V1VolumeMount] """ return self._volume_mounts @volume_mounts.setter def volume_mounts(self, volume_mounts): - """ - Sets the volume_mounts of this V1alpha1PodPresetSpec. - VolumeMounts defines the collection of VolumeMount to inject into containers. + """Sets the volume_mounts of this V1alpha1PodPresetSpec. - :param volume_mounts: The volume_mounts of this V1alpha1PodPresetSpec. + VolumeMounts defines the collection of VolumeMount to inject into containers. # noqa: E501 + + :param volume_mounts: The volume_mounts of this V1alpha1PodPresetSpec. # noqa: E501 :type: list[V1VolumeMount] """ @@ -163,34 +159,32 @@ def volume_mounts(self, volume_mounts): @property def volumes(self): - """ - Gets the volumes of this V1alpha1PodPresetSpec. - Volumes defines the collection of Volume to inject into the pod. + """Gets the volumes of this V1alpha1PodPresetSpec. # noqa: E501 - :return: The volumes of this V1alpha1PodPresetSpec. + Volumes defines the collection of Volume to inject into the pod. # noqa: E501 + + :return: The volumes of this V1alpha1PodPresetSpec. # noqa: E501 :rtype: list[V1Volume] """ return self._volumes @volumes.setter def volumes(self, volumes): - """ - Sets the volumes of this V1alpha1PodPresetSpec. - Volumes defines the collection of Volume to inject into the pod. + """Sets the volumes of this V1alpha1PodPresetSpec. - :param volumes: The volumes of this V1alpha1PodPresetSpec. + Volumes defines the collection of Volume to inject into the pod. # noqa: E501 + + :param volumes: The volumes of this V1alpha1PodPresetSpec. # noqa: E501 :type: list[V1Volume] """ self._volumes = volumes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +205,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PodPresetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_policy.py b/kubernetes/client/models/v1alpha1_policy.py index 596ca213db..9009041814 100644 --- a/kubernetes/client/models/v1alpha1_policy.py +++ b/kubernetes/client/models/v1alpha1_policy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1Policy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'level': 'str', 'stages': 'list[str]' } @@ -40,10 +40,8 @@ class V1alpha1Policy(object): 'stages': 'stages' } - def __init__(self, level=None, stages=None): - """ - V1alpha1Policy - a model defined in Swagger - """ + def __init__(self, level=None, stages=None): # noqa: E501 + """V1alpha1Policy - a model defined in OpenAPI""" # noqa: E501 self._level = None self._stages = None @@ -51,63 +49,61 @@ def __init__(self, level=None, stages=None): self.level = level if stages is not None: - self.stages = stages + self.stages = stages @property def level(self): - """ - Gets the level of this V1alpha1Policy. - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + """Gets the level of this V1alpha1Policy. # noqa: E501 + + The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required # noqa: E501 - :return: The level of this V1alpha1Policy. + :return: The level of this V1alpha1Policy. # noqa: E501 :rtype: str """ return self._level @level.setter def level(self, level): - """ - Sets the level of this V1alpha1Policy. - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + """Sets the level of this V1alpha1Policy. - :param level: The level of this V1alpha1Policy. + The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required # noqa: E501 + + :param level: The level of this V1alpha1Policy. # noqa: E501 :type: str """ if level is None: - raise ValueError("Invalid value for `level`, must not be `None`") + raise ValueError("Invalid value for `level`, must not be `None`") # noqa: E501 self._level = level @property def stages(self): - """ - Gets the stages of this V1alpha1Policy. - Stages is a list of stages for which events are created. + """Gets the stages of this V1alpha1Policy. # noqa: E501 + + Stages is a list of stages for which events are created. # noqa: E501 - :return: The stages of this V1alpha1Policy. + :return: The stages of this V1alpha1Policy. # noqa: E501 :rtype: list[str] """ return self._stages @stages.setter def stages(self, stages): - """ - Sets the stages of this V1alpha1Policy. - Stages is a list of stages for which events are created. + """Sets the stages of this V1alpha1Policy. + + Stages is a list of stages for which events are created. # noqa: E501 - :param stages: The stages of this V1alpha1Policy. + :param stages: The stages of this V1alpha1Policy. # noqa: E501 :type: list[str] """ self._stages = stages def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1Policy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_policy_rule.py b/kubernetes/client/models/v1alpha1_policy_rule.py index ecd00a506f..c478d9e25e 100644 --- a/kubernetes/client/models/v1alpha1_policy_rule.py +++ b/kubernetes/client/models/v1alpha1_policy_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PolicyRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'non_resource_ur_ls': 'list[str]', 'resource_names': 'list[str]', @@ -46,10 +46,8 @@ class V1alpha1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): - """ - V1alpha1PolicyRule - a model defined in Swagger - """ + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + """V1alpha1PolicyRule - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._non_resource_ur_ls = None @@ -59,33 +57,33 @@ def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if non_resource_ur_ls is not None: - self.non_resource_ur_ls = non_resource_ur_ls + self.non_resource_ur_ls = non_resource_ur_ls if resource_names is not None: - self.resource_names = resource_names + self.resource_names = resource_names if resources is not None: - self.resources = resources + self.resources = resources self.verbs = verbs @property def api_groups(self): - """ - Gets the api_groups of this V1alpha1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Gets the api_groups of this V1alpha1PolicyRule. # noqa: E501 - :return: The api_groups of this V1alpha1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :return: The api_groups of this V1alpha1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1alpha1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Sets the api_groups of this V1alpha1PolicyRule. - :param api_groups: The api_groups of this V1alpha1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :param api_groups: The api_groups of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ @@ -93,22 +91,22 @@ def api_groups(self, api_groups): @property def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1alpha1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Gets the non_resource_ur_ls of this V1alpha1PolicyRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :return: The non_resource_ur_ls of this V1alpha1PolicyRule. + :return: The non_resource_ur_ls of this V1alpha1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._non_resource_ur_ls @non_resource_ur_ls.setter def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1alpha1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Sets the non_resource_ur_ls of this V1alpha1PolicyRule. + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :param non_resource_ur_ls: The non_resource_ur_ls of this V1alpha1PolicyRule. + :param non_resource_ur_ls: The non_resource_ur_ls of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ @@ -116,22 +114,22 @@ def non_resource_ur_ls(self, non_resource_ur_ls): @property def resource_names(self): - """ - Gets the resource_names of this V1alpha1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Gets the resource_names of this V1alpha1PolicyRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :return: The resource_names of this V1alpha1PolicyRule. + :return: The resource_names of this V1alpha1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resource_names @resource_names.setter def resource_names(self, resource_names): - """ - Sets the resource_names of this V1alpha1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Sets the resource_names of this V1alpha1PolicyRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :param resource_names: The resource_names of this V1alpha1PolicyRule. + :param resource_names: The resource_names of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ @@ -139,22 +137,22 @@ def resource_names(self, resource_names): @property def resources(self): - """ - Gets the resources of this V1alpha1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + """Gets the resources of this V1alpha1PolicyRule. # noqa: E501 + + Resources is a list of resources this rule applies to. ResourceAll represents all resources. # noqa: E501 - :return: The resources of this V1alpha1PolicyRule. + :return: The resources of this V1alpha1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1alpha1PolicyRule. - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + """Sets the resources of this V1alpha1PolicyRule. - :param resources: The resources of this V1alpha1PolicyRule. + Resources is a list of resources this rule applies to. ResourceAll represents all resources. # noqa: E501 + + :param resources: The resources of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ @@ -162,36 +160,34 @@ def resources(self, resources): @property def verbs(self): - """ - Gets the verbs of this V1alpha1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Gets the verbs of this V1alpha1PolicyRule. # noqa: E501 - :return: The verbs of this V1alpha1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :return: The verbs of this V1alpha1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1alpha1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Sets the verbs of this V1alpha1PolicyRule. - :param verbs: The verbs of this V1alpha1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :param verbs: The verbs of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PolicyRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_priority_class.py b/kubernetes/client/models/v1alpha1_priority_class.py index 9b6ed6b62e..b754c23eb3 100644 --- a/kubernetes/client/models/v1alpha1_priority_class.py +++ b/kubernetes/client/models/v1alpha1_priority_class.py @@ -3,39 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PriorityClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'description': 'str', 'global_default': 'bool', 'kind': 'str', 'metadata': 'V1ObjectMeta', + 'preemption_policy': 'str', 'value': 'int' } @@ -45,52 +46,54 @@ class V1alpha1PriorityClass(object): 'global_default': 'globalDefault', 'kind': 'kind', 'metadata': 'metadata', + 'preemption_policy': 'preemptionPolicy', 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, value=None): - """ - V1alpha1PriorityClass - a model defined in Swagger - """ + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + """V1alpha1PriorityClass - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._description = None self._global_default = None self._kind = None self._metadata = None + self._preemption_policy = None self._value = None self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if description is not None: - self.description = description + self.description = description if global_default is not None: - self.global_default = global_default + self.global_default = global_default if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata + if preemption_policy is not None: + self.preemption_policy = preemption_policy self.value = value @property def api_version(self): - """ - Gets the api_version of this V1alpha1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1PriorityClass. # noqa: E501 - :return: The api_version of this V1alpha1PriorityClass. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1alpha1PriorityClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1PriorityClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1PriorityClass. + :param api_version: The api_version of this V1alpha1PriorityClass. # noqa: E501 :type: str """ @@ -98,22 +101,22 @@ def api_version(self, api_version): @property def description(self): - """ - Gets the description of this V1alpha1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Gets the description of this V1alpha1PriorityClass. # noqa: E501 + + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 - :return: The description of this V1alpha1PriorityClass. + :return: The description of this V1alpha1PriorityClass. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1alpha1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Sets the description of this V1alpha1PriorityClass. - :param description: The description of this V1alpha1PriorityClass. + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 + + :param description: The description of this V1alpha1PriorityClass. # noqa: E501 :type: str """ @@ -121,22 +124,22 @@ def description(self, description): @property def global_default(self): - """ - Gets the global_default of this V1alpha1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Gets the global_default of this V1alpha1PriorityClass. # noqa: E501 - :return: The global_default of this V1alpha1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :return: The global_default of this V1alpha1PriorityClass. # noqa: E501 :rtype: bool """ return self._global_default @global_default.setter def global_default(self, global_default): - """ - Sets the global_default of this V1alpha1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Sets the global_default of this V1alpha1PriorityClass. - :param global_default: The global_default of this V1alpha1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :param global_default: The global_default of this V1alpha1PriorityClass. # noqa: E501 :type: bool """ @@ -144,22 +147,22 @@ def global_default(self, global_default): @property def kind(self): - """ - Gets the kind of this V1alpha1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1PriorityClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1PriorityClass. + :return: The kind of this V1alpha1PriorityClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1PriorityClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1PriorityClass. + :param kind: The kind of this V1alpha1PriorityClass. # noqa: E501 :type: str """ @@ -167,59 +170,78 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1PriorityClass. # noqa: E501 - :return: The metadata of this V1alpha1PriorityClass. + + :return: The metadata of this V1alpha1PriorityClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1PriorityClass. + - :param metadata: The metadata of this V1alpha1PriorityClass. + :param metadata: The metadata of this V1alpha1PriorityClass. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata @property - def value(self): + def preemption_policy(self): + """Gets the preemption_policy of this V1alpha1PriorityClass. # noqa: E501 + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :return: The preemption_policy of this V1alpha1PriorityClass. # noqa: E501 + :rtype: str """ - Gets the value of this V1alpha1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + return self._preemption_policy + + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1alpha1PriorityClass. + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1alpha1PriorityClass. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def value(self): + """Gets the value of this V1alpha1PriorityClass. # noqa: E501 - :return: The value of this V1alpha1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :return: The value of this V1alpha1PriorityClass. # noqa: E501 :rtype: int """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1alpha1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """Sets the value of this V1alpha1PriorityClass. - :param value: The value of this V1alpha1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :param value: The value of this V1alpha1PriorityClass. # noqa: E501 :type: int """ if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +262,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PriorityClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_priority_class_list.py b/kubernetes/client/models/v1alpha1_priority_class_list.py index a32a957848..a472f26d58 100644 --- a/kubernetes/client/models/v1alpha1_priority_class_list.py +++ b/kubernetes/client/models/v1alpha1_priority_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1PriorityClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1PriorityClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1PriorityClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1PriorityClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1PriorityClassList. + :return: The api_version of this V1alpha1PriorityClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1PriorityClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1PriorityClassList. + :param api_version: The api_version of this V1alpha1PriorityClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1PriorityClassList. - items is the list of PriorityClasses + """Gets the items of this V1alpha1PriorityClassList. # noqa: E501 + + items is the list of PriorityClasses # noqa: E501 - :return: The items of this V1alpha1PriorityClassList. + :return: The items of this V1alpha1PriorityClassList. # noqa: E501 :rtype: list[V1alpha1PriorityClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1PriorityClassList. - items is the list of PriorityClasses + """Sets the items of this V1alpha1PriorityClassList. + + items is the list of PriorityClasses # noqa: E501 - :param items: The items of this V1alpha1PriorityClassList. + :param items: The items of this V1alpha1PriorityClassList. # noqa: E501 :type: list[V1alpha1PriorityClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1PriorityClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1PriorityClassList. + :return: The kind of this V1alpha1PriorityClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1PriorityClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1PriorityClassList. + :param kind: The kind of this V1alpha1PriorityClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1PriorityClassList. # noqa: E501 + - :return: The metadata of this V1alpha1PriorityClassList. + :return: The metadata of this V1alpha1PriorityClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1PriorityClassList. + - :param metadata: The metadata of this V1alpha1PriorityClassList. + :param metadata: The metadata of this V1alpha1PriorityClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1PriorityClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_role.py b/kubernetes/client/models/v1alpha1_role.py index a1cf5c1f67..4e37613bdb 100644 --- a/kubernetes/client/models/v1alpha1_role.py +++ b/kubernetes/client/models/v1alpha1_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1Role(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1alpha1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1alpha1Role - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1alpha1Role - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, rules=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def api_version(self): - """ - Gets the api_version of this V1alpha1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1Role. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1Role. + :return: The api_version of this V1alpha1Role. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1Role. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1Role. + :param api_version: The api_version of this V1alpha1Role. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1Role. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1Role. + :return: The kind of this V1alpha1Role. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1Role. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1Role. + :param kind: The kind of this V1alpha1Role. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1Role. - Standard object's metadata. + """Gets the metadata of this V1alpha1Role. # noqa: E501 + - :return: The metadata of this V1alpha1Role. + :return: The metadata of this V1alpha1Role. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1Role. - Standard object's metadata. + """Sets the metadata of this V1alpha1Role. + - :param metadata: The metadata of this V1alpha1Role. + :param metadata: The metadata of this V1alpha1Role. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1alpha1Role. - Rules holds all the PolicyRules for this Role + """Gets the rules of this V1alpha1Role. # noqa: E501 + + Rules holds all the PolicyRules for this Role # noqa: E501 - :return: The rules of this V1alpha1Role. + :return: The rules of this V1alpha1Role. # noqa: E501 :rtype: list[V1alpha1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1alpha1Role. - Rules holds all the PolicyRules for this Role + """Sets the rules of this V1alpha1Role. + + Rules holds all the PolicyRules for this Role # noqa: E501 - :param rules: The rules of this V1alpha1Role. + :param rules: The rules of this V1alpha1Role. # noqa: E501 :type: list[V1alpha1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1Role): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_binding.py b/kubernetes/client/models/v1alpha1_role_binding.py index bf3b5f57bb..5b39078287 100644 --- a/kubernetes/client/models/v1alpha1_role_binding.py +++ b/kubernetes/client/models/v1alpha1_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1alpha1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1alpha1RoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1alpha1RoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1alpha1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1RoleBinding. # noqa: E501 - :return: The api_version of this V1alpha1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1alpha1RoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1RoleBinding. - :param api_version: The api_version of this V1alpha1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1alpha1RoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1RoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1RoleBinding. + :return: The kind of this V1alpha1RoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1RoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1RoleBinding. + :param kind: The kind of this V1alpha1RoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1RoleBinding. - Standard object's metadata. + """Gets the metadata of this V1alpha1RoleBinding. # noqa: E501 + - :return: The metadata of this V1alpha1RoleBinding. + :return: The metadata of this V1alpha1RoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleBinding. - Standard object's metadata. + """Sets the metadata of this V1alpha1RoleBinding. + - :param metadata: The metadata of this V1alpha1RoleBinding. + :param metadata: The metadata of this V1alpha1RoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1alpha1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1alpha1RoleBinding. # noqa: E501 + - :return: The role_ref of this V1alpha1RoleBinding. + :return: The role_ref of this V1alpha1RoleBinding. # noqa: E501 :rtype: V1alpha1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1alpha1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1alpha1RoleBinding. - :param role_ref: The role_ref of this V1alpha1RoleBinding. + + :param role_ref: The role_ref of this V1alpha1RoleBinding. # noqa: E501 :type: V1alpha1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1alpha1RoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1alpha1RoleBinding. # noqa: E501 - :return: The subjects of this V1alpha1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1alpha1RoleBinding. # noqa: E501 :rtype: list[V1alpha1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1alpha1RoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1alpha1RoleBinding. - :param subjects: The subjects of this V1alpha1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1alpha1RoleBinding. # noqa: E501 :type: list[V1alpha1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_binding_list.py b/kubernetes/client/models/v1alpha1_role_binding_list.py index 139ce89f62..0911953512 100644 --- a/kubernetes/client/models/v1alpha1_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1RoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1RoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1RoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1RoleBindingList. + :return: The api_version of this V1alpha1RoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1RoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1RoleBindingList. + :param api_version: The api_version of this V1alpha1RoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1RoleBindingList. - Items is a list of RoleBindings + """Gets the items of this V1alpha1RoleBindingList. # noqa: E501 + + Items is a list of RoleBindings # noqa: E501 - :return: The items of this V1alpha1RoleBindingList. + :return: The items of this V1alpha1RoleBindingList. # noqa: E501 :rtype: list[V1alpha1RoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1RoleBindingList. - Items is a list of RoleBindings + """Sets the items of this V1alpha1RoleBindingList. + + Items is a list of RoleBindings # noqa: E501 - :param items: The items of this V1alpha1RoleBindingList. + :param items: The items of this V1alpha1RoleBindingList. # noqa: E501 :type: list[V1alpha1RoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1RoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1RoleBindingList. + :return: The kind of this V1alpha1RoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1RoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1RoleBindingList. + :param kind: The kind of this V1alpha1RoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1RoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1alpha1RoleBindingList. # noqa: E501 + - :return: The metadata of this V1alpha1RoleBindingList. + :return: The metadata of this V1alpha1RoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1alpha1RoleBindingList. + - :param metadata: The metadata of this V1alpha1RoleBindingList. + :param metadata: The metadata of this V1alpha1RoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_list.py b/kubernetes/client/models/v1alpha1_role_list.py index ec81641042..70258e9112 100644 --- a/kubernetes/client/models/v1alpha1_role_list.py +++ b/kubernetes/client/models/v1alpha1_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1Role]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1RoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1RoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1RoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1RoleList. + :return: The api_version of this V1alpha1RoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1RoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1RoleList. + :param api_version: The api_version of this V1alpha1RoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1RoleList. - Items is a list of Roles + """Gets the items of this V1alpha1RoleList. # noqa: E501 + + Items is a list of Roles # noqa: E501 - :return: The items of this V1alpha1RoleList. + :return: The items of this V1alpha1RoleList. # noqa: E501 :rtype: list[V1alpha1Role] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1RoleList. - Items is a list of Roles + """Sets the items of this V1alpha1RoleList. + + Items is a list of Roles # noqa: E501 - :param items: The items of this V1alpha1RoleList. + :param items: The items of this V1alpha1RoleList. # noqa: E501 :type: list[V1alpha1Role] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1RoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1RoleList. + :return: The kind of this V1alpha1RoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1RoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1RoleList. + :param kind: The kind of this V1alpha1RoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1RoleList. - Standard object's metadata. + """Gets the metadata of this V1alpha1RoleList. # noqa: E501 + - :return: The metadata of this V1alpha1RoleList. + :return: The metadata of this V1alpha1RoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RoleList. - Standard object's metadata. + """Sets the metadata of this V1alpha1RoleList. + - :param metadata: The metadata of this V1alpha1RoleList. + :param metadata: The metadata of this V1alpha1RoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_role_ref.py b/kubernetes/client/models/v1alpha1_role_ref.py index 2a92189557..97cb917523 100644 --- a/kubernetes/client/models/v1alpha1_role_ref.py +++ b/kubernetes/client/models/v1alpha1_role_ref.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RoleRef(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V1alpha1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): - """ - V1alpha1RoleRef - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + """V1alpha1RoleRef - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -58,86 +56,84 @@ def __init__(self, api_group=None, kind=None, name=None): @property def api_group(self): - """ - Gets the api_group of this V1alpha1RoleRef. - APIGroup is the group for the resource being referenced + """Gets the api_group of this V1alpha1RoleRef. # noqa: E501 - :return: The api_group of this V1alpha1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :return: The api_group of this V1alpha1RoleRef. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1alpha1RoleRef. - APIGroup is the group for the resource being referenced + """Sets the api_group of this V1alpha1RoleRef. - :param api_group: The api_group of this V1alpha1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :param api_group: The api_group of this V1alpha1RoleRef. # noqa: E501 :type: str """ if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") + raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @property def kind(self): - """ - Gets the kind of this V1alpha1RoleRef. - Kind is the type of resource being referenced + """Gets the kind of this V1alpha1RoleRef. # noqa: E501 - :return: The kind of this V1alpha1RoleRef. + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this V1alpha1RoleRef. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RoleRef. - Kind is the type of resource being referenced + """Sets the kind of this V1alpha1RoleRef. + + Kind is the type of resource being referenced # noqa: E501 - :param kind: The kind of this V1alpha1RoleRef. + :param kind: The kind of this V1alpha1RoleRef. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1alpha1RoleRef. - Name is the name of resource being referenced + """Gets the name of this V1alpha1RoleRef. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 - :return: The name of this V1alpha1RoleRef. + :return: The name of this V1alpha1RoleRef. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1alpha1RoleRef. - Name is the name of resource being referenced + """Sets the name of this V1alpha1RoleRef. + + Name is the name of resource being referenced # noqa: E501 - :param name: The name of this V1alpha1RoleRef. + :param name: The name of this V1alpha1RoleRef. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +154,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RoleRef): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_runtime_class.py b/kubernetes/client/models/v1alpha1_runtime_class.py index f0807ff7e7..5619649ada 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class.py +++ b/kubernetes/client/models/v1alpha1_runtime_class.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RuntimeClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1alpha1RuntimeClass(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1alpha1RuntimeClass - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1alpha1RuntimeClass - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1alpha1RuntimeClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1RuntimeClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1RuntimeClass. + :return: The api_version of this V1alpha1RuntimeClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RuntimeClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1RuntimeClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1RuntimeClass. + :param api_version: The api_version of this V1alpha1RuntimeClass. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1RuntimeClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1RuntimeClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1RuntimeClass. + :return: The kind of this V1alpha1RuntimeClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RuntimeClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1RuntimeClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1RuntimeClass. + :param kind: The kind of this V1alpha1RuntimeClass. # noqa: E501 :type: str """ @@ -111,22 +109,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1RuntimeClass. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1RuntimeClass. # noqa: E501 + - :return: The metadata of this V1alpha1RuntimeClass. + :return: The metadata of this V1alpha1RuntimeClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RuntimeClass. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1RuntimeClass. + - :param metadata: The metadata of this V1alpha1RuntimeClass. + :param metadata: The metadata of this V1alpha1RuntimeClass. # noqa: E501 :type: V1ObjectMeta """ @@ -134,36 +130,32 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1alpha1RuntimeClass. - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1alpha1RuntimeClass. # noqa: E501 + - :return: The spec of this V1alpha1RuntimeClass. + :return: The spec of this V1alpha1RuntimeClass. # noqa: E501 :rtype: V1alpha1RuntimeClassSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1alpha1RuntimeClass. - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1alpha1RuntimeClass. + - :param spec: The spec of this V1alpha1RuntimeClass. + :param spec: The spec of this V1alpha1RuntimeClass. # noqa: E501 :type: V1alpha1RuntimeClassSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RuntimeClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_runtime_class_list.py b/kubernetes/client/models/v1alpha1_runtime_class_list.py index 321ba7d0fe..61b755be6a 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class_list.py +++ b/kubernetes/client/models/v1alpha1_runtime_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RuntimeClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1RuntimeClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1RuntimeClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1RuntimeClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1RuntimeClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1RuntimeClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1RuntimeClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1RuntimeClassList. + :return: The api_version of this V1alpha1RuntimeClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1RuntimeClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1RuntimeClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1RuntimeClassList. + :param api_version: The api_version of this V1alpha1RuntimeClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1RuntimeClassList. - Items is a list of schema objects. + """Gets the items of this V1alpha1RuntimeClassList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1alpha1RuntimeClassList. + :return: The items of this V1alpha1RuntimeClassList. # noqa: E501 :rtype: list[V1alpha1RuntimeClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1RuntimeClassList. - Items is a list of schema objects. + """Sets the items of this V1alpha1RuntimeClassList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1alpha1RuntimeClassList. + :param items: The items of this V1alpha1RuntimeClassList. # noqa: E501 :type: list[V1alpha1RuntimeClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1RuntimeClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1RuntimeClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1RuntimeClassList. + :return: The kind of this V1alpha1RuntimeClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1RuntimeClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1RuntimeClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1RuntimeClassList. + :param kind: The kind of this V1alpha1RuntimeClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1RuntimeClassList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1RuntimeClassList. # noqa: E501 + - :return: The metadata of this V1alpha1RuntimeClassList. + :return: The metadata of this V1alpha1RuntimeClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1RuntimeClassList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1RuntimeClassList. + - :param metadata: The metadata of this V1alpha1RuntimeClassList. + :param metadata: The metadata of this V1alpha1RuntimeClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RuntimeClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_runtime_class_spec.py b/kubernetes/client/models/v1alpha1_runtime_class_spec.py index 0ad0731a24..faaa273720 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class_spec.py +++ b/kubernetes/client/models/v1alpha1_runtime_class_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1RuntimeClassSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'runtime_handler': 'str' } @@ -38,10 +38,8 @@ class V1alpha1RuntimeClassSpec(object): 'runtime_handler': 'runtimeHandler' } - def __init__(self, runtime_handler=None): - """ - V1alpha1RuntimeClassSpec - a model defined in Swagger - """ + def __init__(self, runtime_handler=None): # noqa: E501 + """V1alpha1RuntimeClassSpec - a model defined in OpenAPI""" # noqa: E501 self._runtime_handler = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, runtime_handler=None): @property def runtime_handler(self): - """ - Gets the runtime_handler of this V1alpha1RuntimeClassSpec. - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + """Gets the runtime_handler of this V1alpha1RuntimeClassSpec. # noqa: E501 + + RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. # noqa: E501 - :return: The runtime_handler of this V1alpha1RuntimeClassSpec. + :return: The runtime_handler of this V1alpha1RuntimeClassSpec. # noqa: E501 :rtype: str """ return self._runtime_handler @runtime_handler.setter def runtime_handler(self, runtime_handler): - """ - Sets the runtime_handler of this V1alpha1RuntimeClassSpec. - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + """Sets the runtime_handler of this V1alpha1RuntimeClassSpec. + + RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. # noqa: E501 - :param runtime_handler: The runtime_handler of this V1alpha1RuntimeClassSpec. + :param runtime_handler: The runtime_handler of this V1alpha1RuntimeClassSpec. # noqa: E501 :type: str """ if runtime_handler is None: - raise ValueError("Invalid value for `runtime_handler`, must not be `None`") + raise ValueError("Invalid value for `runtime_handler`, must not be `None`") # noqa: E501 self._runtime_handler = runtime_handler def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1RuntimeClassSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_service_reference.py b/kubernetes/client/models/v1alpha1_service_reference.py index 85efe18c9b..c640c0869e 100644 --- a/kubernetes/client/models/v1alpha1_service_reference.py +++ b/kubernetes/client/models/v1alpha1_service_reference.py @@ -3,140 +3,164 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1ServiceReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'namespace': 'str', - 'path': 'str' + 'path': 'str', + 'port': 'int' } attribute_map = { 'name': 'name', 'namespace': 'namespace', - 'path': 'path' + 'path': 'path', + 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None): - """ - V1alpha1ServiceReference - a model defined in Swagger - """ + def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + """V1alpha1ServiceReference - a model defined in OpenAPI""" # noqa: E501 self._name = None self._namespace = None self._path = None + self._port = None self.discriminator = None self.name = name self.namespace = namespace if path is not None: - self.path = path + self.path = path + if port is not None: + self.port = port @property def name(self): - """ - Gets the name of this V1alpha1ServiceReference. - `name` is the name of the service. Required + """Gets the name of this V1alpha1ServiceReference. # noqa: E501 - :return: The name of this V1alpha1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :return: The name of this V1alpha1ServiceReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1alpha1ServiceReference. - `name` is the name of the service. Required + """Sets the name of this V1alpha1ServiceReference. - :param name: The name of this V1alpha1ServiceReference. + `name` is the name of the service. Required # noqa: E501 + + :param name: The name of this V1alpha1ServiceReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this V1alpha1ServiceReference. - `namespace` is the namespace of the service. Required + """Gets the namespace of this V1alpha1ServiceReference. # noqa: E501 + + `namespace` is the namespace of the service. Required # noqa: E501 - :return: The namespace of this V1alpha1ServiceReference. + :return: The namespace of this V1alpha1ServiceReference. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1alpha1ServiceReference. - `namespace` is the namespace of the service. Required + """Sets the namespace of this V1alpha1ServiceReference. + + `namespace` is the namespace of the service. Required # noqa: E501 - :param namespace: The namespace of this V1alpha1ServiceReference. + :param namespace: The namespace of this V1alpha1ServiceReference. # noqa: E501 :type: str """ if namespace is None: - raise ValueError("Invalid value for `namespace`, must not be `None`") + raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @property def path(self): - """ - Gets the path of this V1alpha1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Gets the path of this V1alpha1ServiceReference. # noqa: E501 + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :return: The path of this V1alpha1ServiceReference. + :return: The path of this V1alpha1ServiceReference. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1alpha1ServiceReference. - `path` is an optional URL path which will be sent in any request to this service. + """Sets the path of this V1alpha1ServiceReference. + + `path` is an optional URL path which will be sent in any request to this service. # noqa: E501 - :param path: The path of this V1alpha1ServiceReference. + :param path: The path of this V1alpha1ServiceReference. # noqa: E501 :type: str """ self._path = path - def to_dict(self): + @property + def port(self): + """Gets the port of this V1alpha1ServiceReference. # noqa: E501 + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :return: The port of this V1alpha1ServiceReference. # noqa: E501 + :rtype: int """ - Returns the model properties as a dict + return self._port + + @port.setter + def port(self, port): + """Sets the port of this V1alpha1ServiceReference. + + If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). # noqa: E501 + + :param port: The port of this V1alpha1ServiceReference. # noqa: E501 + :type: int """ + + self._port = port + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1ServiceReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_subject.py b/kubernetes/client/models/v1alpha1_subject.py index 1913261349..1383a08a58 100644 --- a/kubernetes/client/models/v1alpha1_subject.py +++ b/kubernetes/client/models/v1alpha1_subject.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1Subject(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str', @@ -44,10 +44,8 @@ class V1alpha1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_version=None, kind=None, name=None, namespace=None): - """ - V1alpha1Subject - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None, namespace=None): # noqa: E501 + """V1alpha1Subject - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,30 +54,30 @@ def __init__(self, api_version=None, kind=None, name=None, namespace=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.kind = kind self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def api_version(self): - """ - Gets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. + """Gets the api_version of this V1alpha1Subject. # noqa: E501 + + APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. # noqa: E501 - :return: The api_version of this V1alpha1Subject. + :return: The api_version of this V1alpha1Subject. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1Subject. - APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. + """Sets the api_version of this V1alpha1Subject. + + APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. # noqa: E501 - :param api_version: The api_version of this V1alpha1Subject. + :param api_version: The api_version of this V1alpha1Subject. # noqa: E501 :type: str """ @@ -87,84 +85,82 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Gets the kind of this V1alpha1Subject. # noqa: E501 + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :return: The kind of this V1alpha1Subject. + :return: The kind of this V1alpha1Subject. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Sets the kind of this V1alpha1Subject. + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :param kind: The kind of this V1alpha1Subject. + :param kind: The kind of this V1alpha1Subject. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1alpha1Subject. - Name of the object being referenced. + """Gets the name of this V1alpha1Subject. # noqa: E501 + + Name of the object being referenced. # noqa: E501 - :return: The name of this V1alpha1Subject. + :return: The name of this V1alpha1Subject. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1alpha1Subject. - Name of the object being referenced. + """Sets the name of this V1alpha1Subject. + + Name of the object being referenced. # noqa: E501 - :param name: The name of this V1alpha1Subject. + :param name: The name of this V1alpha1Subject. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this V1alpha1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Gets the namespace of this V1alpha1Subject. # noqa: E501 + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :return: The namespace of this V1alpha1Subject. + :return: The namespace of this V1alpha1Subject. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1alpha1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Sets the namespace of this V1alpha1Subject. + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :param namespace: The namespace of this V1alpha1Subject. + :param namespace: The namespace of this V1alpha1Subject. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1Subject): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_attachment.py b/kubernetes/client/models/v1alpha1_volume_attachment.py index 8de4a0eaa5..3d4e8d5844 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeAttachment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1alpha1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1alpha1VolumeAttachment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1alpha1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1alpha1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1VolumeAttachment. # noqa: E501 - :return: The api_version of this V1alpha1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1alpha1VolumeAttachment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1VolumeAttachment. - :param api_version: The api_version of this V1alpha1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1alpha1VolumeAttachment. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1alpha1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1VolumeAttachment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1VolumeAttachment. + :return: The kind of this V1alpha1VolumeAttachment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1VolumeAttachment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1VolumeAttachment. + :param kind: The kind of this V1alpha1VolumeAttachment. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1VolumeAttachment. # noqa: E501 + - :return: The metadata of this V1alpha1VolumeAttachment. + :return: The metadata of this V1alpha1VolumeAttachment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1VolumeAttachment. + - :param metadata: The metadata of this V1alpha1VolumeAttachment. + :param metadata: The metadata of this V1alpha1VolumeAttachment. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1alpha1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Gets the spec of this V1alpha1VolumeAttachment. # noqa: E501 + - :return: The spec of this V1alpha1VolumeAttachment. + :return: The spec of this V1alpha1VolumeAttachment. # noqa: E501 :rtype: V1alpha1VolumeAttachmentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1alpha1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Sets the spec of this V1alpha1VolumeAttachment. - :param spec: The spec of this V1alpha1VolumeAttachment. + + :param spec: The spec of this V1alpha1VolumeAttachment. # noqa: E501 :type: V1alpha1VolumeAttachmentSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1alpha1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Gets the status of this V1alpha1VolumeAttachment. # noqa: E501 - :return: The status of this V1alpha1VolumeAttachment. + + :return: The status of this V1alpha1VolumeAttachment. # noqa: E501 :rtype: V1alpha1VolumeAttachmentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1alpha1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Sets the status of this V1alpha1VolumeAttachment. - :param status: The status of this V1alpha1VolumeAttachment. + + :param status: The status of this V1alpha1VolumeAttachment. # noqa: E501 :type: V1alpha1VolumeAttachmentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeAttachment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_list.py b/kubernetes/client/models/v1alpha1_volume_attachment_list.py index 50606ccce3..2bfe2d72b5 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_list.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeAttachmentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1alpha1VolumeAttachment]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1alpha1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1alpha1VolumeAttachmentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1alpha1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1alpha1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1alpha1VolumeAttachmentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1alpha1VolumeAttachmentList. + :return: The api_version of this V1alpha1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1alpha1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1alpha1VolumeAttachmentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1alpha1VolumeAttachmentList. + :param api_version: The api_version of this V1alpha1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1alpha1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Gets the items of this V1alpha1VolumeAttachmentList. # noqa: E501 + + Items is the list of VolumeAttachments # noqa: E501 - :return: The items of this V1alpha1VolumeAttachmentList. + :return: The items of this V1alpha1VolumeAttachmentList. # noqa: E501 :rtype: list[V1alpha1VolumeAttachment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1alpha1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Sets the items of this V1alpha1VolumeAttachmentList. + + Items is the list of VolumeAttachments # noqa: E501 - :param items: The items of this V1alpha1VolumeAttachmentList. + :param items: The items of this V1alpha1VolumeAttachmentList. # noqa: E501 :type: list[V1alpha1VolumeAttachment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1alpha1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1alpha1VolumeAttachmentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1alpha1VolumeAttachmentList. + :return: The kind of this V1alpha1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1alpha1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1alpha1VolumeAttachmentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1alpha1VolumeAttachmentList. + :param kind: The kind of this V1alpha1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1alpha1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1alpha1VolumeAttachmentList. # noqa: E501 + - :return: The metadata of this V1alpha1VolumeAttachmentList. + :return: The metadata of this V1alpha1VolumeAttachmentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1alpha1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1alpha1VolumeAttachmentList. + - :param metadata: The metadata of this V1alpha1VolumeAttachmentList. + :param metadata: The metadata of this V1alpha1VolumeAttachmentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeAttachmentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_source.py b/kubernetes/client/models/v1alpha1_volume_attachment_source.py index bacd2b2373..9bb7d00159 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_source.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_source.py @@ -3,82 +3,104 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeAttachmentSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { + 'inline_volume_spec': 'V1PersistentVolumeSpec', 'persistent_volume_name': 'str' } attribute_map = { + 'inline_volume_spec': 'inlineVolumeSpec', 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, persistent_volume_name=None): - """ - V1alpha1VolumeAttachmentSource - a model defined in Swagger - """ + def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + """V1alpha1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + self._inline_volume_spec = None self._persistent_volume_name = None self.discriminator = None + if inline_volume_spec is not None: + self.inline_volume_spec = inline_volume_spec if persistent_volume_name is not None: - self.persistent_volume_name = persistent_volume_name + self.persistent_volume_name = persistent_volume_name @property - def persistent_volume_name(self): + def inline_volume_spec(self): + """Gets the inline_volume_spec of this V1alpha1VolumeAttachmentSource. # noqa: E501 + + + :return: The inline_volume_spec of this V1alpha1VolumeAttachmentSource. # noqa: E501 + :rtype: V1PersistentVolumeSpec """ - Gets the persistent_volume_name of this V1alpha1VolumeAttachmentSource. - Name of the persistent volume to attach. + return self._inline_volume_spec + + @inline_volume_spec.setter + def inline_volume_spec(self, inline_volume_spec): + """Sets the inline_volume_spec of this V1alpha1VolumeAttachmentSource. + + + :param inline_volume_spec: The inline_volume_spec of this V1alpha1VolumeAttachmentSource. # noqa: E501 + :type: V1PersistentVolumeSpec + """ + + self._inline_volume_spec = inline_volume_spec + + @property + def persistent_volume_name(self): + """Gets the persistent_volume_name of this V1alpha1VolumeAttachmentSource. # noqa: E501 - :return: The persistent_volume_name of this V1alpha1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :return: The persistent_volume_name of this V1alpha1VolumeAttachmentSource. # noqa: E501 :rtype: str """ return self._persistent_volume_name @persistent_volume_name.setter def persistent_volume_name(self, persistent_volume_name): - """ - Sets the persistent_volume_name of this V1alpha1VolumeAttachmentSource. - Name of the persistent volume to attach. + """Sets the persistent_volume_name of this V1alpha1VolumeAttachmentSource. - :param persistent_volume_name: The persistent_volume_name of this V1alpha1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :param persistent_volume_name: The persistent_volume_name of this V1alpha1VolumeAttachmentSource. # noqa: E501 :type: str """ self._persistent_volume_name = persistent_volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeAttachmentSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_spec.py b/kubernetes/client/models/v1alpha1_volume_attachment_spec.py index fd762fc18d..ed745d7991 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeAttachmentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attacher': 'str', 'node_name': 'str', 'source': 'V1alpha1VolumeAttachmentSource' @@ -42,10 +42,8 @@ class V1alpha1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): - """ - V1alpha1VolumeAttachmentSpec - a model defined in Swagger - """ + def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + """V1alpha1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 self._attacher = None self._node_name = None @@ -58,86 +56,82 @@ def __init__(self, attacher=None, node_name=None, source=None): @property def attacher(self): - """ - Gets the attacher of this V1alpha1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Gets the attacher of this V1alpha1VolumeAttachmentSpec. # noqa: E501 - :return: The attacher of this V1alpha1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :return: The attacher of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._attacher @attacher.setter def attacher(self, attacher): - """ - Sets the attacher of this V1alpha1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Sets the attacher of this V1alpha1VolumeAttachmentSpec. - :param attacher: The attacher of this V1alpha1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :param attacher: The attacher of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: str """ if attacher is None: - raise ValueError("Invalid value for `attacher`, must not be `None`") + raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @property def node_name(self): - """ - Gets the node_name of this V1alpha1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Gets the node_name of this V1alpha1VolumeAttachmentSpec. # noqa: E501 - :return: The node_name of this V1alpha1VolumeAttachmentSpec. + The node that the volume should be attached to. # noqa: E501 + + :return: The node_name of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): - """ - Sets the node_name of this V1alpha1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Sets the node_name of this V1alpha1VolumeAttachmentSpec. + + The node that the volume should be attached to. # noqa: E501 - :param node_name: The node_name of this V1alpha1VolumeAttachmentSpec. + :param node_name: The node_name of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: str """ if node_name is None: - raise ValueError("Invalid value for `node_name`, must not be `None`") + raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @property def source(self): - """ - Gets the source of this V1alpha1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Gets the source of this V1alpha1VolumeAttachmentSpec. # noqa: E501 + - :return: The source of this V1alpha1VolumeAttachmentSpec. + :return: The source of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :rtype: V1alpha1VolumeAttachmentSource """ return self._source @source.setter def source(self, source): - """ - Sets the source of this V1alpha1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Sets the source of this V1alpha1VolumeAttachmentSpec. + - :param source: The source of this V1alpha1VolumeAttachmentSpec. + :param source: The source of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: V1alpha1VolumeAttachmentSource """ if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeAttachmentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_status.py b/kubernetes/client/models/v1alpha1_volume_attachment_status.py index a0cbb549ac..c2c62e47e4 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_status.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeAttachmentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attach_error': 'V1alpha1VolumeError', 'attached': 'bool', 'attachment_metadata': 'dict(str, str)', @@ -44,10 +44,8 @@ class V1alpha1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): - """ - V1alpha1VolumeAttachmentStatus - a model defined in Swagger - """ + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + """V1alpha1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 self._attach_error = None self._attached = None @@ -56,31 +54,29 @@ def __init__(self, attach_error=None, attached=None, attachment_metadata=None, d self.discriminator = None if attach_error is not None: - self.attach_error = attach_error + self.attach_error = attach_error self.attached = attached if attachment_metadata is not None: - self.attachment_metadata = attachment_metadata + self.attachment_metadata = attachment_metadata if detach_error is not None: - self.detach_error = detach_error + self.detach_error = detach_error @property def attach_error(self): - """ - Gets the attach_error of this V1alpha1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 + - :return: The attach_error of this V1alpha1VolumeAttachmentStatus. + :return: The attach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :rtype: V1alpha1VolumeError """ return self._attach_error @attach_error.setter def attach_error(self, attach_error): - """ - Sets the attach_error of this V1alpha1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attach_error of this V1alpha1VolumeAttachmentStatus. + - :param attach_error: The attach_error of this V1alpha1VolumeAttachmentStatus. + :param attach_error: The attach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :type: V1alpha1VolumeError """ @@ -88,47 +84,47 @@ def attach_error(self, attach_error): @property def attached(self): - """ - Gets the attached of this V1alpha1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attached of this V1alpha1VolumeAttachmentStatus. # noqa: E501 + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attached of this V1alpha1VolumeAttachmentStatus. + :return: The attached of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :rtype: bool """ return self._attached @attached.setter def attached(self, attached): - """ - Sets the attached of this V1alpha1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attached of this V1alpha1VolumeAttachmentStatus. + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attached: The attached of this V1alpha1VolumeAttachmentStatus. + :param attached: The attached of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :type: bool """ if attached is None: - raise ValueError("Invalid value for `attached`, must not be `None`") + raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @property def attachment_metadata(self): - """ - Gets the attachment_metadata of this V1alpha1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attachment_metadata of this V1alpha1VolumeAttachmentStatus. # noqa: E501 + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attachment_metadata of this V1alpha1VolumeAttachmentStatus. + :return: The attachment_metadata of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :rtype: dict(str, str) """ return self._attachment_metadata @attachment_metadata.setter def attachment_metadata(self, attachment_metadata): - """ - Sets the attachment_metadata of this V1alpha1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attachment_metadata of this V1alpha1VolumeAttachmentStatus. + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attachment_metadata: The attachment_metadata of this V1alpha1VolumeAttachmentStatus. + :param attachment_metadata: The attachment_metadata of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :type: dict(str, str) """ @@ -136,34 +132,30 @@ def attachment_metadata(self, attachment_metadata): @property def detach_error(self): - """ - Gets the detach_error of this V1alpha1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Gets the detach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 + - :return: The detach_error of this V1alpha1VolumeAttachmentStatus. + :return: The detach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :rtype: V1alpha1VolumeError """ return self._detach_error @detach_error.setter def detach_error(self, detach_error): - """ - Sets the detach_error of this V1alpha1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Sets the detach_error of this V1alpha1VolumeAttachmentStatus. + - :param detach_error: The detach_error of this V1alpha1VolumeAttachmentStatus. + :param detach_error: The detach_error of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :type: V1alpha1VolumeError """ self._detach_error = detach_error def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeAttachmentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_volume_error.py b/kubernetes/client/models/v1alpha1_volume_error.py index 072bbce964..715c507f9b 100644 --- a/kubernetes/client/models/v1alpha1_volume_error.py +++ b/kubernetes/client/models/v1alpha1_volume_error.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1VolumeError(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'message': 'str', 'time': 'datetime' } @@ -40,38 +40,36 @@ class V1alpha1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): - """ - V1alpha1VolumeError - a model defined in Swagger - """ + def __init__(self, message=None, time=None): # noqa: E501 + """V1alpha1VolumeError - a model defined in OpenAPI""" # noqa: E501 self._message = None self._time = None self.discriminator = None if message is not None: - self.message = message + self.message = message if time is not None: - self.time = time + self.time = time @property def message(self): - """ - Gets the message of this V1alpha1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. + """Gets the message of this V1alpha1VolumeError. # noqa: E501 + + String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. # noqa: E501 - :return: The message of this V1alpha1VolumeError. + :return: The message of this V1alpha1VolumeError. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1alpha1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. + """Sets the message of this V1alpha1VolumeError. - :param message: The message of this V1alpha1VolumeError. + String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. # noqa: E501 + + :param message: The message of this V1alpha1VolumeError. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def message(self, message): @property def time(self): - """ - Gets the time of this V1alpha1VolumeError. - Time the error was encountered. + """Gets the time of this V1alpha1VolumeError. # noqa: E501 + + Time the error was encountered. # noqa: E501 - :return: The time of this V1alpha1VolumeError. + :return: The time of this V1alpha1VolumeError. # noqa: E501 :rtype: datetime """ return self._time @time.setter def time(self, time): - """ - Sets the time of this V1alpha1VolumeError. - Time the error was encountered. + """Sets the time of this V1alpha1VolumeError. + + Time the error was encountered. # noqa: E501 - :param time: The time of this V1alpha1VolumeError. + :param time: The time of this V1alpha1VolumeError. # noqa: E501 :type: datetime """ self._time = time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1VolumeError): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_webhook.py b/kubernetes/client/models/v1alpha1_webhook.py index c946491285..d15515f15f 100644 --- a/kubernetes/client/models/v1alpha1_webhook.py +++ b/kubernetes/client/models/v1alpha1_webhook.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1Webhook(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'client_config': 'V1alpha1WebhookClientConfig', 'throttle': 'V1alpha1WebhookThrottleConfig' } @@ -40,10 +40,8 @@ class V1alpha1Webhook(object): 'throttle': 'throttle' } - def __init__(self, client_config=None, throttle=None): - """ - V1alpha1Webhook - a model defined in Swagger - """ + def __init__(self, client_config=None, throttle=None): # noqa: E501 + """V1alpha1Webhook - a model defined in OpenAPI""" # noqa: E501 self._client_config = None self._throttle = None @@ -51,63 +49,57 @@ def __init__(self, client_config=None, throttle=None): self.client_config = client_config if throttle is not None: - self.throttle = throttle + self.throttle = throttle @property def client_config(self): - """ - Gets the client_config of this V1alpha1Webhook. - ClientConfig holds the connection parameters for the webhook required + """Gets the client_config of this V1alpha1Webhook. # noqa: E501 + - :return: The client_config of this V1alpha1Webhook. + :return: The client_config of this V1alpha1Webhook. # noqa: E501 :rtype: V1alpha1WebhookClientConfig """ return self._client_config @client_config.setter def client_config(self, client_config): - """ - Sets the client_config of this V1alpha1Webhook. - ClientConfig holds the connection parameters for the webhook required + """Sets the client_config of this V1alpha1Webhook. - :param client_config: The client_config of this V1alpha1Webhook. + + :param client_config: The client_config of this V1alpha1Webhook. # noqa: E501 :type: V1alpha1WebhookClientConfig """ if client_config is None: - raise ValueError("Invalid value for `client_config`, must not be `None`") + raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @property def throttle(self): - """ - Gets the throttle of this V1alpha1Webhook. - Throttle holds the options for throttling the webhook + """Gets the throttle of this V1alpha1Webhook. # noqa: E501 + - :return: The throttle of this V1alpha1Webhook. + :return: The throttle of this V1alpha1Webhook. # noqa: E501 :rtype: V1alpha1WebhookThrottleConfig """ return self._throttle @throttle.setter def throttle(self, throttle): - """ - Sets the throttle of this V1alpha1Webhook. - Throttle holds the options for throttling the webhook + """Sets the throttle of this V1alpha1Webhook. + - :param throttle: The throttle of this V1alpha1Webhook. + :param throttle: The throttle of this V1alpha1Webhook. # noqa: E501 :type: V1alpha1WebhookThrottleConfig """ self._throttle = throttle def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +120,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1Webhook): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_webhook_client_config.py b/kubernetes/client/models/v1alpha1_webhook_client_config.py index 53ae401da6..068fa1f816 100644 --- a/kubernetes/client/models/v1alpha1_webhook_client_config.py +++ b/kubernetes/client/models/v1alpha1_webhook_client_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1WebhookClientConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ca_bundle': 'str', 'service': 'V1alpha1ServiceReference', 'url': 'str' @@ -42,10 +42,8 @@ class V1alpha1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): - """ - V1alpha1WebhookClientConfig - a model defined in Swagger - """ + def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + """V1alpha1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 self._ca_bundle = None self._service = None @@ -53,55 +51,53 @@ def __init__(self, ca_bundle=None, service=None, url=None): self.discriminator = None if ca_bundle is not None: - self.ca_bundle = ca_bundle + self.ca_bundle = ca_bundle if service is not None: - self.service = service + self.service = service if url is not None: - self.url = url + self.url = url @property def ca_bundle(self): - """ - Gets the ca_bundle of this V1alpha1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Gets the ca_bundle of this V1alpha1WebhookClientConfig. # noqa: E501 - :return: The ca_bundle of this V1alpha1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :return: The ca_bundle of this V1alpha1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._ca_bundle @ca_bundle.setter def ca_bundle(self, ca_bundle): - """ - Sets the ca_bundle of this V1alpha1WebhookClientConfig. - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + """Sets the ca_bundle of this V1alpha1WebhookClientConfig. - :param ca_bundle: The ca_bundle of this V1alpha1WebhookClientConfig. + `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :param ca_bundle: The ca_bundle of this V1alpha1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): - raise ValueError("Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @property def service(self): - """ - Gets the service of this V1alpha1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Gets the service of this V1alpha1WebhookClientConfig. # noqa: E501 - :return: The service of this V1alpha1WebhookClientConfig. + + :return: The service of this V1alpha1WebhookClientConfig. # noqa: E501 :rtype: V1alpha1ServiceReference """ return self._service @service.setter def service(self, service): - """ - Sets the service of this V1alpha1WebhookClientConfig. - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + """Sets the service of this V1alpha1WebhookClientConfig. + - :param service: The service of this V1alpha1WebhookClientConfig. + :param service: The service of this V1alpha1WebhookClientConfig. # noqa: E501 :type: V1alpha1ServiceReference """ @@ -109,34 +105,32 @@ def service(self, service): @property def url(self): - """ - Gets the url of this V1alpha1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Gets the url of this V1alpha1WebhookClientConfig. # noqa: E501 + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :return: The url of this V1alpha1WebhookClientConfig. + :return: The url of this V1alpha1WebhookClientConfig. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): - """ - Sets the url of this V1alpha1WebhookClientConfig. - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + """Sets the url of this V1alpha1WebhookClientConfig. + + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. # noqa: E501 - :param url: The url of this V1alpha1WebhookClientConfig. + :param url: The url of this V1alpha1WebhookClientConfig. # noqa: E501 :type: str """ self._url = url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1WebhookClientConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1alpha1_webhook_throttle_config.py b/kubernetes/client/models/v1alpha1_webhook_throttle_config.py index 29980ecd28..aee4ef231b 100644 --- a/kubernetes/client/models/v1alpha1_webhook_throttle_config.py +++ b/kubernetes/client/models/v1alpha1_webhook_throttle_config.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1alpha1WebhookThrottleConfig(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'burst': 'int', 'qps': 'int' } @@ -40,38 +40,36 @@ class V1alpha1WebhookThrottleConfig(object): 'qps': 'qps' } - def __init__(self, burst=None, qps=None): - """ - V1alpha1WebhookThrottleConfig - a model defined in Swagger - """ + def __init__(self, burst=None, qps=None): # noqa: E501 + """V1alpha1WebhookThrottleConfig - a model defined in OpenAPI""" # noqa: E501 self._burst = None self._qps = None self.discriminator = None if burst is not None: - self.burst = burst + self.burst = burst if qps is not None: - self.qps = qps + self.qps = qps @property def burst(self): - """ - Gets the burst of this V1alpha1WebhookThrottleConfig. - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + """Gets the burst of this V1alpha1WebhookThrottleConfig. # noqa: E501 + + ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS # noqa: E501 - :return: The burst of this V1alpha1WebhookThrottleConfig. + :return: The burst of this V1alpha1WebhookThrottleConfig. # noqa: E501 :rtype: int """ return self._burst @burst.setter def burst(self, burst): - """ - Sets the burst of this V1alpha1WebhookThrottleConfig. - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + """Sets the burst of this V1alpha1WebhookThrottleConfig. - :param burst: The burst of this V1alpha1WebhookThrottleConfig. + ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS # noqa: E501 + + :param burst: The burst of this V1alpha1WebhookThrottleConfig. # noqa: E501 :type: int """ @@ -79,34 +77,32 @@ def burst(self, burst): @property def qps(self): - """ - Gets the qps of this V1alpha1WebhookThrottleConfig. - ThrottleQPS maximum number of batches per second default 10 QPS + """Gets the qps of this V1alpha1WebhookThrottleConfig. # noqa: E501 + + ThrottleQPS maximum number of batches per second default 10 QPS # noqa: E501 - :return: The qps of this V1alpha1WebhookThrottleConfig. + :return: The qps of this V1alpha1WebhookThrottleConfig. # noqa: E501 :rtype: int """ return self._qps @qps.setter def qps(self, qps): - """ - Sets the qps of this V1alpha1WebhookThrottleConfig. - ThrottleQPS maximum number of batches per second default 10 QPS + """Sets the qps of this V1alpha1WebhookThrottleConfig. + + ThrottleQPS maximum number of batches per second default 10 QPS # noqa: E501 - :param qps: The qps of this V1alpha1WebhookThrottleConfig. + :param qps: The qps of this V1alpha1WebhookThrottleConfig. # noqa: E501 :type: int """ self._qps = qps def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1alpha1WebhookThrottleConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_aggregation_rule.py b/kubernetes/client/models/v1beta1_aggregation_rule.py index 746e9fa434..eb09c1c1b9 100644 --- a/kubernetes/client/models/v1beta1_aggregation_rule.py +++ b/kubernetes/client/models/v1beta1_aggregation_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1AggregationRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cluster_role_selectors': 'list[V1LabelSelector]' } @@ -38,47 +38,43 @@ class V1beta1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): - """ - V1beta1AggregationRule - a model defined in Swagger - """ + def __init__(self, cluster_role_selectors=None): # noqa: E501 + """V1beta1AggregationRule - a model defined in OpenAPI""" # noqa: E501 self._cluster_role_selectors = None self.discriminator = None if cluster_role_selectors is not None: - self.cluster_role_selectors = cluster_role_selectors + self.cluster_role_selectors = cluster_role_selectors @property def cluster_role_selectors(self): - """ - Gets the cluster_role_selectors of this V1beta1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Gets the cluster_role_selectors of this V1beta1AggregationRule. # noqa: E501 + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :return: The cluster_role_selectors of this V1beta1AggregationRule. + :return: The cluster_role_selectors of this V1beta1AggregationRule. # noqa: E501 :rtype: list[V1LabelSelector] """ return self._cluster_role_selectors @cluster_role_selectors.setter def cluster_role_selectors(self, cluster_role_selectors): - """ - Sets the cluster_role_selectors of this V1beta1AggregationRule. - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + """Sets the cluster_role_selectors of this V1beta1AggregationRule. + + ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added # noqa: E501 - :param cluster_role_selectors: The cluster_role_selectors of this V1beta1AggregationRule. + :param cluster_role_selectors: The cluster_role_selectors of this V1beta1AggregationRule. # noqa: E501 :type: list[V1LabelSelector] """ self._cluster_role_selectors = cluster_role_selectors def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1AggregationRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_api_service.py b/kubernetes/client/models/v1beta1_api_service.py index 76e3081629..6a9f72a902 100644 --- a/kubernetes/client/models/v1beta1_api_service.py +++ b/kubernetes/client/models/v1beta1_api_service.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1APIService(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1APIService(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1APIService - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1APIService - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1APIService. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1APIService. # noqa: E501 - :return: The api_version of this V1beta1APIService. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1APIService. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1APIService. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1APIService. - :param api_version: The api_version of this V1beta1APIService. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1APIService. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1APIService. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1APIService. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1APIService. + :return: The kind of this V1beta1APIService. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1APIService. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1APIService. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1APIService. + :param kind: The kind of this V1beta1APIService. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1APIService. + """Gets the metadata of this V1beta1APIService. # noqa: E501 + - :return: The metadata of this V1beta1APIService. + :return: The metadata of this V1beta1APIService. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1APIService. + """Sets the metadata of this V1beta1APIService. + - :param metadata: The metadata of this V1beta1APIService. + :param metadata: The metadata of this V1beta1APIService. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1APIService. - Spec contains information for locating and communicating with a server + """Gets the spec of this V1beta1APIService. # noqa: E501 + - :return: The spec of this V1beta1APIService. + :return: The spec of this V1beta1APIService. # noqa: E501 :rtype: V1beta1APIServiceSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1APIService. - Spec contains information for locating and communicating with a server + """Sets the spec of this V1beta1APIService. - :param spec: The spec of this V1beta1APIService. + + :param spec: The spec of this V1beta1APIService. # noqa: E501 :type: V1beta1APIServiceSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1APIService. - Status contains derived information about an API server + """Gets the status of this V1beta1APIService. # noqa: E501 - :return: The status of this V1beta1APIService. + + :return: The status of this V1beta1APIService. # noqa: E501 :rtype: V1beta1APIServiceStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1APIService. - Status contains derived information about an API server + """Sets the status of this V1beta1APIService. - :param status: The status of this V1beta1APIService. + + :param status: The status of this V1beta1APIService. # noqa: E501 :type: V1beta1APIServiceStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1APIService): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_api_service_condition.py b/kubernetes/client/models/v1beta1_api_service_condition.py index ca7f2cf120..92a664304c 100644 --- a/kubernetes/client/models/v1beta1_api_service_condition.py +++ b/kubernetes/client/models/v1beta1_api_service_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1APIServiceCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta1APIServiceCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta1APIServiceCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta1APIServiceCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta1APIServiceCondition. # noqa: E501 - :return: The last_transition_time of this V1beta1APIServiceCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta1APIServiceCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta1APIServiceCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta1APIServiceCondition. - :param last_transition_time: The last_transition_time of this V1beta1APIServiceCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta1APIServiceCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta1APIServiceCondition. - Human-readable message indicating details about last transition. + """Gets the message of this V1beta1APIServiceCondition. # noqa: E501 + + Human-readable message indicating details about last transition. # noqa: E501 - :return: The message of this V1beta1APIServiceCondition. + :return: The message of this V1beta1APIServiceCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1APIServiceCondition. - Human-readable message indicating details about last transition. + """Sets the message of this V1beta1APIServiceCondition. + + Human-readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1beta1APIServiceCondition. + :param message: The message of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1APIServiceCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Gets the reason of this V1beta1APIServiceCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta1APIServiceCondition. + :return: The reason of this V1beta1APIServiceCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1APIServiceCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Sets the reason of this V1beta1APIServiceCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta1APIServiceCondition. + :param reason: The reason of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta1APIServiceCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Gets the status of this V1beta1APIServiceCondition. # noqa: E501 + + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 - :return: The status of this V1beta1APIServiceCondition. + :return: The status of this V1beta1APIServiceCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1APIServiceCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Sets the status of this V1beta1APIServiceCondition. - :param status: The status of this V1beta1APIServiceCondition. + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta1APIServiceCondition. - Type is the type of the condition. + """Gets the type of this V1beta1APIServiceCondition. # noqa: E501 - :return: The type of this V1beta1APIServiceCondition. + Type is the type of the condition. # noqa: E501 + + :return: The type of this V1beta1APIServiceCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1APIServiceCondition. - Type is the type of the condition. + """Sets the type of this V1beta1APIServiceCondition. - :param type: The type of this V1beta1APIServiceCondition. + Type is the type of the condition. # noqa: E501 + + :param type: The type of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1APIServiceCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_api_service_list.py b/kubernetes/client/models/v1beta1_api_service_list.py index 44fb8325a5..cd61cc4e93 100644 --- a/kubernetes/client/models/v1beta1_api_service_list.py +++ b/kubernetes/client/models/v1beta1_api_service_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1APIServiceList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1APIService]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1APIServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1APIServiceList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1APIServiceList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1APIServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1APIServiceList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1APIServiceList. + :return: The api_version of this V1beta1APIServiceList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1APIServiceList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1APIServiceList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1APIServiceList. + :param api_version: The api_version of this V1beta1APIServiceList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1APIServiceList. + """Gets the items of this V1beta1APIServiceList. # noqa: E501 + - :return: The items of this V1beta1APIServiceList. + :return: The items of this V1beta1APIServiceList. # noqa: E501 :rtype: list[V1beta1APIService] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1APIServiceList. + """Sets the items of this V1beta1APIServiceList. + - :param items: The items of this V1beta1APIServiceList. + :param items: The items of this V1beta1APIServiceList. # noqa: E501 :type: list[V1beta1APIService] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1APIServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1APIServiceList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1APIServiceList. + :return: The kind of this V1beta1APIServiceList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1APIServiceList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1APIServiceList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1APIServiceList. + :param kind: The kind of this V1beta1APIServiceList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1APIServiceList. + """Gets the metadata of this V1beta1APIServiceList. # noqa: E501 + - :return: The metadata of this V1beta1APIServiceList. + :return: The metadata of this V1beta1APIServiceList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1APIServiceList. + """Sets the metadata of this V1beta1APIServiceList. + - :param metadata: The metadata of this V1beta1APIServiceList. + :param metadata: The metadata of this V1beta1APIServiceList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1APIServiceList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_api_service_spec.py b/kubernetes/client/models/v1beta1_api_service_spec.py index ecd2fdf516..3e35159569 100644 --- a/kubernetes/client/models/v1beta1_api_service_spec.py +++ b/kubernetes/client/models/v1beta1_api_service_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1APIServiceSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ca_bundle': 'str', 'group': 'str', 'group_priority_minimum': 'int', @@ -50,10 +50,8 @@ class V1beta1APIServiceSpec(object): 'version_priority': 'versionPriority' } - def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): - """ - V1beta1APIServiceSpec - a model defined in Swagger - """ + def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): # noqa: E501 + """V1beta1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501 self._ca_bundle = None self._group = None @@ -65,60 +63,60 @@ def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, inse self.discriminator = None if ca_bundle is not None: - self.ca_bundle = ca_bundle + self.ca_bundle = ca_bundle if group is not None: - self.group = group + self.group = group self.group_priority_minimum = group_priority_minimum if insecure_skip_tls_verify is not None: - self.insecure_skip_tls_verify = insecure_skip_tls_verify + self.insecure_skip_tls_verify = insecure_skip_tls_verify self.service = service if version is not None: - self.version = version + self.version = version self.version_priority = version_priority @property def ca_bundle(self): - """ - Gets the ca_bundle of this V1beta1APIServiceSpec. - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + """Gets the ca_bundle of this V1beta1APIServiceSpec. # noqa: E501 + + CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 - :return: The ca_bundle of this V1beta1APIServiceSpec. + :return: The ca_bundle of this V1beta1APIServiceSpec. # noqa: E501 :rtype: str """ return self._ca_bundle @ca_bundle.setter def ca_bundle(self, ca_bundle): - """ - Sets the ca_bundle of this V1beta1APIServiceSpec. - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + """Sets the ca_bundle of this V1beta1APIServiceSpec. - :param ca_bundle: The ca_bundle of this V1beta1APIServiceSpec. + CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. # noqa: E501 + + :param ca_bundle: The ca_bundle of this V1beta1APIServiceSpec. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): - raise ValueError("Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @property def group(self): - """ - Gets the group of this V1beta1APIServiceSpec. - Group is the API group name this server hosts + """Gets the group of this V1beta1APIServiceSpec. # noqa: E501 - :return: The group of this V1beta1APIServiceSpec. + Group is the API group name this server hosts # noqa: E501 + + :return: The group of this V1beta1APIServiceSpec. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1beta1APIServiceSpec. - Group is the API group name this server hosts + """Sets the group of this V1beta1APIServiceSpec. + + Group is the API group name this server hosts # noqa: E501 - :param group: The group of this V1beta1APIServiceSpec. + :param group: The group of this V1beta1APIServiceSpec. # noqa: E501 :type: str """ @@ -126,47 +124,47 @@ def group(self, group): @property def group_priority_minimum(self): - """ - Gets the group_priority_minimum of this V1beta1APIServiceSpec. - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + """Gets the group_priority_minimum of this V1beta1APIServiceSpec. # noqa: E501 + + GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501 - :return: The group_priority_minimum of this V1beta1APIServiceSpec. + :return: The group_priority_minimum of this V1beta1APIServiceSpec. # noqa: E501 :rtype: int """ return self._group_priority_minimum @group_priority_minimum.setter def group_priority_minimum(self, group_priority_minimum): - """ - Sets the group_priority_minimum of this V1beta1APIServiceSpec. - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + """Sets the group_priority_minimum of this V1beta1APIServiceSpec. - :param group_priority_minimum: The group_priority_minimum of this V1beta1APIServiceSpec. + GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s # noqa: E501 + + :param group_priority_minimum: The group_priority_minimum of this V1beta1APIServiceSpec. # noqa: E501 :type: int """ if group_priority_minimum is None: - raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") + raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") # noqa: E501 self._group_priority_minimum = group_priority_minimum @property def insecure_skip_tls_verify(self): - """ - Gets the insecure_skip_tls_verify of this V1beta1APIServiceSpec. - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + """Gets the insecure_skip_tls_verify of this V1beta1APIServiceSpec. # noqa: E501 + + InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501 - :return: The insecure_skip_tls_verify of this V1beta1APIServiceSpec. + :return: The insecure_skip_tls_verify of this V1beta1APIServiceSpec. # noqa: E501 :rtype: bool """ return self._insecure_skip_tls_verify @insecure_skip_tls_verify.setter def insecure_skip_tls_verify(self, insecure_skip_tls_verify): - """ - Sets the insecure_skip_tls_verify of this V1beta1APIServiceSpec. - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + """Sets the insecure_skip_tls_verify of this V1beta1APIServiceSpec. + + InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. # noqa: E501 - :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this V1beta1APIServiceSpec. + :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this V1beta1APIServiceSpec. # noqa: E501 :type: bool """ @@ -174,47 +172,45 @@ def insecure_skip_tls_verify(self, insecure_skip_tls_verify): @property def service(self): - """ - Gets the service of this V1beta1APIServiceSpec. - Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + """Gets the service of this V1beta1APIServiceSpec. # noqa: E501 + - :return: The service of this V1beta1APIServiceSpec. + :return: The service of this V1beta1APIServiceSpec. # noqa: E501 :rtype: ApiregistrationV1beta1ServiceReference """ return self._service @service.setter def service(self, service): - """ - Sets the service of this V1beta1APIServiceSpec. - Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + """Sets the service of this V1beta1APIServiceSpec. - :param service: The service of this V1beta1APIServiceSpec. + + :param service: The service of this V1beta1APIServiceSpec. # noqa: E501 :type: ApiregistrationV1beta1ServiceReference """ if service is None: - raise ValueError("Invalid value for `service`, must not be `None`") + raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 self._service = service @property def version(self): - """ - Gets the version of this V1beta1APIServiceSpec. - Version is the API version this server hosts. For example, \"v1\" + """Gets the version of this V1beta1APIServiceSpec. # noqa: E501 + + Version is the API version this server hosts. For example, \"v1\" # noqa: E501 - :return: The version of this V1beta1APIServiceSpec. + :return: The version of this V1beta1APIServiceSpec. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1beta1APIServiceSpec. - Version is the API version this server hosts. For example, \"v1\" + """Sets the version of this V1beta1APIServiceSpec. + + Version is the API version this server hosts. For example, \"v1\" # noqa: E501 - :param version: The version of this V1beta1APIServiceSpec. + :param version: The version of this V1beta1APIServiceSpec. # noqa: E501 :type: str """ @@ -222,36 +218,34 @@ def version(self, version): @property def version_priority(self): - """ - Gets the version_priority of this V1beta1APIServiceSpec. - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Gets the version_priority of this V1beta1APIServiceSpec. # noqa: E501 - :return: The version_priority of this V1beta1APIServiceSpec. + VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :return: The version_priority of this V1beta1APIServiceSpec. # noqa: E501 :rtype: int """ return self._version_priority @version_priority.setter def version_priority(self, version_priority): - """ - Sets the version_priority of this V1beta1APIServiceSpec. - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Sets the version_priority of this V1beta1APIServiceSpec. - :param version_priority: The version_priority of this V1beta1APIServiceSpec. + VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :param version_priority: The version_priority of this V1beta1APIServiceSpec. # noqa: E501 :type: int """ if version_priority is None: - raise ValueError("Invalid value for `version_priority`, must not be `None`") + raise ValueError("Invalid value for `version_priority`, must not be `None`") # noqa: E501 self._version_priority = version_priority def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -272,28 +266,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1APIServiceSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_api_service_status.py b/kubernetes/client/models/v1beta1_api_service_status.py index b60a026127..852a4402fe 100644 --- a/kubernetes/client/models/v1beta1_api_service_status.py +++ b/kubernetes/client/models/v1beta1_api_service_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1APIServiceStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conditions': 'list[V1beta1APIServiceCondition]' } @@ -38,47 +38,43 @@ class V1beta1APIServiceStatus(object): 'conditions': 'conditions' } - def __init__(self, conditions=None): - """ - V1beta1APIServiceStatus - a model defined in Swagger - """ + def __init__(self, conditions=None): # noqa: E501 + """V1beta1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501 self._conditions = None self.discriminator = None if conditions is not None: - self.conditions = conditions + self.conditions = conditions @property def conditions(self): - """ - Gets the conditions of this V1beta1APIServiceStatus. - Current service state of apiService. + """Gets the conditions of this V1beta1APIServiceStatus. # noqa: E501 + + Current service state of apiService. # noqa: E501 - :return: The conditions of this V1beta1APIServiceStatus. + :return: The conditions of this V1beta1APIServiceStatus. # noqa: E501 :rtype: list[V1beta1APIServiceCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1APIServiceStatus. - Current service state of apiService. + """Sets the conditions of this V1beta1APIServiceStatus. + + Current service state of apiService. # noqa: E501 - :param conditions: The conditions of this V1beta1APIServiceStatus. + :param conditions: The conditions of this V1beta1APIServiceStatus. # noqa: E501 :type: list[V1beta1APIServiceCondition] """ self._conditions = conditions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1APIServiceStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request.py b/kubernetes/client/models/v1beta1_certificate_signing_request.py index 8f4611d32d..0a02cdc5f3 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CertificateSigningRequest(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1CertificateSigningRequest(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1CertificateSigningRequest - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1CertificateSigningRequest - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1CertificateSigningRequest. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CertificateSigningRequest. # noqa: E501 - :return: The api_version of this V1beta1CertificateSigningRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1CertificateSigningRequest. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CertificateSigningRequest. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CertificateSigningRequest. - :param api_version: The api_version of this V1beta1CertificateSigningRequest. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1CertificateSigningRequest. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1CertificateSigningRequest. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CertificateSigningRequest. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CertificateSigningRequest. + :return: The kind of this V1beta1CertificateSigningRequest. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CertificateSigningRequest. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CertificateSigningRequest. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CertificateSigningRequest. + :param kind: The kind of this V1beta1CertificateSigningRequest. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CertificateSigningRequest. + """Gets the metadata of this V1beta1CertificateSigningRequest. # noqa: E501 + - :return: The metadata of this V1beta1CertificateSigningRequest. + :return: The metadata of this V1beta1CertificateSigningRequest. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CertificateSigningRequest. + """Sets the metadata of this V1beta1CertificateSigningRequest. + - :param metadata: The metadata of this V1beta1CertificateSigningRequest. + :param metadata: The metadata of this V1beta1CertificateSigningRequest. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1CertificateSigningRequest. - The certificate request itself and any additional information. + """Gets the spec of this V1beta1CertificateSigningRequest. # noqa: E501 + - :return: The spec of this V1beta1CertificateSigningRequest. + :return: The spec of this V1beta1CertificateSigningRequest. # noqa: E501 :rtype: V1beta1CertificateSigningRequestSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1CertificateSigningRequest. - The certificate request itself and any additional information. + """Sets the spec of this V1beta1CertificateSigningRequest. - :param spec: The spec of this V1beta1CertificateSigningRequest. + + :param spec: The spec of this V1beta1CertificateSigningRequest. # noqa: E501 :type: V1beta1CertificateSigningRequestSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1CertificateSigningRequest. - Derived information about the request. + """Gets the status of this V1beta1CertificateSigningRequest. # noqa: E501 - :return: The status of this V1beta1CertificateSigningRequest. + + :return: The status of this V1beta1CertificateSigningRequest. # noqa: E501 :rtype: V1beta1CertificateSigningRequestStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1CertificateSigningRequest. - Derived information about the request. + """Sets the status of this V1beta1CertificateSigningRequest. - :param status: The status of this V1beta1CertificateSigningRequest. + + :param status: The status of this V1beta1CertificateSigningRequest. # noqa: E501 :type: V1beta1CertificateSigningRequestStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CertificateSigningRequest): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py index 92557d4a6b..a5973b3ccc 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CertificateSigningRequestCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_update_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -44,10 +44,8 @@ class V1beta1CertificateSigningRequestCondition(object): 'type': 'type' } - def __init__(self, last_update_time=None, message=None, reason=None, type=None): - """ - V1beta1CertificateSigningRequestCondition - a model defined in Swagger - """ + def __init__(self, last_update_time=None, message=None, reason=None, type=None): # noqa: E501 + """V1beta1CertificateSigningRequestCondition - a model defined in OpenAPI""" # noqa: E501 self._last_update_time = None self._message = None @@ -56,31 +54,31 @@ def __init__(self, last_update_time=None, message=None, reason=None, type=None): self.discriminator = None if last_update_time is not None: - self.last_update_time = last_update_time + self.last_update_time = last_update_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.type = type @property def last_update_time(self): - """ - Gets the last_update_time of this V1beta1CertificateSigningRequestCondition. - timestamp for the last update to this condition + """Gets the last_update_time of this V1beta1CertificateSigningRequestCondition. # noqa: E501 + + timestamp for the last update to this condition # noqa: E501 - :return: The last_update_time of this V1beta1CertificateSigningRequestCondition. + :return: The last_update_time of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :rtype: datetime """ return self._last_update_time @last_update_time.setter def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this V1beta1CertificateSigningRequestCondition. - timestamp for the last update to this condition + """Sets the last_update_time of this V1beta1CertificateSigningRequestCondition. + + timestamp for the last update to this condition # noqa: E501 - :param last_update_time: The last_update_time of this V1beta1CertificateSigningRequestCondition. + :param last_update_time: The last_update_time of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :type: datetime """ @@ -88,22 +86,22 @@ def last_update_time(self, last_update_time): @property def message(self): - """ - Gets the message of this V1beta1CertificateSigningRequestCondition. - human readable message with details about the request state + """Gets the message of this V1beta1CertificateSigningRequestCondition. # noqa: E501 + + human readable message with details about the request state # noqa: E501 - :return: The message of this V1beta1CertificateSigningRequestCondition. + :return: The message of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1CertificateSigningRequestCondition. - human readable message with details about the request state + """Sets the message of this V1beta1CertificateSigningRequestCondition. + + human readable message with details about the request state # noqa: E501 - :param message: The message of this V1beta1CertificateSigningRequestCondition. + :param message: The message of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :type: str """ @@ -111,22 +109,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1CertificateSigningRequestCondition. - brief reason for the request state + """Gets the reason of this V1beta1CertificateSigningRequestCondition. # noqa: E501 + + brief reason for the request state # noqa: E501 - :return: The reason of this V1beta1CertificateSigningRequestCondition. + :return: The reason of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1CertificateSigningRequestCondition. - brief reason for the request state + """Sets the reason of this V1beta1CertificateSigningRequestCondition. + + brief reason for the request state # noqa: E501 - :param reason: The reason of this V1beta1CertificateSigningRequestCondition. + :param reason: The reason of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :type: str """ @@ -134,36 +132,34 @@ def reason(self, reason): @property def type(self): - """ - Gets the type of this V1beta1CertificateSigningRequestCondition. - request approval state, currently Approved or Denied. + """Gets the type of this V1beta1CertificateSigningRequestCondition. # noqa: E501 + + request approval state, currently Approved or Denied. # noqa: E501 - :return: The type of this V1beta1CertificateSigningRequestCondition. + :return: The type of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1CertificateSigningRequestCondition. - request approval state, currently Approved or Denied. + """Sets the type of this V1beta1CertificateSigningRequestCondition. + + request approval state, currently Approved or Denied. # noqa: E501 - :param type: The type of this V1beta1CertificateSigningRequestCondition. + :param type: The type of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CertificateSigningRequestCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py index 5a7a934df4..e67a34a7f0 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CertificateSigningRequestList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1CertificateSigningRequest]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1CertificateSigningRequestList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CertificateSigningRequestList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1CertificateSigningRequestList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1CertificateSigningRequestList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CertificateSigningRequestList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CertificateSigningRequestList. + :return: The api_version of this V1beta1CertificateSigningRequestList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CertificateSigningRequestList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CertificateSigningRequestList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CertificateSigningRequestList. + :param api_version: The api_version of this V1beta1CertificateSigningRequestList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1CertificateSigningRequestList. + """Gets the items of this V1beta1CertificateSigningRequestList. # noqa: E501 + - :return: The items of this V1beta1CertificateSigningRequestList. + :return: The items of this V1beta1CertificateSigningRequestList. # noqa: E501 :rtype: list[V1beta1CertificateSigningRequest] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1CertificateSigningRequestList. + """Sets the items of this V1beta1CertificateSigningRequestList. + - :param items: The items of this V1beta1CertificateSigningRequestList. + :param items: The items of this V1beta1CertificateSigningRequestList. # noqa: E501 :type: list[V1beta1CertificateSigningRequest] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1CertificateSigningRequestList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CertificateSigningRequestList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CertificateSigningRequestList. + :return: The kind of this V1beta1CertificateSigningRequestList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CertificateSigningRequestList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CertificateSigningRequestList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CertificateSigningRequestList. + :param kind: The kind of this V1beta1CertificateSigningRequestList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CertificateSigningRequestList. + """Gets the metadata of this V1beta1CertificateSigningRequestList. # noqa: E501 + - :return: The metadata of this V1beta1CertificateSigningRequestList. + :return: The metadata of this V1beta1CertificateSigningRequestList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CertificateSigningRequestList. + """Sets the metadata of this V1beta1CertificateSigningRequestList. + - :param metadata: The metadata of this V1beta1CertificateSigningRequestList. + :param metadata: The metadata of this V1beta1CertificateSigningRequestList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CertificateSigningRequestList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py index 6682f4dbad..7a7503c482 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CertificateSigningRequestSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'request': 'str', @@ -48,10 +48,8 @@ class V1beta1CertificateSigningRequestSpec(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, username=None): - """ - V1beta1CertificateSigningRequestSpec - a model defined in Swagger - """ + def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, username=None): # noqa: E501 + """V1beta1CertificateSigningRequestSpec - a model defined in OpenAPI""" # noqa: E501 self._extra = None self._groups = None @@ -62,35 +60,35 @@ def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, self.discriminator = None if extra is not None: - self.extra = extra + self.extra = extra if groups is not None: - self.groups = groups + self.groups = groups self.request = request if uid is not None: - self.uid = uid + self.uid = uid if usages is not None: - self.usages = usages + self.usages = usages if username is not None: - self.username = username + self.username = username @property def extra(self): - """ - Gets the extra of this V1beta1CertificateSigningRequestSpec. - Extra information about the requesting user. See user.Info interface for details. + """Gets the extra of this V1beta1CertificateSigningRequestSpec. # noqa: E501 + + Extra information about the requesting user. See user.Info interface for details. # noqa: E501 - :return: The extra of this V1beta1CertificateSigningRequestSpec. + :return: The extra of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: dict(str, list[str]) """ return self._extra @extra.setter def extra(self, extra): - """ - Sets the extra of this V1beta1CertificateSigningRequestSpec. - Extra information about the requesting user. See user.Info interface for details. + """Sets the extra of this V1beta1CertificateSigningRequestSpec. + + Extra information about the requesting user. See user.Info interface for details. # noqa: E501 - :param extra: The extra of this V1beta1CertificateSigningRequestSpec. + :param extra: The extra of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: dict(str, list[str]) """ @@ -98,22 +96,22 @@ def extra(self, extra): @property def groups(self): - """ - Gets the groups of this V1beta1CertificateSigningRequestSpec. - Group information about the requesting user. See user.Info interface for details. + """Gets the groups of this V1beta1CertificateSigningRequestSpec. # noqa: E501 + + Group information about the requesting user. See user.Info interface for details. # noqa: E501 - :return: The groups of this V1beta1CertificateSigningRequestSpec. + :return: The groups of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: list[str] """ return self._groups @groups.setter def groups(self, groups): - """ - Sets the groups of this V1beta1CertificateSigningRequestSpec. - Group information about the requesting user. See user.Info interface for details. + """Sets the groups of this V1beta1CertificateSigningRequestSpec. - :param groups: The groups of this V1beta1CertificateSigningRequestSpec. + Group information about the requesting user. See user.Info interface for details. # noqa: E501 + + :param groups: The groups of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: list[str] """ @@ -121,49 +119,49 @@ def groups(self, groups): @property def request(self): - """ - Gets the request of this V1beta1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data + """Gets the request of this V1beta1CertificateSigningRequestSpec. # noqa: E501 - :return: The request of this V1beta1CertificateSigningRequestSpec. + Base64-encoded PKCS#10 CSR data # noqa: E501 + + :return: The request of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: str """ return self._request @request.setter def request(self, request): - """ - Sets the request of this V1beta1CertificateSigningRequestSpec. - Base64-encoded PKCS#10 CSR data + """Sets the request of this V1beta1CertificateSigningRequestSpec. + + Base64-encoded PKCS#10 CSR data # noqa: E501 - :param request: The request of this V1beta1CertificateSigningRequestSpec. + :param request: The request of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: str """ if request is None: - raise ValueError("Invalid value for `request`, must not be `None`") - if request is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', request): - raise ValueError("Invalid value for `request`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + raise ValueError("Invalid value for `request`, must not be `None`") # noqa: E501 + if request is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', request): # noqa: E501 + raise ValueError(r"Invalid value for `request`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._request = request @property def uid(self): - """ - Gets the uid of this V1beta1CertificateSigningRequestSpec. - UID information about the requesting user. See user.Info interface for details. + """Gets the uid of this V1beta1CertificateSigningRequestSpec. # noqa: E501 + + UID information about the requesting user. See user.Info interface for details. # noqa: E501 - :return: The uid of this V1beta1CertificateSigningRequestSpec. + :return: The uid of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1beta1CertificateSigningRequestSpec. - UID information about the requesting user. See user.Info interface for details. + """Sets the uid of this V1beta1CertificateSigningRequestSpec. + + UID information about the requesting user. See user.Info interface for details. # noqa: E501 - :param uid: The uid of this V1beta1CertificateSigningRequestSpec. + :param uid: The uid of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: str """ @@ -171,22 +169,22 @@ def uid(self, uid): @property def usages(self): - """ - Gets the usages of this V1beta1CertificateSigningRequestSpec. - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + """Gets the usages of this V1beta1CertificateSigningRequestSpec. # noqa: E501 - :return: The usages of this V1beta1CertificateSigningRequestSpec. + allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 # noqa: E501 + + :return: The usages of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: list[str] """ return self._usages @usages.setter def usages(self, usages): - """ - Sets the usages of this V1beta1CertificateSigningRequestSpec. - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + """Sets the usages of this V1beta1CertificateSigningRequestSpec. - :param usages: The usages of this V1beta1CertificateSigningRequestSpec. + allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 # noqa: E501 + + :param usages: The usages of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: list[str] """ @@ -194,34 +192,32 @@ def usages(self, usages): @property def username(self): - """ - Gets the username of this V1beta1CertificateSigningRequestSpec. - Information about the requesting user. See user.Info interface for details. + """Gets the username of this V1beta1CertificateSigningRequestSpec. # noqa: E501 + + Information about the requesting user. See user.Info interface for details. # noqa: E501 - :return: The username of this V1beta1CertificateSigningRequestSpec. + :return: The username of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :rtype: str """ return self._username @username.setter def username(self, username): - """ - Sets the username of this V1beta1CertificateSigningRequestSpec. - Information about the requesting user. See user.Info interface for details. + """Sets the username of this V1beta1CertificateSigningRequestSpec. + + Information about the requesting user. See user.Info interface for details. # noqa: E501 - :param username: The username of this V1beta1CertificateSigningRequestSpec. + :param username: The username of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: str """ self._username = username def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -242,28 +238,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CertificateSigningRequestSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py index 99fc117f2c..bdcee06862 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CertificateSigningRequestStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'certificate': 'str', 'conditions': 'list[V1beta1CertificateSigningRequestCondition]' } @@ -40,75 +40,71 @@ class V1beta1CertificateSigningRequestStatus(object): 'conditions': 'conditions' } - def __init__(self, certificate=None, conditions=None): - """ - V1beta1CertificateSigningRequestStatus - a model defined in Swagger - """ + def __init__(self, certificate=None, conditions=None): # noqa: E501 + """V1beta1CertificateSigningRequestStatus - a model defined in OpenAPI""" # noqa: E501 self._certificate = None self._conditions = None self.discriminator = None if certificate is not None: - self.certificate = certificate + self.certificate = certificate if conditions is not None: - self.conditions = conditions + self.conditions = conditions @property def certificate(self): - """ - Gets the certificate of this V1beta1CertificateSigningRequestStatus. - If request was approved, the controller will place the issued certificate here. + """Gets the certificate of this V1beta1CertificateSigningRequestStatus. # noqa: E501 + + If request was approved, the controller will place the issued certificate here. # noqa: E501 - :return: The certificate of this V1beta1CertificateSigningRequestStatus. + :return: The certificate of this V1beta1CertificateSigningRequestStatus. # noqa: E501 :rtype: str """ return self._certificate @certificate.setter def certificate(self, certificate): - """ - Sets the certificate of this V1beta1CertificateSigningRequestStatus. - If request was approved, the controller will place the issued certificate here. + """Sets the certificate of this V1beta1CertificateSigningRequestStatus. - :param certificate: The certificate of this V1beta1CertificateSigningRequestStatus. + If request was approved, the controller will place the issued certificate here. # noqa: E501 + + :param certificate: The certificate of this V1beta1CertificateSigningRequestStatus. # noqa: E501 :type: str """ - if certificate is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', certificate): - raise ValueError("Invalid value for `certificate`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") + if certificate is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', certificate): # noqa: E501 + raise ValueError(r"Invalid value for `certificate`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._certificate = certificate @property def conditions(self): - """ - Gets the conditions of this V1beta1CertificateSigningRequestStatus. - Conditions applied to the request, such as approval or denial. + """Gets the conditions of this V1beta1CertificateSigningRequestStatus. # noqa: E501 + + Conditions applied to the request, such as approval or denial. # noqa: E501 - :return: The conditions of this V1beta1CertificateSigningRequestStatus. + :return: The conditions of this V1beta1CertificateSigningRequestStatus. # noqa: E501 :rtype: list[V1beta1CertificateSigningRequestCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1CertificateSigningRequestStatus. - Conditions applied to the request, such as approval or denial. + """Sets the conditions of this V1beta1CertificateSigningRequestStatus. + + Conditions applied to the request, such as approval or denial. # noqa: E501 - :param conditions: The conditions of this V1beta1CertificateSigningRequestStatus. + :param conditions: The conditions of this V1beta1CertificateSigningRequestStatus. # noqa: E501 :type: list[V1beta1CertificateSigningRequestCondition] """ self._conditions = conditions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +125,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CertificateSigningRequestStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role.py b/kubernetes/client/models/v1beta1_cluster_role.py index 261c5886e5..17936c3779 100644 --- a/kubernetes/client/models/v1beta1_cluster_role.py +++ b/kubernetes/client/models/v1beta1_cluster_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ClusterRole(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'aggregation_rule': 'V1beta1AggregationRule', 'api_version': 'str', 'kind': 'str', @@ -46,10 +46,8 @@ class V1beta1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): - """ - V1beta1ClusterRole - a model defined in Swagger - """ + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1beta1ClusterRole - a model defined in OpenAPI""" # noqa: E501 self._aggregation_rule = None self._api_version = None @@ -59,34 +57,32 @@ def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata= self.discriminator = None if aggregation_rule is not None: - self.aggregation_rule = aggregation_rule + self.aggregation_rule = aggregation_rule if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def aggregation_rule(self): - """ - Gets the aggregation_rule of this V1beta1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Gets the aggregation_rule of this V1beta1ClusterRole. # noqa: E501 - :return: The aggregation_rule of this V1beta1ClusterRole. + + :return: The aggregation_rule of this V1beta1ClusterRole. # noqa: E501 :rtype: V1beta1AggregationRule """ return self._aggregation_rule @aggregation_rule.setter def aggregation_rule(self, aggregation_rule): - """ - Sets the aggregation_rule of this V1beta1ClusterRole. - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """Sets the aggregation_rule of this V1beta1ClusterRole. - :param aggregation_rule: The aggregation_rule of this V1beta1ClusterRole. + + :param aggregation_rule: The aggregation_rule of this V1beta1ClusterRole. # noqa: E501 :type: V1beta1AggregationRule """ @@ -94,22 +90,22 @@ def aggregation_rule(self, aggregation_rule): @property def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ClusterRole. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ClusterRole. + :return: The api_version of this V1beta1ClusterRole. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRole. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ClusterRole. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ClusterRole. + :param api_version: The api_version of this V1beta1ClusterRole. # noqa: E501 :type: str """ @@ -117,22 +113,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ClusterRole. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ClusterRole. + :return: The kind of this V1beta1ClusterRole. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRole. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ClusterRole. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ClusterRole. + :param kind: The kind of this V1beta1ClusterRole. # noqa: E501 :type: str """ @@ -140,22 +136,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRole. - Standard object's metadata. + """Gets the metadata of this V1beta1ClusterRole. # noqa: E501 + - :return: The metadata of this V1beta1ClusterRole. + :return: The metadata of this V1beta1ClusterRole. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRole. - Standard object's metadata. + """Sets the metadata of this V1beta1ClusterRole. - :param metadata: The metadata of this V1beta1ClusterRole. + + :param metadata: The metadata of this V1beta1ClusterRole. # noqa: E501 :type: V1ObjectMeta """ @@ -163,34 +157,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1beta1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Gets the rules of this V1beta1ClusterRole. # noqa: E501 - :return: The rules of this V1beta1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :return: The rules of this V1beta1ClusterRole. # noqa: E501 :rtype: list[V1beta1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1beta1ClusterRole. - Rules holds all the PolicyRules for this ClusterRole + """Sets the rules of this V1beta1ClusterRole. - :param rules: The rules of this V1beta1ClusterRole. + Rules holds all the PolicyRules for this ClusterRole # noqa: E501 + + :param rules: The rules of this V1beta1ClusterRole. # noqa: E501 :type: list[V1beta1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +203,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ClusterRole): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding.py b/kubernetes/client/models/v1beta1_cluster_role_binding.py index 26393b9540..6aee7f6124 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_binding.py +++ b/kubernetes/client/models/v1beta1_cluster_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ClusterRoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1beta1ClusterRoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1beta1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ClusterRoleBinding. # noqa: E501 - :return: The api_version of this V1beta1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ClusterRoleBinding. - :param api_version: The api_version of this V1beta1ClusterRoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ClusterRoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ClusterRoleBinding. + :return: The kind of this V1beta1ClusterRoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ClusterRoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ClusterRoleBinding. + :param kind: The kind of this V1beta1ClusterRoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleBinding. - Standard object's metadata. + """Gets the metadata of this V1beta1ClusterRoleBinding. # noqa: E501 + - :return: The metadata of this V1beta1ClusterRoleBinding. + :return: The metadata of this V1beta1ClusterRoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleBinding. - Standard object's metadata. + """Sets the metadata of this V1beta1ClusterRoleBinding. + - :param metadata: The metadata of this V1beta1ClusterRoleBinding. + :param metadata: The metadata of this V1beta1ClusterRoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1beta1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1beta1ClusterRoleBinding. # noqa: E501 + - :return: The role_ref of this V1beta1ClusterRoleBinding. + :return: The role_ref of this V1beta1ClusterRoleBinding. # noqa: E501 :rtype: V1beta1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1beta1ClusterRoleBinding. - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1beta1ClusterRoleBinding. - :param role_ref: The role_ref of this V1beta1ClusterRoleBinding. + + :param role_ref: The role_ref of this V1beta1ClusterRoleBinding. # noqa: E501 :type: V1beta1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1beta1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1beta1ClusterRoleBinding. # noqa: E501 - :return: The subjects of this V1beta1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1beta1ClusterRoleBinding. # noqa: E501 :rtype: list[V1beta1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1beta1ClusterRoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1beta1ClusterRoleBinding. - :param subjects: The subjects of this V1beta1ClusterRoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1beta1ClusterRoleBinding. # noqa: E501 :type: list[V1beta1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ClusterRoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py index c62f7c7b8b..b8ae88d579 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ClusterRoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1ClusterRoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ClusterRoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ClusterRoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ClusterRoleBindingList. + :return: The api_version of this V1beta1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ClusterRoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ClusterRoleBindingList. + :param api_version: The api_version of this V1beta1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Gets the items of this V1beta1ClusterRoleBindingList. # noqa: E501 + + Items is a list of ClusterRoleBindings # noqa: E501 - :return: The items of this V1beta1ClusterRoleBindingList. + :return: The items of this V1beta1ClusterRoleBindingList. # noqa: E501 :rtype: list[V1beta1ClusterRoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1ClusterRoleBindingList. - Items is a list of ClusterRoleBindings + """Sets the items of this V1beta1ClusterRoleBindingList. + + Items is a list of ClusterRoleBindings # noqa: E501 - :param items: The items of this V1beta1ClusterRoleBindingList. + :param items: The items of this V1beta1ClusterRoleBindingList. # noqa: E501 :type: list[V1beta1ClusterRoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ClusterRoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ClusterRoleBindingList. + :return: The kind of this V1beta1ClusterRoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ClusterRoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ClusterRoleBindingList. + :param kind: The kind of this V1beta1ClusterRoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1beta1ClusterRoleBindingList. # noqa: E501 + - :return: The metadata of this V1beta1ClusterRoleBindingList. + :return: The metadata of this V1beta1ClusterRoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1beta1ClusterRoleBindingList. + - :param metadata: The metadata of this V1beta1ClusterRoleBindingList. + :param metadata: The metadata of this V1beta1ClusterRoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ClusterRoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cluster_role_list.py b/kubernetes/client/models/v1beta1_cluster_role_list.py index 3cb38d8fca..7a92c7ca26 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_list.py +++ b/kubernetes/client/models/v1beta1_cluster_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ClusterRoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1ClusterRole]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ClusterRoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ClusterRoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ClusterRoleList. + :return: The api_version of this V1beta1ClusterRoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ClusterRoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ClusterRoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ClusterRoleList. + :param api_version: The api_version of this V1beta1ClusterRoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1ClusterRoleList. - Items is a list of ClusterRoles + """Gets the items of this V1beta1ClusterRoleList. # noqa: E501 + + Items is a list of ClusterRoles # noqa: E501 - :return: The items of this V1beta1ClusterRoleList. + :return: The items of this V1beta1ClusterRoleList. # noqa: E501 :rtype: list[V1beta1ClusterRole] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1ClusterRoleList. - Items is a list of ClusterRoles + """Sets the items of this V1beta1ClusterRoleList. + + Items is a list of ClusterRoles # noqa: E501 - :param items: The items of this V1beta1ClusterRoleList. + :param items: The items of this V1beta1ClusterRoleList. # noqa: E501 :type: list[V1beta1ClusterRole] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ClusterRoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ClusterRoleList. + :return: The kind of this V1beta1ClusterRoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ClusterRoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ClusterRoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ClusterRoleList. + :param kind: The kind of this V1beta1ClusterRoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ClusterRoleList. - Standard object's metadata. + """Gets the metadata of this V1beta1ClusterRoleList. # noqa: E501 + - :return: The metadata of this V1beta1ClusterRoleList. + :return: The metadata of this V1beta1ClusterRoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ClusterRoleList. - Standard object's metadata. + """Sets the metadata of this V1beta1ClusterRoleList. + - :param metadata: The metadata of this V1beta1ClusterRoleList. + :param metadata: The metadata of this V1beta1ClusterRoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ClusterRoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_controller_revision.py b/kubernetes/client/models/v1beta1_controller_revision.py index 154c226de9..0408083159 100644 --- a/kubernetes/client/models/v1beta1_controller_revision.py +++ b/kubernetes/client/models/v1beta1_controller_revision.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ControllerRevision(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'data': 'RuntimeRawExtension', 'kind': 'str', @@ -46,10 +46,8 @@ class V1beta1ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): - """ - V1beta1ControllerRevision - a model defined in Swagger - """ + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + """V1beta1ControllerRevision - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._data = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, data=None, kind=None, metadata=None, revisi self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if data is not None: - self.data = data + self.data = data if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.revision = revision @property def api_version(self): - """ - Gets the api_version of this V1beta1ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ControllerRevision. # noqa: E501 - :return: The api_version of this V1beta1ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1ControllerRevision. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ControllerRevision. - :param api_version: The api_version of this V1beta1ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1ControllerRevision. # noqa: E501 :type: str """ @@ -93,22 +91,20 @@ def api_version(self, api_version): @property def data(self): - """ - Gets the data of this V1beta1ControllerRevision. - Data is the serialized representation of the state. + """Gets the data of this V1beta1ControllerRevision. # noqa: E501 + - :return: The data of this V1beta1ControllerRevision. + :return: The data of this V1beta1ControllerRevision. # noqa: E501 :rtype: RuntimeRawExtension """ return self._data @data.setter def data(self, data): - """ - Sets the data of this V1beta1ControllerRevision. - Data is the serialized representation of the state. + """Sets the data of this V1beta1ControllerRevision. + - :param data: The data of this V1beta1ControllerRevision. + :param data: The data of this V1beta1ControllerRevision. # noqa: E501 :type: RuntimeRawExtension """ @@ -116,22 +112,22 @@ def data(self, data): @property def kind(self): - """ - Gets the kind of this V1beta1ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ControllerRevision. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ControllerRevision. + :return: The kind of this V1beta1ControllerRevision. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ControllerRevision. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ControllerRevision. + :param kind: The kind of this V1beta1ControllerRevision. # noqa: E501 :type: str """ @@ -139,22 +135,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1ControllerRevision. # noqa: E501 + - :return: The metadata of this V1beta1ControllerRevision. + :return: The metadata of this V1beta1ControllerRevision. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1ControllerRevision. - :param metadata: The metadata of this V1beta1ControllerRevision. + + :param metadata: The metadata of this V1beta1ControllerRevision. # noqa: E501 :type: V1ObjectMeta """ @@ -162,36 +156,34 @@ def metadata(self, metadata): @property def revision(self): - """ - Gets the revision of this V1beta1ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Gets the revision of this V1beta1ControllerRevision. # noqa: E501 - :return: The revision of this V1beta1ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :return: The revision of this V1beta1ControllerRevision. # noqa: E501 :rtype: int """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this V1beta1ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Sets the revision of this V1beta1ControllerRevision. - :param revision: The revision of this V1beta1ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :param revision: The revision of this V1beta1ControllerRevision. # noqa: E501 :type: int """ if revision is None: - raise ValueError("Invalid value for `revision`, must not be `None`") + raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ControllerRevision): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_controller_revision_list.py b/kubernetes/client/models/v1beta1_controller_revision_list.py index 5756f7f22d..1a25676804 100644 --- a/kubernetes/client/models/v1beta1_controller_revision_list.py +++ b/kubernetes/client/models/v1beta1_controller_revision_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ControllerRevisionList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1ControllerRevision]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ControllerRevisionList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ControllerRevisionList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ControllerRevisionList. + :return: The api_version of this V1beta1ControllerRevisionList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ControllerRevisionList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ControllerRevisionList. + :param api_version: The api_version of this V1beta1ControllerRevisionList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1ControllerRevisionList. - Items is the list of ControllerRevisions + """Gets the items of this V1beta1ControllerRevisionList. # noqa: E501 + + Items is the list of ControllerRevisions # noqa: E501 - :return: The items of this V1beta1ControllerRevisionList. + :return: The items of this V1beta1ControllerRevisionList. # noqa: E501 :rtype: list[V1beta1ControllerRevision] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1ControllerRevisionList. - Items is the list of ControllerRevisions + """Sets the items of this V1beta1ControllerRevisionList. + + Items is the list of ControllerRevisions # noqa: E501 - :param items: The items of this V1beta1ControllerRevisionList. + :param items: The items of this V1beta1ControllerRevisionList. # noqa: E501 :type: list[V1beta1ControllerRevision] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ControllerRevisionList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ControllerRevisionList. + :return: The kind of this V1beta1ControllerRevisionList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ControllerRevisionList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ControllerRevisionList. + :param kind: The kind of this V1beta1ControllerRevisionList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1ControllerRevisionList. # noqa: E501 + - :return: The metadata of this V1beta1ControllerRevisionList. + :return: The metadata of this V1beta1ControllerRevisionList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1ControllerRevisionList. + - :param metadata: The metadata of this V1beta1ControllerRevisionList. + :param metadata: The metadata of this V1beta1ControllerRevisionList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ControllerRevisionList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cron_job.py b/kubernetes/client/models/v1beta1_cron_job.py index 28d55a4ed9..b144ad0000 100644 --- a/kubernetes/client/models/v1beta1_cron_job.py +++ b/kubernetes/client/models/v1beta1_cron_job.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CronJob(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1CronJob(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1CronJob - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1CronJob - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1CronJob. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CronJob. # noqa: E501 - :return: The api_version of this V1beta1CronJob. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1CronJob. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CronJob. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CronJob. - :param api_version: The api_version of this V1beta1CronJob. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1CronJob. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1CronJob. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CronJob. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CronJob. + :return: The kind of this V1beta1CronJob. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CronJob. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CronJob. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CronJob. + :param kind: The kind of this V1beta1CronJob. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CronJob. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1CronJob. # noqa: E501 + - :return: The metadata of this V1beta1CronJob. + :return: The metadata of this V1beta1CronJob. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CronJob. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1CronJob. + - :param metadata: The metadata of this V1beta1CronJob. + :param metadata: The metadata of this V1beta1CronJob. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1CronJob. - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1beta1CronJob. # noqa: E501 + - :return: The spec of this V1beta1CronJob. + :return: The spec of this V1beta1CronJob. # noqa: E501 :rtype: V1beta1CronJobSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1CronJob. - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1beta1CronJob. - :param spec: The spec of this V1beta1CronJob. + + :param spec: The spec of this V1beta1CronJob. # noqa: E501 :type: V1beta1CronJobSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1CronJob. - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V1beta1CronJob. # noqa: E501 - :return: The status of this V1beta1CronJob. + + :return: The status of this V1beta1CronJob. # noqa: E501 :rtype: V1beta1CronJobStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1CronJob. - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V1beta1CronJob. - :param status: The status of this V1beta1CronJob. + + :param status: The status of this V1beta1CronJob. # noqa: E501 :type: V1beta1CronJobStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CronJob): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cron_job_list.py b/kubernetes/client/models/v1beta1_cron_job_list.py index 0535b8652d..4256efc568 100644 --- a/kubernetes/client/models/v1beta1_cron_job_list.py +++ b/kubernetes/client/models/v1beta1_cron_job_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CronJobList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1CronJob]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1CronJobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CronJobList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1CronJobList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1CronJobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CronJobList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CronJobList. + :return: The api_version of this V1beta1CronJobList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CronJobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CronJobList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CronJobList. + :param api_version: The api_version of this V1beta1CronJobList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1CronJobList. - items is the list of CronJobs. + """Gets the items of this V1beta1CronJobList. # noqa: E501 + + items is the list of CronJobs. # noqa: E501 - :return: The items of this V1beta1CronJobList. + :return: The items of this V1beta1CronJobList. # noqa: E501 :rtype: list[V1beta1CronJob] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1CronJobList. - items is the list of CronJobs. + """Sets the items of this V1beta1CronJobList. + + items is the list of CronJobs. # noqa: E501 - :param items: The items of this V1beta1CronJobList. + :param items: The items of this V1beta1CronJobList. # noqa: E501 :type: list[V1beta1CronJob] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1CronJobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CronJobList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CronJobList. + :return: The kind of this V1beta1CronJobList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CronJobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CronJobList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CronJobList. + :param kind: The kind of this V1beta1CronJobList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CronJobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1CronJobList. # noqa: E501 + - :return: The metadata of this V1beta1CronJobList. + :return: The metadata of this V1beta1CronJobList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CronJobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1CronJobList. + - :param metadata: The metadata of this V1beta1CronJobList. + :param metadata: The metadata of this V1beta1CronJobList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CronJobList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cron_job_spec.py b/kubernetes/client/models/v1beta1_cron_job_spec.py index a7b190e688..edf100172f 100644 --- a/kubernetes/client/models/v1beta1_cron_job_spec.py +++ b/kubernetes/client/models/v1beta1_cron_job_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CronJobSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'concurrency_policy': 'str', 'failed_jobs_history_limit': 'int', 'job_template': 'V1beta1JobTemplateSpec', @@ -50,10 +50,8 @@ class V1beta1CronJobSpec(object): 'suspend': 'suspend' } - def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): - """ - V1beta1CronJobSpec - a model defined in Swagger - """ + def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): # noqa: E501 + """V1beta1CronJobSpec - a model defined in OpenAPI""" # noqa: E501 self._concurrency_policy = None self._failed_jobs_history_limit = None @@ -65,36 +63,36 @@ def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_ self.discriminator = None if concurrency_policy is not None: - self.concurrency_policy = concurrency_policy + self.concurrency_policy = concurrency_policy if failed_jobs_history_limit is not None: - self.failed_jobs_history_limit = failed_jobs_history_limit + self.failed_jobs_history_limit = failed_jobs_history_limit self.job_template = job_template self.schedule = schedule if starting_deadline_seconds is not None: - self.starting_deadline_seconds = starting_deadline_seconds + self.starting_deadline_seconds = starting_deadline_seconds if successful_jobs_history_limit is not None: - self.successful_jobs_history_limit = successful_jobs_history_limit + self.successful_jobs_history_limit = successful_jobs_history_limit if suspend is not None: - self.suspend = suspend + self.suspend = suspend @property def concurrency_policy(self): - """ - Gets the concurrency_policy of this V1beta1CronJobSpec. - Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one + """Gets the concurrency_policy of this V1beta1CronJobSpec. # noqa: E501 + + Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501 - :return: The concurrency_policy of this V1beta1CronJobSpec. + :return: The concurrency_policy of this V1beta1CronJobSpec. # noqa: E501 :rtype: str """ return self._concurrency_policy @concurrency_policy.setter def concurrency_policy(self, concurrency_policy): - """ - Sets the concurrency_policy of this V1beta1CronJobSpec. - Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one + """Sets the concurrency_policy of this V1beta1CronJobSpec. - :param concurrency_policy: The concurrency_policy of this V1beta1CronJobSpec. + Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501 + + :param concurrency_policy: The concurrency_policy of this V1beta1CronJobSpec. # noqa: E501 :type: str """ @@ -102,22 +100,22 @@ def concurrency_policy(self, concurrency_policy): @property def failed_jobs_history_limit(self): - """ - Gets the failed_jobs_history_limit of this V1beta1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Gets the failed_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 - :return: The failed_jobs_history_limit of this V1beta1CronJobSpec. + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 + + :return: The failed_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 :rtype: int """ return self._failed_jobs_history_limit @failed_jobs_history_limit.setter def failed_jobs_history_limit(self, failed_jobs_history_limit): - """ - Sets the failed_jobs_history_limit of this V1beta1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Sets the failed_jobs_history_limit of this V1beta1CronJobSpec. + + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :param failed_jobs_history_limit: The failed_jobs_history_limit of this V1beta1CronJobSpec. + :param failed_jobs_history_limit: The failed_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 :type: int """ @@ -125,72 +123,70 @@ def failed_jobs_history_limit(self, failed_jobs_history_limit): @property def job_template(self): - """ - Gets the job_template of this V1beta1CronJobSpec. - Specifies the job that will be created when executing a CronJob. + """Gets the job_template of this V1beta1CronJobSpec. # noqa: E501 + - :return: The job_template of this V1beta1CronJobSpec. + :return: The job_template of this V1beta1CronJobSpec. # noqa: E501 :rtype: V1beta1JobTemplateSpec """ return self._job_template @job_template.setter def job_template(self, job_template): - """ - Sets the job_template of this V1beta1CronJobSpec. - Specifies the job that will be created when executing a CronJob. + """Sets the job_template of this V1beta1CronJobSpec. - :param job_template: The job_template of this V1beta1CronJobSpec. + + :param job_template: The job_template of this V1beta1CronJobSpec. # noqa: E501 :type: V1beta1JobTemplateSpec """ if job_template is None: - raise ValueError("Invalid value for `job_template`, must not be `None`") + raise ValueError("Invalid value for `job_template`, must not be `None`") # noqa: E501 self._job_template = job_template @property def schedule(self): - """ - Gets the schedule of this V1beta1CronJobSpec. - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + """Gets the schedule of this V1beta1CronJobSpec. # noqa: E501 + + The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501 - :return: The schedule of this V1beta1CronJobSpec. + :return: The schedule of this V1beta1CronJobSpec. # noqa: E501 :rtype: str """ return self._schedule @schedule.setter def schedule(self, schedule): - """ - Sets the schedule of this V1beta1CronJobSpec. - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + """Sets the schedule of this V1beta1CronJobSpec. + + The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501 - :param schedule: The schedule of this V1beta1CronJobSpec. + :param schedule: The schedule of this V1beta1CronJobSpec. # noqa: E501 :type: str """ if schedule is None: - raise ValueError("Invalid value for `schedule`, must not be `None`") + raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501 self._schedule = schedule @property def starting_deadline_seconds(self): - """ - Gets the starting_deadline_seconds of this V1beta1CronJobSpec. - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + """Gets the starting_deadline_seconds of this V1beta1CronJobSpec. # noqa: E501 + + Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. # noqa: E501 - :return: The starting_deadline_seconds of this V1beta1CronJobSpec. + :return: The starting_deadline_seconds of this V1beta1CronJobSpec. # noqa: E501 :rtype: int """ return self._starting_deadline_seconds @starting_deadline_seconds.setter def starting_deadline_seconds(self, starting_deadline_seconds): - """ - Sets the starting_deadline_seconds of this V1beta1CronJobSpec. - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + """Sets the starting_deadline_seconds of this V1beta1CronJobSpec. - :param starting_deadline_seconds: The starting_deadline_seconds of this V1beta1CronJobSpec. + Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. # noqa: E501 + + :param starting_deadline_seconds: The starting_deadline_seconds of this V1beta1CronJobSpec. # noqa: E501 :type: int """ @@ -198,22 +194,22 @@ def starting_deadline_seconds(self, starting_deadline_seconds): @property def successful_jobs_history_limit(self): - """ - Gets the successful_jobs_history_limit of this V1beta1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + """Gets the successful_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 + + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. # noqa: E501 - :return: The successful_jobs_history_limit of this V1beta1CronJobSpec. + :return: The successful_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 :rtype: int """ return self._successful_jobs_history_limit @successful_jobs_history_limit.setter def successful_jobs_history_limit(self, successful_jobs_history_limit): - """ - Sets the successful_jobs_history_limit of this V1beta1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + """Sets the successful_jobs_history_limit of this V1beta1CronJobSpec. + + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. # noqa: E501 - :param successful_jobs_history_limit: The successful_jobs_history_limit of this V1beta1CronJobSpec. + :param successful_jobs_history_limit: The successful_jobs_history_limit of this V1beta1CronJobSpec. # noqa: E501 :type: int """ @@ -221,34 +217,32 @@ def successful_jobs_history_limit(self, successful_jobs_history_limit): @property def suspend(self): - """ - Gets the suspend of this V1beta1CronJobSpec. - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """Gets the suspend of this V1beta1CronJobSpec. # noqa: E501 - :return: The suspend of this V1beta1CronJobSpec. + This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501 + + :return: The suspend of this V1beta1CronJobSpec. # noqa: E501 :rtype: bool """ return self._suspend @suspend.setter def suspend(self, suspend): - """ - Sets the suspend of this V1beta1CronJobSpec. - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """Sets the suspend of this V1beta1CronJobSpec. - :param suspend: The suspend of this V1beta1CronJobSpec. + This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501 + + :param suspend: The suspend of this V1beta1CronJobSpec. # noqa: E501 :type: bool """ self._suspend = suspend def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -269,28 +263,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CronJobSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_cron_job_status.py b/kubernetes/client/models/v1beta1_cron_job_status.py index 3e76659fd7..0ae61f6993 100644 --- a/kubernetes/client/models/v1beta1_cron_job_status.py +++ b/kubernetes/client/models/v1beta1_cron_job_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CronJobStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active': 'list[V1ObjectReference]', 'last_schedule_time': 'datetime' } @@ -40,38 +40,36 @@ class V1beta1CronJobStatus(object): 'last_schedule_time': 'lastScheduleTime' } - def __init__(self, active=None, last_schedule_time=None): - """ - V1beta1CronJobStatus - a model defined in Swagger - """ + def __init__(self, active=None, last_schedule_time=None): # noqa: E501 + """V1beta1CronJobStatus - a model defined in OpenAPI""" # noqa: E501 self._active = None self._last_schedule_time = None self.discriminator = None if active is not None: - self.active = active + self.active = active if last_schedule_time is not None: - self.last_schedule_time = last_schedule_time + self.last_schedule_time = last_schedule_time @property def active(self): - """ - Gets the active of this V1beta1CronJobStatus. - A list of pointers to currently running jobs. + """Gets the active of this V1beta1CronJobStatus. # noqa: E501 + + A list of pointers to currently running jobs. # noqa: E501 - :return: The active of this V1beta1CronJobStatus. + :return: The active of this V1beta1CronJobStatus. # noqa: E501 :rtype: list[V1ObjectReference] """ return self._active @active.setter def active(self, active): - """ - Sets the active of this V1beta1CronJobStatus. - A list of pointers to currently running jobs. + """Sets the active of this V1beta1CronJobStatus. - :param active: The active of this V1beta1CronJobStatus. + A list of pointers to currently running jobs. # noqa: E501 + + :param active: The active of this V1beta1CronJobStatus. # noqa: E501 :type: list[V1ObjectReference] """ @@ -79,34 +77,32 @@ def active(self, active): @property def last_schedule_time(self): - """ - Gets the last_schedule_time of this V1beta1CronJobStatus. - Information when was the last time the job was successfully scheduled. + """Gets the last_schedule_time of this V1beta1CronJobStatus. # noqa: E501 + + Information when was the last time the job was successfully scheduled. # noqa: E501 - :return: The last_schedule_time of this V1beta1CronJobStatus. + :return: The last_schedule_time of this V1beta1CronJobStatus. # noqa: E501 :rtype: datetime """ return self._last_schedule_time @last_schedule_time.setter def last_schedule_time(self, last_schedule_time): - """ - Sets the last_schedule_time of this V1beta1CronJobStatus. - Information when was the last time the job was successfully scheduled. + """Sets the last_schedule_time of this V1beta1CronJobStatus. + + Information when was the last time the job was successfully scheduled. # noqa: E501 - :param last_schedule_time: The last_schedule_time of this V1beta1CronJobStatus. + :param last_schedule_time: The last_schedule_time of this V1beta1CronJobStatus. # noqa: E501 :type: datetime """ self._last_schedule_time = last_schedule_time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CronJobStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_driver.py b/kubernetes/client/models/v1beta1_csi_driver.py index da1558e170..d7dc2bdc7b 100644 --- a/kubernetes/client/models/v1beta1_csi_driver.py +++ b/kubernetes/client/models/v1beta1_csi_driver.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSIDriver(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1beta1CSIDriver(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1beta1CSIDriver - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1beta1CSIDriver - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1beta1CSIDriver. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CSIDriver. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CSIDriver. + :return: The api_version of this V1beta1CSIDriver. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CSIDriver. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CSIDriver. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CSIDriver. + :param api_version: The api_version of this V1beta1CSIDriver. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1CSIDriver. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CSIDriver. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CSIDriver. + :return: The kind of this V1beta1CSIDriver. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CSIDriver. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CSIDriver. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CSIDriver. + :param kind: The kind of this V1beta1CSIDriver. # noqa: E501 :type: str """ @@ -111,22 +109,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CSIDriver. - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1CSIDriver. # noqa: E501 + - :return: The metadata of this V1beta1CSIDriver. + :return: The metadata of this V1beta1CSIDriver. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CSIDriver. - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1CSIDriver. + - :param metadata: The metadata of this V1beta1CSIDriver. + :param metadata: The metadata of this V1beta1CSIDriver. # noqa: E501 :type: V1ObjectMeta """ @@ -134,36 +130,32 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1CSIDriver. - Specification of the CSI Driver. + """Gets the spec of this V1beta1CSIDriver. # noqa: E501 + - :return: The spec of this V1beta1CSIDriver. + :return: The spec of this V1beta1CSIDriver. # noqa: E501 :rtype: V1beta1CSIDriverSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1CSIDriver. - Specification of the CSI Driver. + """Sets the spec of this V1beta1CSIDriver. + - :param spec: The spec of this V1beta1CSIDriver. + :param spec: The spec of this V1beta1CSIDriver. # noqa: E501 :type: V1beta1CSIDriverSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSIDriver): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_driver_list.py b/kubernetes/client/models/v1beta1_csi_driver_list.py index e7f50f8e71..d5ec9ae031 100644 --- a/kubernetes/client/models/v1beta1_csi_driver_list.py +++ b/kubernetes/client/models/v1beta1_csi_driver_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSIDriverList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1CSIDriver]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1CSIDriverList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CSIDriverList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1CSIDriverList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1CSIDriverList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CSIDriverList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CSIDriverList. + :return: The api_version of this V1beta1CSIDriverList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CSIDriverList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CSIDriverList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CSIDriverList. + :param api_version: The api_version of this V1beta1CSIDriverList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1CSIDriverList. - items is the list of CSIDriver + """Gets the items of this V1beta1CSIDriverList. # noqa: E501 + + items is the list of CSIDriver # noqa: E501 - :return: The items of this V1beta1CSIDriverList. + :return: The items of this V1beta1CSIDriverList. # noqa: E501 :rtype: list[V1beta1CSIDriver] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1CSIDriverList. - items is the list of CSIDriver + """Sets the items of this V1beta1CSIDriverList. + + items is the list of CSIDriver # noqa: E501 - :param items: The items of this V1beta1CSIDriverList. + :param items: The items of this V1beta1CSIDriverList. # noqa: E501 :type: list[V1beta1CSIDriver] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1CSIDriverList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CSIDriverList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CSIDriverList. + :return: The kind of this V1beta1CSIDriverList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CSIDriverList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CSIDriverList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CSIDriverList. + :param kind: The kind of this V1beta1CSIDriverList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CSIDriverList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1CSIDriverList. # noqa: E501 + - :return: The metadata of this V1beta1CSIDriverList. + :return: The metadata of this V1beta1CSIDriverList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CSIDriverList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1CSIDriverList. + - :param metadata: The metadata of this V1beta1CSIDriverList. + :param metadata: The metadata of this V1beta1CSIDriverList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSIDriverList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_driver_spec.py b/kubernetes/client/models/v1beta1_csi_driver_spec.py index 3f64c723f6..25d258710b 100644 --- a/kubernetes/client/models/v1beta1_csi_driver_spec.py +++ b/kubernetes/client/models/v1beta1_csi_driver_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSIDriverSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attach_required': 'bool', 'pod_info_on_mount': 'bool' } @@ -40,38 +40,36 @@ class V1beta1CSIDriverSpec(object): 'pod_info_on_mount': 'podInfoOnMount' } - def __init__(self, attach_required=None, pod_info_on_mount=None): - """ - V1beta1CSIDriverSpec - a model defined in Swagger - """ + def __init__(self, attach_required=None, pod_info_on_mount=None): # noqa: E501 + """V1beta1CSIDriverSpec - a model defined in OpenAPI""" # noqa: E501 self._attach_required = None self._pod_info_on_mount = None self.discriminator = None if attach_required is not None: - self.attach_required = attach_required + self.attach_required = attach_required if pod_info_on_mount is not None: - self.pod_info_on_mount = pod_info_on_mount + self.pod_info_on_mount = pod_info_on_mount @property def attach_required(self): - """ - Gets the attach_required of this V1beta1CSIDriverSpec. - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + """Gets the attach_required of this V1beta1CSIDriverSpec. # noqa: E501 + + attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. # noqa: E501 - :return: The attach_required of this V1beta1CSIDriverSpec. + :return: The attach_required of this V1beta1CSIDriverSpec. # noqa: E501 :rtype: bool """ return self._attach_required @attach_required.setter def attach_required(self, attach_required): - """ - Sets the attach_required of this V1beta1CSIDriverSpec. - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + """Sets the attach_required of this V1beta1CSIDriverSpec. - :param attach_required: The attach_required of this V1beta1CSIDriverSpec. + attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. # noqa: E501 + + :param attach_required: The attach_required of this V1beta1CSIDriverSpec. # noqa: E501 :type: bool """ @@ -79,34 +77,32 @@ def attach_required(self, attach_required): @property def pod_info_on_mount(self): - """ - Gets the pod_info_on_mount of this V1beta1CSIDriverSpec. - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) + """Gets the pod_info_on_mount of this V1beta1CSIDriverSpec. # noqa: E501 + + If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) # noqa: E501 - :return: The pod_info_on_mount of this V1beta1CSIDriverSpec. + :return: The pod_info_on_mount of this V1beta1CSIDriverSpec. # noqa: E501 :rtype: bool """ return self._pod_info_on_mount @pod_info_on_mount.setter def pod_info_on_mount(self, pod_info_on_mount): - """ - Sets the pod_info_on_mount of this V1beta1CSIDriverSpec. - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) + """Sets the pod_info_on_mount of this V1beta1CSIDriverSpec. + + If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) # noqa: E501 - :param pod_info_on_mount: The pod_info_on_mount of this V1beta1CSIDriverSpec. + :param pod_info_on_mount: The pod_info_on_mount of this V1beta1CSIDriverSpec. # noqa: E501 :type: bool """ self._pod_info_on_mount = pod_info_on_mount def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSIDriverSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_node.py b/kubernetes/client/models/v1beta1_csi_node.py index 71986c6619..0ec2b650b3 100644 --- a/kubernetes/client/models/v1beta1_csi_node.py +++ b/kubernetes/client/models/v1beta1_csi_node.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSINode(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1beta1CSINode(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1beta1CSINode - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1beta1CSINode - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1beta1CSINode. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CSINode. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CSINode. + :return: The api_version of this V1beta1CSINode. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CSINode. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CSINode. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CSINode. + :param api_version: The api_version of this V1beta1CSINode. # noqa: E501 :type: str """ @@ -88,22 +86,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1CSINode. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CSINode. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CSINode. + :return: The kind of this V1beta1CSINode. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CSINode. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CSINode. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CSINode. + :param kind: The kind of this V1beta1CSINode. # noqa: E501 :type: str """ @@ -111,22 +109,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CSINode. - metadata.name must be the Kubernetes node name. + """Gets the metadata of this V1beta1CSINode. # noqa: E501 + - :return: The metadata of this V1beta1CSINode. + :return: The metadata of this V1beta1CSINode. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CSINode. - metadata.name must be the Kubernetes node name. + """Sets the metadata of this V1beta1CSINode. + - :param metadata: The metadata of this V1beta1CSINode. + :param metadata: The metadata of this V1beta1CSINode. # noqa: E501 :type: V1ObjectMeta """ @@ -134,36 +130,32 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1CSINode. - spec is the specification of CSINode + """Gets the spec of this V1beta1CSINode. # noqa: E501 + - :return: The spec of this V1beta1CSINode. + :return: The spec of this V1beta1CSINode. # noqa: E501 :rtype: V1beta1CSINodeSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1CSINode. - spec is the specification of CSINode + """Sets the spec of this V1beta1CSINode. + - :param spec: The spec of this V1beta1CSINode. + :param spec: The spec of this V1beta1CSINode. # noqa: E501 :type: V1beta1CSINodeSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSINode): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_node_driver.py b/kubernetes/client/models/v1beta1_csi_node_driver.py index 57cb4bb48b..e42515669d 100644 --- a/kubernetes/client/models/v1beta1_csi_node_driver.py +++ b/kubernetes/client/models/v1beta1_csi_node_driver.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSINodeDriver(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'node_id': 'str', 'topology_keys': 'list[str]' @@ -42,10 +42,8 @@ class V1beta1CSINodeDriver(object): 'topology_keys': 'topologyKeys' } - def __init__(self, name=None, node_id=None, topology_keys=None): - """ - V1beta1CSINodeDriver - a model defined in Swagger - """ + def __init__(self, name=None, node_id=None, topology_keys=None): # noqa: E501 + """V1beta1CSINodeDriver - a model defined in OpenAPI""" # noqa: E501 self._name = None self._node_id = None @@ -55,88 +53,86 @@ def __init__(self, name=None, node_id=None, topology_keys=None): self.name = name self.node_id = node_id if topology_keys is not None: - self.topology_keys = topology_keys + self.topology_keys = topology_keys @property def name(self): - """ - Gets the name of this V1beta1CSINodeDriver. - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + """Gets the name of this V1beta1CSINodeDriver. # noqa: E501 - :return: The name of this V1beta1CSINodeDriver. + This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. # noqa: E501 + + :return: The name of this V1beta1CSINodeDriver. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1CSINodeDriver. - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + """Sets the name of this V1beta1CSINodeDriver. - :param name: The name of this V1beta1CSINodeDriver. + This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. # noqa: E501 + + :param name: The name of this V1beta1CSINodeDriver. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def node_id(self): - """ - Gets the node_id of this V1beta1CSINodeDriver. - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. + """Gets the node_id of this V1beta1CSINodeDriver. # noqa: E501 - :return: The node_id of this V1beta1CSINodeDriver. + nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. # noqa: E501 + + :return: The node_id of this V1beta1CSINodeDriver. # noqa: E501 :rtype: str """ return self._node_id @node_id.setter def node_id(self, node_id): - """ - Sets the node_id of this V1beta1CSINodeDriver. - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. + """Sets the node_id of this V1beta1CSINodeDriver. + + nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required. # noqa: E501 - :param node_id: The node_id of this V1beta1CSINodeDriver. + :param node_id: The node_id of this V1beta1CSINodeDriver. # noqa: E501 :type: str """ if node_id is None: - raise ValueError("Invalid value for `node_id`, must not be `None`") + raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501 self._node_id = node_id @property def topology_keys(self): - """ - Gets the topology_keys of this V1beta1CSINodeDriver. - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """Gets the topology_keys of this V1beta1CSINodeDriver. # noqa: E501 + + topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. # noqa: E501 - :return: The topology_keys of this V1beta1CSINodeDriver. + :return: The topology_keys of this V1beta1CSINodeDriver. # noqa: E501 :rtype: list[str] """ return self._topology_keys @topology_keys.setter def topology_keys(self, topology_keys): - """ - Sets the topology_keys of this V1beta1CSINodeDriver. - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """Sets the topology_keys of this V1beta1CSINodeDriver. + + topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. # noqa: E501 - :param topology_keys: The topology_keys of this V1beta1CSINodeDriver. + :param topology_keys: The topology_keys of this V1beta1CSINodeDriver. # noqa: E501 :type: list[str] """ self._topology_keys = topology_keys def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSINodeDriver): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_node_list.py b/kubernetes/client/models/v1beta1_csi_node_list.py index b5c37f2c04..3ee0004195 100644 --- a/kubernetes/client/models/v1beta1_csi_node_list.py +++ b/kubernetes/client/models/v1beta1_csi_node_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSINodeList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1CSINode]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1CSINodeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CSINodeList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1CSINodeList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1CSINodeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CSINodeList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CSINodeList. + :return: The api_version of this V1beta1CSINodeList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CSINodeList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CSINodeList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CSINodeList. + :param api_version: The api_version of this V1beta1CSINodeList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1CSINodeList. - items is the list of CSINode + """Gets the items of this V1beta1CSINodeList. # noqa: E501 + + items is the list of CSINode # noqa: E501 - :return: The items of this V1beta1CSINodeList. + :return: The items of this V1beta1CSINodeList. # noqa: E501 :rtype: list[V1beta1CSINode] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1CSINodeList. - items is the list of CSINode + """Sets the items of this V1beta1CSINodeList. + + items is the list of CSINode # noqa: E501 - :param items: The items of this V1beta1CSINodeList. + :param items: The items of this V1beta1CSINodeList. # noqa: E501 :type: list[V1beta1CSINode] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1CSINodeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CSINodeList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CSINodeList. + :return: The kind of this V1beta1CSINodeList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CSINodeList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CSINodeList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CSINodeList. + :param kind: The kind of this V1beta1CSINodeList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CSINodeList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1CSINodeList. # noqa: E501 + - :return: The metadata of this V1beta1CSINodeList. + :return: The metadata of this V1beta1CSINodeList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CSINodeList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1CSINodeList. + - :param metadata: The metadata of this V1beta1CSINodeList. + :param metadata: The metadata of this V1beta1CSINodeList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSINodeList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_csi_node_spec.py b/kubernetes/client/models/v1beta1_csi_node_spec.py index 5728f0ab6a..cdadc1ba8d 100644 --- a/kubernetes/client/models/v1beta1_csi_node_spec.py +++ b/kubernetes/client/models/v1beta1_csi_node_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CSINodeSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'drivers': 'list[V1beta1CSINodeDriver]' } @@ -38,10 +38,8 @@ class V1beta1CSINodeSpec(object): 'drivers': 'drivers' } - def __init__(self, drivers=None): - """ - V1beta1CSINodeSpec - a model defined in Swagger - """ + def __init__(self, drivers=None): # noqa: E501 + """V1beta1CSINodeSpec - a model defined in OpenAPI""" # noqa: E501 self._drivers = None self.discriminator = None @@ -50,36 +48,34 @@ def __init__(self, drivers=None): @property def drivers(self): - """ - Gets the drivers of this V1beta1CSINodeSpec. - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + """Gets the drivers of this V1beta1CSINodeSpec. # noqa: E501 + + drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. # noqa: E501 - :return: The drivers of this V1beta1CSINodeSpec. + :return: The drivers of this V1beta1CSINodeSpec. # noqa: E501 :rtype: list[V1beta1CSINodeDriver] """ return self._drivers @drivers.setter def drivers(self, drivers): - """ - Sets the drivers of this V1beta1CSINodeSpec. - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + """Sets the drivers of this V1beta1CSINodeSpec. + + drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. # noqa: E501 - :param drivers: The drivers of this V1beta1CSINodeSpec. + :param drivers: The drivers of this V1beta1CSINodeSpec. # noqa: E501 :type: list[V1beta1CSINodeDriver] """ if drivers is None: - raise ValueError("Invalid value for `drivers`, must not be `None`") + raise ValueError("Invalid value for `drivers`, must not be `None`") # noqa: E501 self._drivers = drivers def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -100,28 +96,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CSINodeSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_column_definition.py b/kubernetes/client/models/v1beta1_custom_resource_column_definition.py index cbd021c749..57801f7ce6 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_column_definition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_column_definition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceColumnDefinition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'json_path': 'str', 'description': 'str', 'format': 'str', @@ -48,10 +48,8 @@ class V1beta1CustomResourceColumnDefinition(object): 'type': 'type' } - def __init__(self, json_path=None, description=None, format=None, name=None, priority=None, type=None): - """ - V1beta1CustomResourceColumnDefinition - a model defined in Swagger - """ + def __init__(self, json_path=None, description=None, format=None, name=None, priority=None, type=None): # noqa: E501 + """V1beta1CustomResourceColumnDefinition - a model defined in OpenAPI""" # noqa: E501 self._json_path = None self._description = None @@ -63,57 +61,57 @@ def __init__(self, json_path=None, description=None, format=None, name=None, pri self.json_path = json_path if description is not None: - self.description = description + self.description = description if format is not None: - self.format = format + self.format = format self.name = name if priority is not None: - self.priority = priority + self.priority = priority self.type = type @property def json_path(self): - """ - Gets the json_path of this V1beta1CustomResourceColumnDefinition. - JSONPath is a simple JSON path, i.e. with array notation. + """Gets the json_path of this V1beta1CustomResourceColumnDefinition. # noqa: E501 + + JSONPath is a simple JSON path, i.e. with array notation. # noqa: E501 - :return: The json_path of this V1beta1CustomResourceColumnDefinition. + :return: The json_path of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: str """ return self._json_path @json_path.setter def json_path(self, json_path): - """ - Sets the json_path of this V1beta1CustomResourceColumnDefinition. - JSONPath is a simple JSON path, i.e. with array notation. + """Sets the json_path of this V1beta1CustomResourceColumnDefinition. + + JSONPath is a simple JSON path, i.e. with array notation. # noqa: E501 - :param json_path: The json_path of this V1beta1CustomResourceColumnDefinition. + :param json_path: The json_path of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ if json_path is None: - raise ValueError("Invalid value for `json_path`, must not be `None`") + raise ValueError("Invalid value for `json_path`, must not be `None`") # noqa: E501 self._json_path = json_path @property def description(self): - """ - Gets the description of this V1beta1CustomResourceColumnDefinition. - description is a human readable description of this column. + """Gets the description of this V1beta1CustomResourceColumnDefinition. # noqa: E501 + + description is a human readable description of this column. # noqa: E501 - :return: The description of this V1beta1CustomResourceColumnDefinition. + :return: The description of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1beta1CustomResourceColumnDefinition. - description is a human readable description of this column. + """Sets the description of this V1beta1CustomResourceColumnDefinition. - :param description: The description of this V1beta1CustomResourceColumnDefinition. + description is a human readable description of this column. # noqa: E501 + + :param description: The description of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ @@ -121,22 +119,22 @@ def description(self, description): @property def format(self): - """ - Gets the format of this V1beta1CustomResourceColumnDefinition. - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. + """Gets the format of this V1beta1CustomResourceColumnDefinition. # noqa: E501 - :return: The format of this V1beta1CustomResourceColumnDefinition. + format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. # noqa: E501 + + :return: The format of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this V1beta1CustomResourceColumnDefinition. - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. + """Sets the format of this V1beta1CustomResourceColumnDefinition. + + format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. # noqa: E501 - :param format: The format of this V1beta1CustomResourceColumnDefinition. + :param format: The format of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ @@ -144,47 +142,47 @@ def format(self, format): @property def name(self): - """ - Gets the name of this V1beta1CustomResourceColumnDefinition. - name is a human readable name for the column. + """Gets the name of this V1beta1CustomResourceColumnDefinition. # noqa: E501 + + name is a human readable name for the column. # noqa: E501 - :return: The name of this V1beta1CustomResourceColumnDefinition. + :return: The name of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1CustomResourceColumnDefinition. - name is a human readable name for the column. + """Sets the name of this V1beta1CustomResourceColumnDefinition. + + name is a human readable name for the column. # noqa: E501 - :param name: The name of this V1beta1CustomResourceColumnDefinition. + :param name: The name of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def priority(self): - """ - Gets the priority of this V1beta1CustomResourceColumnDefinition. - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. + """Gets the priority of this V1beta1CustomResourceColumnDefinition. # noqa: E501 - :return: The priority of this V1beta1CustomResourceColumnDefinition. + priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. # noqa: E501 + + :return: The priority of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: int """ return self._priority @priority.setter def priority(self, priority): - """ - Sets the priority of this V1beta1CustomResourceColumnDefinition. - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. + """Sets the priority of this V1beta1CustomResourceColumnDefinition. - :param priority: The priority of this V1beta1CustomResourceColumnDefinition. + priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. # noqa: E501 + + :param priority: The priority of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: int """ @@ -192,36 +190,34 @@ def priority(self, priority): @property def type(self): - """ - Gets the type of this V1beta1CustomResourceColumnDefinition. - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. + """Gets the type of this V1beta1CustomResourceColumnDefinition. # noqa: E501 + + type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. # noqa: E501 - :return: The type of this V1beta1CustomResourceColumnDefinition. + :return: The type of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1CustomResourceColumnDefinition. - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. + """Sets the type of this V1beta1CustomResourceColumnDefinition. + + type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. # noqa: E501 - :param type: The type of this V1beta1CustomResourceColumnDefinition. + :param type: The type of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -242,28 +238,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceColumnDefinition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_conversion.py b/kubernetes/client/models/v1beta1_custom_resource_conversion.py index beb4c467ee..530a86f8de 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_conversion.py +++ b/kubernetes/client/models/v1beta1_custom_resource_conversion.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceConversion(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conversion_review_versions': 'list[str]', 'strategy': 'str', 'webhook_client_config': 'ApiextensionsV1beta1WebhookClientConfig' @@ -42,10 +42,8 @@ class V1beta1CustomResourceConversion(object): 'webhook_client_config': 'webhookClientConfig' } - def __init__(self, conversion_review_versions=None, strategy=None, webhook_client_config=None): - """ - V1beta1CustomResourceConversion - a model defined in Swagger - """ + def __init__(self, conversion_review_versions=None, strategy=None, webhook_client_config=None): # noqa: E501 + """V1beta1CustomResourceConversion - a model defined in OpenAPI""" # noqa: E501 self._conversion_review_versions = None self._strategy = None @@ -53,29 +51,29 @@ def __init__(self, conversion_review_versions=None, strategy=None, webhook_clien self.discriminator = None if conversion_review_versions is not None: - self.conversion_review_versions = conversion_review_versions + self.conversion_review_versions = conversion_review_versions self.strategy = strategy if webhook_client_config is not None: - self.webhook_client_config = webhook_client_config + self.webhook_client_config = webhook_client_config @property def conversion_review_versions(self): - """ - Gets the conversion_review_versions of this V1beta1CustomResourceConversion. - ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. + """Gets the conversion_review_versions of this V1beta1CustomResourceConversion. # noqa: E501 - :return: The conversion_review_versions of this V1beta1CustomResourceConversion. + ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. # noqa: E501 + + :return: The conversion_review_versions of this V1beta1CustomResourceConversion. # noqa: E501 :rtype: list[str] """ return self._conversion_review_versions @conversion_review_versions.setter def conversion_review_versions(self, conversion_review_versions): - """ - Sets the conversion_review_versions of this V1beta1CustomResourceConversion. - ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. + """Sets the conversion_review_versions of this V1beta1CustomResourceConversion. - :param conversion_review_versions: The conversion_review_versions of this V1beta1CustomResourceConversion. + ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. # noqa: E501 + + :param conversion_review_versions: The conversion_review_versions of this V1beta1CustomResourceConversion. # noqa: E501 :type: list[str] """ @@ -83,59 +81,55 @@ def conversion_review_versions(self, conversion_review_versions): @property def strategy(self): - """ - Gets the strategy of this V1beta1CustomResourceConversion. - `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. + """Gets the strategy of this V1beta1CustomResourceConversion. # noqa: E501 - :return: The strategy of this V1beta1CustomResourceConversion. + `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false. # noqa: E501 + + :return: The strategy of this V1beta1CustomResourceConversion. # noqa: E501 :rtype: str """ return self._strategy @strategy.setter def strategy(self, strategy): - """ - Sets the strategy of this V1beta1CustomResourceConversion. - `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. + """Sets the strategy of this V1beta1CustomResourceConversion. + + `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false. # noqa: E501 - :param strategy: The strategy of this V1beta1CustomResourceConversion. + :param strategy: The strategy of this V1beta1CustomResourceConversion. # noqa: E501 :type: str """ if strategy is None: - raise ValueError("Invalid value for `strategy`, must not be `None`") + raise ValueError("Invalid value for `strategy`, must not be `None`") # noqa: E501 self._strategy = strategy @property def webhook_client_config(self): - """ - Gets the webhook_client_config of this V1beta1CustomResourceConversion. - `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Gets the webhook_client_config of this V1beta1CustomResourceConversion. # noqa: E501 + - :return: The webhook_client_config of this V1beta1CustomResourceConversion. + :return: The webhook_client_config of this V1beta1CustomResourceConversion. # noqa: E501 :rtype: ApiextensionsV1beta1WebhookClientConfig """ return self._webhook_client_config @webhook_client_config.setter def webhook_client_config(self, webhook_client_config): - """ - Sets the webhook_client_config of this V1beta1CustomResourceConversion. - `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Sets the webhook_client_config of this V1beta1CustomResourceConversion. + - :param webhook_client_config: The webhook_client_config of this V1beta1CustomResourceConversion. + :param webhook_client_config: The webhook_client_config of this V1beta1CustomResourceConversion. # noqa: E501 :type: ApiextensionsV1beta1WebhookClientConfig """ self._webhook_client_config = webhook_client_config def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +150,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceConversion): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition.py b/kubernetes/client/models/v1beta1_custom_resource_definition.py index 331dd634ce..4c5546b7a8 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1CustomResourceDefinition(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1CustomResourceDefinition - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1CustomResourceDefinition - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1CustomResourceDefinition. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CustomResourceDefinition. # noqa: E501 - :return: The api_version of this V1beta1CustomResourceDefinition. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1CustomResourceDefinition. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CustomResourceDefinition. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CustomResourceDefinition. - :param api_version: The api_version of this V1beta1CustomResourceDefinition. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1CustomResourceDefinition. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1CustomResourceDefinition. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CustomResourceDefinition. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CustomResourceDefinition. + :return: The kind of this V1beta1CustomResourceDefinition. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CustomResourceDefinition. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CustomResourceDefinition. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CustomResourceDefinition. + :param kind: The kind of this V1beta1CustomResourceDefinition. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CustomResourceDefinition. + """Gets the metadata of this V1beta1CustomResourceDefinition. # noqa: E501 + - :return: The metadata of this V1beta1CustomResourceDefinition. + :return: The metadata of this V1beta1CustomResourceDefinition. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CustomResourceDefinition. + """Sets the metadata of this V1beta1CustomResourceDefinition. + - :param metadata: The metadata of this V1beta1CustomResourceDefinition. + :param metadata: The metadata of this V1beta1CustomResourceDefinition. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1CustomResourceDefinition. - Spec describes how the user wants the resources to appear + """Gets the spec of this V1beta1CustomResourceDefinition. # noqa: E501 + - :return: The spec of this V1beta1CustomResourceDefinition. + :return: The spec of this V1beta1CustomResourceDefinition. # noqa: E501 :rtype: V1beta1CustomResourceDefinitionSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1CustomResourceDefinition. - Spec describes how the user wants the resources to appear + """Sets the spec of this V1beta1CustomResourceDefinition. - :param spec: The spec of this V1beta1CustomResourceDefinition. + + :param spec: The spec of this V1beta1CustomResourceDefinition. # noqa: E501 :type: V1beta1CustomResourceDefinitionSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1CustomResourceDefinition. - Status indicates the actual state of the CustomResourceDefinition + """Gets the status of this V1beta1CustomResourceDefinition. # noqa: E501 - :return: The status of this V1beta1CustomResourceDefinition. + + :return: The status of this V1beta1CustomResourceDefinition. # noqa: E501 :rtype: V1beta1CustomResourceDefinitionStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1CustomResourceDefinition. - Status indicates the actual state of the CustomResourceDefinition + """Sets the status of this V1beta1CustomResourceDefinition. - :param status: The status of this V1beta1CustomResourceDefinition. + + :param status: The status of this V1beta1CustomResourceDefinition. # noqa: E501 :type: V1beta1CustomResourceDefinitionStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py b/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py index 5ffcd7521c..6e0e7981b5 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta1CustomResourceDefinitionCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta1CustomResourceDefinitionCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta1CustomResourceDefinitionCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta1CustomResourceDefinitionCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 - :return: The last_transition_time of this V1beta1CustomResourceDefinitionCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta1CustomResourceDefinitionCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta1CustomResourceDefinitionCondition. - :param last_transition_time: The last_transition_time of this V1beta1CustomResourceDefinitionCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta1CustomResourceDefinitionCondition. - Human-readable message indicating details about last transition. + """Gets the message of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 + + Human-readable message indicating details about last transition. # noqa: E501 - :return: The message of this V1beta1CustomResourceDefinitionCondition. + :return: The message of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1CustomResourceDefinitionCondition. - Human-readable message indicating details about last transition. + """Sets the message of this V1beta1CustomResourceDefinitionCondition. + + Human-readable message indicating details about last transition. # noqa: E501 - :param message: The message of this V1beta1CustomResourceDefinitionCondition. + :param message: The message of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1CustomResourceDefinitionCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Gets the reason of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta1CustomResourceDefinitionCondition. + :return: The reason of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1CustomResourceDefinitionCondition. - Unique, one-word, CamelCase reason for the condition's last transition. + """Sets the reason of this V1beta1CustomResourceDefinitionCondition. + + Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta1CustomResourceDefinitionCondition. + :param reason: The reason of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta1CustomResourceDefinitionCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Gets the status of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 + + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 - :return: The status of this V1beta1CustomResourceDefinitionCondition. + :return: The status of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1CustomResourceDefinitionCondition. - Status is the status of the condition. Can be True, False, Unknown. + """Sets the status of this V1beta1CustomResourceDefinitionCondition. - :param status: The status of this V1beta1CustomResourceDefinitionCondition. + Status is the status of the condition. Can be True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta1CustomResourceDefinitionCondition. - Type is the type of the condition. + """Gets the type of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 - :return: The type of this V1beta1CustomResourceDefinitionCondition. + Type is the type of the condition. Types include Established, NamesAccepted and Terminating. # noqa: E501 + + :return: The type of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1CustomResourceDefinitionCondition. - Type is the type of the condition. + """Sets the type of this V1beta1CustomResourceDefinitionCondition. - :param type: The type of this V1beta1CustomResourceDefinitionCondition. + Type is the type of the condition. Types include Established, NamesAccepted and Terminating. # noqa: E501 + + :param type: The type of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_list.py b/kubernetes/client/models/v1beta1_custom_resource_definition_list.py index c23819dc9f..69f78b4f9d 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_list.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1CustomResourceDefinition]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1CustomResourceDefinitionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1CustomResourceDefinitionList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1CustomResourceDefinitionList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1CustomResourceDefinitionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1CustomResourceDefinitionList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1CustomResourceDefinitionList. + :return: The api_version of this V1beta1CustomResourceDefinitionList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1CustomResourceDefinitionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1CustomResourceDefinitionList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1CustomResourceDefinitionList. + :param api_version: The api_version of this V1beta1CustomResourceDefinitionList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1CustomResourceDefinitionList. - Items individual CustomResourceDefinitions + """Gets the items of this V1beta1CustomResourceDefinitionList. # noqa: E501 + + Items individual CustomResourceDefinitions # noqa: E501 - :return: The items of this V1beta1CustomResourceDefinitionList. + :return: The items of this V1beta1CustomResourceDefinitionList. # noqa: E501 :rtype: list[V1beta1CustomResourceDefinition] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1CustomResourceDefinitionList. - Items individual CustomResourceDefinitions + """Sets the items of this V1beta1CustomResourceDefinitionList. + + Items individual CustomResourceDefinitions # noqa: E501 - :param items: The items of this V1beta1CustomResourceDefinitionList. + :param items: The items of this V1beta1CustomResourceDefinitionList. # noqa: E501 :type: list[V1beta1CustomResourceDefinition] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1CustomResourceDefinitionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1CustomResourceDefinitionList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1CustomResourceDefinitionList. + :return: The kind of this V1beta1CustomResourceDefinitionList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CustomResourceDefinitionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1CustomResourceDefinitionList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1CustomResourceDefinitionList. + :param kind: The kind of this V1beta1CustomResourceDefinitionList. # noqa: E501 :type: str """ @@ -136,32 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1CustomResourceDefinitionList. + """Gets the metadata of this V1beta1CustomResourceDefinitionList. # noqa: E501 + - :return: The metadata of this V1beta1CustomResourceDefinitionList. + :return: The metadata of this V1beta1CustomResourceDefinitionList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1CustomResourceDefinitionList. + """Sets the metadata of this V1beta1CustomResourceDefinitionList. + - :param metadata: The metadata of this V1beta1CustomResourceDefinitionList. + :param metadata: The metadata of this V1beta1CustomResourceDefinitionList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -182,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_names.py b/kubernetes/client/models/v1beta1_custom_resource_definition_names.py index 0a304e7de1..8d54602391 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_names.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_names.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionNames(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'categories': 'list[str]', 'kind': 'str', 'list_kind': 'str', @@ -48,10 +48,8 @@ class V1beta1CustomResourceDefinitionNames(object): 'singular': 'singular' } - def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None): - """ - V1beta1CustomResourceDefinitionNames - a model defined in Swagger - """ + def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None): # noqa: E501 + """V1beta1CustomResourceDefinitionNames - a model defined in OpenAPI""" # noqa: E501 self._categories = None self._kind = None @@ -62,34 +60,34 @@ def __init__(self, categories=None, kind=None, list_kind=None, plural=None, shor self.discriminator = None if categories is not None: - self.categories = categories + self.categories = categories self.kind = kind if list_kind is not None: - self.list_kind = list_kind + self.list_kind = list_kind self.plural = plural if short_names is not None: - self.short_names = short_names + self.short_names = short_names if singular is not None: - self.singular = singular + self.singular = singular @property def categories(self): - """ - Gets the categories of this V1beta1CustomResourceDefinitionNames. - Categories is a list of grouped resources custom resources belong to (e.g. 'all') + """Gets the categories of this V1beta1CustomResourceDefinitionNames. # noqa: E501 + + Categories is a list of grouped resources custom resources belong to (e.g. 'all') # noqa: E501 - :return: The categories of this V1beta1CustomResourceDefinitionNames. + :return: The categories of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: list[str] """ return self._categories @categories.setter def categories(self, categories): - """ - Sets the categories of this V1beta1CustomResourceDefinitionNames. - Categories is a list of grouped resources custom resources belong to (e.g. 'all') + """Sets the categories of this V1beta1CustomResourceDefinitionNames. + + Categories is a list of grouped resources custom resources belong to (e.g. 'all') # noqa: E501 - :param categories: The categories of this V1beta1CustomResourceDefinitionNames. + :param categories: The categories of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: list[str] """ @@ -97,47 +95,47 @@ def categories(self, categories): @property def kind(self): - """ - Gets the kind of this V1beta1CustomResourceDefinitionNames. - Kind is the serialized kind of the resource. It is normally CamelCase and singular. + """Gets the kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 + + Kind is the serialized kind of the resource. It is normally CamelCase and singular. # noqa: E501 - :return: The kind of this V1beta1CustomResourceDefinitionNames. + :return: The kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1CustomResourceDefinitionNames. - Kind is the serialized kind of the resource. It is normally CamelCase and singular. + """Sets the kind of this V1beta1CustomResourceDefinitionNames. - :param kind: The kind of this V1beta1CustomResourceDefinitionNames. + Kind is the serialized kind of the resource. It is normally CamelCase and singular. # noqa: E501 + + :param kind: The kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def list_kind(self): - """ - Gets the list_kind of this V1beta1CustomResourceDefinitionNames. - ListKind is the serialized kind of the list for this resource. Defaults to List. + """Gets the list_kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 - :return: The list_kind of this V1beta1CustomResourceDefinitionNames. + ListKind is the serialized kind of the list for this resource. Defaults to List. # noqa: E501 + + :return: The list_kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: str """ return self._list_kind @list_kind.setter def list_kind(self, list_kind): - """ - Sets the list_kind of this V1beta1CustomResourceDefinitionNames. - ListKind is the serialized kind of the list for this resource. Defaults to List. + """Sets the list_kind of this V1beta1CustomResourceDefinitionNames. + + ListKind is the serialized kind of the list for this resource. Defaults to List. # noqa: E501 - :param list_kind: The list_kind of this V1beta1CustomResourceDefinitionNames. + :param list_kind: The list_kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ @@ -145,47 +143,47 @@ def list_kind(self, list_kind): @property def plural(self): - """ - Gets the plural of this V1beta1CustomResourceDefinitionNames. - Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase. + """Gets the plural of this V1beta1CustomResourceDefinitionNames. # noqa: E501 + + Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase. # noqa: E501 - :return: The plural of this V1beta1CustomResourceDefinitionNames. + :return: The plural of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: str """ return self._plural @plural.setter def plural(self, plural): - """ - Sets the plural of this V1beta1CustomResourceDefinitionNames. - Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase. + """Sets the plural of this V1beta1CustomResourceDefinitionNames. + + Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase. # noqa: E501 - :param plural: The plural of this V1beta1CustomResourceDefinitionNames. + :param plural: The plural of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ if plural is None: - raise ValueError("Invalid value for `plural`, must not be `None`") + raise ValueError("Invalid value for `plural`, must not be `None`") # noqa: E501 self._plural = plural @property def short_names(self): - """ - Gets the short_names of this V1beta1CustomResourceDefinitionNames. - ShortNames are short names for the resource. It must be all lowercase. + """Gets the short_names of this V1beta1CustomResourceDefinitionNames. # noqa: E501 - :return: The short_names of this V1beta1CustomResourceDefinitionNames. + ShortNames are short names for the resource. It must be all lowercase. # noqa: E501 + + :return: The short_names of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: list[str] """ return self._short_names @short_names.setter def short_names(self, short_names): - """ - Sets the short_names of this V1beta1CustomResourceDefinitionNames. - ShortNames are short names for the resource. It must be all lowercase. + """Sets the short_names of this V1beta1CustomResourceDefinitionNames. - :param short_names: The short_names of this V1beta1CustomResourceDefinitionNames. + ShortNames are short names for the resource. It must be all lowercase. # noqa: E501 + + :param short_names: The short_names of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: list[str] """ @@ -193,34 +191,32 @@ def short_names(self, short_names): @property def singular(self): - """ - Gets the singular of this V1beta1CustomResourceDefinitionNames. - Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased + """Gets the singular of this V1beta1CustomResourceDefinitionNames. # noqa: E501 + + Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased # noqa: E501 - :return: The singular of this V1beta1CustomResourceDefinitionNames. + :return: The singular of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :rtype: str """ return self._singular @singular.setter def singular(self, singular): - """ - Sets the singular of this V1beta1CustomResourceDefinitionNames. - Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased + """Sets the singular of this V1beta1CustomResourceDefinitionNames. + + Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased # noqa: E501 - :param singular: The singular of this V1beta1CustomResourceDefinitionNames. + :param singular: The singular of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ self._singular = singular def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionNames): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py b/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py index 36884e5b87..74e735c665 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py @@ -3,38 +3,39 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'additional_printer_columns': 'list[V1beta1CustomResourceColumnDefinition]', 'conversion': 'V1beta1CustomResourceConversion', 'group': 'str', 'names': 'V1beta1CustomResourceDefinitionNames', + 'preserve_unknown_fields': 'bool', 'scope': 'str', 'subresources': 'V1beta1CustomResourceSubresources', 'validation': 'V1beta1CustomResourceValidation', @@ -47,6 +48,7 @@ class V1beta1CustomResourceDefinitionSpec(object): 'conversion': 'conversion', 'group': 'group', 'names': 'names', + 'preserve_unknown_fields': 'preserveUnknownFields', 'scope': 'scope', 'subresources': 'subresources', 'validation': 'validation', @@ -54,15 +56,14 @@ class V1beta1CustomResourceDefinitionSpec(object): 'versions': 'versions' } - def __init__(self, additional_printer_columns=None, conversion=None, group=None, names=None, scope=None, subresources=None, validation=None, version=None, versions=None): - """ - V1beta1CustomResourceDefinitionSpec - a model defined in Swagger - """ + def __init__(self, additional_printer_columns=None, conversion=None, group=None, names=None, preserve_unknown_fields=None, scope=None, subresources=None, validation=None, version=None, versions=None): # noqa: E501 + """V1beta1CustomResourceDefinitionSpec - a model defined in OpenAPI""" # noqa: E501 self._additional_printer_columns = None self._conversion = None self._group = None self._names = None + self._preserve_unknown_fields = None self._scope = None self._subresources = None self._validation = None @@ -71,39 +72,41 @@ def __init__(self, additional_printer_columns=None, conversion=None, group=None, self.discriminator = None if additional_printer_columns is not None: - self.additional_printer_columns = additional_printer_columns + self.additional_printer_columns = additional_printer_columns if conversion is not None: - self.conversion = conversion + self.conversion = conversion self.group = group self.names = names + if preserve_unknown_fields is not None: + self.preserve_unknown_fields = preserve_unknown_fields self.scope = scope if subresources is not None: - self.subresources = subresources + self.subresources = subresources if validation is not None: - self.validation = validation + self.validation = validation if version is not None: - self.version = version + self.version = version if versions is not None: - self.versions = versions + self.versions = versions @property def additional_printer_columns(self): - """ - Gets the additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. - AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. + """Gets the additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + + AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. # noqa: E501 - :return: The additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. + :return: The additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: list[V1beta1CustomResourceColumnDefinition] """ return self._additional_printer_columns @additional_printer_columns.setter def additional_printer_columns(self, additional_printer_columns): - """ - Sets the additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. - AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. + """Sets the additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. + + AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. # noqa: E501 - :param additional_printer_columns: The additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. + :param additional_printer_columns: The additional_printer_columns of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: list[V1beta1CustomResourceColumnDefinition] """ @@ -111,22 +114,20 @@ def additional_printer_columns(self, additional_printer_columns): @property def conversion(self): - """ - Gets the conversion of this V1beta1CustomResourceDefinitionSpec. - `conversion` defines conversion settings for the CRD. + """Gets the conversion of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + - :return: The conversion of this V1beta1CustomResourceDefinitionSpec. + :return: The conversion of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: V1beta1CustomResourceConversion """ return self._conversion @conversion.setter def conversion(self, conversion): - """ - Sets the conversion of this V1beta1CustomResourceDefinitionSpec. - `conversion` defines conversion settings for the CRD. + """Sets the conversion of this V1beta1CustomResourceDefinitionSpec. + - :param conversion: The conversion of this V1beta1CustomResourceDefinitionSpec. + :param conversion: The conversion of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: V1beta1CustomResourceConversion """ @@ -134,97 +135,116 @@ def conversion(self, conversion): @property def group(self): - """ - Gets the group of this V1beta1CustomResourceDefinitionSpec. - Group is the group this resource belongs in + """Gets the group of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + + Group is the group this resource belongs in # noqa: E501 - :return: The group of this V1beta1CustomResourceDefinitionSpec. + :return: The group of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1beta1CustomResourceDefinitionSpec. - Group is the group this resource belongs in + """Sets the group of this V1beta1CustomResourceDefinitionSpec. + + Group is the group this resource belongs in # noqa: E501 - :param group: The group of this V1beta1CustomResourceDefinitionSpec. + :param group: The group of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ if group is None: - raise ValueError("Invalid value for `group`, must not be `None`") + raise ValueError("Invalid value for `group`, must not be `None`") # noqa: E501 self._group = group @property def names(self): - """ - Gets the names of this V1beta1CustomResourceDefinitionSpec. - Names are the names used to describe this custom resource + """Gets the names of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + - :return: The names of this V1beta1CustomResourceDefinitionSpec. + :return: The names of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: V1beta1CustomResourceDefinitionNames """ return self._names @names.setter def names(self, names): - """ - Sets the names of this V1beta1CustomResourceDefinitionSpec. - Names are the names used to describe this custom resource + """Sets the names of this V1beta1CustomResourceDefinitionSpec. + - :param names: The names of this V1beta1CustomResourceDefinitionSpec. + :param names: The names of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: V1beta1CustomResourceDefinitionNames """ if names is None: - raise ValueError("Invalid value for `names`, must not be `None`") + raise ValueError("Invalid value for `names`, must not be `None`") # noqa: E501 self._names = names @property - def scope(self): + def preserve_unknown_fields(self): + """Gets the preserve_unknown_fields of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + + preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1. # noqa: E501 + + :return: The preserve_unknown_fields of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + :rtype: bool """ - Gets the scope of this V1beta1CustomResourceDefinitionSpec. - Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced + return self._preserve_unknown_fields + + @preserve_unknown_fields.setter + def preserve_unknown_fields(self, preserve_unknown_fields): + """Sets the preserve_unknown_fields of this V1beta1CustomResourceDefinitionSpec. + + preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1. # noqa: E501 + + :param preserve_unknown_fields: The preserve_unknown_fields of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 + :type: bool + """ + + self._preserve_unknown_fields = preserve_unknown_fields + + @property + def scope(self): + """Gets the scope of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 - :return: The scope of this V1beta1CustomResourceDefinitionSpec. + Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced # noqa: E501 + + :return: The scope of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: str """ return self._scope @scope.setter def scope(self, scope): - """ - Sets the scope of this V1beta1CustomResourceDefinitionSpec. - Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced + """Sets the scope of this V1beta1CustomResourceDefinitionSpec. - :param scope: The scope of this V1beta1CustomResourceDefinitionSpec. + Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced # noqa: E501 + + :param scope: The scope of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ if scope is None: - raise ValueError("Invalid value for `scope`, must not be `None`") + raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501 self._scope = scope @property def subresources(self): - """ - Gets the subresources of this V1beta1CustomResourceDefinitionSpec. - Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive. + """Gets the subresources of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 - :return: The subresources of this V1beta1CustomResourceDefinitionSpec. + + :return: The subresources of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: V1beta1CustomResourceSubresources """ return self._subresources @subresources.setter def subresources(self, subresources): - """ - Sets the subresources of this V1beta1CustomResourceDefinitionSpec. - Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive. + """Sets the subresources of this V1beta1CustomResourceDefinitionSpec. - :param subresources: The subresources of this V1beta1CustomResourceDefinitionSpec. + + :param subresources: The subresources of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: V1beta1CustomResourceSubresources """ @@ -232,22 +252,20 @@ def subresources(self, subresources): @property def validation(self): - """ - Gets the validation of this V1beta1CustomResourceDefinitionSpec. - Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive. + """Gets the validation of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 - :return: The validation of this V1beta1CustomResourceDefinitionSpec. + + :return: The validation of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: V1beta1CustomResourceValidation """ return self._validation @validation.setter def validation(self, validation): - """ - Sets the validation of this V1beta1CustomResourceDefinitionSpec. - Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive. + """Sets the validation of this V1beta1CustomResourceDefinitionSpec. - :param validation: The validation of this V1beta1CustomResourceDefinitionSpec. + + :param validation: The validation of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: V1beta1CustomResourceValidation """ @@ -255,22 +273,22 @@ def validation(self, validation): @property def version(self): - """ - Gets the version of this V1beta1CustomResourceDefinitionSpec. - Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. + """Gets the version of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 - :return: The version of this V1beta1CustomResourceDefinitionSpec. + Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. # noqa: E501 + + :return: The version of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1beta1CustomResourceDefinitionSpec. - Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. + """Sets the version of this V1beta1CustomResourceDefinitionSpec. - :param version: The version of this V1beta1CustomResourceDefinitionSpec. + Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. # noqa: E501 + + :param version: The version of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ @@ -278,34 +296,32 @@ def version(self, version): @property def versions(self): - """ - Gets the versions of this V1beta1CustomResourceDefinitionSpec. - Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Gets the versions of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 - :return: The versions of this V1beta1CustomResourceDefinitionSpec. + Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :return: The versions of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :rtype: list[V1beta1CustomResourceDefinitionVersion] """ return self._versions @versions.setter def versions(self, versions): - """ - Sets the versions of this V1beta1CustomResourceDefinitionSpec. - Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """Sets the versions of this V1beta1CustomResourceDefinitionSpec. - :param versions: The versions of this V1beta1CustomResourceDefinitionSpec. + Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. # noqa: E501 + + :param versions: The versions of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: list[V1beta1CustomResourceDefinitionVersion] """ self._versions = versions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -326,28 +342,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_status.py b/kubernetes/client/models/v1beta1_custom_resource_definition_status.py index 4b10a8a619..288c170f9c 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_status.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'accepted_names': 'V1beta1CustomResourceDefinitionNames', 'conditions': 'list[V1beta1CustomResourceDefinitionCondition]', 'stored_versions': 'list[str]' @@ -42,10 +42,8 @@ class V1beta1CustomResourceDefinitionStatus(object): 'stored_versions': 'storedVersions' } - def __init__(self, accepted_names=None, conditions=None, stored_versions=None): - """ - V1beta1CustomResourceDefinitionStatus - a model defined in Swagger - """ + def __init__(self, accepted_names=None, conditions=None, stored_versions=None): # noqa: E501 + """V1beta1CustomResourceDefinitionStatus - a model defined in OpenAPI""" # noqa: E501 self._accepted_names = None self._conditions = None @@ -58,86 +56,82 @@ def __init__(self, accepted_names=None, conditions=None, stored_versions=None): @property def accepted_names(self): - """ - Gets the accepted_names of this V1beta1CustomResourceDefinitionStatus. - AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. + """Gets the accepted_names of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 - :return: The accepted_names of this V1beta1CustomResourceDefinitionStatus. + + :return: The accepted_names of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :rtype: V1beta1CustomResourceDefinitionNames """ return self._accepted_names @accepted_names.setter def accepted_names(self, accepted_names): - """ - Sets the accepted_names of this V1beta1CustomResourceDefinitionStatus. - AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. + """Sets the accepted_names of this V1beta1CustomResourceDefinitionStatus. - :param accepted_names: The accepted_names of this V1beta1CustomResourceDefinitionStatus. + + :param accepted_names: The accepted_names of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :type: V1beta1CustomResourceDefinitionNames """ if accepted_names is None: - raise ValueError("Invalid value for `accepted_names`, must not be `None`") + raise ValueError("Invalid value for `accepted_names`, must not be `None`") # noqa: E501 self._accepted_names = accepted_names @property def conditions(self): - """ - Gets the conditions of this V1beta1CustomResourceDefinitionStatus. - Conditions indicate state for particular aspects of a CustomResourceDefinition + """Gets the conditions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 - :return: The conditions of this V1beta1CustomResourceDefinitionStatus. + Conditions indicate state for particular aspects of a CustomResourceDefinition # noqa: E501 + + :return: The conditions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :rtype: list[V1beta1CustomResourceDefinitionCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1CustomResourceDefinitionStatus. - Conditions indicate state for particular aspects of a CustomResourceDefinition + """Sets the conditions of this V1beta1CustomResourceDefinitionStatus. + + Conditions indicate state for particular aspects of a CustomResourceDefinition # noqa: E501 - :param conditions: The conditions of this V1beta1CustomResourceDefinitionStatus. + :param conditions: The conditions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :type: list[V1beta1CustomResourceDefinitionCondition] """ if conditions is None: - raise ValueError("Invalid value for `conditions`, must not be `None`") + raise ValueError("Invalid value for `conditions`, must not be `None`") # noqa: E501 self._conditions = conditions @property def stored_versions(self): - """ - Gets the stored_versions of this V1beta1CustomResourceDefinitionStatus. - StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. + """Gets the stored_versions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 + + StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. # noqa: E501 - :return: The stored_versions of this V1beta1CustomResourceDefinitionStatus. + :return: The stored_versions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :rtype: list[str] """ return self._stored_versions @stored_versions.setter def stored_versions(self, stored_versions): - """ - Sets the stored_versions of this V1beta1CustomResourceDefinitionStatus. - StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. + """Sets the stored_versions of this V1beta1CustomResourceDefinitionStatus. + + StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. # noqa: E501 - :param stored_versions: The stored_versions of this V1beta1CustomResourceDefinitionStatus. + :param stored_versions: The stored_versions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :type: list[str] """ if stored_versions is None: - raise ValueError("Invalid value for `stored_versions`, must not be `None`") + raise ValueError("Invalid value for `stored_versions`, must not be `None`") # noqa: E501 self._stored_versions = stored_versions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_version.py b/kubernetes/client/models/v1beta1_custom_resource_definition_version.py index df1a867f91..231275719c 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_version.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_version.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceDefinitionVersion(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'additional_printer_columns': 'list[V1beta1CustomResourceColumnDefinition]', 'name': 'str', 'schema': 'V1beta1CustomResourceValidation', @@ -48,10 +48,8 @@ class V1beta1CustomResourceDefinitionVersion(object): 'subresources': 'subresources' } - def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None): - """ - V1beta1CustomResourceDefinitionVersion - a model defined in Swagger - """ + def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None): # noqa: E501 + """V1beta1CustomResourceDefinitionVersion - a model defined in OpenAPI""" # noqa: E501 self._additional_printer_columns = None self._name = None @@ -62,33 +60,33 @@ def __init__(self, additional_printer_columns=None, name=None, schema=None, serv self.discriminator = None if additional_printer_columns is not None: - self.additional_printer_columns = additional_printer_columns + self.additional_printer_columns = additional_printer_columns self.name = name if schema is not None: - self.schema = schema + self.schema = schema self.served = served self.storage = storage if subresources is not None: - self.subresources = subresources + self.subresources = subresources @property def additional_printer_columns(self): - """ - Gets the additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. - AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null + """Gets the additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 + + AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null # noqa: E501 - :return: The additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. + :return: The additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: list[V1beta1CustomResourceColumnDefinition] """ return self._additional_printer_columns @additional_printer_columns.setter def additional_printer_columns(self, additional_printer_columns): - """ - Sets the additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. - AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null + """Sets the additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. + + AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null # noqa: E501 - :param additional_printer_columns: The additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. + :param additional_printer_columns: The additional_printer_columns of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: list[V1beta1CustomResourceColumnDefinition] """ @@ -96,47 +94,45 @@ def additional_printer_columns(self, additional_printer_columns): @property def name(self): - """ - Gets the name of this V1beta1CustomResourceDefinitionVersion. - Name is the version name, e.g. “v1”, “v2beta1”, etc. + """Gets the name of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 + + Name is the version name, e.g. “v1”, “v2beta1”, etc. # noqa: E501 - :return: The name of this V1beta1CustomResourceDefinitionVersion. + :return: The name of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1CustomResourceDefinitionVersion. - Name is the version name, e.g. “v1”, “v2beta1”, etc. + """Sets the name of this V1beta1CustomResourceDefinitionVersion. - :param name: The name of this V1beta1CustomResourceDefinitionVersion. + Name is the version name, e.g. “v1”, “v2beta1”, etc. # noqa: E501 + + :param name: The name of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def schema(self): - """ - Gets the schema of this V1beta1CustomResourceDefinitionVersion. - Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Gets the schema of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 - :return: The schema of this V1beta1CustomResourceDefinitionVersion. + + :return: The schema of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: V1beta1CustomResourceValidation """ return self._schema @schema.setter def schema(self, schema): - """ - Sets the schema of this V1beta1CustomResourceDefinitionVersion. - Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Sets the schema of this V1beta1CustomResourceDefinitionVersion. + - :param schema: The schema of this V1beta1CustomResourceDefinitionVersion. + :param schema: The schema of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: V1beta1CustomResourceValidation """ @@ -144,84 +140,80 @@ def schema(self, schema): @property def served(self): - """ - Gets the served of this V1beta1CustomResourceDefinitionVersion. - Served is a flag enabling/disabling this version from being served via REST APIs + """Gets the served of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 + + Served is a flag enabling/disabling this version from being served via REST APIs # noqa: E501 - :return: The served of this V1beta1CustomResourceDefinitionVersion. + :return: The served of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: bool """ return self._served @served.setter def served(self, served): - """ - Sets the served of this V1beta1CustomResourceDefinitionVersion. - Served is a flag enabling/disabling this version from being served via REST APIs + """Sets the served of this V1beta1CustomResourceDefinitionVersion. + + Served is a flag enabling/disabling this version from being served via REST APIs # noqa: E501 - :param served: The served of this V1beta1CustomResourceDefinitionVersion. + :param served: The served of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ if served is None: - raise ValueError("Invalid value for `served`, must not be `None`") + raise ValueError("Invalid value for `served`, must not be `None`") # noqa: E501 self._served = served @property def storage(self): - """ - Gets the storage of this V1beta1CustomResourceDefinitionVersion. - Storage flags the version as storage version. There must be exactly one flagged as storage version. + """Gets the storage of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 - :return: The storage of this V1beta1CustomResourceDefinitionVersion. + Storage flags the version as storage version. There must be exactly one flagged as storage version. # noqa: E501 + + :return: The storage of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: bool """ return self._storage @storage.setter def storage(self, storage): - """ - Sets the storage of this V1beta1CustomResourceDefinitionVersion. - Storage flags the version as storage version. There must be exactly one flagged as storage version. + """Sets the storage of this V1beta1CustomResourceDefinitionVersion. - :param storage: The storage of this V1beta1CustomResourceDefinitionVersion. + Storage flags the version as storage version. There must be exactly one flagged as storage version. # noqa: E501 + + :param storage: The storage of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ if storage is None: - raise ValueError("Invalid value for `storage`, must not be `None`") + raise ValueError("Invalid value for `storage`, must not be `None`") # noqa: E501 self._storage = storage @property def subresources(self): - """ - Gets the subresources of this V1beta1CustomResourceDefinitionVersion. - Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Gets the subresources of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 + - :return: The subresources of this V1beta1CustomResourceDefinitionVersion. + :return: The subresources of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :rtype: V1beta1CustomResourceSubresources """ return self._subresources @subresources.setter def subresources(self, subresources): - """ - Sets the subresources of this V1beta1CustomResourceDefinitionVersion. - Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + """Sets the subresources of this V1beta1CustomResourceDefinitionVersion. + - :param subresources: The subresources of this V1beta1CustomResourceDefinitionVersion. + :param subresources: The subresources of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: V1beta1CustomResourceSubresources """ self._subresources = subresources def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -242,28 +234,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceDefinitionVersion): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py b/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py index b330f105f0..42dbbb61fe 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py +++ b/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceSubresourceScale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'label_selector_path': 'str', 'spec_replicas_path': 'str', 'status_replicas_path': 'str' @@ -42,10 +42,8 @@ class V1beta1CustomResourceSubresourceScale(object): 'status_replicas_path': 'statusReplicasPath' } - def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None): - """ - V1beta1CustomResourceSubresourceScale - a model defined in Swagger - """ + def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None): # noqa: E501 + """V1beta1CustomResourceSubresourceScale - a model defined in OpenAPI""" # noqa: E501 self._label_selector_path = None self._spec_replicas_path = None @@ -53,28 +51,28 @@ def __init__(self, label_selector_path=None, spec_replicas_path=None, status_rep self.discriminator = None if label_selector_path is not None: - self.label_selector_path = label_selector_path + self.label_selector_path = label_selector_path self.spec_replicas_path = spec_replicas_path self.status_replicas_path = status_replicas_path @property def label_selector_path(self): - """ - Gets the label_selector_path of this V1beta1CustomResourceSubresourceScale. - LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. + """Gets the label_selector_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 - :return: The label_selector_path of this V1beta1CustomResourceSubresourceScale. + LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. # noqa: E501 + + :return: The label_selector_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :rtype: str """ return self._label_selector_path @label_selector_path.setter def label_selector_path(self, label_selector_path): - """ - Sets the label_selector_path of this V1beta1CustomResourceSubresourceScale. - LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. + """Sets the label_selector_path of this V1beta1CustomResourceSubresourceScale. - :param label_selector_path: The label_selector_path of this V1beta1CustomResourceSubresourceScale. + LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. # noqa: E501 + + :param label_selector_path: The label_selector_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :type: str """ @@ -82,61 +80,59 @@ def label_selector_path(self, label_selector_path): @property def spec_replicas_path(self): - """ - Gets the spec_replicas_path of this V1beta1CustomResourceSubresourceScale. - SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. + """Gets the spec_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 - :return: The spec_replicas_path of this V1beta1CustomResourceSubresourceScale. + SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. # noqa: E501 + + :return: The spec_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :rtype: str """ return self._spec_replicas_path @spec_replicas_path.setter def spec_replicas_path(self, spec_replicas_path): - """ - Sets the spec_replicas_path of this V1beta1CustomResourceSubresourceScale. - SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. + """Sets the spec_replicas_path of this V1beta1CustomResourceSubresourceScale. + + SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. # noqa: E501 - :param spec_replicas_path: The spec_replicas_path of this V1beta1CustomResourceSubresourceScale. + :param spec_replicas_path: The spec_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :type: str """ if spec_replicas_path is None: - raise ValueError("Invalid value for `spec_replicas_path`, must not be `None`") + raise ValueError("Invalid value for `spec_replicas_path`, must not be `None`") # noqa: E501 self._spec_replicas_path = spec_replicas_path @property def status_replicas_path(self): - """ - Gets the status_replicas_path of this V1beta1CustomResourceSubresourceScale. - StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. + """Gets the status_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 + + StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. # noqa: E501 - :return: The status_replicas_path of this V1beta1CustomResourceSubresourceScale. + :return: The status_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :rtype: str """ return self._status_replicas_path @status_replicas_path.setter def status_replicas_path(self, status_replicas_path): - """ - Sets the status_replicas_path of this V1beta1CustomResourceSubresourceScale. - StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. + """Sets the status_replicas_path of this V1beta1CustomResourceSubresourceScale. + + StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. # noqa: E501 - :param status_replicas_path: The status_replicas_path of this V1beta1CustomResourceSubresourceScale. + :param status_replicas_path: The status_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :type: str """ if status_replicas_path is None: - raise ValueError("Invalid value for `status_replicas_path`, must not be `None`") + raise ValueError("Invalid value for `status_replicas_path`, must not be `None`") # noqa: E501 self._status_replicas_path = status_replicas_path def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceSubresourceScale): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_subresources.py b/kubernetes/client/models/v1beta1_custom_resource_subresources.py index bc4775560a..e629ea811b 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_subresources.py +++ b/kubernetes/client/models/v1beta1_custom_resource_subresources.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceSubresources(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'scale': 'V1beta1CustomResourceSubresourceScale', 'status': 'object' } @@ -40,38 +40,34 @@ class V1beta1CustomResourceSubresources(object): 'status': 'status' } - def __init__(self, scale=None, status=None): - """ - V1beta1CustomResourceSubresources - a model defined in Swagger - """ + def __init__(self, scale=None, status=None): # noqa: E501 + """V1beta1CustomResourceSubresources - a model defined in OpenAPI""" # noqa: E501 self._scale = None self._status = None self.discriminator = None if scale is not None: - self.scale = scale + self.scale = scale if status is not None: - self.status = status + self.status = status @property def scale(self): - """ - Gets the scale of this V1beta1CustomResourceSubresources. - Scale denotes the scale subresource for CustomResources + """Gets the scale of this V1beta1CustomResourceSubresources. # noqa: E501 + - :return: The scale of this V1beta1CustomResourceSubresources. + :return: The scale of this V1beta1CustomResourceSubresources. # noqa: E501 :rtype: V1beta1CustomResourceSubresourceScale """ return self._scale @scale.setter def scale(self, scale): - """ - Sets the scale of this V1beta1CustomResourceSubresources. - Scale denotes the scale subresource for CustomResources + """Sets the scale of this V1beta1CustomResourceSubresources. - :param scale: The scale of this V1beta1CustomResourceSubresources. + + :param scale: The scale of this V1beta1CustomResourceSubresources. # noqa: E501 :type: V1beta1CustomResourceSubresourceScale """ @@ -79,34 +75,32 @@ def scale(self, scale): @property def status(self): - """ - Gets the status of this V1beta1CustomResourceSubresources. - Status denotes the status subresource for CustomResources + """Gets the status of this V1beta1CustomResourceSubresources. # noqa: E501 + + Status denotes the status subresource for CustomResources # noqa: E501 - :return: The status of this V1beta1CustomResourceSubresources. + :return: The status of this V1beta1CustomResourceSubresources. # noqa: E501 :rtype: object """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1CustomResourceSubresources. - Status denotes the status subresource for CustomResources + """Sets the status of this V1beta1CustomResourceSubresources. + + Status denotes the status subresource for CustomResources # noqa: E501 - :param status: The status of this V1beta1CustomResourceSubresources. + :param status: The status of this V1beta1CustomResourceSubresources. # noqa: E501 :type: object """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceSubresources): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_custom_resource_validation.py b/kubernetes/client/models/v1beta1_custom_resource_validation.py index fd923d2066..c80b5f63d2 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_validation.py +++ b/kubernetes/client/models/v1beta1_custom_resource_validation.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1CustomResourceValidation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'open_apiv3_schema': 'V1beta1JSONSchemaProps' } @@ -38,47 +38,41 @@ class V1beta1CustomResourceValidation(object): 'open_apiv3_schema': 'openAPIV3Schema' } - def __init__(self, open_apiv3_schema=None): - """ - V1beta1CustomResourceValidation - a model defined in Swagger - """ + def __init__(self, open_apiv3_schema=None): # noqa: E501 + """V1beta1CustomResourceValidation - a model defined in OpenAPI""" # noqa: E501 self._open_apiv3_schema = None self.discriminator = None if open_apiv3_schema is not None: - self.open_apiv3_schema = open_apiv3_schema + self.open_apiv3_schema = open_apiv3_schema @property def open_apiv3_schema(self): - """ - Gets the open_apiv3_schema of this V1beta1CustomResourceValidation. - OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. + """Gets the open_apiv3_schema of this V1beta1CustomResourceValidation. # noqa: E501 + - :return: The open_apiv3_schema of this V1beta1CustomResourceValidation. + :return: The open_apiv3_schema of this V1beta1CustomResourceValidation. # noqa: E501 :rtype: V1beta1JSONSchemaProps """ return self._open_apiv3_schema @open_apiv3_schema.setter def open_apiv3_schema(self, open_apiv3_schema): - """ - Sets the open_apiv3_schema of this V1beta1CustomResourceValidation. - OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. + """Sets the open_apiv3_schema of this V1beta1CustomResourceValidation. + - :param open_apiv3_schema: The open_apiv3_schema of this V1beta1CustomResourceValidation. + :param open_apiv3_schema: The open_apiv3_schema of this V1beta1CustomResourceValidation. # noqa: E501 :type: V1beta1JSONSchemaProps """ self._open_apiv3_schema = open_apiv3_schema def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +93,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1CustomResourceValidation): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set.py b/kubernetes/client/models/v1beta1_daemon_set.py index aea457ae2a..99e1c7965c 100644 --- a/kubernetes/client/models/v1beta1_daemon_set.py +++ b/kubernetes/client/models/v1beta1_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1DaemonSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1DaemonSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1DaemonSet. # noqa: E501 - :return: The api_version of this V1beta1DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1DaemonSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1DaemonSet. - :param api_version: The api_version of this V1beta1DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1DaemonSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1DaemonSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1DaemonSet. + :return: The kind of this V1beta1DaemonSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1DaemonSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1DaemonSet. + :param kind: The kind of this V1beta1DaemonSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1DaemonSet. # noqa: E501 + - :return: The metadata of this V1beta1DaemonSet. + :return: The metadata of this V1beta1DaemonSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1DaemonSet. + - :param metadata: The metadata of this V1beta1DaemonSet. + :param metadata: The metadata of this V1beta1DaemonSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the spec of this V1beta1DaemonSet. # noqa: E501 + - :return: The spec of this V1beta1DaemonSet. + :return: The spec of this V1beta1DaemonSet. # noqa: E501 :rtype: V1beta1DaemonSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the spec of this V1beta1DaemonSet. - :param spec: The spec of this V1beta1DaemonSet. + + :param spec: The spec of this V1beta1DaemonSet. # noqa: E501 :type: V1beta1DaemonSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the status of this V1beta1DaemonSet. # noqa: E501 - :return: The status of this V1beta1DaemonSet. + + :return: The status of this V1beta1DaemonSet. # noqa: E501 :rtype: V1beta1DaemonSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the status of this V1beta1DaemonSet. - :param status: The status of this V1beta1DaemonSet. + + :param status: The status of this V1beta1DaemonSet. # noqa: E501 :type: V1beta1DaemonSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set_condition.py b/kubernetes/client/models/v1beta1_daemon_set_condition.py index 48230e8460..9dc92f5cdd 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_condition.py +++ b/kubernetes/client/models/v1beta1_daemon_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta1DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta1DaemonSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta1DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta1DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta1DaemonSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta1DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta1DaemonSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta1DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta1DaemonSetCondition. - :param last_transition_time: The last_transition_time of this V1beta1DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta1DaemonSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta1DaemonSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta1DaemonSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta1DaemonSetCondition. + :return: The message of this V1beta1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1DaemonSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta1DaemonSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta1DaemonSetCondition. + :param message: The message of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1DaemonSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta1DaemonSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta1DaemonSetCondition. + :return: The reason of this V1beta1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1DaemonSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta1DaemonSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta1DaemonSetCondition. + :param reason: The reason of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta1DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta1DaemonSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta1DaemonSetCondition. + :return: The status of this V1beta1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta1DaemonSetCondition. - :param status: The status of this V1beta1DaemonSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta1DaemonSetCondition. - Type of DaemonSet condition. + """Gets the type of this V1beta1DaemonSetCondition. # noqa: E501 - :return: The type of this V1beta1DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :return: The type of this V1beta1DaemonSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1DaemonSetCondition. - Type of DaemonSet condition. + """Sets the type of this V1beta1DaemonSetCondition. - :param type: The type of this V1beta1DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :param type: The type of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set_list.py b/kubernetes/client/models/v1beta1_daemon_set_list.py index e728e99e7e..f5d20c124f 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_list.py +++ b/kubernetes/client/models/v1beta1_daemon_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1DaemonSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1DaemonSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1DaemonSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1DaemonSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1DaemonSetList. + :return: The api_version of this V1beta1DaemonSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1DaemonSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1DaemonSetList. + :param api_version: The api_version of this V1beta1DaemonSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1DaemonSetList. - A list of daemon sets. + """Gets the items of this V1beta1DaemonSetList. # noqa: E501 + + A list of daemon sets. # noqa: E501 - :return: The items of this V1beta1DaemonSetList. + :return: The items of this V1beta1DaemonSetList. # noqa: E501 :rtype: list[V1beta1DaemonSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1DaemonSetList. - A list of daemon sets. + """Sets the items of this V1beta1DaemonSetList. + + A list of daemon sets. # noqa: E501 - :param items: The items of this V1beta1DaemonSetList. + :param items: The items of this V1beta1DaemonSetList. # noqa: E501 :type: list[V1beta1DaemonSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1DaemonSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1DaemonSetList. + :return: The kind of this V1beta1DaemonSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1DaemonSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1DaemonSetList. + :param kind: The kind of this V1beta1DaemonSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1DaemonSetList. # noqa: E501 + - :return: The metadata of this V1beta1DaemonSetList. + :return: The metadata of this V1beta1DaemonSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1DaemonSetList. + - :param metadata: The metadata of this V1beta1DaemonSetList. + :param metadata: The metadata of this V1beta1DaemonSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set_spec.py b/kubernetes/client/models/v1beta1_daemon_set_spec.py index 9777ef02bf..bdecacccb3 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta1_daemon_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', @@ -48,10 +48,8 @@ class V1beta1DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, template_generation=None, update_strategy=None): - """ - V1beta1DaemonSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, template_generation=None, update_strategy=None): # noqa: E501 + """V1beta1DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._revision_history_limit = None @@ -62,35 +60,35 @@ def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit if selector is not None: - self.selector = selector + self.selector = selector self.template = template if template_generation is not None: - self.template_generation = template_generation + self.template_generation = template_generation if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Gets the min_ready_seconds of this V1beta1DaemonSetSpec. # noqa: E501 + + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 - :return: The min_ready_seconds of this V1beta1DaemonSetSpec. + :return: The min_ready_seconds of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta1DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Sets the min_ready_seconds of this V1beta1DaemonSetSpec. + + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this V1beta1DaemonSetSpec. + :param min_ready_seconds: The min_ready_seconds of this V1beta1DaemonSetSpec. # noqa: E501 :type: int """ @@ -98,22 +96,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1beta1DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Gets the revision_history_limit of this V1beta1DaemonSetSpec. # noqa: E501 + + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :return: The revision_history_limit of this V1beta1DaemonSetSpec. + :return: The revision_history_limit of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1beta1DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Sets the revision_history_limit of this V1beta1DaemonSetSpec. - :param revision_history_limit: The revision_history_limit of this V1beta1DaemonSetSpec. + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 + + :param revision_history_limit: The revision_history_limit of this V1beta1DaemonSetSpec. # noqa: E501 :type: int """ @@ -121,22 +119,20 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1beta1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta1DaemonSetSpec. # noqa: E501 - :return: The selector of this V1beta1DaemonSetSpec. + + :return: The selector of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta1DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta1DaemonSetSpec. + - :param selector: The selector of this V1beta1DaemonSetSpec. + :param selector: The selector of this V1beta1DaemonSetSpec. # noqa: E501 :type: V1LabelSelector """ @@ -144,47 +140,45 @@ def selector(self, selector): @property def template(self): - """ - Gets the template of this V1beta1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1beta1DaemonSetSpec. # noqa: E501 + - :return: The template of this V1beta1DaemonSetSpec. + :return: The template of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta1DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1beta1DaemonSetSpec. + - :param template: The template of this V1beta1DaemonSetSpec. + :param template: The template of this V1beta1DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def template_generation(self): - """ - Gets the template_generation of this V1beta1DaemonSetSpec. - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + """Gets the template_generation of this V1beta1DaemonSetSpec. # noqa: E501 - :return: The template_generation of this V1beta1DaemonSetSpec. + DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. # noqa: E501 + + :return: The template_generation of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: int """ return self._template_generation @template_generation.setter def template_generation(self, template_generation): - """ - Sets the template_generation of this V1beta1DaemonSetSpec. - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + """Sets the template_generation of this V1beta1DaemonSetSpec. - :param template_generation: The template_generation of this V1beta1DaemonSetSpec. + DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. # noqa: E501 + + :param template_generation: The template_generation of this V1beta1DaemonSetSpec. # noqa: E501 :type: int """ @@ -192,34 +186,30 @@ def template_generation(self, template_generation): @property def update_strategy(self): - """ - Gets the update_strategy of this V1beta1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Gets the update_strategy of this V1beta1DaemonSetSpec. # noqa: E501 + - :return: The update_strategy of this V1beta1DaemonSetSpec. + :return: The update_strategy of this V1beta1DaemonSetSpec. # noqa: E501 :rtype: V1beta1DaemonSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1beta1DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Sets the update_strategy of this V1beta1DaemonSetSpec. + - :param update_strategy: The update_strategy of this V1beta1DaemonSetSpec. + :param update_strategy: The update_strategy of this V1beta1DaemonSetSpec. # noqa: E501 :type: V1beta1DaemonSetUpdateStrategy """ self._update_strategy = update_strategy def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +230,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set_status.py b/kubernetes/client/models/v1beta1_daemon_set_status.py index 61db516bed..951fe00a5a 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_status.py +++ b/kubernetes/client/models/v1beta1_daemon_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1beta1DaemonSetCondition]', 'current_number_scheduled': 'int', @@ -56,10 +56,8 @@ class V1beta1DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): - """ - V1beta1DaemonSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + """V1beta1DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -74,40 +72,40 @@ def __init__(self, collision_count=None, conditions=None, current_number_schedul self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions self.current_number_scheduled = current_number_scheduled self.desired_number_scheduled = desired_number_scheduled if number_available is not None: - self.number_available = number_available + self.number_available = number_available self.number_misscheduled = number_misscheduled self.number_ready = number_ready if number_unavailable is not None: - self.number_unavailable = number_unavailable + self.number_unavailable = number_unavailable if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if updated_number_scheduled is not None: - self.updated_number_scheduled = updated_number_scheduled + self.updated_number_scheduled = updated_number_scheduled @property def collision_count(self): - """ - Gets the collision_count of this V1beta1DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1beta1DaemonSetStatus. # noqa: E501 - :return: The collision_count of this V1beta1DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1beta1DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1beta1DaemonSetStatus. - :param collision_count: The collision_count of this V1beta1DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :param collision_count: The collision_count of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ @@ -115,22 +113,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1beta1DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Gets the conditions of this V1beta1DaemonSetStatus. # noqa: E501 - :return: The conditions of this V1beta1DaemonSetStatus. + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 + + :return: The conditions of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: list[V1beta1DaemonSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Sets the conditions of this V1beta1DaemonSetStatus. + + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 - :param conditions: The conditions of this V1beta1DaemonSetStatus. + :param conditions: The conditions of this V1beta1DaemonSetStatus. # noqa: E501 :type: list[V1beta1DaemonSetCondition] """ @@ -138,72 +136,72 @@ def conditions(self, conditions): @property def current_number_scheduled(self): - """ - Gets the current_number_scheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the current_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The current_number_scheduled of this V1beta1DaemonSetStatus. + :return: The current_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._current_number_scheduled @current_number_scheduled.setter def current_number_scheduled(self, current_number_scheduled): - """ - Sets the current_number_scheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the current_number_scheduled of this V1beta1DaemonSetStatus. + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. + :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ if current_number_scheduled is None: - raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @property def desired_number_scheduled(self): - """ - Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the desired_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 + + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The desired_number_scheduled of this V1beta1DaemonSetStatus. + :return: The desired_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._desired_number_scheduled @desired_number_scheduled.setter def desired_number_scheduled(self, desired_number_scheduled): - """ - Sets the desired_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the desired_number_scheduled of this V1beta1DaemonSetStatus. - :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 + + :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ if desired_number_scheduled is None: - raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @property def number_available(self): - """ - Gets the number_available of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_available of this V1beta1DaemonSetStatus. # noqa: E501 - :return: The number_available of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_available of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_available @number_available.setter def number_available(self, number_available): - """ - Sets the number_available of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_available of this V1beta1DaemonSetStatus. - :param number_available: The number_available of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_available: The number_available of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ @@ -211,72 +209,72 @@ def number_available(self, number_available): @property def number_misscheduled(self): - """ - Gets the number_misscheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the number_misscheduled of this V1beta1DaemonSetStatus. # noqa: E501 + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The number_misscheduled of this V1beta1DaemonSetStatus. + :return: The number_misscheduled of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_misscheduled @number_misscheduled.setter def number_misscheduled(self, number_misscheduled): - """ - Sets the number_misscheduled of this V1beta1DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the number_misscheduled of this V1beta1DaemonSetStatus. + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. + :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ if number_misscheduled is None: - raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") + raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @property def number_ready(self): - """ - Gets the number_ready of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Gets the number_ready of this V1beta1DaemonSetStatus. # noqa: E501 + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :return: The number_ready of this V1beta1DaemonSetStatus. + :return: The number_ready of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_ready @number_ready.setter def number_ready(self, number_ready): - """ - Sets the number_ready of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Sets the number_ready of this V1beta1DaemonSetStatus. + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :param number_ready: The number_ready of this V1beta1DaemonSetStatus. + :param number_ready: The number_ready of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ if number_ready is None: - raise ValueError("Invalid value for `number_ready`, must not be `None`") + raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @property def number_unavailable(self): - """ - Gets the number_unavailable of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_unavailable of this V1beta1DaemonSetStatus. # noqa: E501 - :return: The number_unavailable of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_unavailable of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_unavailable @number_unavailable.setter def number_unavailable(self, number_unavailable): - """ - Sets the number_unavailable of this V1beta1DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_unavailable of this V1beta1DaemonSetStatus. - :param number_unavailable: The number_unavailable of this V1beta1DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_unavailable: The number_unavailable of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ @@ -284,22 +282,22 @@ def number_unavailable(self, number_unavailable): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta1DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Gets the observed_generation of this V1beta1DaemonSetStatus. # noqa: E501 - :return: The observed_generation of this V1beta1DaemonSetStatus. + The most recent generation observed by the daemon set controller. # noqa: E501 + + :return: The observed_generation of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta1DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Sets the observed_generation of this V1beta1DaemonSetStatus. + + The most recent generation observed by the daemon set controller. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta1DaemonSetStatus. + :param observed_generation: The observed_generation of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ @@ -307,34 +305,32 @@ def observed_generation(self, observed_generation): @property def updated_number_scheduled(self): - """ - Gets the updated_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Gets the updated_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 + + The total number of nodes that are running updated daemon pod # noqa: E501 - :return: The updated_number_scheduled of this V1beta1DaemonSetStatus. + :return: The updated_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :rtype: int """ return self._updated_number_scheduled @updated_number_scheduled.setter def updated_number_scheduled(self, updated_number_scheduled): - """ - Sets the updated_number_scheduled of this V1beta1DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Sets the updated_number_scheduled of this V1beta1DaemonSetStatus. + + The total number of nodes that are running updated daemon pod # noqa: E501 - :param updated_number_scheduled: The updated_number_scheduled of this V1beta1DaemonSetStatus. + :param updated_number_scheduled: The updated_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ self._updated_number_scheduled = updated_number_scheduled def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -355,28 +351,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py index e6beb23ded..b9ae89ec75 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1DaemonSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1beta1RollingUpdateDaemonSet', 'type': 'str' } @@ -40,38 +40,34 @@ class V1beta1DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1beta1DaemonSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1beta1DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1beta1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Gets the rolling_update of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1beta1DaemonSetUpdateStrategy. + :return: The rolling_update of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 :rtype: V1beta1RollingUpdateDaemonSet """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta1DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Sets the rolling_update of this V1beta1DaemonSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1beta1DaemonSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 :type: V1beta1RollingUpdateDaemonSet """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1beta1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. + """Gets the type of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. # noqa: E501 - :return: The type of this V1beta1DaemonSetUpdateStrategy. + :return: The type of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. + """Sets the type of this V1beta1DaemonSetUpdateStrategy. + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. # noqa: E501 - :param type: The type of this V1beta1DaemonSetUpdateStrategy. + :param type: The type of this V1beta1DaemonSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1DaemonSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_event.py b/kubernetes/client/models/v1beta1_event.py index 768560cd5a..440194d2b4 100644 --- a/kubernetes/client/models/v1beta1_event.py +++ b/kubernetes/client/models/v1beta1_event.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1Event(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'action': 'str', 'api_version': 'str', 'deprecated_count': 'int', @@ -70,10 +70,8 @@ class V1beta1Event(object): 'type': 'type' } - def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None): - """ - V1beta1Event - a model defined in Swagger - """ + def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None): # noqa: E501 + """V1beta1Event - a model defined in OpenAPI""" # noqa: E501 self._action = None self._api_version = None @@ -95,57 +93,57 @@ def __init__(self, action=None, api_version=None, deprecated_count=None, depreca self.discriminator = None if action is not None: - self.action = action + self.action = action if api_version is not None: - self.api_version = api_version + self.api_version = api_version if deprecated_count is not None: - self.deprecated_count = deprecated_count + self.deprecated_count = deprecated_count if deprecated_first_timestamp is not None: - self.deprecated_first_timestamp = deprecated_first_timestamp + self.deprecated_first_timestamp = deprecated_first_timestamp if deprecated_last_timestamp is not None: - self.deprecated_last_timestamp = deprecated_last_timestamp + self.deprecated_last_timestamp = deprecated_last_timestamp if deprecated_source is not None: - self.deprecated_source = deprecated_source + self.deprecated_source = deprecated_source self.event_time = event_time if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if note is not None: - self.note = note + self.note = note if reason is not None: - self.reason = reason + self.reason = reason if regarding is not None: - self.regarding = regarding + self.regarding = regarding if related is not None: - self.related = related + self.related = related if reporting_controller is not None: - self.reporting_controller = reporting_controller + self.reporting_controller = reporting_controller if reporting_instance is not None: - self.reporting_instance = reporting_instance + self.reporting_instance = reporting_instance if series is not None: - self.series = series + self.series = series if type is not None: - self.type = type + self.type = type @property def action(self): - """ - Gets the action of this V1beta1Event. - What action was taken/failed regarding to the regarding object. + """Gets the action of this V1beta1Event. # noqa: E501 + + What action was taken/failed regarding to the regarding object. # noqa: E501 - :return: The action of this V1beta1Event. + :return: The action of this V1beta1Event. # noqa: E501 :rtype: str """ return self._action @action.setter def action(self, action): - """ - Sets the action of this V1beta1Event. - What action was taken/failed regarding to the regarding object. + """Sets the action of this V1beta1Event. - :param action: The action of this V1beta1Event. + What action was taken/failed regarding to the regarding object. # noqa: E501 + + :param action: The action of this V1beta1Event. # noqa: E501 :type: str """ @@ -153,22 +151,22 @@ def action(self, action): @property def api_version(self): - """ - Gets the api_version of this V1beta1Event. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1Event. # noqa: E501 - :return: The api_version of this V1beta1Event. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1Event. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1Event. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1Event. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1Event. + :param api_version: The api_version of this V1beta1Event. # noqa: E501 :type: str """ @@ -176,22 +174,22 @@ def api_version(self, api_version): @property def deprecated_count(self): - """ - Gets the deprecated_count of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Gets the deprecated_count of this V1beta1Event. # noqa: E501 + + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 - :return: The deprecated_count of this V1beta1Event. + :return: The deprecated_count of this V1beta1Event. # noqa: E501 :rtype: int """ return self._deprecated_count @deprecated_count.setter def deprecated_count(self, deprecated_count): - """ - Sets the deprecated_count of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Sets the deprecated_count of this V1beta1Event. + + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 - :param deprecated_count: The deprecated_count of this V1beta1Event. + :param deprecated_count: The deprecated_count of this V1beta1Event. # noqa: E501 :type: int """ @@ -199,22 +197,22 @@ def deprecated_count(self, deprecated_count): @property def deprecated_first_timestamp(self): - """ - Gets the deprecated_first_timestamp of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Gets the deprecated_first_timestamp of this V1beta1Event. # noqa: E501 - :return: The deprecated_first_timestamp of this V1beta1Event. + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 + + :return: The deprecated_first_timestamp of this V1beta1Event. # noqa: E501 :rtype: datetime """ return self._deprecated_first_timestamp @deprecated_first_timestamp.setter def deprecated_first_timestamp(self, deprecated_first_timestamp): - """ - Sets the deprecated_first_timestamp of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Sets the deprecated_first_timestamp of this V1beta1Event. - :param deprecated_first_timestamp: The deprecated_first_timestamp of this V1beta1Event. + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 + + :param deprecated_first_timestamp: The deprecated_first_timestamp of this V1beta1Event. # noqa: E501 :type: datetime """ @@ -222,22 +220,22 @@ def deprecated_first_timestamp(self, deprecated_first_timestamp): @property def deprecated_last_timestamp(self): - """ - Gets the deprecated_last_timestamp of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Gets the deprecated_last_timestamp of this V1beta1Event. # noqa: E501 + + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 - :return: The deprecated_last_timestamp of this V1beta1Event. + :return: The deprecated_last_timestamp of this V1beta1Event. # noqa: E501 :rtype: datetime """ return self._deprecated_last_timestamp @deprecated_last_timestamp.setter def deprecated_last_timestamp(self, deprecated_last_timestamp): - """ - Sets the deprecated_last_timestamp of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Sets the deprecated_last_timestamp of this V1beta1Event. + + Deprecated field assuring backward compatibility with core.v1 Event type # noqa: E501 - :param deprecated_last_timestamp: The deprecated_last_timestamp of this V1beta1Event. + :param deprecated_last_timestamp: The deprecated_last_timestamp of this V1beta1Event. # noqa: E501 :type: datetime """ @@ -245,22 +243,20 @@ def deprecated_last_timestamp(self, deprecated_last_timestamp): @property def deprecated_source(self): - """ - Gets the deprecated_source of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Gets the deprecated_source of this V1beta1Event. # noqa: E501 - :return: The deprecated_source of this V1beta1Event. + + :return: The deprecated_source of this V1beta1Event. # noqa: E501 :rtype: V1EventSource """ return self._deprecated_source @deprecated_source.setter def deprecated_source(self, deprecated_source): - """ - Sets the deprecated_source of this V1beta1Event. - Deprecated field assuring backward compatibility with core.v1 Event type + """Sets the deprecated_source of this V1beta1Event. + - :param deprecated_source: The deprecated_source of this V1beta1Event. + :param deprecated_source: The deprecated_source of this V1beta1Event. # noqa: E501 :type: V1EventSource """ @@ -268,47 +264,47 @@ def deprecated_source(self, deprecated_source): @property def event_time(self): - """ - Gets the event_time of this V1beta1Event. - Required. Time when this Event was first observed. + """Gets the event_time of this V1beta1Event. # noqa: E501 + + Required. Time when this Event was first observed. # noqa: E501 - :return: The event_time of this V1beta1Event. + :return: The event_time of this V1beta1Event. # noqa: E501 :rtype: datetime """ return self._event_time @event_time.setter def event_time(self, event_time): - """ - Sets the event_time of this V1beta1Event. - Required. Time when this Event was first observed. + """Sets the event_time of this V1beta1Event. + + Required. Time when this Event was first observed. # noqa: E501 - :param event_time: The event_time of this V1beta1Event. + :param event_time: The event_time of this V1beta1Event. # noqa: E501 :type: datetime """ if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") + raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 self._event_time = event_time @property def kind(self): - """ - Gets the kind of this V1beta1Event. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1Event. # noqa: E501 - :return: The kind of this V1beta1Event. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :return: The kind of this V1beta1Event. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1Event. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1Event. - :param kind: The kind of this V1beta1Event. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1beta1Event. # noqa: E501 :type: str """ @@ -316,20 +312,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1Event. + """Gets the metadata of this V1beta1Event. # noqa: E501 + - :return: The metadata of this V1beta1Event. + :return: The metadata of this V1beta1Event. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1Event. + """Sets the metadata of this V1beta1Event. + - :param metadata: The metadata of this V1beta1Event. + :param metadata: The metadata of this V1beta1Event. # noqa: E501 :type: V1ObjectMeta """ @@ -337,22 +333,22 @@ def metadata(self, metadata): @property def note(self): - """ - Gets the note of this V1beta1Event. - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """Gets the note of this V1beta1Event. # noqa: E501 + + Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. # noqa: E501 - :return: The note of this V1beta1Event. + :return: The note of this V1beta1Event. # noqa: E501 :rtype: str """ return self._note @note.setter def note(self, note): - """ - Sets the note of this V1beta1Event. - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """Sets the note of this V1beta1Event. - :param note: The note of this V1beta1Event. + Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. # noqa: E501 + + :param note: The note of this V1beta1Event. # noqa: E501 :type: str """ @@ -360,22 +356,22 @@ def note(self, note): @property def reason(self): - """ - Gets the reason of this V1beta1Event. - Why the action was taken. + """Gets the reason of this V1beta1Event. # noqa: E501 + + Why the action was taken. # noqa: E501 - :return: The reason of this V1beta1Event. + :return: The reason of this V1beta1Event. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1Event. - Why the action was taken. + """Sets the reason of this V1beta1Event. + + Why the action was taken. # noqa: E501 - :param reason: The reason of this V1beta1Event. + :param reason: The reason of this V1beta1Event. # noqa: E501 :type: str """ @@ -383,22 +379,20 @@ def reason(self, reason): @property def regarding(self): - """ - Gets the regarding of this V1beta1Event. - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + """Gets the regarding of this V1beta1Event. # noqa: E501 - :return: The regarding of this V1beta1Event. + + :return: The regarding of this V1beta1Event. # noqa: E501 :rtype: V1ObjectReference """ return self._regarding @regarding.setter def regarding(self, regarding): - """ - Sets the regarding of this V1beta1Event. - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + """Sets the regarding of this V1beta1Event. - :param regarding: The regarding of this V1beta1Event. + + :param regarding: The regarding of this V1beta1Event. # noqa: E501 :type: V1ObjectReference """ @@ -406,22 +400,20 @@ def regarding(self, regarding): @property def related(self): - """ - Gets the related of this V1beta1Event. - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + """Gets the related of this V1beta1Event. # noqa: E501 + - :return: The related of this V1beta1Event. + :return: The related of this V1beta1Event. # noqa: E501 :rtype: V1ObjectReference """ return self._related @related.setter def related(self, related): - """ - Sets the related of this V1beta1Event. - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + """Sets the related of this V1beta1Event. + - :param related: The related of this V1beta1Event. + :param related: The related of this V1beta1Event. # noqa: E501 :type: V1ObjectReference """ @@ -429,22 +421,22 @@ def related(self, related): @property def reporting_controller(self): - """ - Gets the reporting_controller of this V1beta1Event. - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """Gets the reporting_controller of this V1beta1Event. # noqa: E501 + + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501 - :return: The reporting_controller of this V1beta1Event. + :return: The reporting_controller of this V1beta1Event. # noqa: E501 :rtype: str """ return self._reporting_controller @reporting_controller.setter def reporting_controller(self, reporting_controller): - """ - Sets the reporting_controller of this V1beta1Event. - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """Sets the reporting_controller of this V1beta1Event. - :param reporting_controller: The reporting_controller of this V1beta1Event. + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. # noqa: E501 + + :param reporting_controller: The reporting_controller of this V1beta1Event. # noqa: E501 :type: str """ @@ -452,22 +444,22 @@ def reporting_controller(self, reporting_controller): @property def reporting_instance(self): - """ - Gets the reporting_instance of this V1beta1Event. - ID of the controller instance, e.g. `kubelet-xyzf`. + """Gets the reporting_instance of this V1beta1Event. # noqa: E501 - :return: The reporting_instance of this V1beta1Event. + ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501 + + :return: The reporting_instance of this V1beta1Event. # noqa: E501 :rtype: str """ return self._reporting_instance @reporting_instance.setter def reporting_instance(self, reporting_instance): - """ - Sets the reporting_instance of this V1beta1Event. - ID of the controller instance, e.g. `kubelet-xyzf`. + """Sets the reporting_instance of this V1beta1Event. + + ID of the controller instance, e.g. `kubelet-xyzf`. # noqa: E501 - :param reporting_instance: The reporting_instance of this V1beta1Event. + :param reporting_instance: The reporting_instance of this V1beta1Event. # noqa: E501 :type: str """ @@ -475,22 +467,20 @@ def reporting_instance(self, reporting_instance): @property def series(self): - """ - Gets the series of this V1beta1Event. - Data about the Event series this event represents or nil if it's a singleton Event. + """Gets the series of this V1beta1Event. # noqa: E501 + - :return: The series of this V1beta1Event. + :return: The series of this V1beta1Event. # noqa: E501 :rtype: V1beta1EventSeries """ return self._series @series.setter def series(self, series): - """ - Sets the series of this V1beta1Event. - Data about the Event series this event represents or nil if it's a singleton Event. + """Sets the series of this V1beta1Event. - :param series: The series of this V1beta1Event. + + :param series: The series of this V1beta1Event. # noqa: E501 :type: V1beta1EventSeries """ @@ -498,34 +488,32 @@ def series(self, series): @property def type(self): - """ - Gets the type of this V1beta1Event. - Type of this event (Normal, Warning), new types could be added in the future. + """Gets the type of this V1beta1Event. # noqa: E501 + + Type of this event (Normal, Warning), new types could be added in the future. # noqa: E501 - :return: The type of this V1beta1Event. + :return: The type of this V1beta1Event. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1Event. - Type of this event (Normal, Warning), new types could be added in the future. + """Sets the type of this V1beta1Event. + + Type of this event (Normal, Warning), new types could be added in the future. # noqa: E501 - :param type: The type of this V1beta1Event. + :param type: The type of this V1beta1Event. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -546,28 +534,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1Event): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_event_list.py b/kubernetes/client/models/v1beta1_event_list.py index 6109b53e69..d42fac6634 100644 --- a/kubernetes/client/models/v1beta1_event_list.py +++ b/kubernetes/client/models/v1beta1_event_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1EventList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1Event]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1EventList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1EventList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1EventList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1EventList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1EventList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1EventList. + :return: The api_version of this V1beta1EventList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1EventList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1EventList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1EventList. + :param api_version: The api_version of this V1beta1EventList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1EventList. - Items is a list of schema objects. + """Gets the items of this V1beta1EventList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1beta1EventList. + :return: The items of this V1beta1EventList. # noqa: E501 :rtype: list[V1beta1Event] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1EventList. - Items is a list of schema objects. + """Sets the items of this V1beta1EventList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1beta1EventList. + :param items: The items of this V1beta1EventList. # noqa: E501 :type: list[V1beta1Event] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1EventList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1EventList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1EventList. + :return: The kind of this V1beta1EventList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1EventList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1EventList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1EventList. + :param kind: The kind of this V1beta1EventList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1EventList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1EventList. # noqa: E501 + - :return: The metadata of this V1beta1EventList. + :return: The metadata of this V1beta1EventList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1EventList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1EventList. + - :param metadata: The metadata of this V1beta1EventList. + :param metadata: The metadata of this V1beta1EventList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1EventList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_event_series.py b/kubernetes/client/models/v1beta1_event_series.py index b0ecf14acc..c0e20af45a 100644 --- a/kubernetes/client/models/v1beta1_event_series.py +++ b/kubernetes/client/models/v1beta1_event_series.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1EventSeries(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'count': 'int', 'last_observed_time': 'datetime', 'state': 'str' @@ -42,10 +42,8 @@ class V1beta1EventSeries(object): 'state': 'state' } - def __init__(self, count=None, last_observed_time=None, state=None): - """ - V1beta1EventSeries - a model defined in Swagger - """ + def __init__(self, count=None, last_observed_time=None, state=None): # noqa: E501 + """V1beta1EventSeries - a model defined in OpenAPI""" # noqa: E501 self._count = None self._last_observed_time = None @@ -58,86 +56,84 @@ def __init__(self, count=None, last_observed_time=None, state=None): @property def count(self): - """ - Gets the count of this V1beta1EventSeries. - Number of occurrences in this series up to the last heartbeat time + """Gets the count of this V1beta1EventSeries. # noqa: E501 - :return: The count of this V1beta1EventSeries. + Number of occurrences in this series up to the last heartbeat time # noqa: E501 + + :return: The count of this V1beta1EventSeries. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): - """ - Sets the count of this V1beta1EventSeries. - Number of occurrences in this series up to the last heartbeat time + """Sets the count of this V1beta1EventSeries. - :param count: The count of this V1beta1EventSeries. + Number of occurrences in this series up to the last heartbeat time # noqa: E501 + + :param count: The count of this V1beta1EventSeries. # noqa: E501 :type: int """ if count is None: - raise ValueError("Invalid value for `count`, must not be `None`") + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count @property def last_observed_time(self): - """ - Gets the last_observed_time of this V1beta1EventSeries. - Time when last Event from the series was seen before last heartbeat. + """Gets the last_observed_time of this V1beta1EventSeries. # noqa: E501 - :return: The last_observed_time of this V1beta1EventSeries. + Time when last Event from the series was seen before last heartbeat. # noqa: E501 + + :return: The last_observed_time of this V1beta1EventSeries. # noqa: E501 :rtype: datetime """ return self._last_observed_time @last_observed_time.setter def last_observed_time(self, last_observed_time): - """ - Sets the last_observed_time of this V1beta1EventSeries. - Time when last Event from the series was seen before last heartbeat. + """Sets the last_observed_time of this V1beta1EventSeries. + + Time when last Event from the series was seen before last heartbeat. # noqa: E501 - :param last_observed_time: The last_observed_time of this V1beta1EventSeries. + :param last_observed_time: The last_observed_time of this V1beta1EventSeries. # noqa: E501 :type: datetime """ if last_observed_time is None: - raise ValueError("Invalid value for `last_observed_time`, must not be `None`") + raise ValueError("Invalid value for `last_observed_time`, must not be `None`") # noqa: E501 self._last_observed_time = last_observed_time @property def state(self): - """ - Gets the state of this V1beta1EventSeries. - Information whether this series is ongoing or finished. + """Gets the state of this V1beta1EventSeries. # noqa: E501 + + Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 # noqa: E501 - :return: The state of this V1beta1EventSeries. + :return: The state of this V1beta1EventSeries. # noqa: E501 :rtype: str """ return self._state @state.setter def state(self, state): - """ - Sets the state of this V1beta1EventSeries. - Information whether this series is ongoing or finished. + """Sets the state of this V1beta1EventSeries. + + Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 # noqa: E501 - :param state: The state of this V1beta1EventSeries. + :param state: The state of this V1beta1EventSeries. # noqa: E501 :type: str """ if state is None: - raise ValueError("Invalid value for `state`, must not be `None`") + raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501 self._state = state def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +154,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1EventSeries): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_eviction.py b/kubernetes/client/models/v1beta1_eviction.py index c1a999956d..608fbaca3d 100644 --- a/kubernetes/client/models/v1beta1_eviction.py +++ b/kubernetes/client/models/v1beta1_eviction.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1Eviction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'delete_options': 'V1DeleteOptions', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1Eviction(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, delete_options=None, kind=None, metadata=None): - """ - V1beta1Eviction - a model defined in Swagger - """ + def __init__(self, api_version=None, delete_options=None, kind=None, metadata=None): # noqa: E501 + """V1beta1Eviction - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._delete_options = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, delete_options=None, kind=None, metadata=No self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if delete_options is not None: - self.delete_options = delete_options + self.delete_options = delete_options if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1Eviction. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1Eviction. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1Eviction. + :return: The api_version of this V1beta1Eviction. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1Eviction. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1Eviction. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1Eviction. + :param api_version: The api_version of this V1beta1Eviction. # noqa: E501 :type: str """ @@ -89,22 +87,20 @@ def api_version(self, api_version): @property def delete_options(self): - """ - Gets the delete_options of this V1beta1Eviction. - DeleteOptions may be provided + """Gets the delete_options of this V1beta1Eviction. # noqa: E501 + - :return: The delete_options of this V1beta1Eviction. + :return: The delete_options of this V1beta1Eviction. # noqa: E501 :rtype: V1DeleteOptions """ return self._delete_options @delete_options.setter def delete_options(self, delete_options): - """ - Sets the delete_options of this V1beta1Eviction. - DeleteOptions may be provided + """Sets the delete_options of this V1beta1Eviction. + - :param delete_options: The delete_options of this V1beta1Eviction. + :param delete_options: The delete_options of this V1beta1Eviction. # noqa: E501 :type: V1DeleteOptions """ @@ -112,22 +108,22 @@ def delete_options(self, delete_options): @property def kind(self): - """ - Gets the kind of this V1beta1Eviction. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1Eviction. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1Eviction. + :return: The kind of this V1beta1Eviction. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1Eviction. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1Eviction. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1Eviction. + :param kind: The kind of this V1beta1Eviction. # noqa: E501 :type: str """ @@ -135,34 +131,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1Eviction. - ObjectMeta describes the pod that is being evicted. + """Gets the metadata of this V1beta1Eviction. # noqa: E501 + - :return: The metadata of this V1beta1Eviction. + :return: The metadata of this V1beta1Eviction. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1Eviction. - ObjectMeta describes the pod that is being evicted. + """Sets the metadata of this V1beta1Eviction. + - :param metadata: The metadata of this V1beta1Eviction. + :param metadata: The metadata of this V1beta1Eviction. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1Eviction): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_external_documentation.py b/kubernetes/client/models/v1beta1_external_documentation.py index 676e10a36f..cd72dd374a 100644 --- a/kubernetes/client/models/v1beta1_external_documentation.py +++ b/kubernetes/client/models/v1beta1_external_documentation.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ExternalDocumentation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'description': 'str', 'url': 'str' } @@ -40,36 +40,34 @@ class V1beta1ExternalDocumentation(object): 'url': 'url' } - def __init__(self, description=None, url=None): - """ - V1beta1ExternalDocumentation - a model defined in Swagger - """ + def __init__(self, description=None, url=None): # noqa: E501 + """V1beta1ExternalDocumentation - a model defined in OpenAPI""" # noqa: E501 self._description = None self._url = None self.discriminator = None if description is not None: - self.description = description + self.description = description if url is not None: - self.url = url + self.url = url @property def description(self): - """ - Gets the description of this V1beta1ExternalDocumentation. + """Gets the description of this V1beta1ExternalDocumentation. # noqa: E501 + - :return: The description of this V1beta1ExternalDocumentation. + :return: The description of this V1beta1ExternalDocumentation. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1beta1ExternalDocumentation. + """Sets the description of this V1beta1ExternalDocumentation. - :param description: The description of this V1beta1ExternalDocumentation. + + :param description: The description of this V1beta1ExternalDocumentation. # noqa: E501 :type: str """ @@ -77,32 +75,30 @@ def description(self, description): @property def url(self): - """ - Gets the url of this V1beta1ExternalDocumentation. + """Gets the url of this V1beta1ExternalDocumentation. # noqa: E501 + - :return: The url of this V1beta1ExternalDocumentation. + :return: The url of this V1beta1ExternalDocumentation. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): - """ - Sets the url of this V1beta1ExternalDocumentation. + """Sets the url of this V1beta1ExternalDocumentation. + - :param url: The url of this V1beta1ExternalDocumentation. + :param url: The url of this V1beta1ExternalDocumentation. # noqa: E501 :type: str """ self._url = url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -123,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ExternalDocumentation): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_ip_block.py b/kubernetes/client/models/v1beta1_ip_block.py index dc6bebfeff..5a4b77d2e6 100644 --- a/kubernetes/client/models/v1beta1_ip_block.py +++ b/kubernetes/client/models/v1beta1_ip_block.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1IPBlock(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'cidr': 'str', '_except': 'list[str]' } @@ -40,10 +40,8 @@ class V1beta1IPBlock(object): '_except': 'except' } - def __init__(self, cidr=None, _except=None): - """ - V1beta1IPBlock - a model defined in Swagger - """ + def __init__(self, cidr=None, _except=None): # noqa: E501 + """V1beta1IPBlock - a model defined in OpenAPI""" # noqa: E501 self._cidr = None self.__except = None @@ -51,63 +49,61 @@ def __init__(self, cidr=None, _except=None): self.cidr = cidr if _except is not None: - self._except = _except + self._except = _except @property def cidr(self): - """ - Gets the cidr of this V1beta1IPBlock. - CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + """Gets the cidr of this V1beta1IPBlock. # noqa: E501 + + CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" # noqa: E501 - :return: The cidr of this V1beta1IPBlock. + :return: The cidr of this V1beta1IPBlock. # noqa: E501 :rtype: str """ return self._cidr @cidr.setter def cidr(self, cidr): - """ - Sets the cidr of this V1beta1IPBlock. - CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" + """Sets the cidr of this V1beta1IPBlock. - :param cidr: The cidr of this V1beta1IPBlock. + CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" # noqa: E501 + + :param cidr: The cidr of this V1beta1IPBlock. # noqa: E501 :type: str """ if cidr is None: - raise ValueError("Invalid value for `cidr`, must not be `None`") + raise ValueError("Invalid value for `cidr`, must not be `None`") # noqa: E501 self._cidr = cidr @property def _except(self): - """ - Gets the _except of this V1beta1IPBlock. - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + """Gets the _except of this V1beta1IPBlock. # noqa: E501 + + Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range # noqa: E501 - :return: The _except of this V1beta1IPBlock. + :return: The _except of this V1beta1IPBlock. # noqa: E501 :rtype: list[str] """ return self.__except @_except.setter def _except(self, _except): - """ - Sets the _except of this V1beta1IPBlock. - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range + """Sets the _except of this V1beta1IPBlock. + + Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range # noqa: E501 - :param _except: The _except of this V1beta1IPBlock. + :param _except: The _except of this V1beta1IPBlock. # noqa: E501 :type: list[str] """ self.__except = _except def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1IPBlock): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_job_template_spec.py b/kubernetes/client/models/v1beta1_job_template_spec.py index 7ba69f4d86..718e4abaf4 100644 --- a/kubernetes/client/models/v1beta1_job_template_spec.py +++ b/kubernetes/client/models/v1beta1_job_template_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1JobTemplateSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec' } @@ -40,38 +40,34 @@ class V1beta1JobTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): - """ - V1beta1JobTemplateSpec - a model defined in Swagger - """ + def __init__(self, metadata=None, spec=None): # noqa: E501 + """V1beta1JobTemplateSpec - a model defined in OpenAPI""" # noqa: E501 self._metadata = None self._spec = None self.discriminator = None if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def metadata(self): - """ - Gets the metadata of this V1beta1JobTemplateSpec. - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1JobTemplateSpec. # noqa: E501 + - :return: The metadata of this V1beta1JobTemplateSpec. + :return: The metadata of this V1beta1JobTemplateSpec. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1JobTemplateSpec. - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1JobTemplateSpec. - :param metadata: The metadata of this V1beta1JobTemplateSpec. + + :param metadata: The metadata of this V1beta1JobTemplateSpec. # noqa: E501 :type: V1ObjectMeta """ @@ -79,34 +75,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1JobTemplateSpec. - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1beta1JobTemplateSpec. # noqa: E501 + - :return: The spec of this V1beta1JobTemplateSpec. + :return: The spec of this V1beta1JobTemplateSpec. # noqa: E501 :rtype: V1JobSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1JobTemplateSpec. - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1beta1JobTemplateSpec. + - :param spec: The spec of this V1beta1JobTemplateSpec. + :param spec: The spec of this V1beta1JobTemplateSpec. # noqa: E501 :type: V1JobSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1JobTemplateSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_json_schema_props.py b/kubernetes/client/models/v1beta1_json_schema_props.py index 900fafaee8..2cc7e91d30 100644 --- a/kubernetes/client/models/v1beta1_json_schema_props.py +++ b/kubernetes/client/models/v1beta1_json_schema_props.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1JSONSchemaProps(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ref': 'str', 'schema': 'str', 'additional_items': 'object', @@ -67,7 +67,10 @@ class V1beta1JSONSchemaProps(object): 'required': 'list[str]', 'title': 'str', 'type': 'str', - 'unique_items': 'bool' + 'unique_items': 'bool', + 'x_kubernetes_embedded_resource': 'bool', + 'x_kubernetes_int_or_string': 'bool', + 'x_kubernetes_preserve_unknown_fields': 'bool' } attribute_map = { @@ -107,13 +110,14 @@ class V1beta1JSONSchemaProps(object): 'required': 'required', 'title': 'title', 'type': 'type', - 'unique_items': 'uniqueItems' + 'unique_items': 'uniqueItems', + 'x_kubernetes_embedded_resource': 'x-kubernetes-embedded-resource', + 'x_kubernetes_int_or_string': 'x-kubernetes-int-or-string', + 'x_kubernetes_preserve_unknown_fields': 'x-kubernetes-preserve-unknown-fields' } - def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None): - """ - V1beta1JSONSchemaProps - a model defined in Swagger - """ + def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None, x_kubernetes_embedded_resource=None, x_kubernetes_int_or_string=None, x_kubernetes_preserve_unknown_fields=None): # noqa: E501 + """V1beta1JSONSchemaProps - a model defined in OpenAPI""" # noqa: E501 self._ref = None self._schema = None @@ -152,99 +156,108 @@ def __init__(self, ref=None, schema=None, additional_items=None, additional_prop self._title = None self._type = None self._unique_items = None + self._x_kubernetes_embedded_resource = None + self._x_kubernetes_int_or_string = None + self._x_kubernetes_preserve_unknown_fields = None self.discriminator = None if ref is not None: - self.ref = ref + self.ref = ref if schema is not None: - self.schema = schema + self.schema = schema if additional_items is not None: - self.additional_items = additional_items + self.additional_items = additional_items if additional_properties is not None: - self.additional_properties = additional_properties + self.additional_properties = additional_properties if all_of is not None: - self.all_of = all_of + self.all_of = all_of if any_of is not None: - self.any_of = any_of + self.any_of = any_of if default is not None: - self.default = default + self.default = default if definitions is not None: - self.definitions = definitions + self.definitions = definitions if dependencies is not None: - self.dependencies = dependencies + self.dependencies = dependencies if description is not None: - self.description = description + self.description = description if enum is not None: - self.enum = enum + self.enum = enum if example is not None: - self.example = example + self.example = example if exclusive_maximum is not None: - self.exclusive_maximum = exclusive_maximum + self.exclusive_maximum = exclusive_maximum if exclusive_minimum is not None: - self.exclusive_minimum = exclusive_minimum + self.exclusive_minimum = exclusive_minimum if external_docs is not None: - self.external_docs = external_docs + self.external_docs = external_docs if format is not None: - self.format = format + self.format = format if id is not None: - self.id = id + self.id = id if items is not None: - self.items = items + self.items = items if max_items is not None: - self.max_items = max_items + self.max_items = max_items if max_length is not None: - self.max_length = max_length + self.max_length = max_length if max_properties is not None: - self.max_properties = max_properties + self.max_properties = max_properties if maximum is not None: - self.maximum = maximum + self.maximum = maximum if min_items is not None: - self.min_items = min_items + self.min_items = min_items if min_length is not None: - self.min_length = min_length + self.min_length = min_length if min_properties is not None: - self.min_properties = min_properties + self.min_properties = min_properties if minimum is not None: - self.minimum = minimum + self.minimum = minimum if multiple_of is not None: - self.multiple_of = multiple_of + self.multiple_of = multiple_of if _not is not None: - self._not = _not + self._not = _not if nullable is not None: - self.nullable = nullable + self.nullable = nullable if one_of is not None: - self.one_of = one_of + self.one_of = one_of if pattern is not None: - self.pattern = pattern + self.pattern = pattern if pattern_properties is not None: - self.pattern_properties = pattern_properties + self.pattern_properties = pattern_properties if properties is not None: - self.properties = properties + self.properties = properties if required is not None: - self.required = required + self.required = required if title is not None: - self.title = title + self.title = title if type is not None: - self.type = type + self.type = type if unique_items is not None: - self.unique_items = unique_items + self.unique_items = unique_items + if x_kubernetes_embedded_resource is not None: + self.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource + if x_kubernetes_int_or_string is not None: + self.x_kubernetes_int_or_string = x_kubernetes_int_or_string + if x_kubernetes_preserve_unknown_fields is not None: + self.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields @property def ref(self): - """ - Gets the ref of this V1beta1JSONSchemaProps. + """Gets the ref of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The ref of this V1beta1JSONSchemaProps. + + :return: The ref of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._ref @ref.setter def ref(self, ref): - """ - Sets the ref of this V1beta1JSONSchemaProps. + """Sets the ref of this V1beta1JSONSchemaProps. + - :param ref: The ref of this V1beta1JSONSchemaProps. + :param ref: The ref of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -252,20 +265,20 @@ def ref(self, ref): @property def schema(self): - """ - Gets the schema of this V1beta1JSONSchemaProps. + """Gets the schema of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The schema of this V1beta1JSONSchemaProps. + :return: The schema of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._schema @schema.setter def schema(self, schema): - """ - Sets the schema of this V1beta1JSONSchemaProps. + """Sets the schema of this V1beta1JSONSchemaProps. - :param schema: The schema of this V1beta1JSONSchemaProps. + + :param schema: The schema of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -273,22 +286,22 @@ def schema(self, schema): @property def additional_items(self): - """ - Gets the additional_items of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + """Gets the additional_items of this V1beta1JSONSchemaProps. # noqa: E501 + + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. # noqa: E501 - :return: The additional_items of this V1beta1JSONSchemaProps. + :return: The additional_items of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: object """ return self._additional_items @additional_items.setter def additional_items(self, additional_items): - """ - Sets the additional_items of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + """Sets the additional_items of this V1beta1JSONSchemaProps. + + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. # noqa: E501 - :param additional_items: The additional_items of this V1beta1JSONSchemaProps. + :param additional_items: The additional_items of this V1beta1JSONSchemaProps. # noqa: E501 :type: object """ @@ -296,22 +309,22 @@ def additional_items(self, additional_items): @property def additional_properties(self): - """ - Gets the additional_properties of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + """Gets the additional_properties of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The additional_properties of this V1beta1JSONSchemaProps. + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. # noqa: E501 + + :return: The additional_properties of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: object """ return self._additional_properties @additional_properties.setter def additional_properties(self, additional_properties): - """ - Sets the additional_properties of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. + """Sets the additional_properties of this V1beta1JSONSchemaProps. + + JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. # noqa: E501 - :param additional_properties: The additional_properties of this V1beta1JSONSchemaProps. + :param additional_properties: The additional_properties of this V1beta1JSONSchemaProps. # noqa: E501 :type: object """ @@ -319,20 +332,20 @@ def additional_properties(self, additional_properties): @property def all_of(self): - """ - Gets the all_of of this V1beta1JSONSchemaProps. + """Gets the all_of of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The all_of of this V1beta1JSONSchemaProps. + :return: The all_of of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: list[V1beta1JSONSchemaProps] """ return self._all_of @all_of.setter def all_of(self, all_of): - """ - Sets the all_of of this V1beta1JSONSchemaProps. + """Sets the all_of of this V1beta1JSONSchemaProps. - :param all_of: The all_of of this V1beta1JSONSchemaProps. + + :param all_of: The all_of of this V1beta1JSONSchemaProps. # noqa: E501 :type: list[V1beta1JSONSchemaProps] """ @@ -340,20 +353,20 @@ def all_of(self, all_of): @property def any_of(self): - """ - Gets the any_of of this V1beta1JSONSchemaProps. + """Gets the any_of of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The any_of of this V1beta1JSONSchemaProps. + + :return: The any_of of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: list[V1beta1JSONSchemaProps] """ return self._any_of @any_of.setter def any_of(self, any_of): - """ - Sets the any_of of this V1beta1JSONSchemaProps. + """Sets the any_of of this V1beta1JSONSchemaProps. - :param any_of: The any_of of this V1beta1JSONSchemaProps. + + :param any_of: The any_of of this V1beta1JSONSchemaProps. # noqa: E501 :type: list[V1beta1JSONSchemaProps] """ @@ -361,22 +374,22 @@ def any_of(self, any_of): @property def default(self): - """ - Gets the default of this V1beta1JSONSchemaProps. - JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + """Gets the default of this V1beta1JSONSchemaProps. # noqa: E501 + + default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. # noqa: E501 - :return: The default of this V1beta1JSONSchemaProps. + :return: The default of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: object """ return self._default @default.setter def default(self, default): - """ - Sets the default of this V1beta1JSONSchemaProps. - JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + """Sets the default of this V1beta1JSONSchemaProps. + + default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. # noqa: E501 - :param default: The default of this V1beta1JSONSchemaProps. + :param default: The default of this V1beta1JSONSchemaProps. # noqa: E501 :type: object """ @@ -384,20 +397,20 @@ def default(self, default): @property def definitions(self): - """ - Gets the definitions of this V1beta1JSONSchemaProps. + """Gets the definitions of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The definitions of this V1beta1JSONSchemaProps. + + :return: The definitions of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: dict(str, V1beta1JSONSchemaProps) """ return self._definitions @definitions.setter def definitions(self, definitions): - """ - Sets the definitions of this V1beta1JSONSchemaProps. + """Sets the definitions of this V1beta1JSONSchemaProps. + - :param definitions: The definitions of this V1beta1JSONSchemaProps. + :param definitions: The definitions of this V1beta1JSONSchemaProps. # noqa: E501 :type: dict(str, V1beta1JSONSchemaProps) """ @@ -405,20 +418,20 @@ def definitions(self, definitions): @property def dependencies(self): - """ - Gets the dependencies of this V1beta1JSONSchemaProps. + """Gets the dependencies of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The dependencies of this V1beta1JSONSchemaProps. + :return: The dependencies of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: dict(str, object) """ return self._dependencies @dependencies.setter def dependencies(self, dependencies): - """ - Sets the dependencies of this V1beta1JSONSchemaProps. + """Sets the dependencies of this V1beta1JSONSchemaProps. - :param dependencies: The dependencies of this V1beta1JSONSchemaProps. + + :param dependencies: The dependencies of this V1beta1JSONSchemaProps. # noqa: E501 :type: dict(str, object) """ @@ -426,20 +439,20 @@ def dependencies(self, dependencies): @property def description(self): - """ - Gets the description of this V1beta1JSONSchemaProps. + """Gets the description of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The description of this V1beta1JSONSchemaProps. + :return: The description of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1beta1JSONSchemaProps. + """Sets the description of this V1beta1JSONSchemaProps. + - :param description: The description of this V1beta1JSONSchemaProps. + :param description: The description of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -447,20 +460,20 @@ def description(self, description): @property def enum(self): - """ - Gets the enum of this V1beta1JSONSchemaProps. + """Gets the enum of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The enum of this V1beta1JSONSchemaProps. + + :return: The enum of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: list[object] """ return self._enum @enum.setter def enum(self, enum): - """ - Sets the enum of this V1beta1JSONSchemaProps. + """Sets the enum of this V1beta1JSONSchemaProps. + - :param enum: The enum of this V1beta1JSONSchemaProps. + :param enum: The enum of this V1beta1JSONSchemaProps. # noqa: E501 :type: list[object] """ @@ -468,22 +481,22 @@ def enum(self, enum): @property def example(self): - """ - Gets the example of this V1beta1JSONSchemaProps. - JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + """Gets the example of this V1beta1JSONSchemaProps. # noqa: E501 + + JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. # noqa: E501 - :return: The example of this V1beta1JSONSchemaProps. + :return: The example of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: object """ return self._example @example.setter def example(self, example): - """ - Sets the example of this V1beta1JSONSchemaProps. - JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + """Sets the example of this V1beta1JSONSchemaProps. + + JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. # noqa: E501 - :param example: The example of this V1beta1JSONSchemaProps. + :param example: The example of this V1beta1JSONSchemaProps. # noqa: E501 :type: object """ @@ -491,20 +504,20 @@ def example(self, example): @property def exclusive_maximum(self): - """ - Gets the exclusive_maximum of this V1beta1JSONSchemaProps. + """Gets the exclusive_maximum of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The exclusive_maximum of this V1beta1JSONSchemaProps. + :return: The exclusive_maximum of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: bool """ return self._exclusive_maximum @exclusive_maximum.setter def exclusive_maximum(self, exclusive_maximum): - """ - Sets the exclusive_maximum of this V1beta1JSONSchemaProps. + """Sets the exclusive_maximum of this V1beta1JSONSchemaProps. - :param exclusive_maximum: The exclusive_maximum of this V1beta1JSONSchemaProps. + + :param exclusive_maximum: The exclusive_maximum of this V1beta1JSONSchemaProps. # noqa: E501 :type: bool """ @@ -512,20 +525,20 @@ def exclusive_maximum(self, exclusive_maximum): @property def exclusive_minimum(self): - """ - Gets the exclusive_minimum of this V1beta1JSONSchemaProps. + """Gets the exclusive_minimum of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The exclusive_minimum of this V1beta1JSONSchemaProps. + :return: The exclusive_minimum of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: bool """ return self._exclusive_minimum @exclusive_minimum.setter def exclusive_minimum(self, exclusive_minimum): - """ - Sets the exclusive_minimum of this V1beta1JSONSchemaProps. + """Sets the exclusive_minimum of this V1beta1JSONSchemaProps. + - :param exclusive_minimum: The exclusive_minimum of this V1beta1JSONSchemaProps. + :param exclusive_minimum: The exclusive_minimum of this V1beta1JSONSchemaProps. # noqa: E501 :type: bool """ @@ -533,20 +546,20 @@ def exclusive_minimum(self, exclusive_minimum): @property def external_docs(self): - """ - Gets the external_docs of this V1beta1JSONSchemaProps. + """Gets the external_docs of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The external_docs of this V1beta1JSONSchemaProps. + + :return: The external_docs of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: V1beta1ExternalDocumentation """ return self._external_docs @external_docs.setter def external_docs(self, external_docs): - """ - Sets the external_docs of this V1beta1JSONSchemaProps. + """Sets the external_docs of this V1beta1JSONSchemaProps. + - :param external_docs: The external_docs of this V1beta1JSONSchemaProps. + :param external_docs: The external_docs of this V1beta1JSONSchemaProps. # noqa: E501 :type: V1beta1ExternalDocumentation """ @@ -554,20 +567,20 @@ def external_docs(self, external_docs): @property def format(self): - """ - Gets the format of this V1beta1JSONSchemaProps. + """Gets the format of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The format of this V1beta1JSONSchemaProps. + :return: The format of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this V1beta1JSONSchemaProps. + """Sets the format of this V1beta1JSONSchemaProps. - :param format: The format of this V1beta1JSONSchemaProps. + + :param format: The format of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -575,20 +588,20 @@ def format(self, format): @property def id(self): - """ - Gets the id of this V1beta1JSONSchemaProps. + """Gets the id of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The id of this V1beta1JSONSchemaProps. + :return: The id of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): - """ - Sets the id of this V1beta1JSONSchemaProps. + """Sets the id of this V1beta1JSONSchemaProps. + - :param id: The id of this V1beta1JSONSchemaProps. + :param id: The id of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -596,22 +609,22 @@ def id(self, id): @property def items(self): - """ - Gets the items of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. + """Gets the items of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The items of this V1beta1JSONSchemaProps. + JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. # noqa: E501 + + :return: The items of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: object """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1JSONSchemaProps. - JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. + """Sets the items of this V1beta1JSONSchemaProps. + + JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. # noqa: E501 - :param items: The items of this V1beta1JSONSchemaProps. + :param items: The items of this V1beta1JSONSchemaProps. # noqa: E501 :type: object """ @@ -619,20 +632,20 @@ def items(self, items): @property def max_items(self): - """ - Gets the max_items of this V1beta1JSONSchemaProps. + """Gets the max_items of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The max_items of this V1beta1JSONSchemaProps. + :return: The max_items of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._max_items @max_items.setter def max_items(self, max_items): - """ - Sets the max_items of this V1beta1JSONSchemaProps. + """Sets the max_items of this V1beta1JSONSchemaProps. - :param max_items: The max_items of this V1beta1JSONSchemaProps. + + :param max_items: The max_items of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -640,20 +653,20 @@ def max_items(self, max_items): @property def max_length(self): - """ - Gets the max_length of this V1beta1JSONSchemaProps. + """Gets the max_length of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The max_length of this V1beta1JSONSchemaProps. + :return: The max_length of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._max_length @max_length.setter def max_length(self, max_length): - """ - Sets the max_length of this V1beta1JSONSchemaProps. + """Sets the max_length of this V1beta1JSONSchemaProps. + - :param max_length: The max_length of this V1beta1JSONSchemaProps. + :param max_length: The max_length of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -661,20 +674,20 @@ def max_length(self, max_length): @property def max_properties(self): - """ - Gets the max_properties of this V1beta1JSONSchemaProps. + """Gets the max_properties of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The max_properties of this V1beta1JSONSchemaProps. + + :return: The max_properties of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._max_properties @max_properties.setter def max_properties(self, max_properties): - """ - Sets the max_properties of this V1beta1JSONSchemaProps. + """Sets the max_properties of this V1beta1JSONSchemaProps. + - :param max_properties: The max_properties of this V1beta1JSONSchemaProps. + :param max_properties: The max_properties of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -682,20 +695,20 @@ def max_properties(self, max_properties): @property def maximum(self): - """ - Gets the maximum of this V1beta1JSONSchemaProps. + """Gets the maximum of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The maximum of this V1beta1JSONSchemaProps. + :return: The maximum of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: float """ return self._maximum @maximum.setter def maximum(self, maximum): - """ - Sets the maximum of this V1beta1JSONSchemaProps. + """Sets the maximum of this V1beta1JSONSchemaProps. - :param maximum: The maximum of this V1beta1JSONSchemaProps. + + :param maximum: The maximum of this V1beta1JSONSchemaProps. # noqa: E501 :type: float """ @@ -703,20 +716,20 @@ def maximum(self, maximum): @property def min_items(self): - """ - Gets the min_items of this V1beta1JSONSchemaProps. + """Gets the min_items of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The min_items of this V1beta1JSONSchemaProps. + :return: The min_items of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._min_items @min_items.setter def min_items(self, min_items): - """ - Sets the min_items of this V1beta1JSONSchemaProps. + """Sets the min_items of this V1beta1JSONSchemaProps. + - :param min_items: The min_items of this V1beta1JSONSchemaProps. + :param min_items: The min_items of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -724,20 +737,20 @@ def min_items(self, min_items): @property def min_length(self): - """ - Gets the min_length of this V1beta1JSONSchemaProps. + """Gets the min_length of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The min_length of this V1beta1JSONSchemaProps. + + :return: The min_length of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._min_length @min_length.setter def min_length(self, min_length): - """ - Sets the min_length of this V1beta1JSONSchemaProps. + """Sets the min_length of this V1beta1JSONSchemaProps. - :param min_length: The min_length of this V1beta1JSONSchemaProps. + + :param min_length: The min_length of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -745,20 +758,20 @@ def min_length(self, min_length): @property def min_properties(self): - """ - Gets the min_properties of this V1beta1JSONSchemaProps. + """Gets the min_properties of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The min_properties of this V1beta1JSONSchemaProps. + + :return: The min_properties of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: int """ return self._min_properties @min_properties.setter def min_properties(self, min_properties): - """ - Sets the min_properties of this V1beta1JSONSchemaProps. + """Sets the min_properties of this V1beta1JSONSchemaProps. + - :param min_properties: The min_properties of this V1beta1JSONSchemaProps. + :param min_properties: The min_properties of this V1beta1JSONSchemaProps. # noqa: E501 :type: int """ @@ -766,20 +779,20 @@ def min_properties(self, min_properties): @property def minimum(self): - """ - Gets the minimum of this V1beta1JSONSchemaProps. + """Gets the minimum of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The minimum of this V1beta1JSONSchemaProps. + :return: The minimum of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: float """ return self._minimum @minimum.setter def minimum(self, minimum): - """ - Sets the minimum of this V1beta1JSONSchemaProps. + """Sets the minimum of this V1beta1JSONSchemaProps. - :param minimum: The minimum of this V1beta1JSONSchemaProps. + + :param minimum: The minimum of this V1beta1JSONSchemaProps. # noqa: E501 :type: float """ @@ -787,20 +800,20 @@ def minimum(self, minimum): @property def multiple_of(self): - """ - Gets the multiple_of of this V1beta1JSONSchemaProps. + """Gets the multiple_of of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The multiple_of of this V1beta1JSONSchemaProps. + :return: The multiple_of of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: float """ return self._multiple_of @multiple_of.setter def multiple_of(self, multiple_of): - """ - Sets the multiple_of of this V1beta1JSONSchemaProps. + """Sets the multiple_of of this V1beta1JSONSchemaProps. + - :param multiple_of: The multiple_of of this V1beta1JSONSchemaProps. + :param multiple_of: The multiple_of of this V1beta1JSONSchemaProps. # noqa: E501 :type: float """ @@ -808,20 +821,20 @@ def multiple_of(self, multiple_of): @property def _not(self): - """ - Gets the _not of this V1beta1JSONSchemaProps. + """Gets the _not of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The _not of this V1beta1JSONSchemaProps. + + :return: The _not of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: V1beta1JSONSchemaProps """ return self.__not @_not.setter def _not(self, _not): - """ - Sets the _not of this V1beta1JSONSchemaProps. + """Sets the _not of this V1beta1JSONSchemaProps. + - :param _not: The _not of this V1beta1JSONSchemaProps. + :param _not: The _not of this V1beta1JSONSchemaProps. # noqa: E501 :type: V1beta1JSONSchemaProps """ @@ -829,20 +842,20 @@ def _not(self, _not): @property def nullable(self): - """ - Gets the nullable of this V1beta1JSONSchemaProps. + """Gets the nullable of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The nullable of this V1beta1JSONSchemaProps. + :return: The nullable of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: bool """ return self._nullable @nullable.setter def nullable(self, nullable): - """ - Sets the nullable of this V1beta1JSONSchemaProps. + """Sets the nullable of this V1beta1JSONSchemaProps. - :param nullable: The nullable of this V1beta1JSONSchemaProps. + + :param nullable: The nullable of this V1beta1JSONSchemaProps. # noqa: E501 :type: bool """ @@ -850,20 +863,20 @@ def nullable(self, nullable): @property def one_of(self): - """ - Gets the one_of of this V1beta1JSONSchemaProps. + """Gets the one_of of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The one_of of this V1beta1JSONSchemaProps. + :return: The one_of of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: list[V1beta1JSONSchemaProps] """ return self._one_of @one_of.setter def one_of(self, one_of): - """ - Sets the one_of of this V1beta1JSONSchemaProps. + """Sets the one_of of this V1beta1JSONSchemaProps. + - :param one_of: The one_of of this V1beta1JSONSchemaProps. + :param one_of: The one_of of this V1beta1JSONSchemaProps. # noqa: E501 :type: list[V1beta1JSONSchemaProps] """ @@ -871,20 +884,20 @@ def one_of(self, one_of): @property def pattern(self): - """ - Gets the pattern of this V1beta1JSONSchemaProps. + """Gets the pattern of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The pattern of this V1beta1JSONSchemaProps. + :return: The pattern of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._pattern @pattern.setter def pattern(self, pattern): - """ - Sets the pattern of this V1beta1JSONSchemaProps. + """Sets the pattern of this V1beta1JSONSchemaProps. + - :param pattern: The pattern of this V1beta1JSONSchemaProps. + :param pattern: The pattern of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -892,20 +905,20 @@ def pattern(self, pattern): @property def pattern_properties(self): - """ - Gets the pattern_properties of this V1beta1JSONSchemaProps. + """Gets the pattern_properties of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The pattern_properties of this V1beta1JSONSchemaProps. + + :return: The pattern_properties of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: dict(str, V1beta1JSONSchemaProps) """ return self._pattern_properties @pattern_properties.setter def pattern_properties(self, pattern_properties): - """ - Sets the pattern_properties of this V1beta1JSONSchemaProps. + """Sets the pattern_properties of this V1beta1JSONSchemaProps. + - :param pattern_properties: The pattern_properties of this V1beta1JSONSchemaProps. + :param pattern_properties: The pattern_properties of this V1beta1JSONSchemaProps. # noqa: E501 :type: dict(str, V1beta1JSONSchemaProps) """ @@ -913,20 +926,20 @@ def pattern_properties(self, pattern_properties): @property def properties(self): - """ - Gets the properties of this V1beta1JSONSchemaProps. + """Gets the properties of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The properties of this V1beta1JSONSchemaProps. + :return: The properties of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: dict(str, V1beta1JSONSchemaProps) """ return self._properties @properties.setter def properties(self, properties): - """ - Sets the properties of this V1beta1JSONSchemaProps. + """Sets the properties of this V1beta1JSONSchemaProps. - :param properties: The properties of this V1beta1JSONSchemaProps. + + :param properties: The properties of this V1beta1JSONSchemaProps. # noqa: E501 :type: dict(str, V1beta1JSONSchemaProps) """ @@ -934,20 +947,20 @@ def properties(self, properties): @property def required(self): - """ - Gets the required of this V1beta1JSONSchemaProps. + """Gets the required of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The required of this V1beta1JSONSchemaProps. + :return: The required of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: list[str] """ return self._required @required.setter def required(self, required): - """ - Sets the required of this V1beta1JSONSchemaProps. + """Sets the required of this V1beta1JSONSchemaProps. + - :param required: The required of this V1beta1JSONSchemaProps. + :param required: The required of this V1beta1JSONSchemaProps. # noqa: E501 :type: list[str] """ @@ -955,20 +968,20 @@ def required(self, required): @property def title(self): - """ - Gets the title of this V1beta1JSONSchemaProps. + """Gets the title of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The title of this V1beta1JSONSchemaProps. + + :return: The title of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._title @title.setter def title(self, title): - """ - Sets the title of this V1beta1JSONSchemaProps. + """Sets the title of this V1beta1JSONSchemaProps. + - :param title: The title of this V1beta1JSONSchemaProps. + :param title: The title of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -976,20 +989,20 @@ def title(self, title): @property def type(self): - """ - Gets the type of this V1beta1JSONSchemaProps. + """Gets the type of this V1beta1JSONSchemaProps. # noqa: E501 + - :return: The type of this V1beta1JSONSchemaProps. + :return: The type of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1JSONSchemaProps. + """Sets the type of this V1beta1JSONSchemaProps. - :param type: The type of this V1beta1JSONSchemaProps. + + :param type: The type of this V1beta1JSONSchemaProps. # noqa: E501 :type: str """ @@ -997,32 +1010,99 @@ def type(self, type): @property def unique_items(self): - """ - Gets the unique_items of this V1beta1JSONSchemaProps. + """Gets the unique_items of this V1beta1JSONSchemaProps. # noqa: E501 - :return: The unique_items of this V1beta1JSONSchemaProps. + + :return: The unique_items of this V1beta1JSONSchemaProps. # noqa: E501 :rtype: bool """ return self._unique_items @unique_items.setter def unique_items(self, unique_items): - """ - Sets the unique_items of this V1beta1JSONSchemaProps. + """Sets the unique_items of this V1beta1JSONSchemaProps. - :param unique_items: The unique_items of this V1beta1JSONSchemaProps. + + :param unique_items: The unique_items of this V1beta1JSONSchemaProps. # noqa: E501 :type: bool """ self._unique_items = unique_items - def to_dict(self): + @property + def x_kubernetes_embedded_resource(self): + """Gets the x_kubernetes_embedded_resource of this V1beta1JSONSchemaProps. # noqa: E501 + + x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). # noqa: E501 + + :return: The x_kubernetes_embedded_resource of this V1beta1JSONSchemaProps. # noqa: E501 + :rtype: bool """ - Returns the model properties as a dict + return self._x_kubernetes_embedded_resource + + @x_kubernetes_embedded_resource.setter + def x_kubernetes_embedded_resource(self, x_kubernetes_embedded_resource): + """Sets the x_kubernetes_embedded_resource of this V1beta1JSONSchemaProps. + + x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). # noqa: E501 + + :param x_kubernetes_embedded_resource: The x_kubernetes_embedded_resource of this V1beta1JSONSchemaProps. # noqa: E501 + :type: bool + """ + + self._x_kubernetes_embedded_resource = x_kubernetes_embedded_resource + + @property + def x_kubernetes_int_or_string(self): + """Gets the x_kubernetes_int_or_string of this V1beta1JSONSchemaProps. # noqa: E501 + + x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more # noqa: E501 + + :return: The x_kubernetes_int_or_string of this V1beta1JSONSchemaProps. # noqa: E501 + :rtype: bool """ + return self._x_kubernetes_int_or_string + + @x_kubernetes_int_or_string.setter + def x_kubernetes_int_or_string(self, x_kubernetes_int_or_string): + """Sets the x_kubernetes_int_or_string of this V1beta1JSONSchemaProps. + + x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more # noqa: E501 + + :param x_kubernetes_int_or_string: The x_kubernetes_int_or_string of this V1beta1JSONSchemaProps. # noqa: E501 + :type: bool + """ + + self._x_kubernetes_int_or_string = x_kubernetes_int_or_string + + @property + def x_kubernetes_preserve_unknown_fields(self): + """Gets the x_kubernetes_preserve_unknown_fields of this V1beta1JSONSchemaProps. # noqa: E501 + + x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. # noqa: E501 + + :return: The x_kubernetes_preserve_unknown_fields of this V1beta1JSONSchemaProps. # noqa: E501 + :rtype: bool + """ + return self._x_kubernetes_preserve_unknown_fields + + @x_kubernetes_preserve_unknown_fields.setter + def x_kubernetes_preserve_unknown_fields(self, x_kubernetes_preserve_unknown_fields): + """Sets the x_kubernetes_preserve_unknown_fields of this V1beta1JSONSchemaProps. + + x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. # noqa: E501 + + :param x_kubernetes_preserve_unknown_fields: The x_kubernetes_preserve_unknown_fields of this V1beta1JSONSchemaProps. # noqa: E501 + :type: bool + """ + + self._x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields + + def to_dict(self): + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1043,28 +1123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1JSONSchemaProps): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_lease.py b/kubernetes/client/models/v1beta1_lease.py index c1c3121057..6de877d207 100644 --- a/kubernetes/client/models/v1beta1_lease.py +++ b/kubernetes/client/models/v1beta1_lease.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1Lease(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1beta1Lease(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1beta1Lease - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1beta1Lease - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1beta1Lease. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1Lease. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1Lease. + :return: The api_version of this V1beta1Lease. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1Lease. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1Lease. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1Lease. + :param api_version: The api_version of this V1beta1Lease. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1Lease. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1Lease. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1Lease. + :return: The kind of this V1beta1Lease. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1Lease. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1Lease. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1Lease. + :param kind: The kind of this V1beta1Lease. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1Lease. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1Lease. # noqa: E501 + - :return: The metadata of this V1beta1Lease. + :return: The metadata of this V1beta1Lease. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1Lease. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1Lease. + - :param metadata: The metadata of this V1beta1Lease. + :param metadata: The metadata of this V1beta1Lease. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1Lease. - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V1beta1Lease. # noqa: E501 + - :return: The spec of this V1beta1Lease. + :return: The spec of this V1beta1Lease. # noqa: E501 :rtype: V1beta1LeaseSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1Lease. - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V1beta1Lease. + - :param spec: The spec of this V1beta1Lease. + :param spec: The spec of this V1beta1Lease. # noqa: E501 :type: V1beta1LeaseSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1Lease): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_lease_list.py b/kubernetes/client/models/v1beta1_lease_list.py index 1d0ad1ee80..4446649997 100644 --- a/kubernetes/client/models/v1beta1_lease_list.py +++ b/kubernetes/client/models/v1beta1_lease_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1LeaseList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1Lease]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1LeaseList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1LeaseList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1LeaseList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1LeaseList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1LeaseList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1LeaseList. + :return: The api_version of this V1beta1LeaseList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1LeaseList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1LeaseList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1LeaseList. + :param api_version: The api_version of this V1beta1LeaseList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1LeaseList. - Items is a list of schema objects. + """Gets the items of this V1beta1LeaseList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1beta1LeaseList. + :return: The items of this V1beta1LeaseList. # noqa: E501 :rtype: list[V1beta1Lease] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1LeaseList. - Items is a list of schema objects. + """Sets the items of this V1beta1LeaseList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1beta1LeaseList. + :param items: The items of this V1beta1LeaseList. # noqa: E501 :type: list[V1beta1Lease] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1LeaseList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1LeaseList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1LeaseList. + :return: The kind of this V1beta1LeaseList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1LeaseList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1LeaseList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1LeaseList. + :param kind: The kind of this V1beta1LeaseList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1LeaseList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1LeaseList. # noqa: E501 + - :return: The metadata of this V1beta1LeaseList. + :return: The metadata of this V1beta1LeaseList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1LeaseList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1LeaseList. + - :param metadata: The metadata of this V1beta1LeaseList. + :param metadata: The metadata of this V1beta1LeaseList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1LeaseList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_lease_spec.py b/kubernetes/client/models/v1beta1_lease_spec.py index 0880114dec..59e711f342 100644 --- a/kubernetes/client/models/v1beta1_lease_spec.py +++ b/kubernetes/client/models/v1beta1_lease_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1LeaseSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'acquire_time': 'datetime', 'holder_identity': 'str', 'lease_duration_seconds': 'int', @@ -46,10 +46,8 @@ class V1beta1LeaseSpec(object): 'renew_time': 'renewTime' } - def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): - """ - V1beta1LeaseSpec - a model defined in Swagger - """ + def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): # noqa: E501 + """V1beta1LeaseSpec - a model defined in OpenAPI""" # noqa: E501 self._acquire_time = None self._holder_identity = None @@ -59,34 +57,34 @@ def __init__(self, acquire_time=None, holder_identity=None, lease_duration_secon self.discriminator = None if acquire_time is not None: - self.acquire_time = acquire_time + self.acquire_time = acquire_time if holder_identity is not None: - self.holder_identity = holder_identity + self.holder_identity = holder_identity if lease_duration_seconds is not None: - self.lease_duration_seconds = lease_duration_seconds + self.lease_duration_seconds = lease_duration_seconds if lease_transitions is not None: - self.lease_transitions = lease_transitions + self.lease_transitions = lease_transitions if renew_time is not None: - self.renew_time = renew_time + self.renew_time = renew_time @property def acquire_time(self): - """ - Gets the acquire_time of this V1beta1LeaseSpec. - acquireTime is a time when the current lease was acquired. + """Gets the acquire_time of this V1beta1LeaseSpec. # noqa: E501 - :return: The acquire_time of this V1beta1LeaseSpec. + acquireTime is a time when the current lease was acquired. # noqa: E501 + + :return: The acquire_time of this V1beta1LeaseSpec. # noqa: E501 :rtype: datetime """ return self._acquire_time @acquire_time.setter def acquire_time(self, acquire_time): - """ - Sets the acquire_time of this V1beta1LeaseSpec. - acquireTime is a time when the current lease was acquired. + """Sets the acquire_time of this V1beta1LeaseSpec. - :param acquire_time: The acquire_time of this V1beta1LeaseSpec. + acquireTime is a time when the current lease was acquired. # noqa: E501 + + :param acquire_time: The acquire_time of this V1beta1LeaseSpec. # noqa: E501 :type: datetime """ @@ -94,22 +92,22 @@ def acquire_time(self, acquire_time): @property def holder_identity(self): - """ - Gets the holder_identity of this V1beta1LeaseSpec. - holderIdentity contains the identity of the holder of a current lease. + """Gets the holder_identity of this V1beta1LeaseSpec. # noqa: E501 + + holderIdentity contains the identity of the holder of a current lease. # noqa: E501 - :return: The holder_identity of this V1beta1LeaseSpec. + :return: The holder_identity of this V1beta1LeaseSpec. # noqa: E501 :rtype: str """ return self._holder_identity @holder_identity.setter def holder_identity(self, holder_identity): - """ - Sets the holder_identity of this V1beta1LeaseSpec. - holderIdentity contains the identity of the holder of a current lease. + """Sets the holder_identity of this V1beta1LeaseSpec. + + holderIdentity contains the identity of the holder of a current lease. # noqa: E501 - :param holder_identity: The holder_identity of this V1beta1LeaseSpec. + :param holder_identity: The holder_identity of this V1beta1LeaseSpec. # noqa: E501 :type: str """ @@ -117,22 +115,22 @@ def holder_identity(self, holder_identity): @property def lease_duration_seconds(self): - """ - Gets the lease_duration_seconds of this V1beta1LeaseSpec. - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + """Gets the lease_duration_seconds of this V1beta1LeaseSpec. # noqa: E501 + + leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. # noqa: E501 - :return: The lease_duration_seconds of this V1beta1LeaseSpec. + :return: The lease_duration_seconds of this V1beta1LeaseSpec. # noqa: E501 :rtype: int """ return self._lease_duration_seconds @lease_duration_seconds.setter def lease_duration_seconds(self, lease_duration_seconds): - """ - Sets the lease_duration_seconds of this V1beta1LeaseSpec. - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + """Sets the lease_duration_seconds of this V1beta1LeaseSpec. + + leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. # noqa: E501 - :param lease_duration_seconds: The lease_duration_seconds of this V1beta1LeaseSpec. + :param lease_duration_seconds: The lease_duration_seconds of this V1beta1LeaseSpec. # noqa: E501 :type: int """ @@ -140,22 +138,22 @@ def lease_duration_seconds(self, lease_duration_seconds): @property def lease_transitions(self): - """ - Gets the lease_transitions of this V1beta1LeaseSpec. - leaseTransitions is the number of transitions of a lease between holders. + """Gets the lease_transitions of this V1beta1LeaseSpec. # noqa: E501 + + leaseTransitions is the number of transitions of a lease between holders. # noqa: E501 - :return: The lease_transitions of this V1beta1LeaseSpec. + :return: The lease_transitions of this V1beta1LeaseSpec. # noqa: E501 :rtype: int """ return self._lease_transitions @lease_transitions.setter def lease_transitions(self, lease_transitions): - """ - Sets the lease_transitions of this V1beta1LeaseSpec. - leaseTransitions is the number of transitions of a lease between holders. + """Sets the lease_transitions of this V1beta1LeaseSpec. - :param lease_transitions: The lease_transitions of this V1beta1LeaseSpec. + leaseTransitions is the number of transitions of a lease between holders. # noqa: E501 + + :param lease_transitions: The lease_transitions of this V1beta1LeaseSpec. # noqa: E501 :type: int """ @@ -163,34 +161,32 @@ def lease_transitions(self, lease_transitions): @property def renew_time(self): - """ - Gets the renew_time of this V1beta1LeaseSpec. - renewTime is a time when the current holder of a lease has last updated the lease. + """Gets the renew_time of this V1beta1LeaseSpec. # noqa: E501 - :return: The renew_time of this V1beta1LeaseSpec. + renewTime is a time when the current holder of a lease has last updated the lease. # noqa: E501 + + :return: The renew_time of this V1beta1LeaseSpec. # noqa: E501 :rtype: datetime """ return self._renew_time @renew_time.setter def renew_time(self, renew_time): - """ - Sets the renew_time of this V1beta1LeaseSpec. - renewTime is a time when the current holder of a lease has last updated the lease. + """Sets the renew_time of this V1beta1LeaseSpec. - :param renew_time: The renew_time of this V1beta1LeaseSpec. + renewTime is a time when the current holder of a lease has last updated the lease. # noqa: E501 + + :param renew_time: The renew_time of this V1beta1LeaseSpec. # noqa: E501 :type: datetime """ self._renew_time = renew_time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1LeaseSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_local_subject_access_review.py b/kubernetes/client/models/v1beta1_local_subject_access_review.py index 219a50e5cf..0010ecb231 100644 --- a/kubernetes/client/models/v1beta1_local_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_local_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1LocalSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1LocalSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1LocalSubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1LocalSubjectAccessReview. # noqa: E501 - :return: The api_version of this V1beta1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1LocalSubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1LocalSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1LocalSubjectAccessReview. - :param api_version: The api_version of this V1beta1LocalSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1LocalSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1LocalSubjectAccessReview. + :return: The kind of this V1beta1LocalSubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1LocalSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1LocalSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1LocalSubjectAccessReview. + :param kind: The kind of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1LocalSubjectAccessReview. + """Gets the metadata of this V1beta1LocalSubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1beta1LocalSubjectAccessReview. + :return: The metadata of this V1beta1LocalSubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1LocalSubjectAccessReview. + """Sets the metadata of this V1beta1LocalSubjectAccessReview. + - :param metadata: The metadata of this V1beta1LocalSubjectAccessReview. + :param metadata: The metadata of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """Gets the spec of this V1beta1LocalSubjectAccessReview. # noqa: E501 + - :return: The spec of this V1beta1LocalSubjectAccessReview. + :return: The spec of this V1beta1LocalSubjectAccessReview. # noqa: E501 :rtype: V1beta1SubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1LocalSubjectAccessReview. - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """Sets the spec of this V1beta1LocalSubjectAccessReview. - :param spec: The spec of this V1beta1LocalSubjectAccessReview. + + :param spec: The spec of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1beta1LocalSubjectAccessReview. # noqa: E501 - :return: The status of this V1beta1LocalSubjectAccessReview. + + :return: The status of this V1beta1LocalSubjectAccessReview. # noqa: E501 :rtype: V1beta1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1LocalSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1beta1LocalSubjectAccessReview. - :param status: The status of this V1beta1LocalSubjectAccessReview. + + :param status: The status of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1LocalSubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_mutating_webhook.py b/kubernetes/client/models/v1beta1_mutating_webhook.py new file mode 100644 index 0000000000..b55fc6ce91 --- /dev/null +++ b/kubernetes/client/models/v1beta1_mutating_webhook.py @@ -0,0 +1,390 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class V1beta1MutatingWebhook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'admission_review_versions': 'list[str]', + 'client_config': 'AdmissionregistrationV1beta1WebhookClientConfig', + 'failure_policy': 'str', + 'match_policy': 'str', + 'name': 'str', + 'namespace_selector': 'V1LabelSelector', + 'object_selector': 'V1LabelSelector', + 'reinvocation_policy': 'str', + 'rules': 'list[V1beta1RuleWithOperations]', + 'side_effects': 'str', + 'timeout_seconds': 'int' + } + + attribute_map = { + 'admission_review_versions': 'admissionReviewVersions', + 'client_config': 'clientConfig', + 'failure_policy': 'failurePolicy', + 'match_policy': 'matchPolicy', + 'name': 'name', + 'namespace_selector': 'namespaceSelector', + 'object_selector': 'objectSelector', + 'reinvocation_policy': 'reinvocationPolicy', + 'rules': 'rules', + 'side_effects': 'sideEffects', + 'timeout_seconds': 'timeoutSeconds' + } + + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + """V1beta1MutatingWebhook - a model defined in OpenAPI""" # noqa: E501 + + self._admission_review_versions = None + self._client_config = None + self._failure_policy = None + self._match_policy = None + self._name = None + self._namespace_selector = None + self._object_selector = None + self._reinvocation_policy = None + self._rules = None + self._side_effects = None + self._timeout_seconds = None + self.discriminator = None + + if admission_review_versions is not None: + self.admission_review_versions = admission_review_versions + self.client_config = client_config + if failure_policy is not None: + self.failure_policy = failure_policy + if match_policy is not None: + self.match_policy = match_policy + self.name = name + if namespace_selector is not None: + self.namespace_selector = namespace_selector + if object_selector is not None: + self.object_selector = object_selector + if reinvocation_policy is not None: + self.reinvocation_policy = reinvocation_policy + if rules is not None: + self.rules = rules + if side_effects is not None: + self.side_effects = side_effects + if timeout_seconds is not None: + self.timeout_seconds = timeout_seconds + + @property + def admission_review_versions(self): + """Gets the admission_review_versions of this V1beta1MutatingWebhook. # noqa: E501 + + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. # noqa: E501 + + :return: The admission_review_versions of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: list[str] + """ + return self._admission_review_versions + + @admission_review_versions.setter + def admission_review_versions(self, admission_review_versions): + """Sets the admission_review_versions of this V1beta1MutatingWebhook. + + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. # noqa: E501 + + :param admission_review_versions: The admission_review_versions of this V1beta1MutatingWebhook. # noqa: E501 + :type: list[str] + """ + + self._admission_review_versions = admission_review_versions + + @property + def client_config(self): + """Gets the client_config of this V1beta1MutatingWebhook. # noqa: E501 + + + :return: The client_config of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: AdmissionregistrationV1beta1WebhookClientConfig + """ + return self._client_config + + @client_config.setter + def client_config(self, client_config): + """Sets the client_config of this V1beta1MutatingWebhook. + + + :param client_config: The client_config of this V1beta1MutatingWebhook. # noqa: E501 + :type: AdmissionregistrationV1beta1WebhookClientConfig + """ + if client_config is None: + raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 + + self._client_config = client_config + + @property + def failure_policy(self): + """Gets the failure_policy of this V1beta1MutatingWebhook. # noqa: E501 + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. # noqa: E501 + + :return: The failure_policy of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._failure_policy + + @failure_policy.setter + def failure_policy(self, failure_policy): + """Sets the failure_policy of this V1beta1MutatingWebhook. + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. # noqa: E501 + + :param failure_policy: The failure_policy of this V1beta1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._failure_policy = failure_policy + + @property + def match_policy(self): + """Gets the match_policy of this V1beta1MutatingWebhook. # noqa: E501 + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" # noqa: E501 + + :return: The match_policy of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._match_policy + + @match_policy.setter + def match_policy(self, match_policy): + """Sets the match_policy of this V1beta1MutatingWebhook. + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" # noqa: E501 + + :param match_policy: The match_policy of this V1beta1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._match_policy = match_policy + + @property + def name(self): + """Gets the name of this V1beta1MutatingWebhook. # noqa: E501 + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 + + :return: The name of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1beta1MutatingWebhook. + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 + + :param name: The name of this V1beta1MutatingWebhook. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def namespace_selector(self): + """Gets the namespace_selector of this V1beta1MutatingWebhook. # noqa: E501 + + + :return: The namespace_selector of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this V1beta1MutatingWebhook. + + + :param namespace_selector: The namespace_selector of this V1beta1MutatingWebhook. # noqa: E501 + :type: V1LabelSelector + """ + + self._namespace_selector = namespace_selector + + @property + def object_selector(self): + """Gets the object_selector of this V1beta1MutatingWebhook. # noqa: E501 + + + :return: The object_selector of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._object_selector + + @object_selector.setter + def object_selector(self, object_selector): + """Sets the object_selector of this V1beta1MutatingWebhook. + + + :param object_selector: The object_selector of this V1beta1MutatingWebhook. # noqa: E501 + :type: V1LabelSelector + """ + + self._object_selector = object_selector + + @property + def reinvocation_policy(self): + """Gets the reinvocation_policy of this V1beta1MutatingWebhook. # noqa: E501 + + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501 + + :return: The reinvocation_policy of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._reinvocation_policy + + @reinvocation_policy.setter + def reinvocation_policy(self, reinvocation_policy): + """Sets the reinvocation_policy of this V1beta1MutatingWebhook. + + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501 + + :param reinvocation_policy: The reinvocation_policy of this V1beta1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._reinvocation_policy = reinvocation_policy + + @property + def rules(self): + """Gets the rules of this V1beta1MutatingWebhook. # noqa: E501 + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 + + :return: The rules of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: list[V1beta1RuleWithOperations] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this V1beta1MutatingWebhook. + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 + + :param rules: The rules of this V1beta1MutatingWebhook. # noqa: E501 + :type: list[V1beta1RuleWithOperations] + """ + + self._rules = rules + + @property + def side_effects(self): + """Gets the side_effects of this V1beta1MutatingWebhook. # noqa: E501 + + SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. # noqa: E501 + + :return: The side_effects of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: str + """ + return self._side_effects + + @side_effects.setter + def side_effects(self, side_effects): + """Sets the side_effects of this V1beta1MutatingWebhook. + + SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. # noqa: E501 + + :param side_effects: The side_effects of this V1beta1MutatingWebhook. # noqa: E501 + :type: str + """ + + self._side_effects = side_effects + + @property + def timeout_seconds(self): + """Gets the timeout_seconds of this V1beta1MutatingWebhook. # noqa: E501 + + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. # noqa: E501 + + :return: The timeout_seconds of this V1beta1MutatingWebhook. # noqa: E501 + :rtype: int + """ + return self._timeout_seconds + + @timeout_seconds.setter + def timeout_seconds(self, timeout_seconds): + """Sets the timeout_seconds of this V1beta1MutatingWebhook. + + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. # noqa: E501 + + :param timeout_seconds: The timeout_seconds of this V1beta1MutatingWebhook. # noqa: E501 + :type: int + """ + + self._timeout_seconds = timeout_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1MutatingWebhook): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py b/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py index fbfad5825c..ee0c8e4bec 100644 --- a/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py +++ b/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py @@ -3,38 +3,38 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1MutatingWebhookConfiguration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'webhooks': 'list[V1beta1Webhook]' + 'webhooks': 'list[V1beta1MutatingWebhook]' } attribute_map = { @@ -44,10 +44,8 @@ class V1beta1MutatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): - """ - V1beta1MutatingWebhookConfiguration - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + """V1beta1MutatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if webhooks is not None: - self.webhooks = webhooks + self.webhooks = webhooks @property def api_version(self): - """ - Gets the api_version of this V1beta1MutatingWebhookConfiguration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1MutatingWebhookConfiguration. + :return: The api_version of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1MutatingWebhookConfiguration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1MutatingWebhookConfiguration. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1MutatingWebhookConfiguration. + :param api_version: The api_version of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1MutatingWebhookConfiguration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1MutatingWebhookConfiguration. + :return: The kind of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1MutatingWebhookConfiguration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1MutatingWebhookConfiguration. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1MutatingWebhookConfiguration. + :param kind: The kind of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1MutatingWebhookConfiguration. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Gets the metadata of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + - :return: The metadata of this V1beta1MutatingWebhookConfiguration. + :return: The metadata of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1MutatingWebhookConfiguration. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Sets the metadata of this V1beta1MutatingWebhookConfiguration. + - :param metadata: The metadata of this V1beta1MutatingWebhookConfiguration. + :param metadata: The metadata of this V1beta1MutatingWebhookConfiguration. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def webhooks(self): - """ - Gets the webhooks of this V1beta1MutatingWebhookConfiguration. - Webhooks is a list of webhooks and the affected resources and operations. + """Gets the webhooks of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 - :return: The webhooks of this V1beta1MutatingWebhookConfiguration. - :rtype: list[V1beta1Webhook] + :return: The webhooks of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + :rtype: list[V1beta1MutatingWebhook] """ return self._webhooks @webhooks.setter def webhooks(self, webhooks): - """ - Sets the webhooks of this V1beta1MutatingWebhookConfiguration. - Webhooks is a list of webhooks and the affected resources and operations. + """Sets the webhooks of this V1beta1MutatingWebhookConfiguration. + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 - :param webhooks: The webhooks of this V1beta1MutatingWebhookConfiguration. - :type: list[V1beta1Webhook] + :param webhooks: The webhooks of this V1beta1MutatingWebhookConfiguration. # noqa: E501 + :type: list[V1beta1MutatingWebhook] """ self._webhooks = webhooks def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1MutatingWebhookConfiguration): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py b/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py index 070c7f97cf..596b029866 100644 --- a/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1MutatingWebhookConfigurationList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1MutatingWebhookConfiguration]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1MutatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1MutatingWebhookConfigurationList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1MutatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1MutatingWebhookConfigurationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1MutatingWebhookConfigurationList. + :return: The api_version of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1MutatingWebhookConfigurationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1MutatingWebhookConfigurationList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1MutatingWebhookConfigurationList. + :param api_version: The api_version of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1MutatingWebhookConfigurationList. - List of MutatingWebhookConfiguration. + """Gets the items of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 + + List of MutatingWebhookConfiguration. # noqa: E501 - :return: The items of this V1beta1MutatingWebhookConfigurationList. + :return: The items of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :rtype: list[V1beta1MutatingWebhookConfiguration] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1MutatingWebhookConfigurationList. - List of MutatingWebhookConfiguration. + """Sets the items of this V1beta1MutatingWebhookConfigurationList. + + List of MutatingWebhookConfiguration. # noqa: E501 - :param items: The items of this V1beta1MutatingWebhookConfigurationList. + :param items: The items of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :type: list[V1beta1MutatingWebhookConfiguration] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1MutatingWebhookConfigurationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1MutatingWebhookConfigurationList. + :return: The kind of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1MutatingWebhookConfigurationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1MutatingWebhookConfigurationList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1MutatingWebhookConfigurationList. + :param kind: The kind of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1MutatingWebhookConfigurationList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 + - :return: The metadata of this V1beta1MutatingWebhookConfigurationList. + :return: The metadata of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1MutatingWebhookConfigurationList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1beta1MutatingWebhookConfigurationList. + - :param metadata: The metadata of this V1beta1MutatingWebhookConfigurationList. + :param metadata: The metadata of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1MutatingWebhookConfigurationList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy.py b/kubernetes/client/models/v1beta1_network_policy.py index 8f128c6068..74473c8052 100644 --- a/kubernetes/client/models/v1beta1_network_policy.py +++ b/kubernetes/client/models/v1beta1_network_policy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1beta1NetworkPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): - """ - V1beta1NetworkPolicy - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + """V1beta1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def api_version(self): - """ - Gets the api_version of this V1beta1NetworkPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1NetworkPolicy. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1NetworkPolicy. + :return: The api_version of this V1beta1NetworkPolicy. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1NetworkPolicy. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1NetworkPolicy. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1NetworkPolicy. + :param api_version: The api_version of this V1beta1NetworkPolicy. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1NetworkPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1NetworkPolicy. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1NetworkPolicy. + :return: The kind of this V1beta1NetworkPolicy. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1NetworkPolicy. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1NetworkPolicy. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1NetworkPolicy. + :param kind: The kind of this V1beta1NetworkPolicy. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1NetworkPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1NetworkPolicy. # noqa: E501 + - :return: The metadata of this V1beta1NetworkPolicy. + :return: The metadata of this V1beta1NetworkPolicy. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1NetworkPolicy. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1NetworkPolicy. + - :param metadata: The metadata of this V1beta1NetworkPolicy. + :param metadata: The metadata of this V1beta1NetworkPolicy. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1NetworkPolicy. - Specification of the desired behavior for this NetworkPolicy. + """Gets the spec of this V1beta1NetworkPolicy. # noqa: E501 + - :return: The spec of this V1beta1NetworkPolicy. + :return: The spec of this V1beta1NetworkPolicy. # noqa: E501 :rtype: V1beta1NetworkPolicySpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1NetworkPolicy. - Specification of the desired behavior for this NetworkPolicy. + """Sets the spec of this V1beta1NetworkPolicy. + - :param spec: The spec of this V1beta1NetworkPolicy. + :param spec: The spec of this V1beta1NetworkPolicy. # noqa: E501 :type: V1beta1NetworkPolicySpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_egress_rule.py b/kubernetes/client/models/v1beta1_network_policy_egress_rule.py index 7949e0ae33..e1d64d032a 100644 --- a/kubernetes/client/models/v1beta1_network_policy_egress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_egress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicyEgressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ports': 'list[V1beta1NetworkPolicyPort]', 'to': 'list[V1beta1NetworkPolicyPeer]' } @@ -40,38 +40,36 @@ class V1beta1NetworkPolicyEgressRule(object): 'to': 'to' } - def __init__(self, ports=None, to=None): - """ - V1beta1NetworkPolicyEgressRule - a model defined in Swagger - """ + def __init__(self, ports=None, to=None): # noqa: E501 + """V1beta1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501 self._ports = None self._to = None self.discriminator = None if ports is not None: - self.ports = ports + self.ports = ports if to is not None: - self.to = to + self.to = to @property def ports(self): - """ - Gets the ports of this V1beta1NetworkPolicyEgressRule. - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Gets the ports of this V1beta1NetworkPolicyEgressRule. # noqa: E501 + + List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :return: The ports of this V1beta1NetworkPolicyEgressRule. + :return: The ports of this V1beta1NetworkPolicyEgressRule. # noqa: E501 :rtype: list[V1beta1NetworkPolicyPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1beta1NetworkPolicyEgressRule. - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Sets the ports of this V1beta1NetworkPolicyEgressRule. - :param ports: The ports of this V1beta1NetworkPolicyEgressRule. + List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 + + :param ports: The ports of this V1beta1NetworkPolicyEgressRule. # noqa: E501 :type: list[V1beta1NetworkPolicyPort] """ @@ -79,34 +77,32 @@ def ports(self, ports): @property def to(self): - """ - Gets the to of this V1beta1NetworkPolicyEgressRule. - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + """Gets the to of this V1beta1NetworkPolicyEgressRule. # noqa: E501 + + List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 - :return: The to of this V1beta1NetworkPolicyEgressRule. + :return: The to of this V1beta1NetworkPolicyEgressRule. # noqa: E501 :rtype: list[V1beta1NetworkPolicyPeer] """ return self._to @to.setter def to(self, to): - """ - Sets the to of this V1beta1NetworkPolicyEgressRule. - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + """Sets the to of this V1beta1NetworkPolicyEgressRule. + + List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501 - :param to: The to of this V1beta1NetworkPolicyEgressRule. + :param to: The to of this V1beta1NetworkPolicyEgressRule. # noqa: E501 :type: list[V1beta1NetworkPolicyPeer] """ self._to = to def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicyEgressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py index f02d58c17d..873e7dadfc 100644 --- a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicyIngressRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { '_from': 'list[V1beta1NetworkPolicyPeer]', 'ports': 'list[V1beta1NetworkPolicyPort]' } @@ -40,38 +40,36 @@ class V1beta1NetworkPolicyIngressRule(object): 'ports': 'ports' } - def __init__(self, _from=None, ports=None): - """ - V1beta1NetworkPolicyIngressRule - a model defined in Swagger - """ + def __init__(self, _from=None, ports=None): # noqa: E501 + """V1beta1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501 self.__from = None self._ports = None self.discriminator = None if _from is not None: - self._from = _from + self._from = _from if ports is not None: - self.ports = ports + self.ports = ports @property def _from(self): - """ - Gets the _from of this V1beta1NetworkPolicyIngressRule. - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + """Gets the _from of this V1beta1NetworkPolicyIngressRule. # noqa: E501 + + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 - :return: The _from of this V1beta1NetworkPolicyIngressRule. + :return: The _from of this V1beta1NetworkPolicyIngressRule. # noqa: E501 :rtype: list[V1beta1NetworkPolicyPeer] """ return self.__from @_from.setter def _from(self, _from): - """ - Sets the _from of this V1beta1NetworkPolicyIngressRule. - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. + """Sets the _from of this V1beta1NetworkPolicyIngressRule. - :param _from: The _from of this V1beta1NetworkPolicyIngressRule. + List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501 + + :param _from: The _from of this V1beta1NetworkPolicyIngressRule. # noqa: E501 :type: list[V1beta1NetworkPolicyPeer] """ @@ -79,34 +77,32 @@ def _from(self, _from): @property def ports(self): - """ - Gets the ports of this V1beta1NetworkPolicyIngressRule. - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Gets the ports of this V1beta1NetworkPolicyIngressRule. # noqa: E501 + + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :return: The ports of this V1beta1NetworkPolicyIngressRule. + :return: The ports of this V1beta1NetworkPolicyIngressRule. # noqa: E501 :rtype: list[V1beta1NetworkPolicyPort] """ return self._ports @ports.setter def ports(self, ports): - """ - Sets the ports of this V1beta1NetworkPolicyIngressRule. - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + """Sets the ports of this V1beta1NetworkPolicyIngressRule. + + List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501 - :param ports: The ports of this V1beta1NetworkPolicyIngressRule. + :param ports: The ports of this V1beta1NetworkPolicyIngressRule. # noqa: E501 :type: list[V1beta1NetworkPolicyPort] """ self._ports = ports def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicyIngressRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_list.py b/kubernetes/client/models/v1beta1_network_policy_list.py index 246421db54..2e3770da43 100644 --- a/kubernetes/client/models/v1beta1_network_policy_list.py +++ b/kubernetes/client/models/v1beta1_network_policy_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicyList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1NetworkPolicy]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1NetworkPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1NetworkPolicyList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1NetworkPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1NetworkPolicyList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1NetworkPolicyList. + :return: The api_version of this V1beta1NetworkPolicyList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1NetworkPolicyList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1NetworkPolicyList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1NetworkPolicyList. + :param api_version: The api_version of this V1beta1NetworkPolicyList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1NetworkPolicyList. - Items is a list of schema objects. + """Gets the items of this V1beta1NetworkPolicyList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1beta1NetworkPolicyList. + :return: The items of this V1beta1NetworkPolicyList. # noqa: E501 :rtype: list[V1beta1NetworkPolicy] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1NetworkPolicyList. - Items is a list of schema objects. + """Sets the items of this V1beta1NetworkPolicyList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1beta1NetworkPolicyList. + :param items: The items of this V1beta1NetworkPolicyList. # noqa: E501 :type: list[V1beta1NetworkPolicy] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1NetworkPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1NetworkPolicyList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1NetworkPolicyList. + :return: The kind of this V1beta1NetworkPolicyList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1NetworkPolicyList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1NetworkPolicyList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1NetworkPolicyList. + :param kind: The kind of this V1beta1NetworkPolicyList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1NetworkPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1NetworkPolicyList. # noqa: E501 + - :return: The metadata of this V1beta1NetworkPolicyList. + :return: The metadata of this V1beta1NetworkPolicyList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1NetworkPolicyList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1NetworkPolicyList. + - :param metadata: The metadata of this V1beta1NetworkPolicyList. + :param metadata: The metadata of this V1beta1NetworkPolicyList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicyList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_peer.py b/kubernetes/client/models/v1beta1_network_policy_peer.py index 8154800bed..371077d3b0 100644 --- a/kubernetes/client/models/v1beta1_network_policy_peer.py +++ b/kubernetes/client/models/v1beta1_network_policy_peer.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicyPeer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'ip_block': 'V1beta1IPBlock', 'namespace_selector': 'V1LabelSelector', 'pod_selector': 'V1LabelSelector' @@ -42,10 +42,8 @@ class V1beta1NetworkPolicyPeer(object): 'pod_selector': 'podSelector' } - def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): - """ - V1beta1NetworkPolicyPeer - a model defined in Swagger - """ + def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): # noqa: E501 + """V1beta1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501 self._ip_block = None self._namespace_selector = None @@ -53,30 +51,28 @@ def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): self.discriminator = None if ip_block is not None: - self.ip_block = ip_block + self.ip_block = ip_block if namespace_selector is not None: - self.namespace_selector = namespace_selector + self.namespace_selector = namespace_selector if pod_selector is not None: - self.pod_selector = pod_selector + self.pod_selector = pod_selector @property def ip_block(self): - """ - Gets the ip_block of this V1beta1NetworkPolicyPeer. - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + """Gets the ip_block of this V1beta1NetworkPolicyPeer. # noqa: E501 - :return: The ip_block of this V1beta1NetworkPolicyPeer. + + :return: The ip_block of this V1beta1NetworkPolicyPeer. # noqa: E501 :rtype: V1beta1IPBlock """ return self._ip_block @ip_block.setter def ip_block(self, ip_block): - """ - Sets the ip_block of this V1beta1NetworkPolicyPeer. - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + """Sets the ip_block of this V1beta1NetworkPolicyPeer. - :param ip_block: The ip_block of this V1beta1NetworkPolicyPeer. + + :param ip_block: The ip_block of this V1beta1NetworkPolicyPeer. # noqa: E501 :type: V1beta1IPBlock """ @@ -84,22 +80,20 @@ def ip_block(self, ip_block): @property def namespace_selector(self): - """ - Gets the namespace_selector of this V1beta1NetworkPolicyPeer. - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + """Gets the namespace_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 - :return: The namespace_selector of this V1beta1NetworkPolicyPeer. + + :return: The namespace_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 :rtype: V1LabelSelector """ return self._namespace_selector @namespace_selector.setter def namespace_selector(self, namespace_selector): - """ - Sets the namespace_selector of this V1beta1NetworkPolicyPeer. - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + """Sets the namespace_selector of this V1beta1NetworkPolicyPeer. + - :param namespace_selector: The namespace_selector of this V1beta1NetworkPolicyPeer. + :param namespace_selector: The namespace_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 :type: V1LabelSelector """ @@ -107,34 +101,30 @@ def namespace_selector(self, namespace_selector): @property def pod_selector(self): - """ - Gets the pod_selector of this V1beta1NetworkPolicyPeer. - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + """Gets the pod_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 + - :return: The pod_selector of this V1beta1NetworkPolicyPeer. + :return: The pod_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 :rtype: V1LabelSelector """ return self._pod_selector @pod_selector.setter def pod_selector(self, pod_selector): - """ - Sets the pod_selector of this V1beta1NetworkPolicyPeer. - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + """Sets the pod_selector of this V1beta1NetworkPolicyPeer. + - :param pod_selector: The pod_selector of this V1beta1NetworkPolicyPeer. + :param pod_selector: The pod_selector of this V1beta1NetworkPolicyPeer. # noqa: E501 :type: V1LabelSelector """ self._pod_selector = pod_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +145,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicyPeer): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_port.py b/kubernetes/client/models/v1beta1_network_policy_port.py index 0609fbb680..c813730057 100644 --- a/kubernetes/client/models/v1beta1_network_policy_port.py +++ b/kubernetes/client/models/v1beta1_network_policy_port.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicyPort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'port': 'object', 'protocol': 'str' } @@ -40,38 +40,36 @@ class V1beta1NetworkPolicyPort(object): 'protocol': 'protocol' } - def __init__(self, port=None, protocol=None): - """ - V1beta1NetworkPolicyPort - a model defined in Swagger - """ + def __init__(self, port=None, protocol=None): # noqa: E501 + """V1beta1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501 self._port = None self._protocol = None self.discriminator = None if port is not None: - self.port = port + self.port = port if protocol is not None: - self.protocol = protocol + self.protocol = protocol @property def port(self): - """ - Gets the port of this V1beta1NetworkPolicyPort. - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + """Gets the port of this V1beta1NetworkPolicyPort. # noqa: E501 + + If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501 - :return: The port of this V1beta1NetworkPolicyPort. + :return: The port of this V1beta1NetworkPolicyPort. # noqa: E501 :rtype: object """ return self._port @port.setter def port(self, port): - """ - Sets the port of this V1beta1NetworkPolicyPort. - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + """Sets the port of this V1beta1NetworkPolicyPort. - :param port: The port of this V1beta1NetworkPolicyPort. + If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501 + + :param port: The port of this V1beta1NetworkPolicyPort. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def port(self, port): @property def protocol(self): - """ - Gets the protocol of this V1beta1NetworkPolicyPort. - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + """Gets the protocol of this V1beta1NetworkPolicyPort. # noqa: E501 + + Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 - :return: The protocol of this V1beta1NetworkPolicyPort. + :return: The protocol of this V1beta1NetworkPolicyPort. # noqa: E501 :rtype: str """ return self._protocol @protocol.setter def protocol(self, protocol): - """ - Sets the protocol of this V1beta1NetworkPolicyPort. - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + """Sets the protocol of this V1beta1NetworkPolicyPort. + + Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501 - :param protocol: The protocol of this V1beta1NetworkPolicyPort. + :param protocol: The protocol of this V1beta1NetworkPolicyPort. # noqa: E501 :type: str """ self._protocol = protocol def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicyPort): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_network_policy_spec.py b/kubernetes/client/models/v1beta1_network_policy_spec.py index f8f583f095..e50c4981f0 100644 --- a/kubernetes/client/models/v1beta1_network_policy_spec.py +++ b/kubernetes/client/models/v1beta1_network_policy_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NetworkPolicySpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'egress': 'list[V1beta1NetworkPolicyEgressRule]', 'ingress': 'list[V1beta1NetworkPolicyIngressRule]', 'pod_selector': 'V1LabelSelector', @@ -44,10 +44,8 @@ class V1beta1NetworkPolicySpec(object): 'policy_types': 'policyTypes' } - def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): - """ - V1beta1NetworkPolicySpec - a model defined in Swagger - """ + def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): # noqa: E501 + """V1beta1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501 self._egress = None self._ingress = None @@ -56,31 +54,31 @@ def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=No self.discriminator = None if egress is not None: - self.egress = egress + self.egress = egress if ingress is not None: - self.ingress = ingress + self.ingress = ingress self.pod_selector = pod_selector if policy_types is not None: - self.policy_types = policy_types + self.policy_types = policy_types @property def egress(self): - """ - Gets the egress of this V1beta1NetworkPolicySpec. - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + """Gets the egress of this V1beta1NetworkPolicySpec. # noqa: E501 + + List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 - :return: The egress of this V1beta1NetworkPolicySpec. + :return: The egress of this V1beta1NetworkPolicySpec. # noqa: E501 :rtype: list[V1beta1NetworkPolicyEgressRule] """ return self._egress @egress.setter def egress(self, egress): - """ - Sets the egress of this V1beta1NetworkPolicySpec. - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + """Sets the egress of this V1beta1NetworkPolicySpec. + + List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501 - :param egress: The egress of this V1beta1NetworkPolicySpec. + :param egress: The egress of this V1beta1NetworkPolicySpec. # noqa: E501 :type: list[V1beta1NetworkPolicyEgressRule] """ @@ -88,22 +86,22 @@ def egress(self, egress): @property def ingress(self): - """ - Gets the ingress of this V1beta1NetworkPolicySpec. - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + """Gets the ingress of this V1beta1NetworkPolicySpec. # noqa: E501 + + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). # noqa: E501 - :return: The ingress of this V1beta1NetworkPolicySpec. + :return: The ingress of this V1beta1NetworkPolicySpec. # noqa: E501 :rtype: list[V1beta1NetworkPolicyIngressRule] """ return self._ingress @ingress.setter def ingress(self, ingress): - """ - Sets the ingress of this V1beta1NetworkPolicySpec. - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + """Sets the ingress of this V1beta1NetworkPolicySpec. + + List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). # noqa: E501 - :param ingress: The ingress of this V1beta1NetworkPolicySpec. + :param ingress: The ingress of this V1beta1NetworkPolicySpec. # noqa: E501 :type: list[V1beta1NetworkPolicyIngressRule] """ @@ -111,59 +109,55 @@ def ingress(self, ingress): @property def pod_selector(self): - """ - Gets the pod_selector of this V1beta1NetworkPolicySpec. - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + """Gets the pod_selector of this V1beta1NetworkPolicySpec. # noqa: E501 + - :return: The pod_selector of this V1beta1NetworkPolicySpec. + :return: The pod_selector of this V1beta1NetworkPolicySpec. # noqa: E501 :rtype: V1LabelSelector """ return self._pod_selector @pod_selector.setter def pod_selector(self, pod_selector): - """ - Sets the pod_selector of this V1beta1NetworkPolicySpec. - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + """Sets the pod_selector of this V1beta1NetworkPolicySpec. + - :param pod_selector: The pod_selector of this V1beta1NetworkPolicySpec. + :param pod_selector: The pod_selector of this V1beta1NetworkPolicySpec. # noqa: E501 :type: V1LabelSelector """ if pod_selector is None: - raise ValueError("Invalid value for `pod_selector`, must not be `None`") + raise ValueError("Invalid value for `pod_selector`, must not be `None`") # noqa: E501 self._pod_selector = pod_selector @property def policy_types(self): - """ - Gets the policy_types of this V1beta1NetworkPolicySpec. - List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + """Gets the policy_types of this V1beta1NetworkPolicySpec. # noqa: E501 + + List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 - :return: The policy_types of this V1beta1NetworkPolicySpec. + :return: The policy_types of this V1beta1NetworkPolicySpec. # noqa: E501 :rtype: list[str] """ return self._policy_types @policy_types.setter def policy_types(self, policy_types): - """ - Sets the policy_types of this V1beta1NetworkPolicySpec. - List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 + """Sets the policy_types of this V1beta1NetworkPolicySpec. + + List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501 - :param policy_types: The policy_types of this V1beta1NetworkPolicySpec. + :param policy_types: The policy_types of this V1beta1NetworkPolicySpec. # noqa: E501 :type: list[str] """ self._policy_types = policy_types def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NetworkPolicySpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_non_resource_attributes.py b/kubernetes/client/models/v1beta1_non_resource_attributes.py index 7880165258..4f45dd7080 100644 --- a/kubernetes/client/models/v1beta1_non_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_non_resource_attributes.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NonResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'path': 'str', 'verb': 'str' } @@ -40,38 +40,36 @@ class V1beta1NonResourceAttributes(object): 'verb': 'verb' } - def __init__(self, path=None, verb=None): - """ - V1beta1NonResourceAttributes - a model defined in Swagger - """ + def __init__(self, path=None, verb=None): # noqa: E501 + """V1beta1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501 self._path = None self._verb = None self.discriminator = None if path is not None: - self.path = path + self.path = path if verb is not None: - self.verb = verb + self.verb = verb @property def path(self): - """ - Gets the path of this V1beta1NonResourceAttributes. - Path is the URL path of the request + """Gets the path of this V1beta1NonResourceAttributes. # noqa: E501 + + Path is the URL path of the request # noqa: E501 - :return: The path of this V1beta1NonResourceAttributes. + :return: The path of this V1beta1NonResourceAttributes. # noqa: E501 :rtype: str """ return self._path @path.setter def path(self, path): - """ - Sets the path of this V1beta1NonResourceAttributes. - Path is the URL path of the request + """Sets the path of this V1beta1NonResourceAttributes. - :param path: The path of this V1beta1NonResourceAttributes. + Path is the URL path of the request # noqa: E501 + + :param path: The path of this V1beta1NonResourceAttributes. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def path(self, path): @property def verb(self): - """ - Gets the verb of this V1beta1NonResourceAttributes. - Verb is the standard HTTP verb + """Gets the verb of this V1beta1NonResourceAttributes. # noqa: E501 + + Verb is the standard HTTP verb # noqa: E501 - :return: The verb of this V1beta1NonResourceAttributes. + :return: The verb of this V1beta1NonResourceAttributes. # noqa: E501 :rtype: str """ return self._verb @verb.setter def verb(self, verb): - """ - Sets the verb of this V1beta1NonResourceAttributes. - Verb is the standard HTTP verb + """Sets the verb of this V1beta1NonResourceAttributes. + + Verb is the standard HTTP verb # noqa: E501 - :param verb: The verb of this V1beta1NonResourceAttributes. + :param verb: The verb of this V1beta1NonResourceAttributes. # noqa: E501 :type: str """ self._verb = verb def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NonResourceAttributes): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_non_resource_rule.py b/kubernetes/client/models/v1beta1_non_resource_rule.py index 60acb6fb86..3e7e0b0259 100644 --- a/kubernetes/client/models/v1beta1_non_resource_rule.py +++ b/kubernetes/client/models/v1beta1_non_resource_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1NonResourceRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'non_resource_ur_ls': 'list[str]', 'verbs': 'list[str]' } @@ -40,37 +40,35 @@ class V1beta1NonResourceRule(object): 'verbs': 'verbs' } - def __init__(self, non_resource_ur_ls=None, verbs=None): - """ - V1beta1NonResourceRule - a model defined in Swagger - """ + def __init__(self, non_resource_ur_ls=None, verbs=None): # noqa: E501 + """V1beta1NonResourceRule - a model defined in OpenAPI""" # noqa: E501 self._non_resource_ur_ls = None self._verbs = None self.discriminator = None if non_resource_ur_ls is not None: - self.non_resource_ur_ls = non_resource_ur_ls + self.non_resource_ur_ls = non_resource_ur_ls self.verbs = verbs @property def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1beta1NonResourceRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + """Gets the non_resource_ur_ls of this V1beta1NonResourceRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 - :return: The non_resource_ur_ls of this V1beta1NonResourceRule. + :return: The non_resource_ur_ls of this V1beta1NonResourceRule. # noqa: E501 :rtype: list[str] """ return self._non_resource_ur_ls @non_resource_ur_ls.setter def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1beta1NonResourceRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + """Sets the non_resource_ur_ls of this V1beta1NonResourceRule. - :param non_resource_ur_ls: The non_resource_ur_ls of this V1beta1NonResourceRule. + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501 + + :param non_resource_ur_ls: The non_resource_ur_ls of this V1beta1NonResourceRule. # noqa: E501 :type: list[str] """ @@ -78,36 +76,34 @@ def non_resource_ur_ls(self, non_resource_ur_ls): @property def verbs(self): - """ - Gets the verbs of this V1beta1NonResourceRule. - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + """Gets the verbs of this V1beta1NonResourceRule. # noqa: E501 + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 - :return: The verbs of this V1beta1NonResourceRule. + :return: The verbs of this V1beta1NonResourceRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1beta1NonResourceRule. - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + """Sets the verbs of this V1beta1NonResourceRule. + + Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501 - :param verbs: The verbs of this V1beta1NonResourceRule. + :param verbs: The verbs of this V1beta1NonResourceRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +124,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1NonResourceRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget.py b/kubernetes/client/models/v1beta1_pod_disruption_budget.py index be75d01cd5..26e1fb1723 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PodDisruptionBudget(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1PodDisruptionBudget(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1PodDisruptionBudget - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1PodDisruptionBudget - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1PodDisruptionBudget. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1PodDisruptionBudget. # noqa: E501 - :return: The api_version of this V1beta1PodDisruptionBudget. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1PodDisruptionBudget. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1PodDisruptionBudget. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1PodDisruptionBudget. - :param api_version: The api_version of this V1beta1PodDisruptionBudget. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1PodDisruptionBudget. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1PodDisruptionBudget. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1PodDisruptionBudget. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1PodDisruptionBudget. + :return: The kind of this V1beta1PodDisruptionBudget. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1PodDisruptionBudget. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1PodDisruptionBudget. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1PodDisruptionBudget. + :param kind: The kind of this V1beta1PodDisruptionBudget. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1PodDisruptionBudget. + """Gets the metadata of this V1beta1PodDisruptionBudget. # noqa: E501 + - :return: The metadata of this V1beta1PodDisruptionBudget. + :return: The metadata of this V1beta1PodDisruptionBudget. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1PodDisruptionBudget. + """Sets the metadata of this V1beta1PodDisruptionBudget. + - :param metadata: The metadata of this V1beta1PodDisruptionBudget. + :param metadata: The metadata of this V1beta1PodDisruptionBudget. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1PodDisruptionBudget. - Specification of the desired behavior of the PodDisruptionBudget. + """Gets the spec of this V1beta1PodDisruptionBudget. # noqa: E501 + - :return: The spec of this V1beta1PodDisruptionBudget. + :return: The spec of this V1beta1PodDisruptionBudget. # noqa: E501 :rtype: V1beta1PodDisruptionBudgetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1PodDisruptionBudget. - Specification of the desired behavior of the PodDisruptionBudget. + """Sets the spec of this V1beta1PodDisruptionBudget. - :param spec: The spec of this V1beta1PodDisruptionBudget. + + :param spec: The spec of this V1beta1PodDisruptionBudget. # noqa: E501 :type: V1beta1PodDisruptionBudgetSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1PodDisruptionBudget. - Most recently observed status of the PodDisruptionBudget. + """Gets the status of this V1beta1PodDisruptionBudget. # noqa: E501 - :return: The status of this V1beta1PodDisruptionBudget. + + :return: The status of this V1beta1PodDisruptionBudget. # noqa: E501 :rtype: V1beta1PodDisruptionBudgetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1PodDisruptionBudget. - Most recently observed status of the PodDisruptionBudget. + """Sets the status of this V1beta1PodDisruptionBudget. - :param status: The status of this V1beta1PodDisruptionBudget. + + :param status: The status of this V1beta1PodDisruptionBudget. # noqa: E501 :type: V1beta1PodDisruptionBudgetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PodDisruptionBudget): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py index a3d07c3464..d2df6ed8f3 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PodDisruptionBudgetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1PodDisruptionBudget]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1PodDisruptionBudgetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1PodDisruptionBudgetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1PodDisruptionBudgetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1PodDisruptionBudgetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1PodDisruptionBudgetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1PodDisruptionBudgetList. + :return: The api_version of this V1beta1PodDisruptionBudgetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1PodDisruptionBudgetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1PodDisruptionBudgetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1PodDisruptionBudgetList. + :param api_version: The api_version of this V1beta1PodDisruptionBudgetList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1PodDisruptionBudgetList. + """Gets the items of this V1beta1PodDisruptionBudgetList. # noqa: E501 + - :return: The items of this V1beta1PodDisruptionBudgetList. + :return: The items of this V1beta1PodDisruptionBudgetList. # noqa: E501 :rtype: list[V1beta1PodDisruptionBudget] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1PodDisruptionBudgetList. + """Sets the items of this V1beta1PodDisruptionBudgetList. + - :param items: The items of this V1beta1PodDisruptionBudgetList. + :param items: The items of this V1beta1PodDisruptionBudgetList. # noqa: E501 :type: list[V1beta1PodDisruptionBudget] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1PodDisruptionBudgetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1PodDisruptionBudgetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1PodDisruptionBudgetList. + :return: The kind of this V1beta1PodDisruptionBudgetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1PodDisruptionBudgetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1PodDisruptionBudgetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1PodDisruptionBudgetList. + :param kind: The kind of this V1beta1PodDisruptionBudgetList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1PodDisruptionBudgetList. + """Gets the metadata of this V1beta1PodDisruptionBudgetList. # noqa: E501 + - :return: The metadata of this V1beta1PodDisruptionBudgetList. + :return: The metadata of this V1beta1PodDisruptionBudgetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1PodDisruptionBudgetList. + """Sets the metadata of this V1beta1PodDisruptionBudgetList. + - :param metadata: The metadata of this V1beta1PodDisruptionBudgetList. + :param metadata: The metadata of this V1beta1PodDisruptionBudgetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PodDisruptionBudgetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py index ae9356e844..0ee7bac128 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PodDisruptionBudgetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_unavailable': 'object', 'min_available': 'object', 'selector': 'V1LabelSelector' @@ -42,10 +42,8 @@ class V1beta1PodDisruptionBudgetSpec(object): 'selector': 'selector' } - def __init__(self, max_unavailable=None, min_available=None, selector=None): - """ - V1beta1PodDisruptionBudgetSpec - a model defined in Swagger - """ + def __init__(self, max_unavailable=None, min_available=None, selector=None): # noqa: E501 + """V1beta1PodDisruptionBudgetSpec - a model defined in OpenAPI""" # noqa: E501 self._max_unavailable = None self._min_available = None @@ -53,30 +51,30 @@ def __init__(self, max_unavailable=None, min_available=None, selector=None): self.discriminator = None if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable if min_available is not None: - self.min_available = min_available + self.min_available = min_available if selector is not None: - self.selector = selector + self.selector = selector @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. - An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". + """Gets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 - :return: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. + An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". # noqa: E501 + + :return: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. - An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". + """Sets the max_unavailable of this V1beta1PodDisruptionBudgetSpec. - :param max_unavailable: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. + An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". # noqa: E501 + + :param max_unavailable: The max_unavailable of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :type: object """ @@ -84,22 +82,22 @@ def max_unavailable(self, max_unavailable): @property def min_available(self): - """ - Gets the min_available of this V1beta1PodDisruptionBudgetSpec. - An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + """Gets the min_available of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 - :return: The min_available of this V1beta1PodDisruptionBudgetSpec. + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". # noqa: E501 + + :return: The min_available of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :rtype: object """ return self._min_available @min_available.setter def min_available(self, min_available): - """ - Sets the min_available of this V1beta1PodDisruptionBudgetSpec. - An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + """Sets the min_available of this V1beta1PodDisruptionBudgetSpec. + + An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". # noqa: E501 - :param min_available: The min_available of this V1beta1PodDisruptionBudgetSpec. + :param min_available: The min_available of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :type: object """ @@ -107,34 +105,30 @@ def min_available(self, min_available): @property def selector(self): - """ - Gets the selector of this V1beta1PodDisruptionBudgetSpec. - Label query over pods whose evictions are managed by the disruption budget. + """Gets the selector of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 + - :return: The selector of this V1beta1PodDisruptionBudgetSpec. + :return: The selector of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta1PodDisruptionBudgetSpec. - Label query over pods whose evictions are managed by the disruption budget. + """Sets the selector of this V1beta1PodDisruptionBudgetSpec. + - :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. + :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. # noqa: E501 :type: V1LabelSelector """ self._selector = selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +149,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PodDisruptionBudgetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py index 9fb63e77e4..52ad75f067 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PodDisruptionBudgetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current_healthy': 'int', 'desired_healthy': 'int', 'disrupted_pods': 'dict(str, datetime)', @@ -48,10 +48,8 @@ class V1beta1PodDisruptionBudgetStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None): - """ - V1beta1PodDisruptionBudgetStatus - a model defined in Swagger - """ + def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None): # noqa: E501 + """V1beta1PodDisruptionBudgetStatus - a model defined in OpenAPI""" # noqa: E501 self._current_healthy = None self._desired_healthy = None @@ -64,80 +62,80 @@ def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=No self.current_healthy = current_healthy self.desired_healthy = desired_healthy if disrupted_pods is not None: - self.disrupted_pods = disrupted_pods + self.disrupted_pods = disrupted_pods self.disruptions_allowed = disruptions_allowed self.expected_pods = expected_pods if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation @property def current_healthy(self): - """ - Gets the current_healthy of this V1beta1PodDisruptionBudgetStatus. - current number of healthy pods + """Gets the current_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 + + current number of healthy pods # noqa: E501 - :return: The current_healthy of this V1beta1PodDisruptionBudgetStatus. + :return: The current_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: int """ return self._current_healthy @current_healthy.setter def current_healthy(self, current_healthy): - """ - Sets the current_healthy of this V1beta1PodDisruptionBudgetStatus. - current number of healthy pods + """Sets the current_healthy of this V1beta1PodDisruptionBudgetStatus. + + current number of healthy pods # noqa: E501 - :param current_healthy: The current_healthy of this V1beta1PodDisruptionBudgetStatus. + :param current_healthy: The current_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ if current_healthy is None: - raise ValueError("Invalid value for `current_healthy`, must not be `None`") + raise ValueError("Invalid value for `current_healthy`, must not be `None`") # noqa: E501 self._current_healthy = current_healthy @property def desired_healthy(self): - """ - Gets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. - minimum desired number of healthy pods + """Gets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 + + minimum desired number of healthy pods # noqa: E501 - :return: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. + :return: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: int """ return self._desired_healthy @desired_healthy.setter def desired_healthy(self, desired_healthy): - """ - Sets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. - minimum desired number of healthy pods + """Sets the desired_healthy of this V1beta1PodDisruptionBudgetStatus. - :param desired_healthy: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. + minimum desired number of healthy pods # noqa: E501 + + :param desired_healthy: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ if desired_healthy is None: - raise ValueError("Invalid value for `desired_healthy`, must not be `None`") + raise ValueError("Invalid value for `desired_healthy`, must not be `None`") # noqa: E501 self._desired_healthy = desired_healthy @property def disrupted_pods(self): - """ - Gets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + """Gets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 - :return: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. + DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. # noqa: E501 + + :return: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: dict(str, datetime) """ return self._disrupted_pods @disrupted_pods.setter def disrupted_pods(self, disrupted_pods): - """ - Sets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + """Sets the disrupted_pods of this V1beta1PodDisruptionBudgetStatus. + + DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. # noqa: E501 - :param disrupted_pods: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. + :param disrupted_pods: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: dict(str, datetime) """ @@ -145,84 +143,82 @@ def disrupted_pods(self, disrupted_pods): @property def disruptions_allowed(self): - """ - Gets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. - Number of pod disruptions that are currently allowed. + """Gets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 + + Number of pod disruptions that are currently allowed. # noqa: E501 - :return: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. + :return: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: int """ return self._disruptions_allowed @disruptions_allowed.setter def disruptions_allowed(self, disruptions_allowed): - """ - Sets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. - Number of pod disruptions that are currently allowed. + """Sets the disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. + + Number of pod disruptions that are currently allowed. # noqa: E501 - :param disruptions_allowed: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. + :param disruptions_allowed: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ if disruptions_allowed is None: - raise ValueError("Invalid value for `disruptions_allowed`, must not be `None`") + raise ValueError("Invalid value for `disruptions_allowed`, must not be `None`") # noqa: E501 self._disruptions_allowed = disruptions_allowed @property def expected_pods(self): - """ - Gets the expected_pods of this V1beta1PodDisruptionBudgetStatus. - total number of pods counted by this disruption budget + """Gets the expected_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 - :return: The expected_pods of this V1beta1PodDisruptionBudgetStatus. + total number of pods counted by this disruption budget # noqa: E501 + + :return: The expected_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: int """ return self._expected_pods @expected_pods.setter def expected_pods(self, expected_pods): - """ - Sets the expected_pods of this V1beta1PodDisruptionBudgetStatus. - total number of pods counted by this disruption budget + """Sets the expected_pods of this V1beta1PodDisruptionBudgetStatus. - :param expected_pods: The expected_pods of this V1beta1PodDisruptionBudgetStatus. + total number of pods counted by this disruption budget # noqa: E501 + + :param expected_pods: The expected_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ if expected_pods is None: - raise ValueError("Invalid value for `expected_pods`, must not be `None`") + raise ValueError("Invalid value for `expected_pods`, must not be `None`") # noqa: E501 self._expected_pods = expected_pods @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta1PodDisruptionBudgetStatus. - Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. + """Gets the observed_generation of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 + + Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. # noqa: E501 - :return: The observed_generation of this V1beta1PodDisruptionBudgetStatus. + :return: The observed_generation of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta1PodDisruptionBudgetStatus. - Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. + """Sets the observed_generation of this V1beta1PodDisruptionBudgetStatus. + + Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta1PodDisruptionBudgetStatus. + :param observed_generation: The observed_generation of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ self._observed_generation = observed_generation def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -243,28 +239,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PodDisruptionBudgetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_policy_rule.py b/kubernetes/client/models/v1beta1_policy_rule.py index cb22d58df3..020374ad25 100644 --- a/kubernetes/client/models/v1beta1_policy_rule.py +++ b/kubernetes/client/models/v1beta1_policy_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PolicyRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'non_resource_ur_ls': 'list[str]', 'resource_names': 'list[str]', @@ -46,10 +46,8 @@ class V1beta1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): - """ - V1beta1PolicyRule - a model defined in Swagger - """ + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + """V1beta1PolicyRule - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._non_resource_ur_ls = None @@ -59,33 +57,33 @@ def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if non_resource_ur_ls is not None: - self.non_resource_ur_ls = non_resource_ur_ls + self.non_resource_ur_ls = non_resource_ur_ls if resource_names is not None: - self.resource_names = resource_names + self.resource_names = resource_names if resources is not None: - self.resources = resources + self.resources = resources self.verbs = verbs @property def api_groups(self): - """ - Gets the api_groups of this V1beta1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Gets the api_groups of this V1beta1PolicyRule. # noqa: E501 - :return: The api_groups of this V1beta1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :return: The api_groups of this V1beta1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1beta1PolicyRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + """Sets the api_groups of this V1beta1PolicyRule. - :param api_groups: The api_groups of this V1beta1PolicyRule. + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. # noqa: E501 + + :param api_groups: The api_groups of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ @@ -93,22 +91,22 @@ def api_groups(self, api_groups): @property def non_resource_ur_ls(self): - """ - Gets the non_resource_ur_ls of this V1beta1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Gets the non_resource_ur_ls of this V1beta1PolicyRule. # noqa: E501 + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :return: The non_resource_ur_ls of this V1beta1PolicyRule. + :return: The non_resource_ur_ls of this V1beta1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._non_resource_ur_ls @non_resource_ur_ls.setter def non_resource_ur_ls(self, non_resource_ur_ls): - """ - Sets the non_resource_ur_ls of this V1beta1PolicyRule. - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. + """Sets the non_resource_ur_ls of this V1beta1PolicyRule. + + NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. # noqa: E501 - :param non_resource_ur_ls: The non_resource_ur_ls of this V1beta1PolicyRule. + :param non_resource_ur_ls: The non_resource_ur_ls of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ @@ -116,22 +114,22 @@ def non_resource_ur_ls(self, non_resource_ur_ls): @property def resource_names(self): - """ - Gets the resource_names of this V1beta1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Gets the resource_names of this V1beta1PolicyRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :return: The resource_names of this V1beta1PolicyRule. + :return: The resource_names of this V1beta1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resource_names @resource_names.setter def resource_names(self, resource_names): - """ - Sets the resource_names of this V1beta1PolicyRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + """Sets the resource_names of this V1beta1PolicyRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501 - :param resource_names: The resource_names of this V1beta1PolicyRule. + :param resource_names: The resource_names of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ @@ -139,22 +137,22 @@ def resource_names(self, resource_names): @property def resources(self): - """ - Gets the resources of this V1beta1PolicyRule. - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + """Gets the resources of this V1beta1PolicyRule. # noqa: E501 + + Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 - :return: The resources of this V1beta1PolicyRule. + :return: The resources of this V1beta1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1beta1PolicyRule. - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + """Sets the resources of this V1beta1PolicyRule. - :param resources: The resources of this V1beta1PolicyRule. + Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 + + :param resources: The resources of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ @@ -162,36 +160,34 @@ def resources(self, resources): @property def verbs(self): - """ - Gets the verbs of this V1beta1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Gets the verbs of this V1beta1PolicyRule. # noqa: E501 - :return: The verbs of this V1beta1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :return: The verbs of this V1beta1PolicyRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1beta1PolicyRule. - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """Sets the verbs of this V1beta1PolicyRule. - :param verbs: The verbs of this V1beta1PolicyRule. + Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. # noqa: E501 + + :param verbs: The verbs of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +208,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PolicyRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_priority_class.py b/kubernetes/client/models/v1beta1_priority_class.py index fd6393ea5f..a8677a8be9 100644 --- a/kubernetes/client/models/v1beta1_priority_class.py +++ b/kubernetes/client/models/v1beta1_priority_class.py @@ -3,39 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PriorityClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'description': 'str', 'global_default': 'bool', 'kind': 'str', 'metadata': 'V1ObjectMeta', + 'preemption_policy': 'str', 'value': 'int' } @@ -45,52 +46,54 @@ class V1beta1PriorityClass(object): 'global_default': 'globalDefault', 'kind': 'kind', 'metadata': 'metadata', + 'preemption_policy': 'preemptionPolicy', 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, value=None): - """ - V1beta1PriorityClass - a model defined in Swagger - """ + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + """V1beta1PriorityClass - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._description = None self._global_default = None self._kind = None self._metadata = None + self._preemption_policy = None self._value = None self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if description is not None: - self.description = description + self.description = description if global_default is not None: - self.global_default = global_default + self.global_default = global_default if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata + if preemption_policy is not None: + self.preemption_policy = preemption_policy self.value = value @property def api_version(self): - """ - Gets the api_version of this V1beta1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1PriorityClass. # noqa: E501 - :return: The api_version of this V1beta1PriorityClass. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1PriorityClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1PriorityClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1PriorityClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1PriorityClass. + :param api_version: The api_version of this V1beta1PriorityClass. # noqa: E501 :type: str """ @@ -98,22 +101,22 @@ def api_version(self, api_version): @property def description(self): - """ - Gets the description of this V1beta1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Gets the description of this V1beta1PriorityClass. # noqa: E501 + + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 - :return: The description of this V1beta1PriorityClass. + :return: The description of this V1beta1PriorityClass. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this V1beta1PriorityClass. - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """Sets the description of this V1beta1PriorityClass. - :param description: The description of this V1beta1PriorityClass. + description is an arbitrary string that usually provides guidelines on when this priority class should be used. # noqa: E501 + + :param description: The description of this V1beta1PriorityClass. # noqa: E501 :type: str """ @@ -121,22 +124,22 @@ def description(self, description): @property def global_default(self): - """ - Gets the global_default of this V1beta1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Gets the global_default of this V1beta1PriorityClass. # noqa: E501 - :return: The global_default of this V1beta1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :return: The global_default of this V1beta1PriorityClass. # noqa: E501 :rtype: bool """ return self._global_default @global_default.setter def global_default(self, global_default): - """ - Sets the global_default of this V1beta1PriorityClass. - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """Sets the global_default of this V1beta1PriorityClass. - :param global_default: The global_default of this V1beta1PriorityClass. + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. # noqa: E501 + + :param global_default: The global_default of this V1beta1PriorityClass. # noqa: E501 :type: bool """ @@ -144,22 +147,22 @@ def global_default(self, global_default): @property def kind(self): - """ - Gets the kind of this V1beta1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1PriorityClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1PriorityClass. + :return: The kind of this V1beta1PriorityClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1PriorityClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1PriorityClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1PriorityClass. + :param kind: The kind of this V1beta1PriorityClass. # noqa: E501 :type: str """ @@ -167,59 +170,78 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1PriorityClass. # noqa: E501 - :return: The metadata of this V1beta1PriorityClass. + + :return: The metadata of this V1beta1PriorityClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1PriorityClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1PriorityClass. + - :param metadata: The metadata of this V1beta1PriorityClass. + :param metadata: The metadata of this V1beta1PriorityClass. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata @property - def value(self): + def preemption_policy(self): + """Gets the preemption_policy of this V1beta1PriorityClass. # noqa: E501 + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :return: The preemption_policy of this V1beta1PriorityClass. # noqa: E501 + :rtype: str """ - Gets the value of this V1beta1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + return self._preemption_policy + + @preemption_policy.setter + def preemption_policy(self, preemption_policy): + """Sets the preemption_policy of this V1beta1PriorityClass. + + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. # noqa: E501 + + :param preemption_policy: The preemption_policy of this V1beta1PriorityClass. # noqa: E501 + :type: str + """ + + self._preemption_policy = preemption_policy + + @property + def value(self): + """Gets the value of this V1beta1PriorityClass. # noqa: E501 - :return: The value of this V1beta1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :return: The value of this V1beta1PriorityClass. # noqa: E501 :rtype: int """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V1beta1PriorityClass. - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """Sets the value of this V1beta1PriorityClass. - :param value: The value of this V1beta1PriorityClass. + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. # noqa: E501 + + :param value: The value of this V1beta1PriorityClass. # noqa: E501 :type: int """ if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +262,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PriorityClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_priority_class_list.py b/kubernetes/client/models/v1beta1_priority_class_list.py index 175028dc78..98ad3093b2 100644 --- a/kubernetes/client/models/v1beta1_priority_class_list.py +++ b/kubernetes/client/models/v1beta1_priority_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1PriorityClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1PriorityClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1PriorityClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1PriorityClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1PriorityClassList. + :return: The api_version of this V1beta1PriorityClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1PriorityClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1PriorityClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1PriorityClassList. + :param api_version: The api_version of this V1beta1PriorityClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1PriorityClassList. - items is the list of PriorityClasses + """Gets the items of this V1beta1PriorityClassList. # noqa: E501 + + items is the list of PriorityClasses # noqa: E501 - :return: The items of this V1beta1PriorityClassList. + :return: The items of this V1beta1PriorityClassList. # noqa: E501 :rtype: list[V1beta1PriorityClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1PriorityClassList. - items is the list of PriorityClasses + """Sets the items of this V1beta1PriorityClassList. + + items is the list of PriorityClasses # noqa: E501 - :param items: The items of this V1beta1PriorityClassList. + :param items: The items of this V1beta1PriorityClassList. # noqa: E501 :type: list[V1beta1PriorityClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1PriorityClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1PriorityClassList. + :return: The kind of this V1beta1PriorityClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1PriorityClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1PriorityClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1PriorityClassList. + :param kind: The kind of this V1beta1PriorityClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1PriorityClassList. # noqa: E501 + - :return: The metadata of this V1beta1PriorityClassList. + :return: The metadata of this V1beta1PriorityClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1PriorityClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1PriorityClassList. + - :param metadata: The metadata of this V1beta1PriorityClassList. + :param metadata: The metadata of this V1beta1PriorityClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1PriorityClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set.py b/kubernetes/client/models/v1beta1_replica_set.py index 91ae41dfb5..f15ee8af6f 100644 --- a/kubernetes/client/models/v1beta1_replica_set.py +++ b/kubernetes/client/models/v1beta1_replica_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ReplicaSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1ReplicaSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1ReplicaSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ReplicaSet. # noqa: E501 - :return: The api_version of this V1beta1ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1ReplicaSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ReplicaSet. - :param api_version: The api_version of this V1beta1ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1ReplicaSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ReplicaSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ReplicaSet. + :return: The kind of this V1beta1ReplicaSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ReplicaSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ReplicaSet. + :param kind: The kind of this V1beta1ReplicaSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta1ReplicaSet. # noqa: E501 + - :return: The metadata of this V1beta1ReplicaSet. + :return: The metadata of this V1beta1ReplicaSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta1ReplicaSet. + - :param metadata: The metadata of this V1beta1ReplicaSet. + :param metadata: The metadata of this V1beta1ReplicaSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the spec of this V1beta1ReplicaSet. # noqa: E501 + - :return: The spec of this V1beta1ReplicaSet. + :return: The spec of this V1beta1ReplicaSet. # noqa: E501 :rtype: V1beta1ReplicaSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the spec of this V1beta1ReplicaSet. - :param spec: The spec of this V1beta1ReplicaSet. + + :param spec: The spec of this V1beta1ReplicaSet. # noqa: E501 :type: V1beta1ReplicaSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the status of this V1beta1ReplicaSet. # noqa: E501 - :return: The status of this V1beta1ReplicaSet. + + :return: The status of this V1beta1ReplicaSet. # noqa: E501 :rtype: V1beta1ReplicaSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the status of this V1beta1ReplicaSet. - :param status: The status of this V1beta1ReplicaSet. + + :param status: The status of this V1beta1ReplicaSet. # noqa: E501 :type: V1beta1ReplicaSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ReplicaSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set_condition.py b/kubernetes/client/models/v1beta1_replica_set_condition.py index e06c281053..e70769934f 100644 --- a/kubernetes/client/models/v1beta1_replica_set_condition.py +++ b/kubernetes/client/models/v1beta1_replica_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ReplicaSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta1ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta1ReplicaSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta1ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta1ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta1ReplicaSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta1ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta1ReplicaSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta1ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta1ReplicaSetCondition. - :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta1ReplicaSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta1ReplicaSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta1ReplicaSetCondition. + :return: The message of this V1beta1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1ReplicaSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta1ReplicaSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta1ReplicaSetCondition. + :param message: The message of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1ReplicaSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta1ReplicaSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta1ReplicaSetCondition. + :return: The reason of this V1beta1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1ReplicaSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta1ReplicaSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta1ReplicaSetCondition. + :param reason: The reason of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta1ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta1ReplicaSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta1ReplicaSetCondition. + :return: The status of this V1beta1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta1ReplicaSetCondition. - :param status: The status of this V1beta1ReplicaSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta1ReplicaSetCondition. - Type of replica set condition. + """Gets the type of this V1beta1ReplicaSetCondition. # noqa: E501 - :return: The type of this V1beta1ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :return: The type of this V1beta1ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1ReplicaSetCondition. - Type of replica set condition. + """Sets the type of this V1beta1ReplicaSetCondition. - :param type: The type of this V1beta1ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :param type: The type of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ReplicaSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set_list.py b/kubernetes/client/models/v1beta1_replica_set_list.py index 1a67c7a1f9..f40f2db709 100644 --- a/kubernetes/client/models/v1beta1_replica_set_list.py +++ b/kubernetes/client/models/v1beta1_replica_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ReplicaSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1ReplicaSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ReplicaSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ReplicaSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ReplicaSetList. + :return: The api_version of this V1beta1ReplicaSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ReplicaSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ReplicaSetList. + :param api_version: The api_version of this V1beta1ReplicaSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Gets the items of this V1beta1ReplicaSetList. # noqa: E501 + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :return: The items of this V1beta1ReplicaSetList. + :return: The items of this V1beta1ReplicaSetList. # noqa: E501 :rtype: list[V1beta1ReplicaSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Sets the items of this V1beta1ReplicaSetList. + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :param items: The items of this V1beta1ReplicaSetList. + :param items: The items of this V1beta1ReplicaSetList. # noqa: E501 :type: list[V1beta1ReplicaSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ReplicaSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ReplicaSetList. + :return: The kind of this V1beta1ReplicaSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ReplicaSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ReplicaSetList. + :param kind: The kind of this V1beta1ReplicaSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """Gets the metadata of this V1beta1ReplicaSetList. # noqa: E501 + - :return: The metadata of this V1beta1ReplicaSetList. + :return: The metadata of this V1beta1ReplicaSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """Sets the metadata of this V1beta1ReplicaSetList. + - :param metadata: The metadata of this V1beta1ReplicaSetList. + :param metadata: The metadata of this V1beta1ReplicaSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ReplicaSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set_spec.py b/kubernetes/client/models/v1beta1_replica_set_spec.py index 7fa581d40d..5151d124dd 100644 --- a/kubernetes/client/models/v1beta1_replica_set_spec.py +++ b/kubernetes/client/models/v1beta1_replica_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ReplicaSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'V1LabelSelector', @@ -44,10 +44,8 @@ class V1beta1ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): - """ - V1beta1ReplicaSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + """V1beta1ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._replicas = None @@ -56,32 +54,32 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector if template is not None: - self.template = template + self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta1ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1beta1ReplicaSetSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1beta1ReplicaSetSpec. + :return: The min_ready_seconds of this V1beta1ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta1ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1beta1ReplicaSetSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this V1beta1ReplicaSetSpec. + :param min_ready_seconds: The min_ready_seconds of this V1beta1ReplicaSetSpec. # noqa: E501 :type: int """ @@ -89,22 +87,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def replicas(self): - """ - Gets the replicas of this V1beta1ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1beta1ReplicaSetSpec. # noqa: E501 + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1beta1ReplicaSetSpec. + :return: The replicas of this V1beta1ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta1ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1beta1ReplicaSetSpec. + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1beta1ReplicaSetSpec. + :param replicas: The replicas of this V1beta1ReplicaSetSpec. # noqa: E501 :type: int """ @@ -112,22 +110,20 @@ def replicas(self, replicas): @property def selector(self): - """ - Gets the selector of this V1beta1ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta1ReplicaSetSpec. # noqa: E501 + - :return: The selector of this V1beta1ReplicaSetSpec. + :return: The selector of this V1beta1ReplicaSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta1ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta1ReplicaSetSpec. + - :param selector: The selector of this V1beta1ReplicaSetSpec. + :param selector: The selector of this V1beta1ReplicaSetSpec. # noqa: E501 :type: V1LabelSelector """ @@ -135,34 +131,30 @@ def selector(self, selector): @property def template(self): - """ - Gets the template of this V1beta1ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1beta1ReplicaSetSpec. # noqa: E501 + - :return: The template of this V1beta1ReplicaSetSpec. + :return: The template of this V1beta1ReplicaSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta1ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1beta1ReplicaSetSpec. + - :param template: The template of this V1beta1ReplicaSetSpec. + :param template: The template of this V1beta1ReplicaSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +175,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ReplicaSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_replica_set_status.py b/kubernetes/client/models/v1beta1_replica_set_status.py index 5ab6c315d3..2e1319a33d 100644 --- a/kubernetes/client/models/v1beta1_replica_set_status.py +++ b/kubernetes/client/models/v1beta1_replica_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ReplicaSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'conditions': 'list[V1beta1ReplicaSetCondition]', 'fully_labeled_replicas': 'int', @@ -48,10 +48,8 @@ class V1beta1ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): - """ - V1beta1ReplicaSetStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + """V1beta1ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._conditions = None @@ -62,35 +60,35 @@ def __init__(self, available_replicas=None, conditions=None, fully_labeled_repli self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if conditions is not None: - self.conditions = conditions + self.conditions = conditions if fully_labeled_replicas is not None: - self.fully_labeled_replicas = fully_labeled_replicas + self.fully_labeled_replicas = fully_labeled_replicas if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1beta1ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Gets the available_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :return: The available_replicas of this V1beta1ReplicaSetStatus. + :return: The available_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1beta1ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Sets the available_replicas of this V1beta1ReplicaSetStatus. + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :param available_replicas: The available_replicas of this V1beta1ReplicaSetStatus. + :param available_replicas: The available_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -98,22 +96,22 @@ def available_replicas(self, available_replicas): @property def conditions(self): - """ - Gets the conditions of this V1beta1ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Gets the conditions of this V1beta1ReplicaSetStatus. # noqa: E501 + + Represents the latest available observations of a replica set's current state. # noqa: E501 - :return: The conditions of this V1beta1ReplicaSetStatus. + :return: The conditions of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: list[V1beta1ReplicaSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Sets the conditions of this V1beta1ReplicaSetStatus. - :param conditions: The conditions of this V1beta1ReplicaSetStatus. + Represents the latest available observations of a replica set's current state. # noqa: E501 + + :param conditions: The conditions of this V1beta1ReplicaSetStatus. # noqa: E501 :type: list[V1beta1ReplicaSetCondition] """ @@ -121,22 +119,22 @@ def conditions(self, conditions): @property def fully_labeled_replicas(self): - """ - Gets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Gets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 - :return: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 + + :return: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): - """ - Sets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Sets the fully_labeled_replicas of this V1beta1ReplicaSetStatus. + + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 - :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. + :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -144,22 +142,22 @@ def fully_labeled_replicas(self, fully_labeled_replicas): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta1ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Gets the observed_generation of this V1beta1ReplicaSetStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :return: The observed_generation of this V1beta1ReplicaSetStatus. + :return: The observed_generation of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta1ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Sets the observed_generation of this V1beta1ReplicaSetStatus. + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta1ReplicaSetStatus. + :param observed_generation: The observed_generation of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -167,22 +165,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1beta1ReplicaSetStatus. - The number of ready replicas for this replica set. + """Gets the ready_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 - :return: The ready_replicas of this V1beta1ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :return: The ready_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1beta1ReplicaSetStatus. - The number of ready replicas for this replica set. + """Sets the ready_replicas of this V1beta1ReplicaSetStatus. - :param ready_replicas: The ready_replicas of this V1beta1ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ @@ -190,36 +188,34 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1beta1ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1beta1ReplicaSetStatus. # noqa: E501 + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1beta1ReplicaSetStatus. + :return: The replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta1ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1beta1ReplicaSetStatus. + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1beta1ReplicaSetStatus. + :param replicas: The replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +236,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ReplicaSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_resource_attributes.py b/kubernetes/client/models/v1beta1_resource_attributes.py index 75aa175e84..a6baee8a5b 100644 --- a/kubernetes/client/models/v1beta1_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_resource_attributes.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ResourceAttributes(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'group': 'str', 'name': 'str', 'namespace': 'str', @@ -50,10 +50,8 @@ class V1beta1ResourceAttributes(object): 'version': 'version' } - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): - """ - V1beta1ResourceAttributes - a model defined in Swagger - """ + def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): # noqa: E501 + """V1beta1ResourceAttributes - a model defined in OpenAPI""" # noqa: E501 self._group = None self._name = None @@ -65,38 +63,38 @@ def __init__(self, group=None, name=None, namespace=None, resource=None, subreso self.discriminator = None if group is not None: - self.group = group + self.group = group if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if resource is not None: - self.resource = resource + self.resource = resource if subresource is not None: - self.subresource = subresource + self.subresource = subresource if verb is not None: - self.verb = verb + self.verb = verb if version is not None: - self.version = version + self.version = version @property def group(self): - """ - Gets the group of this V1beta1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. + """Gets the group of this V1beta1ResourceAttributes. # noqa: E501 + + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 - :return: The group of this V1beta1ResourceAttributes. + :return: The group of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1beta1ResourceAttributes. - Group is the API Group of the Resource. \"*\" means all. + """Sets the group of this V1beta1ResourceAttributes. - :param group: The group of this V1beta1ResourceAttributes. + Group is the API Group of the Resource. \"*\" means all. # noqa: E501 + + :param group: The group of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -104,22 +102,22 @@ def group(self, group): @property def name(self): - """ - Gets the name of this V1beta1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + """Gets the name of this V1beta1ResourceAttributes. # noqa: E501 - :return: The name of this V1beta1ResourceAttributes. + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 + + :return: The name of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1ResourceAttributes. - Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + """Sets the name of this V1beta1ResourceAttributes. + + Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. # noqa: E501 - :param name: The name of this V1beta1ResourceAttributes. + :param name: The name of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -127,22 +125,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this V1beta1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + """Gets the namespace of this V1beta1ResourceAttributes. # noqa: E501 + + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 - :return: The namespace of this V1beta1ResourceAttributes. + :return: The namespace of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1beta1ResourceAttributes. - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + """Sets the namespace of this V1beta1ResourceAttributes. - :param namespace: The namespace of this V1beta1ResourceAttributes. + Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview # noqa: E501 + + :param namespace: The namespace of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -150,22 +148,22 @@ def namespace(self, namespace): @property def resource(self): - """ - Gets the resource of this V1beta1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. + """Gets the resource of this V1beta1ResourceAttributes. # noqa: E501 + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 - :return: The resource of this V1beta1ResourceAttributes. + :return: The resource of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V1beta1ResourceAttributes. - Resource is one of the existing resource types. \"*\" means all. + """Sets the resource of this V1beta1ResourceAttributes. + + Resource is one of the existing resource types. \"*\" means all. # noqa: E501 - :param resource: The resource of this V1beta1ResourceAttributes. + :param resource: The resource of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -173,22 +171,22 @@ def resource(self, resource): @property def subresource(self): - """ - Gets the subresource of this V1beta1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. + """Gets the subresource of this V1beta1ResourceAttributes. # noqa: E501 + + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 - :return: The subresource of this V1beta1ResourceAttributes. + :return: The subresource of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._subresource @subresource.setter def subresource(self, subresource): - """ - Sets the subresource of this V1beta1ResourceAttributes. - Subresource is one of the existing resource types. \"\" means none. + """Sets the subresource of this V1beta1ResourceAttributes. - :param subresource: The subresource of this V1beta1ResourceAttributes. + Subresource is one of the existing resource types. \"\" means none. # noqa: E501 + + :param subresource: The subresource of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -196,22 +194,22 @@ def subresource(self, subresource): @property def verb(self): - """ - Gets the verb of this V1beta1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Gets the verb of this V1beta1ResourceAttributes. # noqa: E501 + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :return: The verb of this V1beta1ResourceAttributes. + :return: The verb of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._verb @verb.setter def verb(self, verb): - """ - Sets the verb of this V1beta1ResourceAttributes. - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Sets the verb of this V1beta1ResourceAttributes. + + Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :param verb: The verb of this V1beta1ResourceAttributes. + :param verb: The verb of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ @@ -219,34 +217,32 @@ def verb(self, verb): @property def version(self): - """ - Gets the version of this V1beta1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. + """Gets the version of this V1beta1ResourceAttributes. # noqa: E501 - :return: The version of this V1beta1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :return: The version of this V1beta1ResourceAttributes. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this V1beta1ResourceAttributes. - Version is the API Version of the Resource. \"*\" means all. + """Sets the version of this V1beta1ResourceAttributes. - :param version: The version of this V1beta1ResourceAttributes. + Version is the API Version of the Resource. \"*\" means all. # noqa: E501 + + :param version: The version of this V1beta1ResourceAttributes. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -267,28 +263,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ResourceAttributes): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_resource_rule.py b/kubernetes/client/models/v1beta1_resource_rule.py index b8d126b5b8..775180cb78 100644 --- a/kubernetes/client/models/v1beta1_resource_rule.py +++ b/kubernetes/client/models/v1beta1_resource_rule.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ResourceRule(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'resource_names': 'list[str]', 'resources': 'list[str]', @@ -44,10 +44,8 @@ class V1beta1ResourceRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): - """ - V1beta1ResourceRule - a model defined in Swagger - """ + def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + """V1beta1ResourceRule - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._resource_names = None @@ -56,31 +54,31 @@ def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=N self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if resource_names is not None: - self.resource_names = resource_names + self.resource_names = resource_names if resources is not None: - self.resources = resources + self.resources = resources self.verbs = verbs @property def api_groups(self): - """ - Gets the api_groups of this V1beta1ResourceRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + """Gets the api_groups of this V1beta1ResourceRule. # noqa: E501 + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 - :return: The api_groups of this V1beta1ResourceRule. + :return: The api_groups of this V1beta1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1beta1ResourceRule. - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + """Sets the api_groups of this V1beta1ResourceRule. + + APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. # noqa: E501 - :param api_groups: The api_groups of this V1beta1ResourceRule. + :param api_groups: The api_groups of this V1beta1ResourceRule. # noqa: E501 :type: list[str] """ @@ -88,22 +86,22 @@ def api_groups(self, api_groups): @property def resource_names(self): - """ - Gets the resource_names of this V1beta1ResourceRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + """Gets the resource_names of this V1beta1ResourceRule. # noqa: E501 + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 - :return: The resource_names of this V1beta1ResourceRule. + :return: The resource_names of this V1beta1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._resource_names @resource_names.setter def resource_names(self, resource_names): - """ - Sets the resource_names of this V1beta1ResourceRule. - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + """Sets the resource_names of this V1beta1ResourceRule. + + ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. # noqa: E501 - :param resource_names: The resource_names of this V1beta1ResourceRule. + :param resource_names: The resource_names of this V1beta1ResourceRule. # noqa: E501 :type: list[str] """ @@ -111,22 +109,22 @@ def resource_names(self, resource_names): @property def resources(self): - """ - Gets the resources of this V1beta1ResourceRule. - Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + """Gets the resources of this V1beta1ResourceRule. # noqa: E501 + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 - :return: The resources of this V1beta1ResourceRule. + :return: The resources of this V1beta1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1beta1ResourceRule. - Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + """Sets the resources of this V1beta1ResourceRule. + + Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. # noqa: E501 - :param resources: The resources of this V1beta1ResourceRule. + :param resources: The resources of this V1beta1ResourceRule. # noqa: E501 :type: list[str] """ @@ -134,36 +132,34 @@ def resources(self, resources): @property def verbs(self): - """ - Gets the verbs of this V1beta1ResourceRule. - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Gets the verbs of this V1beta1ResourceRule. # noqa: E501 + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :return: The verbs of this V1beta1ResourceRule. + :return: The verbs of this V1beta1ResourceRule. # noqa: E501 :rtype: list[str] """ return self._verbs @verbs.setter def verbs(self, verbs): - """ - Sets the verbs of this V1beta1ResourceRule. - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + """Sets the verbs of this V1beta1ResourceRule. + + Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. # noqa: E501 - :param verbs: The verbs of this V1beta1ResourceRule. + :param verbs: The verbs of this V1beta1ResourceRule. # noqa: E501 :type: list[str] """ if verbs is None: - raise ValueError("Invalid value for `verbs`, must not be `None`") + raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ResourceRule): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_role.py b/kubernetes/client/models/v1beta1_role.py index 2d03b7a1ee..fa85433bb0 100644 --- a/kubernetes/client/models/v1beta1_role.py +++ b/kubernetes/client/models/v1beta1_role.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1Role(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -44,10 +44,8 @@ class V1beta1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): - """ - V1beta1Role - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + """V1beta1Role - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, rules=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if rules is not None: - self.rules = rules + self.rules = rules @property def api_version(self): - """ - Gets the api_version of this V1beta1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1Role. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1Role. + :return: The api_version of this V1beta1Role. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1Role. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1Role. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1Role. + :param api_version: The api_version of this V1beta1Role. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1Role. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1Role. + :return: The kind of this V1beta1Role. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1Role. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1Role. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1Role. + :param kind: The kind of this V1beta1Role. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1Role. - Standard object's metadata. + """Gets the metadata of this V1beta1Role. # noqa: E501 + - :return: The metadata of this V1beta1Role. + :return: The metadata of this V1beta1Role. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1Role. - Standard object's metadata. + """Sets the metadata of this V1beta1Role. + - :param metadata: The metadata of this V1beta1Role. + :param metadata: The metadata of this V1beta1Role. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def rules(self): - """ - Gets the rules of this V1beta1Role. - Rules holds all the PolicyRules for this Role + """Gets the rules of this V1beta1Role. # noqa: E501 + + Rules holds all the PolicyRules for this Role # noqa: E501 - :return: The rules of this V1beta1Role. + :return: The rules of this V1beta1Role. # noqa: E501 :rtype: list[V1beta1PolicyRule] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1beta1Role. - Rules holds all the PolicyRules for this Role + """Sets the rules of this V1beta1Role. + + Rules holds all the PolicyRules for this Role # noqa: E501 - :param rules: The rules of this V1beta1Role. + :param rules: The rules of this V1beta1Role. # noqa: E501 :type: list[V1beta1PolicyRule] """ self._rules = rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1Role): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_role_binding.py b/kubernetes/client/models/v1beta1_role_binding.py index 9e67bf2d62..6aa8952635 100644 --- a/kubernetes/client/models/v1beta1_role_binding.py +++ b/kubernetes/client/models/v1beta1_role_binding.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RoleBinding(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): - """ - V1beta1RoleBinding - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + """V1beta1RoleBinding - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, su self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.role_ref = role_ref if subjects is not None: - self.subjects = subjects + self.subjects = subjects @property def api_version(self): - """ - Gets the api_version of this V1beta1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1RoleBinding. # noqa: E501 - :return: The api_version of this V1beta1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1RoleBinding. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleBinding. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1RoleBinding. - :param api_version: The api_version of this V1beta1RoleBinding. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1RoleBinding. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1RoleBinding. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1RoleBinding. + :return: The kind of this V1beta1RoleBinding. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RoleBinding. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1RoleBinding. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1RoleBinding. + :param kind: The kind of this V1beta1RoleBinding. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1RoleBinding. - Standard object's metadata. + """Gets the metadata of this V1beta1RoleBinding. # noqa: E501 + - :return: The metadata of this V1beta1RoleBinding. + :return: The metadata of this V1beta1RoleBinding. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleBinding. - Standard object's metadata. + """Sets the metadata of this V1beta1RoleBinding. + - :param metadata: The metadata of this V1beta1RoleBinding. + :param metadata: The metadata of this V1beta1RoleBinding. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,55 @@ def metadata(self, metadata): @property def role_ref(self): - """ - Gets the role_ref of this V1beta1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Gets the role_ref of this V1beta1RoleBinding. # noqa: E501 + - :return: The role_ref of this V1beta1RoleBinding. + :return: The role_ref of this V1beta1RoleBinding. # noqa: E501 :rtype: V1beta1RoleRef """ return self._role_ref @role_ref.setter def role_ref(self, role_ref): - """ - Sets the role_ref of this V1beta1RoleBinding. - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """Sets the role_ref of this V1beta1RoleBinding. - :param role_ref: The role_ref of this V1beta1RoleBinding. + + :param role_ref: The role_ref of this V1beta1RoleBinding. # noqa: E501 :type: V1beta1RoleRef """ if role_ref is None: - raise ValueError("Invalid value for `role_ref`, must not be `None`") + raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @property def subjects(self): - """ - Gets the subjects of this V1beta1RoleBinding. - Subjects holds references to the objects the role applies to. + """Gets the subjects of this V1beta1RoleBinding. # noqa: E501 - :return: The subjects of this V1beta1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :return: The subjects of this V1beta1RoleBinding. # noqa: E501 :rtype: list[V1beta1Subject] """ return self._subjects @subjects.setter def subjects(self, subjects): - """ - Sets the subjects of this V1beta1RoleBinding. - Subjects holds references to the objects the role applies to. + """Sets the subjects of this V1beta1RoleBinding. - :param subjects: The subjects of this V1beta1RoleBinding. + Subjects holds references to the objects the role applies to. # noqa: E501 + + :param subjects: The subjects of this V1beta1RoleBinding. # noqa: E501 :type: list[V1beta1Subject] """ self._subjects = subjects def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RoleBinding): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_role_binding_list.py b/kubernetes/client/models/v1beta1_role_binding_list.py index ca4196ed90..842a961785 100644 --- a/kubernetes/client/models/v1beta1_role_binding_list.py +++ b/kubernetes/client/models/v1beta1_role_binding_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RoleBindingList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1RoleBinding]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1RoleBindingList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1RoleBindingList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1RoleBindingList. + :return: The api_version of this V1beta1RoleBindingList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleBindingList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1RoleBindingList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1RoleBindingList. + :param api_version: The api_version of this V1beta1RoleBindingList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1RoleBindingList. - Items is a list of RoleBindings + """Gets the items of this V1beta1RoleBindingList. # noqa: E501 + + Items is a list of RoleBindings # noqa: E501 - :return: The items of this V1beta1RoleBindingList. + :return: The items of this V1beta1RoleBindingList. # noqa: E501 :rtype: list[V1beta1RoleBinding] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1RoleBindingList. - Items is a list of RoleBindings + """Sets the items of this V1beta1RoleBindingList. + + Items is a list of RoleBindings # noqa: E501 - :param items: The items of this V1beta1RoleBindingList. + :param items: The items of this V1beta1RoleBindingList. # noqa: E501 :type: list[V1beta1RoleBinding] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1RoleBindingList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1RoleBindingList. + :return: The kind of this V1beta1RoleBindingList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RoleBindingList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1RoleBindingList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1RoleBindingList. + :param kind: The kind of this V1beta1RoleBindingList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1RoleBindingList. - Standard object's metadata. + """Gets the metadata of this V1beta1RoleBindingList. # noqa: E501 + - :return: The metadata of this V1beta1RoleBindingList. + :return: The metadata of this V1beta1RoleBindingList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleBindingList. - Standard object's metadata. + """Sets the metadata of this V1beta1RoleBindingList. + - :param metadata: The metadata of this V1beta1RoleBindingList. + :param metadata: The metadata of this V1beta1RoleBindingList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RoleBindingList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_role_list.py b/kubernetes/client/models/v1beta1_role_list.py index 58b38114f2..d24100fbfe 100644 --- a/kubernetes/client/models/v1beta1_role_list.py +++ b/kubernetes/client/models/v1beta1_role_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RoleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1Role]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1RoleList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1RoleList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1RoleList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1RoleList. + :return: The api_version of this V1beta1RoleList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RoleList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1RoleList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1RoleList. + :param api_version: The api_version of this V1beta1RoleList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1RoleList. - Items is a list of Roles + """Gets the items of this V1beta1RoleList. # noqa: E501 + + Items is a list of Roles # noqa: E501 - :return: The items of this V1beta1RoleList. + :return: The items of this V1beta1RoleList. # noqa: E501 :rtype: list[V1beta1Role] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1RoleList. - Items is a list of Roles + """Sets the items of this V1beta1RoleList. + + Items is a list of Roles # noqa: E501 - :param items: The items of this V1beta1RoleList. + :param items: The items of this V1beta1RoleList. # noqa: E501 :type: list[V1beta1Role] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1RoleList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1RoleList. + :return: The kind of this V1beta1RoleList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RoleList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1RoleList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1RoleList. + :param kind: The kind of this V1beta1RoleList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1RoleList. - Standard object's metadata. + """Gets the metadata of this V1beta1RoleList. # noqa: E501 + - :return: The metadata of this V1beta1RoleList. + :return: The metadata of this V1beta1RoleList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RoleList. - Standard object's metadata. + """Sets the metadata of this V1beta1RoleList. + - :param metadata: The metadata of this V1beta1RoleList. + :param metadata: The metadata of this V1beta1RoleList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RoleList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_role_ref.py b/kubernetes/client/models/v1beta1_role_ref.py index 99624665c8..16e449787a 100644 --- a/kubernetes/client/models/v1beta1_role_ref.py +++ b/kubernetes/client/models/v1beta1_role_ref.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RoleRef(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V1beta1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): - """ - V1beta1RoleRef - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + """V1beta1RoleRef - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -58,86 +56,84 @@ def __init__(self, api_group=None, kind=None, name=None): @property def api_group(self): - """ - Gets the api_group of this V1beta1RoleRef. - APIGroup is the group for the resource being referenced + """Gets the api_group of this V1beta1RoleRef. # noqa: E501 - :return: The api_group of this V1beta1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :return: The api_group of this V1beta1RoleRef. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1beta1RoleRef. - APIGroup is the group for the resource being referenced + """Sets the api_group of this V1beta1RoleRef. - :param api_group: The api_group of this V1beta1RoleRef. + APIGroup is the group for the resource being referenced # noqa: E501 + + :param api_group: The api_group of this V1beta1RoleRef. # noqa: E501 :type: str """ if api_group is None: - raise ValueError("Invalid value for `api_group`, must not be `None`") + raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @property def kind(self): - """ - Gets the kind of this V1beta1RoleRef. - Kind is the type of resource being referenced + """Gets the kind of this V1beta1RoleRef. # noqa: E501 - :return: The kind of this V1beta1RoleRef. + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this V1beta1RoleRef. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RoleRef. - Kind is the type of resource being referenced + """Sets the kind of this V1beta1RoleRef. + + Kind is the type of resource being referenced # noqa: E501 - :param kind: The kind of this V1beta1RoleRef. + :param kind: The kind of this V1beta1RoleRef. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1beta1RoleRef. - Name is the name of resource being referenced + """Gets the name of this V1beta1RoleRef. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 - :return: The name of this V1beta1RoleRef. + :return: The name of this V1beta1RoleRef. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1RoleRef. - Name is the name of resource being referenced + """Sets the name of this V1beta1RoleRef. + + Name is the name of resource being referenced # noqa: E501 - :param name: The name of this V1beta1RoleRef. + :param name: The name of this V1beta1RoleRef. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +154,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RoleRef): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py index 55abd1c8b7..a7e06e1965 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RollingUpdateDaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_unavailable': 'object' } @@ -38,47 +38,43 @@ class V1beta1RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): - """ - V1beta1RollingUpdateDaemonSet - a model defined in Swagger - """ + def __init__(self, max_unavailable=None): # noqa: E501 + """V1beta1RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 self._max_unavailable = None self.discriminator = None if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1beta1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Gets the max_unavailable of this V1beta1RollingUpdateDaemonSet. # noqa: E501 + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. + :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1beta1RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Sets the max_unavailable of this V1beta1RollingUpdateDaemonSet. + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. + :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RollingUpdateDaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py index 1ec4c4da1b..c3be81c981 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RollingUpdateStatefulSetStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'partition': 'int' } @@ -38,47 +38,43 @@ class V1beta1RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): - """ - V1beta1RollingUpdateStatefulSetStrategy - a model defined in Swagger - """ + def __init__(self, partition=None): # noqa: E501 + """V1beta1RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 self._partition = None self.discriminator = None if partition is not None: - self.partition = partition + self.partition = partition @property def partition(self): - """ - Gets the partition of this V1beta1RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. + """Gets the partition of this V1beta1RollingUpdateStatefulSetStrategy. # noqa: E501 + + Partition indicates the ordinal at which the StatefulSet should be partitioned. # noqa: E501 - :return: The partition of this V1beta1RollingUpdateStatefulSetStrategy. + :return: The partition of this V1beta1RollingUpdateStatefulSetStrategy. # noqa: E501 :rtype: int """ return self._partition @partition.setter def partition(self, partition): - """ - Sets the partition of this V1beta1RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. + """Sets the partition of this V1beta1RollingUpdateStatefulSetStrategy. + + Partition indicates the ordinal at which the StatefulSet should be partitioned. # noqa: E501 - :param partition: The partition of this V1beta1RollingUpdateStatefulSetStrategy. + :param partition: The partition of this V1beta1RollingUpdateStatefulSetStrategy. # noqa: E501 :type: int """ self._partition = partition def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RollingUpdateStatefulSetStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_rule_with_operations.py b/kubernetes/client/models/v1beta1_rule_with_operations.py index d105e84ae0..2daf65a597 100644 --- a/kubernetes/client/models/v1beta1_rule_with_operations.py +++ b/kubernetes/client/models/v1beta1_rule_with_operations.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RuleWithOperations(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_groups': 'list[str]', 'api_versions': 'list[str]', 'operations': 'list[str]', @@ -46,10 +46,8 @@ class V1beta1RuleWithOperations(object): 'scope': 'scope' } - def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None): - """ - V1beta1RuleWithOperations - a model defined in Swagger - """ + def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None): # noqa: E501 + """V1beta1RuleWithOperations - a model defined in OpenAPI""" # noqa: E501 self._api_groups = None self._api_versions = None @@ -59,34 +57,34 @@ def __init__(self, api_groups=None, api_versions=None, operations=None, resource self.discriminator = None if api_groups is not None: - self.api_groups = api_groups + self.api_groups = api_groups if api_versions is not None: - self.api_versions = api_versions + self.api_versions = api_versions if operations is not None: - self.operations = operations + self.operations = operations if resources is not None: - self.resources = resources + self.resources = resources if scope is not None: - self.scope = scope + self.scope = scope @property def api_groups(self): - """ - Gets the api_groups of this V1beta1RuleWithOperations. - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + """Gets the api_groups of this V1beta1RuleWithOperations. # noqa: E501 - :return: The api_groups of this V1beta1RuleWithOperations. + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :return: The api_groups of this V1beta1RuleWithOperations. # noqa: E501 :rtype: list[str] """ return self._api_groups @api_groups.setter def api_groups(self, api_groups): - """ - Sets the api_groups of this V1beta1RuleWithOperations. - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + """Sets the api_groups of this V1beta1RuleWithOperations. - :param api_groups: The api_groups of this V1beta1RuleWithOperations. + APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501 + + :param api_groups: The api_groups of this V1beta1RuleWithOperations. # noqa: E501 :type: list[str] """ @@ -94,22 +92,22 @@ def api_groups(self, api_groups): @property def api_versions(self): - """ - Gets the api_versions of this V1beta1RuleWithOperations. - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + """Gets the api_versions of this V1beta1RuleWithOperations. # noqa: E501 + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 - :return: The api_versions of this V1beta1RuleWithOperations. + :return: The api_versions of this V1beta1RuleWithOperations. # noqa: E501 :rtype: list[str] """ return self._api_versions @api_versions.setter def api_versions(self, api_versions): - """ - Sets the api_versions of this V1beta1RuleWithOperations. - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + """Sets the api_versions of this V1beta1RuleWithOperations. + + APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501 - :param api_versions: The api_versions of this V1beta1RuleWithOperations. + :param api_versions: The api_versions of this V1beta1RuleWithOperations. # noqa: E501 :type: list[str] """ @@ -117,22 +115,22 @@ def api_versions(self, api_versions): @property def operations(self): - """ - Gets the operations of this V1beta1RuleWithOperations. - Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. + """Gets the operations of this V1beta1RuleWithOperations. # noqa: E501 + + Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. # noqa: E501 - :return: The operations of this V1beta1RuleWithOperations. + :return: The operations of this V1beta1RuleWithOperations. # noqa: E501 :rtype: list[str] """ return self._operations @operations.setter def operations(self, operations): - """ - Sets the operations of this V1beta1RuleWithOperations. - Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. + """Sets the operations of this V1beta1RuleWithOperations. + + Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. # noqa: E501 - :param operations: The operations of this V1beta1RuleWithOperations. + :param operations: The operations of this V1beta1RuleWithOperations. # noqa: E501 :type: list[str] """ @@ -140,22 +138,22 @@ def operations(self, operations): @property def resources(self): - """ - Gets the resources of this V1beta1RuleWithOperations. - Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + """Gets the resources of this V1beta1RuleWithOperations. # noqa: E501 + + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 - :return: The resources of this V1beta1RuleWithOperations. + :return: The resources of this V1beta1RuleWithOperations. # noqa: E501 :rtype: list[str] """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this V1beta1RuleWithOperations. - Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + """Sets the resources of this V1beta1RuleWithOperations. - :param resources: The resources of this V1beta1RuleWithOperations. + Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501 + + :param resources: The resources of this V1beta1RuleWithOperations. # noqa: E501 :type: list[str] """ @@ -163,34 +161,32 @@ def resources(self, resources): @property def scope(self): - """ - Gets the scope of this V1beta1RuleWithOperations. - scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". + """Gets the scope of this V1beta1RuleWithOperations. # noqa: E501 - :return: The scope of this V1beta1RuleWithOperations. + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :return: The scope of this V1beta1RuleWithOperations. # noqa: E501 :rtype: str """ return self._scope @scope.setter def scope(self, scope): - """ - Sets the scope of this V1beta1RuleWithOperations. - scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". + """Sets the scope of this V1beta1RuleWithOperations. - :param scope: The scope of this V1beta1RuleWithOperations. + scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501 + + :param scope: The scope of this V1beta1RuleWithOperations. # noqa: E501 :type: str """ self._scope = scope def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +207,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RuleWithOperations): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_runtime_class.py b/kubernetes/client/models/v1beta1_runtime_class.py index 282a75677b..158a06a484 100644 --- a/kubernetes/client/models/v1beta1_runtime_class.py +++ b/kubernetes/client/models/v1beta1_runtime_class.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RuntimeClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'handler': 'str', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1RuntimeClass(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, handler=None, kind=None, metadata=None): - """ - V1beta1RuntimeClass - a model defined in Swagger - """ + def __init__(self, api_version=None, handler=None, kind=None, metadata=None): # noqa: E501 + """V1beta1RuntimeClass - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._handler = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, handler=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.handler = handler if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1RuntimeClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1RuntimeClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1RuntimeClass. + :return: The api_version of this V1beta1RuntimeClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RuntimeClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1RuntimeClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1RuntimeClass. + :param api_version: The api_version of this V1beta1RuntimeClass. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def handler(self): - """ - Gets the handler of this V1beta1RuntimeClass. - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + """Gets the handler of this V1beta1RuntimeClass. # noqa: E501 + + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. # noqa: E501 - :return: The handler of this V1beta1RuntimeClass. + :return: The handler of this V1beta1RuntimeClass. # noqa: E501 :rtype: str """ return self._handler @handler.setter def handler(self, handler): - """ - Sets the handler of this V1beta1RuntimeClass. - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + """Sets the handler of this V1beta1RuntimeClass. + + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. # noqa: E501 - :param handler: The handler of this V1beta1RuntimeClass. + :param handler: The handler of this V1beta1RuntimeClass. # noqa: E501 :type: str """ if handler is None: - raise ValueError("Invalid value for `handler`, must not be `None`") + raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 self._handler = handler @property def kind(self): - """ - Gets the kind of this V1beta1RuntimeClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1RuntimeClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1RuntimeClass. + :return: The kind of this V1beta1RuntimeClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RuntimeClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1RuntimeClass. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1RuntimeClass. + :param kind: The kind of this V1beta1RuntimeClass. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1RuntimeClass. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1RuntimeClass. # noqa: E501 + - :return: The metadata of this V1beta1RuntimeClass. + :return: The metadata of this V1beta1RuntimeClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RuntimeClass. - More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1RuntimeClass. + - :param metadata: The metadata of this V1beta1RuntimeClass. + :param metadata: The metadata of this V1beta1RuntimeClass. # noqa: E501 :type: V1ObjectMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RuntimeClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_runtime_class_list.py b/kubernetes/client/models/v1beta1_runtime_class_list.py index ca3a636385..e9fe6b2f38 100644 --- a/kubernetes/client/models/v1beta1_runtime_class_list.py +++ b/kubernetes/client/models/v1beta1_runtime_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1RuntimeClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1RuntimeClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1RuntimeClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1RuntimeClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1RuntimeClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1RuntimeClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1RuntimeClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1RuntimeClassList. + :return: The api_version of this V1beta1RuntimeClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1RuntimeClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1RuntimeClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1RuntimeClassList. + :param api_version: The api_version of this V1beta1RuntimeClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1RuntimeClassList. - Items is a list of schema objects. + """Gets the items of this V1beta1RuntimeClassList. # noqa: E501 + + Items is a list of schema objects. # noqa: E501 - :return: The items of this V1beta1RuntimeClassList. + :return: The items of this V1beta1RuntimeClassList. # noqa: E501 :rtype: list[V1beta1RuntimeClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1RuntimeClassList. - Items is a list of schema objects. + """Sets the items of this V1beta1RuntimeClassList. + + Items is a list of schema objects. # noqa: E501 - :param items: The items of this V1beta1RuntimeClassList. + :param items: The items of this V1beta1RuntimeClassList. # noqa: E501 :type: list[V1beta1RuntimeClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1RuntimeClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1RuntimeClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1RuntimeClassList. + :return: The kind of this V1beta1RuntimeClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1RuntimeClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1RuntimeClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1RuntimeClassList. + :param kind: The kind of this V1beta1RuntimeClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1RuntimeClassList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1RuntimeClassList. # noqa: E501 + - :return: The metadata of this V1beta1RuntimeClassList. + :return: The metadata of this V1beta1RuntimeClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1RuntimeClassList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1RuntimeClassList. + - :param metadata: The metadata of this V1beta1RuntimeClassList. + :param metadata: The metadata of this V1beta1RuntimeClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1RuntimeClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review.py b/kubernetes/client/models/v1beta1_self_subject_access_review.py index 8b82194eca..a9589ccd8e 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SelfSubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1SelfSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1SelfSubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1SelfSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1SelfSubjectAccessReview. # noqa: E501 - :return: The api_version of this V1beta1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1SelfSubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1SelfSubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1SelfSubjectAccessReview. - :param api_version: The api_version of this V1beta1SelfSubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1SelfSubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1SelfSubjectAccessReview. + :return: The kind of this V1beta1SelfSubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1SelfSubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1SelfSubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1SelfSubjectAccessReview. + :param kind: The kind of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1SelfSubjectAccessReview. + """Gets the metadata of this V1beta1SelfSubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1beta1SelfSubjectAccessReview. + :return: The metadata of this V1beta1SelfSubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1SelfSubjectAccessReview. + """Sets the metadata of this V1beta1SelfSubjectAccessReview. + - :param metadata: The metadata of this V1beta1SelfSubjectAccessReview. + :param metadata: The metadata of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty + """Gets the spec of this V1beta1SelfSubjectAccessReview. # noqa: E501 + - :return: The spec of this V1beta1SelfSubjectAccessReview. + :return: The spec of this V1beta1SelfSubjectAccessReview. # noqa: E501 :rtype: V1beta1SelfSubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1SelfSubjectAccessReview. - Spec holds information about the request being evaluated. user and groups must be empty + """Sets the spec of this V1beta1SelfSubjectAccessReview. - :param spec: The spec of this V1beta1SelfSubjectAccessReview. + + :param spec: The spec of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: V1beta1SelfSubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1beta1SelfSubjectAccessReview. # noqa: E501 - :return: The status of this V1beta1SelfSubjectAccessReview. + + :return: The status of this V1beta1SelfSubjectAccessReview. # noqa: E501 :rtype: V1beta1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1SelfSubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1beta1SelfSubjectAccessReview. - :param status: The status of this V1beta1SelfSubjectAccessReview. + + :param status: The status of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SelfSubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py index e0dc8712e9..d5aa984097 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SelfSubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'non_resource_attributes': 'V1beta1NonResourceAttributes', 'resource_attributes': 'V1beta1ResourceAttributes' } @@ -40,38 +40,34 @@ class V1beta1SelfSubjectAccessReviewSpec(object): 'resource_attributes': 'resourceAttributes' } - def __init__(self, non_resource_attributes=None, resource_attributes=None): - """ - V1beta1SelfSubjectAccessReviewSpec - a model defined in Swagger - """ + def __init__(self, non_resource_attributes=None, resource_attributes=None): # noqa: E501 + """V1beta1SelfSubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._non_resource_attributes = None self._resource_attributes = None self.discriminator = None if non_resource_attributes is not None: - self.non_resource_attributes = non_resource_attributes + self.non_resource_attributes = non_resource_attributes if resource_attributes is not None: - self.resource_attributes = resource_attributes + self.resource_attributes = resource_attributes @property def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Gets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 + - :return: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :return: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 :rtype: V1beta1NonResourceAttributes """ return self._non_resource_attributes @non_resource_attributes.setter def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Sets the non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - :param non_resource_attributes: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + + :param non_resource_attributes: The non_resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 :type: V1beta1NonResourceAttributes """ @@ -79,34 +75,30 @@ def non_resource_attributes(self, non_resource_attributes): @property def resource_attributes(self): - """ - Gets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Gets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 + - :return: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :return: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 :rtype: V1beta1ResourceAttributes """ return self._resource_attributes @resource_attributes.setter def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Sets the resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + - :param resource_attributes: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. + :param resource_attributes: The resource_attributes of this V1beta1SelfSubjectAccessReviewSpec. # noqa: E501 :type: V1beta1ResourceAttributes """ self._resource_attributes = resource_attributes def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SelfSubjectAccessReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_self_subject_rules_review.py b/kubernetes/client/models/v1beta1_self_subject_rules_review.py index ac0f8e3c40..183a2772d2 100644 --- a/kubernetes/client/models/v1beta1_self_subject_rules_review.py +++ b/kubernetes/client/models/v1beta1_self_subject_rules_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SelfSubjectRulesReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1SelfSubjectRulesReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1SelfSubjectRulesReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1SelfSubjectRulesReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1SelfSubjectRulesReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1SelfSubjectRulesReview. # noqa: E501 - :return: The api_version of this V1beta1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1SelfSubjectRulesReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1SelfSubjectRulesReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1SelfSubjectRulesReview. - :param api_version: The api_version of this V1beta1SelfSubjectRulesReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1SelfSubjectRulesReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1SelfSubjectRulesReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1SelfSubjectRulesReview. + :return: The kind of this V1beta1SelfSubjectRulesReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1SelfSubjectRulesReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1SelfSubjectRulesReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1SelfSubjectRulesReview. + :param kind: The kind of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1SelfSubjectRulesReview. + """Gets the metadata of this V1beta1SelfSubjectRulesReview. # noqa: E501 + - :return: The metadata of this V1beta1SelfSubjectRulesReview. + :return: The metadata of this V1beta1SelfSubjectRulesReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1SelfSubjectRulesReview. + """Sets the metadata of this V1beta1SelfSubjectRulesReview. + - :param metadata: The metadata of this V1beta1SelfSubjectRulesReview. + :param metadata: The metadata of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1SelfSubjectRulesReview. - Spec holds information about the request being evaluated. + """Gets the spec of this V1beta1SelfSubjectRulesReview. # noqa: E501 + - :return: The spec of this V1beta1SelfSubjectRulesReview. + :return: The spec of this V1beta1SelfSubjectRulesReview. # noqa: E501 :rtype: V1beta1SelfSubjectRulesReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1SelfSubjectRulesReview. - Spec holds information about the request being evaluated. + """Sets the spec of this V1beta1SelfSubjectRulesReview. - :param spec: The spec of this V1beta1SelfSubjectRulesReview. + + :param spec: The spec of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: V1beta1SelfSubjectRulesReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1SelfSubjectRulesReview. - Status is filled in by the server and indicates the set of actions a user can perform. + """Gets the status of this V1beta1SelfSubjectRulesReview. # noqa: E501 - :return: The status of this V1beta1SelfSubjectRulesReview. + + :return: The status of this V1beta1SelfSubjectRulesReview. # noqa: E501 :rtype: V1beta1SubjectRulesReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1SelfSubjectRulesReview. - Status is filled in by the server and indicates the set of actions a user can perform. + """Sets the status of this V1beta1SelfSubjectRulesReview. - :param status: The status of this V1beta1SelfSubjectRulesReview. + + :param status: The status of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: V1beta1SubjectRulesReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SelfSubjectRulesReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py index 4408bba438..e9110c1ee9 100644 --- a/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py +++ b/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SelfSubjectRulesReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'namespace': 'str' } @@ -38,47 +38,43 @@ class V1beta1SelfSubjectRulesReviewSpec(object): 'namespace': 'namespace' } - def __init__(self, namespace=None): - """ - V1beta1SelfSubjectRulesReviewSpec - a model defined in Swagger - """ + def __init__(self, namespace=None): # noqa: E501 + """V1beta1SelfSubjectRulesReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._namespace = None self.discriminator = None if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def namespace(self): - """ - Gets the namespace of this V1beta1SelfSubjectRulesReviewSpec. - Namespace to evaluate rules for. Required. + """Gets the namespace of this V1beta1SelfSubjectRulesReviewSpec. # noqa: E501 + + Namespace to evaluate rules for. Required. # noqa: E501 - :return: The namespace of this V1beta1SelfSubjectRulesReviewSpec. + :return: The namespace of this V1beta1SelfSubjectRulesReviewSpec. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1beta1SelfSubjectRulesReviewSpec. - Namespace to evaluate rules for. Required. + """Sets the namespace of this V1beta1SelfSubjectRulesReviewSpec. + + Namespace to evaluate rules for. Required. # noqa: E501 - :param namespace: The namespace of this V1beta1SelfSubjectRulesReviewSpec. + :param namespace: The namespace of this V1beta1SelfSubjectRulesReviewSpec. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SelfSubjectRulesReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set.py b/kubernetes/client/models/v1beta1_stateful_set.py index f90938ef87..863c0ac62f 100644 --- a/kubernetes/client/models/v1beta1_stateful_set.py +++ b/kubernetes/client/models/v1beta1_stateful_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1StatefulSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1StatefulSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1StatefulSet. # noqa: E501 - :return: The api_version of this V1beta1StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1StatefulSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1StatefulSet. - :param api_version: The api_version of this V1beta1StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1StatefulSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1StatefulSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1StatefulSet. + :return: The kind of this V1beta1StatefulSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1StatefulSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1StatefulSet. + :param kind: The kind of this V1beta1StatefulSet. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1StatefulSet. + """Gets the metadata of this V1beta1StatefulSet. # noqa: E501 + - :return: The metadata of this V1beta1StatefulSet. + :return: The metadata of this V1beta1StatefulSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1StatefulSet. + """Sets the metadata of this V1beta1StatefulSet. + - :param metadata: The metadata of this V1beta1StatefulSet. + :param metadata: The metadata of this V1beta1StatefulSet. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1StatefulSet. - Spec defines the desired identities of pods in this set. + """Gets the spec of this V1beta1StatefulSet. # noqa: E501 + - :return: The spec of this V1beta1StatefulSet. + :return: The spec of this V1beta1StatefulSet. # noqa: E501 :rtype: V1beta1StatefulSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1StatefulSet. - Spec defines the desired identities of pods in this set. + """Sets the spec of this V1beta1StatefulSet. - :param spec: The spec of this V1beta1StatefulSet. + + :param spec: The spec of this V1beta1StatefulSet. # noqa: E501 :type: V1beta1StatefulSetSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta1StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Gets the status of this V1beta1StatefulSet. # noqa: E501 - :return: The status of this V1beta1StatefulSet. + + :return: The status of this V1beta1StatefulSet. # noqa: E501 :rtype: V1beta1StatefulSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Sets the status of this V1beta1StatefulSet. - :param status: The status of this V1beta1StatefulSet. + + :param status: The status of this V1beta1StatefulSet. # noqa: E501 :type: V1beta1StatefulSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set_condition.py b/kubernetes/client/models/v1beta1_stateful_set_condition.py index cf6b57519b..cbc548558c 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_condition.py +++ b/kubernetes/client/models/v1beta1_stateful_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta1StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta1StatefulSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta1StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta1StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta1StatefulSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta1StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta1StatefulSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta1StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta1StatefulSetCondition. - :param last_transition_time: The last_transition_time of this V1beta1StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta1StatefulSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta1StatefulSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta1StatefulSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta1StatefulSetCondition. + :return: The message of this V1beta1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1StatefulSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta1StatefulSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta1StatefulSetCondition. + :param message: The message of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta1StatefulSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta1StatefulSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta1StatefulSetCondition. + :return: The reason of this V1beta1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1StatefulSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta1StatefulSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta1StatefulSetCondition. + :param reason: The reason of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta1StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta1StatefulSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta1StatefulSetCondition. + :return: The status of this V1beta1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta1StatefulSetCondition. - :param status: The status of this V1beta1StatefulSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta1StatefulSetCondition. - Type of statefulset condition. + """Gets the type of this V1beta1StatefulSetCondition. # noqa: E501 - :return: The type of this V1beta1StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :return: The type of this V1beta1StatefulSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1StatefulSetCondition. - Type of statefulset condition. + """Sets the type of this V1beta1StatefulSetCondition. - :param type: The type of this V1beta1StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :param type: The type of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set_list.py b/kubernetes/client/models/v1beta1_stateful_set_list.py index 181d95373c..7d57d05a44 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_list.py +++ b/kubernetes/client/models/v1beta1_stateful_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1StatefulSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1StatefulSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1StatefulSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1StatefulSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1StatefulSetList. + :return: The api_version of this V1beta1StatefulSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1StatefulSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1StatefulSetList. + :param api_version: The api_version of this V1beta1StatefulSetList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1StatefulSetList. + """Gets the items of this V1beta1StatefulSetList. # noqa: E501 + - :return: The items of this V1beta1StatefulSetList. + :return: The items of this V1beta1StatefulSetList. # noqa: E501 :rtype: list[V1beta1StatefulSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1StatefulSetList. + """Sets the items of this V1beta1StatefulSetList. + - :param items: The items of this V1beta1StatefulSetList. + :param items: The items of this V1beta1StatefulSetList. # noqa: E501 :type: list[V1beta1StatefulSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1StatefulSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1StatefulSetList. + :return: The kind of this V1beta1StatefulSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1StatefulSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1StatefulSetList. + :param kind: The kind of this V1beta1StatefulSetList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1StatefulSetList. + """Gets the metadata of this V1beta1StatefulSetList. # noqa: E501 + - :return: The metadata of this V1beta1StatefulSetList. + :return: The metadata of this V1beta1StatefulSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1StatefulSetList. + """Sets the metadata of this V1beta1StatefulSetList. + - :param metadata: The metadata of this V1beta1StatefulSetList. + :param metadata: The metadata of this V1beta1StatefulSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set_spec.py b/kubernetes/client/models/v1beta1_stateful_set_spec.py index fcb398f201..3216d7beab 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta1_stateful_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pod_management_policy': 'str', 'replicas': 'int', 'revision_history_limit': 'int', @@ -52,10 +52,8 @@ class V1beta1StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): - """ - V1beta1StatefulSetSpec - a model defined in Swagger - """ + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + """V1beta1StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 self._pod_management_policy = None self._replicas = None @@ -68,38 +66,38 @@ def __init__(self, pod_management_policy=None, replicas=None, revision_history_l self.discriminator = None if pod_management_policy is not None: - self.pod_management_policy = pod_management_policy + self.pod_management_policy = pod_management_policy if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit if selector is not None: - self.selector = selector + self.selector = selector self.service_name = service_name self.template = template if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy if volume_claim_templates is not None: - self.volume_claim_templates = volume_claim_templates + self.volume_claim_templates = volume_claim_templates @property def pod_management_policy(self): - """ - Gets the pod_management_policy of this V1beta1StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Gets the pod_management_policy of this V1beta1StatefulSetSpec. # noqa: E501 + + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 - :return: The pod_management_policy of this V1beta1StatefulSetSpec. + :return: The pod_management_policy of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: str """ return self._pod_management_policy @pod_management_policy.setter def pod_management_policy(self, pod_management_policy): - """ - Sets the pod_management_policy of this V1beta1StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Sets the pod_management_policy of this V1beta1StatefulSetSpec. - :param pod_management_policy: The pod_management_policy of this V1beta1StatefulSetSpec. + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 + + :param pod_management_policy: The pod_management_policy of this V1beta1StatefulSetSpec. # noqa: E501 :type: str """ @@ -107,22 +105,22 @@ def pod_management_policy(self, pod_management_policy): @property def replicas(self): - """ - Gets the replicas of this V1beta1StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Gets the replicas of this V1beta1StatefulSetSpec. # noqa: E501 + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :return: The replicas of this V1beta1StatefulSetSpec. + :return: The replicas of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta1StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Sets the replicas of this V1beta1StatefulSetSpec. + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :param replicas: The replicas of this V1beta1StatefulSetSpec. + :param replicas: The replicas of this V1beta1StatefulSetSpec. # noqa: E501 :type: int """ @@ -130,22 +128,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1beta1StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Gets the revision_history_limit of this V1beta1StatefulSetSpec. # noqa: E501 - :return: The revision_history_limit of this V1beta1StatefulSetSpec. + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 + + :return: The revision_history_limit of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1beta1StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Sets the revision_history_limit of this V1beta1StatefulSetSpec. + + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1beta1StatefulSetSpec. + :param revision_history_limit: The revision_history_limit of this V1beta1StatefulSetSpec. # noqa: E501 :type: int """ @@ -153,22 +151,20 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1beta1StatefulSetSpec. - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta1StatefulSetSpec. # noqa: E501 + - :return: The selector of this V1beta1StatefulSetSpec. + :return: The selector of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta1StatefulSetSpec. - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta1StatefulSetSpec. - :param selector: The selector of this V1beta1StatefulSetSpec. + + :param selector: The selector of this V1beta1StatefulSetSpec. # noqa: E501 :type: V1LabelSelector """ @@ -176,72 +172,68 @@ def selector(self, selector): @property def service_name(self): - """ - Gets the service_name of this V1beta1StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Gets the service_name of this V1beta1StatefulSetSpec. # noqa: E501 + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :return: The service_name of this V1beta1StatefulSetSpec. + :return: The service_name of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): - """ - Sets the service_name of this V1beta1StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Sets the service_name of this V1beta1StatefulSetSpec. + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :param service_name: The service_name of this V1beta1StatefulSetSpec. + :param service_name: The service_name of this V1beta1StatefulSetSpec. # noqa: E501 :type: str """ if service_name is None: - raise ValueError("Invalid value for `service_name`, must not be `None`") + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @property def template(self): - """ - Gets the template of this V1beta1StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Gets the template of this V1beta1StatefulSetSpec. # noqa: E501 - :return: The template of this V1beta1StatefulSetSpec. + + :return: The template of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta1StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Sets the template of this V1beta1StatefulSetSpec. + - :param template: The template of this V1beta1StatefulSetSpec. + :param template: The template of this V1beta1StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def update_strategy(self): - """ - Gets the update_strategy of this V1beta1StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Gets the update_strategy of this V1beta1StatefulSetSpec. # noqa: E501 + - :return: The update_strategy of this V1beta1StatefulSetSpec. + :return: The update_strategy of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: V1beta1StatefulSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1beta1StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Sets the update_strategy of this V1beta1StatefulSetSpec. - :param update_strategy: The update_strategy of this V1beta1StatefulSetSpec. + + :param update_strategy: The update_strategy of this V1beta1StatefulSetSpec. # noqa: E501 :type: V1beta1StatefulSetUpdateStrategy """ @@ -249,34 +241,32 @@ def update_strategy(self, update_strategy): @property def volume_claim_templates(self): - """ - Gets the volume_claim_templates of this V1beta1StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Gets the volume_claim_templates of this V1beta1StatefulSetSpec. # noqa: E501 + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :return: The volume_claim_templates of this V1beta1StatefulSetSpec. + :return: The volume_claim_templates of this V1beta1StatefulSetSpec. # noqa: E501 :rtype: list[V1PersistentVolumeClaim] """ return self._volume_claim_templates @volume_claim_templates.setter def volume_claim_templates(self, volume_claim_templates): - """ - Sets the volume_claim_templates of this V1beta1StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Sets the volume_claim_templates of this V1beta1StatefulSetSpec. + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :param volume_claim_templates: The volume_claim_templates of this V1beta1StatefulSetSpec. + :param volume_claim_templates: The volume_claim_templates of this V1beta1StatefulSetSpec. # noqa: E501 :type: list[V1PersistentVolumeClaim] """ self._volume_claim_templates = volume_claim_templates def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +287,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set_status.py b/kubernetes/client/models/v1beta1_stateful_set_status.py index 2698505d37..7e95378039 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_status.py +++ b/kubernetes/client/models/v1beta1_stateful_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1beta1StatefulSetCondition]', 'current_replicas': 'int', @@ -54,10 +54,8 @@ class V1beta1StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): - """ - V1beta1StatefulSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + """V1beta1StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -71,41 +69,41 @@ def __init__(self, collision_count=None, conditions=None, current_replicas=None, self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if current_replicas is not None: - self.current_replicas = current_replicas + self.current_replicas = current_replicas if current_revision is not None: - self.current_revision = current_revision + self.current_revision = current_revision if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas if update_revision is not None: - self.update_revision = update_revision + self.update_revision = update_revision if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def collision_count(self): - """ - Gets the collision_count of this V1beta1StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1beta1StatefulSetStatus. # noqa: E501 - :return: The collision_count of this V1beta1StatefulSetStatus. + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1beta1StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1beta1StatefulSetStatus. + + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 - :param collision_count: The collision_count of this V1beta1StatefulSetStatus. + :param collision_count: The collision_count of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ @@ -113,22 +111,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1beta1StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Gets the conditions of this V1beta1StatefulSetStatus. # noqa: E501 + + Represents the latest available observations of a statefulset's current state. # noqa: E501 - :return: The conditions of this V1beta1StatefulSetStatus. + :return: The conditions of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: list[V1beta1StatefulSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta1StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Sets the conditions of this V1beta1StatefulSetStatus. - :param conditions: The conditions of this V1beta1StatefulSetStatus. + Represents the latest available observations of a statefulset's current state. # noqa: E501 + + :param conditions: The conditions of this V1beta1StatefulSetStatus. # noqa: E501 :type: list[V1beta1StatefulSetCondition] """ @@ -136,22 +134,22 @@ def conditions(self, conditions): @property def current_replicas(self): - """ - Gets the current_replicas of this V1beta1StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Gets the current_replicas of this V1beta1StatefulSetStatus. # noqa: E501 - :return: The current_replicas of this V1beta1StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :return: The current_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V1beta1StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Sets the current_replicas of this V1beta1StatefulSetStatus. - :param current_replicas: The current_replicas of this V1beta1StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :param current_replicas: The current_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ @@ -159,22 +157,22 @@ def current_replicas(self, current_replicas): @property def current_revision(self): - """ - Gets the current_revision of this V1beta1StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Gets the current_revision of this V1beta1StatefulSetStatus. # noqa: E501 + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :return: The current_revision of this V1beta1StatefulSetStatus. + :return: The current_revision of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: str """ return self._current_revision @current_revision.setter def current_revision(self, current_revision): - """ - Sets the current_revision of this V1beta1StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Sets the current_revision of this V1beta1StatefulSetStatus. + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :param current_revision: The current_revision of this V1beta1StatefulSetStatus. + :param current_revision: The current_revision of this V1beta1StatefulSetStatus. # noqa: E501 :type: str """ @@ -182,22 +180,22 @@ def current_revision(self, current_revision): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta1StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Gets the observed_generation of this V1beta1StatefulSetStatus. # noqa: E501 - :return: The observed_generation of this V1beta1StatefulSetStatus. + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 + + :return: The observed_generation of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta1StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Sets the observed_generation of this V1beta1StatefulSetStatus. + + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta1StatefulSetStatus. + :param observed_generation: The observed_generation of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ @@ -205,22 +203,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1beta1StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Gets the ready_replicas of this V1beta1StatefulSetStatus. # noqa: E501 + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :return: The ready_replicas of this V1beta1StatefulSetStatus. + :return: The ready_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1beta1StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Sets the ready_replicas of this V1beta1StatefulSetStatus. + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :param ready_replicas: The ready_replicas of this V1beta1StatefulSetStatus. + :param ready_replicas: The ready_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ @@ -228,47 +226,47 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1beta1StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Gets the replicas of this V1beta1StatefulSetStatus. # noqa: E501 + + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 - :return: The replicas of this V1beta1StatefulSetStatus. + :return: The replicas of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta1StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Sets the replicas of this V1beta1StatefulSetStatus. - :param replicas: The replicas of this V1beta1StatefulSetStatus. + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 + + :param replicas: The replicas of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def update_revision(self): - """ - Gets the update_revision of this V1beta1StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Gets the update_revision of this V1beta1StatefulSetStatus. # noqa: E501 + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :return: The update_revision of this V1beta1StatefulSetStatus. + :return: The update_revision of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: str """ return self._update_revision @update_revision.setter def update_revision(self, update_revision): - """ - Sets the update_revision of this V1beta1StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Sets the update_revision of this V1beta1StatefulSetStatus. + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :param update_revision: The update_revision of this V1beta1StatefulSetStatus. + :param update_revision: The update_revision of this V1beta1StatefulSetStatus. # noqa: E501 :type: str """ @@ -276,34 +274,32 @@ def update_revision(self, update_revision): @property def updated_replicas(self): - """ - Gets the updated_replicas of this V1beta1StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Gets the updated_replicas of this V1beta1StatefulSetStatus. # noqa: E501 - :return: The updated_replicas of this V1beta1StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :return: The updated_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this V1beta1StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Sets the updated_replicas of this V1beta1StatefulSetStatus. - :param updated_replicas: The updated_replicas of this V1beta1StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :param updated_replicas: The updated_replicas of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,28 +320,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py b/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py index cef0ead516..5cce59770f 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StatefulSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1beta1RollingUpdateStatefulSetStrategy', 'type': 'str' } @@ -40,38 +40,34 @@ class V1beta1StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1beta1StatefulSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1beta1StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1beta1StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Gets the rolling_update of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1beta1StatefulSetUpdateStrategy. + :return: The rolling_update of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 :rtype: V1beta1RollingUpdateStatefulSetStrategy """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta1StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Sets the rolling_update of this V1beta1StatefulSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1beta1StatefulSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 :type: V1beta1RollingUpdateStatefulSetStrategy """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1beta1StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. + """Gets the type of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 + + Type indicates the type of the StatefulSetUpdateStrategy. # noqa: E501 - :return: The type of this V1beta1StatefulSetUpdateStrategy. + :return: The type of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta1StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. + """Sets the type of this V1beta1StatefulSetUpdateStrategy. + + Type indicates the type of the StatefulSetUpdateStrategy. # noqa: E501 - :param type: The type of this V1beta1StatefulSetUpdateStrategy. + :param type: The type of this V1beta1StatefulSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StatefulSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_storage_class.py b/kubernetes/client/models/v1beta1_storage_class.py index aa73fcc91c..9c59463b37 100644 --- a/kubernetes/client/models/v1beta1_storage_class.py +++ b/kubernetes/client/models/v1beta1_storage_class.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StorageClass(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allow_volume_expansion': 'bool', 'allowed_topologies': 'list[V1TopologySelectorTerm]', 'api_version': 'str', @@ -56,10 +56,8 @@ class V1beta1StorageClass(object): 'volume_binding_mode': 'volumeBindingMode' } - def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): - """ - V1beta1StorageClass - a model defined in Swagger - """ + def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): # noqa: E501 + """V1beta1StorageClass - a model defined in OpenAPI""" # noqa: E501 self._allow_volume_expansion = None self._allowed_topologies = None @@ -74,43 +72,43 @@ def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_ver self.discriminator = None if allow_volume_expansion is not None: - self.allow_volume_expansion = allow_volume_expansion + self.allow_volume_expansion = allow_volume_expansion if allowed_topologies is not None: - self.allowed_topologies = allowed_topologies + self.allowed_topologies = allowed_topologies if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if mount_options is not None: - self.mount_options = mount_options + self.mount_options = mount_options if parameters is not None: - self.parameters = parameters + self.parameters = parameters self.provisioner = provisioner if reclaim_policy is not None: - self.reclaim_policy = reclaim_policy + self.reclaim_policy = reclaim_policy if volume_binding_mode is not None: - self.volume_binding_mode = volume_binding_mode + self.volume_binding_mode = volume_binding_mode @property def allow_volume_expansion(self): - """ - Gets the allow_volume_expansion of this V1beta1StorageClass. - AllowVolumeExpansion shows whether the storage class allow volume expand + """Gets the allow_volume_expansion of this V1beta1StorageClass. # noqa: E501 - :return: The allow_volume_expansion of this V1beta1StorageClass. + AllowVolumeExpansion shows whether the storage class allow volume expand # noqa: E501 + + :return: The allow_volume_expansion of this V1beta1StorageClass. # noqa: E501 :rtype: bool """ return self._allow_volume_expansion @allow_volume_expansion.setter def allow_volume_expansion(self, allow_volume_expansion): - """ - Sets the allow_volume_expansion of this V1beta1StorageClass. - AllowVolumeExpansion shows whether the storage class allow volume expand + """Sets the allow_volume_expansion of this V1beta1StorageClass. - :param allow_volume_expansion: The allow_volume_expansion of this V1beta1StorageClass. + AllowVolumeExpansion shows whether the storage class allow volume expand # noqa: E501 + + :param allow_volume_expansion: The allow_volume_expansion of this V1beta1StorageClass. # noqa: E501 :type: bool """ @@ -118,22 +116,22 @@ def allow_volume_expansion(self, allow_volume_expansion): @property def allowed_topologies(self): - """ - Gets the allowed_topologies of this V1beta1StorageClass. - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """Gets the allowed_topologies of this V1beta1StorageClass. # noqa: E501 - :return: The allowed_topologies of this V1beta1StorageClass. + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 + + :return: The allowed_topologies of this V1beta1StorageClass. # noqa: E501 :rtype: list[V1TopologySelectorTerm] """ return self._allowed_topologies @allowed_topologies.setter def allowed_topologies(self, allowed_topologies): - """ - Sets the allowed_topologies of this V1beta1StorageClass. - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """Sets the allowed_topologies of this V1beta1StorageClass. + + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :param allowed_topologies: The allowed_topologies of this V1beta1StorageClass. + :param allowed_topologies: The allowed_topologies of this V1beta1StorageClass. # noqa: E501 :type: list[V1TopologySelectorTerm] """ @@ -141,22 +139,22 @@ def allowed_topologies(self, allowed_topologies): @property def api_version(self): - """ - Gets the api_version of this V1beta1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1StorageClass. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1StorageClass. + :return: The api_version of this V1beta1StorageClass. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1StorageClass. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1StorageClass. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1StorageClass. + :param api_version: The api_version of this V1beta1StorageClass. # noqa: E501 :type: str """ @@ -164,22 +162,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1StorageClass. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1StorageClass. + :return: The kind of this V1beta1StorageClass. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1StorageClass. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1StorageClass. - :param kind: The kind of this V1beta1StorageClass. + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 + + :param kind: The kind of this V1beta1StorageClass. # noqa: E501 :type: str """ @@ -187,22 +185,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1StorageClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1StorageClass. # noqa: E501 - :return: The metadata of this V1beta1StorageClass. + + :return: The metadata of this V1beta1StorageClass. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1StorageClass. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1StorageClass. - :param metadata: The metadata of this V1beta1StorageClass. + + :param metadata: The metadata of this V1beta1StorageClass. # noqa: E501 :type: V1ObjectMeta """ @@ -210,22 +206,22 @@ def metadata(self, metadata): @property def mount_options(self): - """ - Gets the mount_options of this V1beta1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + """Gets the mount_options of this V1beta1StorageClass. # noqa: E501 + + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 - :return: The mount_options of this V1beta1StorageClass. + :return: The mount_options of this V1beta1StorageClass. # noqa: E501 :rtype: list[str] """ return self._mount_options @mount_options.setter def mount_options(self, mount_options): - """ - Sets the mount_options of this V1beta1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. + """Sets the mount_options of this V1beta1StorageClass. + + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. # noqa: E501 - :param mount_options: The mount_options of this V1beta1StorageClass. + :param mount_options: The mount_options of this V1beta1StorageClass. # noqa: E501 :type: list[str] """ @@ -233,22 +229,22 @@ def mount_options(self, mount_options): @property def parameters(self): - """ - Gets the parameters of this V1beta1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """Gets the parameters of this V1beta1StorageClass. # noqa: E501 + + Parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 - :return: The parameters of this V1beta1StorageClass. + :return: The parameters of this V1beta1StorageClass. # noqa: E501 :rtype: dict(str, str) """ return self._parameters @parameters.setter def parameters(self, parameters): - """ - Sets the parameters of this V1beta1StorageClass. - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """Sets the parameters of this V1beta1StorageClass. + + Parameters holds the parameters for the provisioner that should create volumes of this storage class. # noqa: E501 - :param parameters: The parameters of this V1beta1StorageClass. + :param parameters: The parameters of this V1beta1StorageClass. # noqa: E501 :type: dict(str, str) """ @@ -256,47 +252,47 @@ def parameters(self, parameters): @property def provisioner(self): - """ - Gets the provisioner of this V1beta1StorageClass. - Provisioner indicates the type of the provisioner. + """Gets the provisioner of this V1beta1StorageClass. # noqa: E501 - :return: The provisioner of this V1beta1StorageClass. + Provisioner indicates the type of the provisioner. # noqa: E501 + + :return: The provisioner of this V1beta1StorageClass. # noqa: E501 :rtype: str """ return self._provisioner @provisioner.setter def provisioner(self, provisioner): - """ - Sets the provisioner of this V1beta1StorageClass. - Provisioner indicates the type of the provisioner. + """Sets the provisioner of this V1beta1StorageClass. - :param provisioner: The provisioner of this V1beta1StorageClass. + Provisioner indicates the type of the provisioner. # noqa: E501 + + :param provisioner: The provisioner of this V1beta1StorageClass. # noqa: E501 :type: str """ if provisioner is None: - raise ValueError("Invalid value for `provisioner`, must not be `None`") + raise ValueError("Invalid value for `provisioner`, must not be `None`") # noqa: E501 self._provisioner = provisioner @property def reclaim_policy(self): - """ - Gets the reclaim_policy of this V1beta1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """Gets the reclaim_policy of this V1beta1StorageClass. # noqa: E501 - :return: The reclaim_policy of this V1beta1StorageClass. + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. # noqa: E501 + + :return: The reclaim_policy of this V1beta1StorageClass. # noqa: E501 :rtype: str """ return self._reclaim_policy @reclaim_policy.setter def reclaim_policy(self, reclaim_policy): - """ - Sets the reclaim_policy of this V1beta1StorageClass. - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """Sets the reclaim_policy of this V1beta1StorageClass. + + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. # noqa: E501 - :param reclaim_policy: The reclaim_policy of this V1beta1StorageClass. + :param reclaim_policy: The reclaim_policy of this V1beta1StorageClass. # noqa: E501 :type: str """ @@ -304,34 +300,32 @@ def reclaim_policy(self, reclaim_policy): @property def volume_binding_mode(self): - """ - Gets the volume_binding_mode of this V1beta1StorageClass. - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """Gets the volume_binding_mode of this V1beta1StorageClass. # noqa: E501 + + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :return: The volume_binding_mode of this V1beta1StorageClass. + :return: The volume_binding_mode of this V1beta1StorageClass. # noqa: E501 :rtype: str """ return self._volume_binding_mode @volume_binding_mode.setter def volume_binding_mode(self, volume_binding_mode): - """ - Sets the volume_binding_mode of this V1beta1StorageClass. - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """Sets the volume_binding_mode of this V1beta1StorageClass. + + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. # noqa: E501 - :param volume_binding_mode: The volume_binding_mode of this V1beta1StorageClass. + :param volume_binding_mode: The volume_binding_mode of this V1beta1StorageClass. # noqa: E501 :type: str """ self._volume_binding_mode = volume_binding_mode def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -352,28 +346,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StorageClass): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_storage_class_list.py b/kubernetes/client/models/v1beta1_storage_class_list.py index e13c85d96d..fc9d09748d 100644 --- a/kubernetes/client/models/v1beta1_storage_class_list.py +++ b/kubernetes/client/models/v1beta1_storage_class_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1StorageClassList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1StorageClass]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1StorageClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1StorageClassList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1StorageClassList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1StorageClassList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1StorageClassList. + :return: The api_version of this V1beta1StorageClassList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1StorageClassList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1StorageClassList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1StorageClassList. + :param api_version: The api_version of this V1beta1StorageClassList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1StorageClassList. - Items is the list of StorageClasses + """Gets the items of this V1beta1StorageClassList. # noqa: E501 + + Items is the list of StorageClasses # noqa: E501 - :return: The items of this V1beta1StorageClassList. + :return: The items of this V1beta1StorageClassList. # noqa: E501 :rtype: list[V1beta1StorageClass] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1StorageClassList. - Items is the list of StorageClasses + """Sets the items of this V1beta1StorageClassList. + + Items is the list of StorageClasses # noqa: E501 - :param items: The items of this V1beta1StorageClassList. + :param items: The items of this V1beta1StorageClassList. # noqa: E501 :type: list[V1beta1StorageClass] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1StorageClassList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1StorageClassList. + :return: The kind of this V1beta1StorageClassList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1StorageClassList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1StorageClassList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1StorageClassList. + :param kind: The kind of this V1beta1StorageClassList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1StorageClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1StorageClassList. # noqa: E501 + - :return: The metadata of this V1beta1StorageClassList. + :return: The metadata of this V1beta1StorageClassList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1StorageClassList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1StorageClassList. + - :param metadata: The metadata of this V1beta1StorageClassList. + :param metadata: The metadata of this V1beta1StorageClassList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1StorageClassList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_subject.py b/kubernetes/client/models/v1beta1_subject.py index 083153d7fa..c60596d7e3 100644 --- a/kubernetes/client/models/v1beta1_subject.py +++ b/kubernetes/client/models/v1beta1_subject.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1Subject(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str', @@ -44,10 +44,8 @@ class V1beta1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_group=None, kind=None, name=None, namespace=None): - """ - V1beta1Subject - a model defined in Swagger - """ + def __init__(self, api_group=None, kind=None, name=None, namespace=None): # noqa: E501 + """V1beta1Subject - a model defined in OpenAPI""" # noqa: E501 self._api_group = None self._kind = None @@ -56,30 +54,30 @@ def __init__(self, api_group=None, kind=None, name=None, namespace=None): self.discriminator = None if api_group is not None: - self.api_group = api_group + self.api_group = api_group self.kind = kind self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace @property def api_group(self): - """ - Gets the api_group of this V1beta1Subject. - APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + """Gets the api_group of this V1beta1Subject. # noqa: E501 + + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501 - :return: The api_group of this V1beta1Subject. + :return: The api_group of this V1beta1Subject. # noqa: E501 :rtype: str """ return self._api_group @api_group.setter def api_group(self, api_group): - """ - Sets the api_group of this V1beta1Subject. - APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. + """Sets the api_group of this V1beta1Subject. + + APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. # noqa: E501 - :param api_group: The api_group of this V1beta1Subject. + :param api_group: The api_group of this V1beta1Subject. # noqa: E501 :type: str """ @@ -87,84 +85,82 @@ def api_group(self, api_group): @property def kind(self): - """ - Gets the kind of this V1beta1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Gets the kind of this V1beta1Subject. # noqa: E501 + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :return: The kind of this V1beta1Subject. + :return: The kind of this V1beta1Subject. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1Subject. - Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + """Sets the kind of this V1beta1Subject. + + Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error. # noqa: E501 - :param kind: The kind of this V1beta1Subject. + :param kind: The kind of this V1beta1Subject. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V1beta1Subject. - Name of the object being referenced. + """Gets the name of this V1beta1Subject. # noqa: E501 + + Name of the object being referenced. # noqa: E501 - :return: The name of this V1beta1Subject. + :return: The name of this V1beta1Subject. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1Subject. - Name of the object being referenced. + """Sets the name of this V1beta1Subject. + + Name of the object being referenced. # noqa: E501 - :param name: The name of this V1beta1Subject. + :param name: The name of this V1beta1Subject. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this V1beta1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Gets the namespace of this V1beta1Subject. # noqa: E501 + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :return: The namespace of this V1beta1Subject. + :return: The namespace of this V1beta1Subject. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this V1beta1Subject. - Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. + """Sets the namespace of this V1beta1Subject. + + Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. # noqa: E501 - :param namespace: The namespace of this V1beta1Subject. + :param namespace: The namespace of this V1beta1Subject. # noqa: E501 :type: str """ self._namespace = namespace def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +181,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1Subject): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review.py b/kubernetes/client/models/v1beta1_subject_access_review.py index 90947a59e8..10d75abf2e 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_subject_access_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SubjectAccessReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1SubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1SubjectAccessReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1SubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1SubjectAccessReview. # noqa: E501 - :return: The api_version of this V1beta1SubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1SubjectAccessReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1SubjectAccessReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1SubjectAccessReview. - :param api_version: The api_version of this V1beta1SubjectAccessReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1SubjectAccessReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1SubjectAccessReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1SubjectAccessReview. + :return: The kind of this V1beta1SubjectAccessReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1SubjectAccessReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1SubjectAccessReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1SubjectAccessReview. + :param kind: The kind of this V1beta1SubjectAccessReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1SubjectAccessReview. + """Gets the metadata of this V1beta1SubjectAccessReview. # noqa: E501 + - :return: The metadata of this V1beta1SubjectAccessReview. + :return: The metadata of this V1beta1SubjectAccessReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1SubjectAccessReview. + """Sets the metadata of this V1beta1SubjectAccessReview. + - :param metadata: The metadata of this V1beta1SubjectAccessReview. + :param metadata: The metadata of this V1beta1SubjectAccessReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1SubjectAccessReview. - Spec holds information about the request being evaluated + """Gets the spec of this V1beta1SubjectAccessReview. # noqa: E501 + - :return: The spec of this V1beta1SubjectAccessReview. + :return: The spec of this V1beta1SubjectAccessReview. # noqa: E501 :rtype: V1beta1SubjectAccessReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1SubjectAccessReview. - Spec holds information about the request being evaluated + """Sets the spec of this V1beta1SubjectAccessReview. - :param spec: The spec of this V1beta1SubjectAccessReview. + + :param spec: The spec of this V1beta1SubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Gets the status of this V1beta1SubjectAccessReview. # noqa: E501 - :return: The status of this V1beta1SubjectAccessReview. + + :return: The status of this V1beta1SubjectAccessReview. # noqa: E501 :rtype: V1beta1SubjectAccessReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1SubjectAccessReview. - Status is filled in by the server and indicates whether the request is allowed or not + """Sets the status of this V1beta1SubjectAccessReview. - :param status: The status of this V1beta1SubjectAccessReview. + + :param status: The status of this V1beta1SubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SubjectAccessReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_subject_access_review_spec.py index a5c28d84d6..b1391f5d29 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SubjectAccessReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'extra': 'dict(str, list[str])', 'group': 'list[str]', 'non_resource_attributes': 'V1beta1NonResourceAttributes', @@ -48,10 +48,8 @@ class V1beta1SubjectAccessReviewSpec(object): 'user': 'user' } - def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): - """ - V1beta1SubjectAccessReviewSpec - a model defined in Swagger - """ + def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): # noqa: E501 + """V1beta1SubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._extra = None self._group = None @@ -62,36 +60,36 @@ def __init__(self, extra=None, group=None, non_resource_attributes=None, resourc self.discriminator = None if extra is not None: - self.extra = extra + self.extra = extra if group is not None: - self.group = group + self.group = group if non_resource_attributes is not None: - self.non_resource_attributes = non_resource_attributes + self.non_resource_attributes = non_resource_attributes if resource_attributes is not None: - self.resource_attributes = resource_attributes + self.resource_attributes = resource_attributes if uid is not None: - self.uid = uid + self.uid = uid if user is not None: - self.user = user + self.user = user @property def extra(self): - """ - Gets the extra of this V1beta1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + """Gets the extra of this V1beta1SubjectAccessReviewSpec. # noqa: E501 + + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. # noqa: E501 - :return: The extra of this V1beta1SubjectAccessReviewSpec. + :return: The extra of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: dict(str, list[str]) """ return self._extra @extra.setter def extra(self, extra): - """ - Sets the extra of this V1beta1SubjectAccessReviewSpec. - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + """Sets the extra of this V1beta1SubjectAccessReviewSpec. + + Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. # noqa: E501 - :param extra: The extra of this V1beta1SubjectAccessReviewSpec. + :param extra: The extra of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: dict(str, list[str]) """ @@ -99,22 +97,22 @@ def extra(self, extra): @property def group(self): - """ - Gets the group of this V1beta1SubjectAccessReviewSpec. - Groups is the groups you're testing for. + """Gets the group of this V1beta1SubjectAccessReviewSpec. # noqa: E501 + + Groups is the groups you're testing for. # noqa: E501 - :return: The group of this V1beta1SubjectAccessReviewSpec. + :return: The group of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: list[str] """ return self._group @group.setter def group(self, group): - """ - Sets the group of this V1beta1SubjectAccessReviewSpec. - Groups is the groups you're testing for. + """Sets the group of this V1beta1SubjectAccessReviewSpec. - :param group: The group of this V1beta1SubjectAccessReviewSpec. + Groups is the groups you're testing for. # noqa: E501 + + :param group: The group of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: list[str] """ @@ -122,22 +120,20 @@ def group(self, group): @property def non_resource_attributes(self): - """ - Gets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Gets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 - :return: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + + :return: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: V1beta1NonResourceAttributes """ return self._non_resource_attributes @non_resource_attributes.setter def non_resource_attributes(self, non_resource_attributes): - """ - Sets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. - NonResourceAttributes describes information for a non-resource access request + """Sets the non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + - :param non_resource_attributes: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. + :param non_resource_attributes: The non_resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: V1beta1NonResourceAttributes """ @@ -145,22 +141,20 @@ def non_resource_attributes(self, non_resource_attributes): @property def resource_attributes(self): - """ - Gets the resource_attributes of this V1beta1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Gets the resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 + - :return: The resource_attributes of this V1beta1SubjectAccessReviewSpec. + :return: The resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: V1beta1ResourceAttributes """ return self._resource_attributes @resource_attributes.setter def resource_attributes(self, resource_attributes): - """ - Sets the resource_attributes of this V1beta1SubjectAccessReviewSpec. - ResourceAuthorizationAttributes describes information for a resource access request + """Sets the resource_attributes of this V1beta1SubjectAccessReviewSpec. + - :param resource_attributes: The resource_attributes of this V1beta1SubjectAccessReviewSpec. + :param resource_attributes: The resource_attributes of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: V1beta1ResourceAttributes """ @@ -168,22 +162,22 @@ def resource_attributes(self, resource_attributes): @property def uid(self): - """ - Gets the uid of this V1beta1SubjectAccessReviewSpec. - UID information about the requesting user. + """Gets the uid of this V1beta1SubjectAccessReviewSpec. # noqa: E501 - :return: The uid of this V1beta1SubjectAccessReviewSpec. + UID information about the requesting user. # noqa: E501 + + :return: The uid of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1beta1SubjectAccessReviewSpec. - UID information about the requesting user. + """Sets the uid of this V1beta1SubjectAccessReviewSpec. - :param uid: The uid of this V1beta1SubjectAccessReviewSpec. + UID information about the requesting user. # noqa: E501 + + :param uid: The uid of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: str """ @@ -191,34 +185,32 @@ def uid(self, uid): @property def user(self): - """ - Gets the user of this V1beta1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups + """Gets the user of this V1beta1SubjectAccessReviewSpec. # noqa: E501 + + User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups # noqa: E501 - :return: The user of this V1beta1SubjectAccessReviewSpec. + :return: The user of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1beta1SubjectAccessReviewSpec. - User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups + """Sets the user of this V1beta1SubjectAccessReviewSpec. + + User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups # noqa: E501 - :param user: The user of this V1beta1SubjectAccessReviewSpec. + :param user: The user of this V1beta1SubjectAccessReviewSpec. # noqa: E501 :type: str """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -239,28 +231,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SubjectAccessReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_access_review_status.py b/kubernetes/client/models/v1beta1_subject_access_review_status.py index e1bdf28b13..0f5d8d99d1 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_status.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SubjectAccessReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'allowed': 'bool', 'denied': 'bool', 'evaluation_error': 'str', @@ -44,10 +44,8 @@ class V1beta1SubjectAccessReviewStatus(object): 'reason': 'reason' } - def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): - """ - V1beta1SubjectAccessReviewStatus - a model defined in Swagger - """ + def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): # noqa: E501 + """V1beta1SubjectAccessReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._allowed = None self._denied = None @@ -57,55 +55,55 @@ def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None self.allowed = allowed if denied is not None: - self.denied = denied + self.denied = denied if evaluation_error is not None: - self.evaluation_error = evaluation_error + self.evaluation_error = evaluation_error if reason is not None: - self.reason = reason + self.reason = reason @property def allowed(self): - """ - Gets the allowed of this V1beta1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. + """Gets the allowed of this V1beta1SubjectAccessReviewStatus. # noqa: E501 + + Allowed is required. True if the action would be allowed, false otherwise. # noqa: E501 - :return: The allowed of this V1beta1SubjectAccessReviewStatus. + :return: The allowed of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :rtype: bool """ return self._allowed @allowed.setter def allowed(self, allowed): - """ - Sets the allowed of this V1beta1SubjectAccessReviewStatus. - Allowed is required. True if the action would be allowed, false otherwise. + """Sets the allowed of this V1beta1SubjectAccessReviewStatus. + + Allowed is required. True if the action would be allowed, false otherwise. # noqa: E501 - :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. + :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ if allowed is None: - raise ValueError("Invalid value for `allowed`, must not be `None`") + raise ValueError("Invalid value for `allowed`, must not be `None`") # noqa: E501 self._allowed = allowed @property def denied(self): - """ - Gets the denied of this V1beta1SubjectAccessReviewStatus. - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + """Gets the denied of this V1beta1SubjectAccessReviewStatus. # noqa: E501 + + Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. # noqa: E501 - :return: The denied of this V1beta1SubjectAccessReviewStatus. + :return: The denied of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :rtype: bool """ return self._denied @denied.setter def denied(self, denied): - """ - Sets the denied of this V1beta1SubjectAccessReviewStatus. - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + """Sets the denied of this V1beta1SubjectAccessReviewStatus. + + Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. # noqa: E501 - :param denied: The denied of this V1beta1SubjectAccessReviewStatus. + :param denied: The denied of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ @@ -113,22 +111,22 @@ def denied(self, denied): @property def evaluation_error(self): - """ - Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + """Gets the evaluation_error of this V1beta1SubjectAccessReviewStatus. # noqa: E501 + + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. # noqa: E501 - :return: The evaluation_error of this V1beta1SubjectAccessReviewStatus. + :return: The evaluation_error of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :rtype: str """ return self._evaluation_error @evaluation_error.setter def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1beta1SubjectAccessReviewStatus. - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + """Sets the evaluation_error of this V1beta1SubjectAccessReviewStatus. + + EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. # noqa: E501 - :param evaluation_error: The evaluation_error of this V1beta1SubjectAccessReviewStatus. + :param evaluation_error: The evaluation_error of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :type: str """ @@ -136,34 +134,32 @@ def evaluation_error(self, evaluation_error): @property def reason(self): - """ - Gets the reason of this V1beta1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. + """Gets the reason of this V1beta1SubjectAccessReviewStatus. # noqa: E501 + + Reason is optional. It indicates why a request was allowed or denied. # noqa: E501 - :return: The reason of this V1beta1SubjectAccessReviewStatus. + :return: The reason of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta1SubjectAccessReviewStatus. - Reason is optional. It indicates why a request was allowed or denied. + """Sets the reason of this V1beta1SubjectAccessReviewStatus. + + Reason is optional. It indicates why a request was allowed or denied. # noqa: E501 - :param reason: The reason of this V1beta1SubjectAccessReviewStatus. + :param reason: The reason of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :type: str """ self._reason = reason def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SubjectAccessReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_subject_rules_review_status.py b/kubernetes/client/models/v1beta1_subject_rules_review_status.py index 712f2fa8fa..8ad4801bb9 100644 --- a/kubernetes/client/models/v1beta1_subject_rules_review_status.py +++ b/kubernetes/client/models/v1beta1_subject_rules_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1SubjectRulesReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'evaluation_error': 'str', 'incomplete': 'bool', 'non_resource_rules': 'list[V1beta1NonResourceRule]', @@ -44,10 +44,8 @@ class V1beta1SubjectRulesReviewStatus(object): 'resource_rules': 'resourceRules' } - def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): - """ - V1beta1SubjectRulesReviewStatus - a model defined in Swagger - """ + def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): # noqa: E501 + """V1beta1SubjectRulesReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._evaluation_error = None self._incomplete = None @@ -56,29 +54,29 @@ def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=No self.discriminator = None if evaluation_error is not None: - self.evaluation_error = evaluation_error + self.evaluation_error = evaluation_error self.incomplete = incomplete self.non_resource_rules = non_resource_rules self.resource_rules = resource_rules @property def evaluation_error(self): - """ - Gets the evaluation_error of this V1beta1SubjectRulesReviewStatus. - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + """Gets the evaluation_error of this V1beta1SubjectRulesReviewStatus. # noqa: E501 + + EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. # noqa: E501 - :return: The evaluation_error of this V1beta1SubjectRulesReviewStatus. + :return: The evaluation_error of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :rtype: str """ return self._evaluation_error @evaluation_error.setter def evaluation_error(self, evaluation_error): - """ - Sets the evaluation_error of this V1beta1SubjectRulesReviewStatus. - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + """Sets the evaluation_error of this V1beta1SubjectRulesReviewStatus. + + EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. # noqa: E501 - :param evaluation_error: The evaluation_error of this V1beta1SubjectRulesReviewStatus. + :param evaluation_error: The evaluation_error of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: str """ @@ -86,86 +84,84 @@ def evaluation_error(self, evaluation_error): @property def incomplete(self): - """ - Gets the incomplete of this V1beta1SubjectRulesReviewStatus. - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + """Gets the incomplete of this V1beta1SubjectRulesReviewStatus. # noqa: E501 + + Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. # noqa: E501 - :return: The incomplete of this V1beta1SubjectRulesReviewStatus. + :return: The incomplete of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :rtype: bool """ return self._incomplete @incomplete.setter def incomplete(self, incomplete): - """ - Sets the incomplete of this V1beta1SubjectRulesReviewStatus. - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + """Sets the incomplete of this V1beta1SubjectRulesReviewStatus. + + Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. # noqa: E501 - :param incomplete: The incomplete of this V1beta1SubjectRulesReviewStatus. + :param incomplete: The incomplete of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: bool """ if incomplete is None: - raise ValueError("Invalid value for `incomplete`, must not be `None`") + raise ValueError("Invalid value for `incomplete`, must not be `None`") # noqa: E501 self._incomplete = incomplete @property def non_resource_rules(self): - """ - Gets the non_resource_rules of this V1beta1SubjectRulesReviewStatus. - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Gets the non_resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 + + NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :return: The non_resource_rules of this V1beta1SubjectRulesReviewStatus. + :return: The non_resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :rtype: list[V1beta1NonResourceRule] """ return self._non_resource_rules @non_resource_rules.setter def non_resource_rules(self, non_resource_rules): - """ - Sets the non_resource_rules of this V1beta1SubjectRulesReviewStatus. - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Sets the non_resource_rules of this V1beta1SubjectRulesReviewStatus. + + NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :param non_resource_rules: The non_resource_rules of this V1beta1SubjectRulesReviewStatus. + :param non_resource_rules: The non_resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1beta1NonResourceRule] """ if non_resource_rules is None: - raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") + raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") # noqa: E501 self._non_resource_rules = non_resource_rules @property def resource_rules(self): - """ - Gets the resource_rules of this V1beta1SubjectRulesReviewStatus. - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Gets the resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 + + ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :return: The resource_rules of this V1beta1SubjectRulesReviewStatus. + :return: The resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :rtype: list[V1beta1ResourceRule] """ return self._resource_rules @resource_rules.setter def resource_rules(self, resource_rules): - """ - Sets the resource_rules of this V1beta1SubjectRulesReviewStatus. - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + """Sets the resource_rules of this V1beta1SubjectRulesReviewStatus. + + ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. # noqa: E501 - :param resource_rules: The resource_rules of this V1beta1SubjectRulesReviewStatus. + :param resource_rules: The resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1beta1ResourceRule] """ if resource_rules is None: - raise ValueError("Invalid value for `resource_rules`, must not be `None`") + raise ValueError("Invalid value for `resource_rules`, must not be `None`") # noqa: E501 self._resource_rules = resource_rules def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -186,28 +182,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1SubjectRulesReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_token_review.py b/kubernetes/client/models/v1beta1_token_review.py index 9d33db1c34..6bf3649548 100644 --- a/kubernetes/client/models/v1beta1_token_review.py +++ b/kubernetes/client/models/v1beta1_token_review.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1TokenReview(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1TokenReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1TokenReview - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1TokenReview - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1TokenReview. # noqa: E501 - :return: The api_version of this V1beta1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1TokenReview. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1TokenReview. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1TokenReview. - :param api_version: The api_version of this V1beta1TokenReview. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1TokenReview. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1TokenReview. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1TokenReview. + :return: The kind of this V1beta1TokenReview. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1TokenReview. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1TokenReview. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1TokenReview. + :param kind: The kind of this V1beta1TokenReview. # noqa: E501 :type: str """ @@ -116,20 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1TokenReview. + """Gets the metadata of this V1beta1TokenReview. # noqa: E501 + - :return: The metadata of this V1beta1TokenReview. + :return: The metadata of this V1beta1TokenReview. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1TokenReview. + """Sets the metadata of this V1beta1TokenReview. + - :param metadata: The metadata of this V1beta1TokenReview. + :param metadata: The metadata of this V1beta1TokenReview. # noqa: E501 :type: V1ObjectMeta """ @@ -137,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1TokenReview. - Spec holds information about the request being evaluated + """Gets the spec of this V1beta1TokenReview. # noqa: E501 + - :return: The spec of this V1beta1TokenReview. + :return: The spec of this V1beta1TokenReview. # noqa: E501 :rtype: V1beta1TokenReviewSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1TokenReview. - Spec holds information about the request being evaluated + """Sets the spec of this V1beta1TokenReview. - :param spec: The spec of this V1beta1TokenReview. + + :param spec: The spec of this V1beta1TokenReview. # noqa: E501 :type: V1beta1TokenReviewSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. + """Gets the status of this V1beta1TokenReview. # noqa: E501 - :return: The status of this V1beta1TokenReview. + + :return: The status of this V1beta1TokenReview. # noqa: E501 :rtype: V1beta1TokenReviewStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1TokenReview. - Status is filled in by the server and indicates whether the request can be authenticated. + """Sets the status of this V1beta1TokenReview. - :param status: The status of this V1beta1TokenReview. + + :param status: The status of this V1beta1TokenReview. # noqa: E501 :type: V1beta1TokenReviewStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -210,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1TokenReview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_token_review_spec.py b/kubernetes/client/models/v1beta1_token_review_spec.py index 1abef6f7c2..f4ec009368 100644 --- a/kubernetes/client/models/v1beta1_token_review_spec.py +++ b/kubernetes/client/models/v1beta1_token_review_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1TokenReviewSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'audiences': 'list[str]', 'token': 'str' } @@ -40,38 +40,36 @@ class V1beta1TokenReviewSpec(object): 'token': 'token' } - def __init__(self, audiences=None, token=None): - """ - V1beta1TokenReviewSpec - a model defined in Swagger - """ + def __init__(self, audiences=None, token=None): # noqa: E501 + """V1beta1TokenReviewSpec - a model defined in OpenAPI""" # noqa: E501 self._audiences = None self._token = None self.discriminator = None if audiences is not None: - self.audiences = audiences + self.audiences = audiences if token is not None: - self.token = token + self.token = token @property def audiences(self): - """ - Gets the audiences of this V1beta1TokenReviewSpec. - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + """Gets the audiences of this V1beta1TokenReviewSpec. # noqa: E501 + + Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. # noqa: E501 - :return: The audiences of this V1beta1TokenReviewSpec. + :return: The audiences of this V1beta1TokenReviewSpec. # noqa: E501 :rtype: list[str] """ return self._audiences @audiences.setter def audiences(self, audiences): - """ - Sets the audiences of this V1beta1TokenReviewSpec. - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + """Sets the audiences of this V1beta1TokenReviewSpec. - :param audiences: The audiences of this V1beta1TokenReviewSpec. + Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. # noqa: E501 + + :param audiences: The audiences of this V1beta1TokenReviewSpec. # noqa: E501 :type: list[str] """ @@ -79,34 +77,32 @@ def audiences(self, audiences): @property def token(self): - """ - Gets the token of this V1beta1TokenReviewSpec. - Token is the opaque bearer token. + """Gets the token of this V1beta1TokenReviewSpec. # noqa: E501 + + Token is the opaque bearer token. # noqa: E501 - :return: The token of this V1beta1TokenReviewSpec. + :return: The token of this V1beta1TokenReviewSpec. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this V1beta1TokenReviewSpec. - Token is the opaque bearer token. + """Sets the token of this V1beta1TokenReviewSpec. + + Token is the opaque bearer token. # noqa: E501 - :param token: The token of this V1beta1TokenReviewSpec. + :param token: The token of this V1beta1TokenReviewSpec. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1TokenReviewSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_token_review_status.py b/kubernetes/client/models/v1beta1_token_review_status.py index 75c59d03c9..1ee069670f 100644 --- a/kubernetes/client/models/v1beta1_token_review_status.py +++ b/kubernetes/client/models/v1beta1_token_review_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1TokenReviewStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'audiences': 'list[str]', 'authenticated': 'bool', 'error': 'str', @@ -44,10 +44,8 @@ class V1beta1TokenReviewStatus(object): 'user': 'user' } - def __init__(self, audiences=None, authenticated=None, error=None, user=None): - """ - V1beta1TokenReviewStatus - a model defined in Swagger - """ + def __init__(self, audiences=None, authenticated=None, error=None, user=None): # noqa: E501 + """V1beta1TokenReviewStatus - a model defined in OpenAPI""" # noqa: E501 self._audiences = None self._authenticated = None @@ -56,32 +54,32 @@ def __init__(self, audiences=None, authenticated=None, error=None, user=None): self.discriminator = None if audiences is not None: - self.audiences = audiences + self.audiences = audiences if authenticated is not None: - self.authenticated = authenticated + self.authenticated = authenticated if error is not None: - self.error = error + self.error = error if user is not None: - self.user = user + self.user = user @property def audiences(self): - """ - Gets the audiences of this V1beta1TokenReviewStatus. - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. + """Gets the audiences of this V1beta1TokenReviewStatus. # noqa: E501 + + Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. # noqa: E501 - :return: The audiences of this V1beta1TokenReviewStatus. + :return: The audiences of this V1beta1TokenReviewStatus. # noqa: E501 :rtype: list[str] """ return self._audiences @audiences.setter def audiences(self, audiences): - """ - Sets the audiences of this V1beta1TokenReviewStatus. - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. + """Sets the audiences of this V1beta1TokenReviewStatus. + + Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. # noqa: E501 - :param audiences: The audiences of this V1beta1TokenReviewStatus. + :param audiences: The audiences of this V1beta1TokenReviewStatus. # noqa: E501 :type: list[str] """ @@ -89,22 +87,22 @@ def audiences(self, audiences): @property def authenticated(self): - """ - Gets the authenticated of this V1beta1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. + """Gets the authenticated of this V1beta1TokenReviewStatus. # noqa: E501 + + Authenticated indicates that the token was associated with a known user. # noqa: E501 - :return: The authenticated of this V1beta1TokenReviewStatus. + :return: The authenticated of this V1beta1TokenReviewStatus. # noqa: E501 :rtype: bool """ return self._authenticated @authenticated.setter def authenticated(self, authenticated): - """ - Sets the authenticated of this V1beta1TokenReviewStatus. - Authenticated indicates that the token was associated with a known user. + """Sets the authenticated of this V1beta1TokenReviewStatus. + + Authenticated indicates that the token was associated with a known user. # noqa: E501 - :param authenticated: The authenticated of this V1beta1TokenReviewStatus. + :param authenticated: The authenticated of this V1beta1TokenReviewStatus. # noqa: E501 :type: bool """ @@ -112,22 +110,22 @@ def authenticated(self, authenticated): @property def error(self): - """ - Gets the error of this V1beta1TokenReviewStatus. - Error indicates that the token couldn't be checked + """Gets the error of this V1beta1TokenReviewStatus. # noqa: E501 + + Error indicates that the token couldn't be checked # noqa: E501 - :return: The error of this V1beta1TokenReviewStatus. + :return: The error of this V1beta1TokenReviewStatus. # noqa: E501 :rtype: str """ return self._error @error.setter def error(self, error): - """ - Sets the error of this V1beta1TokenReviewStatus. - Error indicates that the token couldn't be checked + """Sets the error of this V1beta1TokenReviewStatus. + + Error indicates that the token couldn't be checked # noqa: E501 - :param error: The error of this V1beta1TokenReviewStatus. + :param error: The error of this V1beta1TokenReviewStatus. # noqa: E501 :type: str """ @@ -135,34 +133,30 @@ def error(self, error): @property def user(self): - """ - Gets the user of this V1beta1TokenReviewStatus. - User is the UserInfo associated with the provided token. + """Gets the user of this V1beta1TokenReviewStatus. # noqa: E501 + - :return: The user of this V1beta1TokenReviewStatus. + :return: The user of this V1beta1TokenReviewStatus. # noqa: E501 :rtype: V1beta1UserInfo """ return self._user @user.setter def user(self, user): - """ - Sets the user of this V1beta1TokenReviewStatus. - User is the UserInfo associated with the provided token. + """Sets the user of this V1beta1TokenReviewStatus. + - :param user: The user of this V1beta1TokenReviewStatus. + :param user: The user of this V1beta1TokenReviewStatus. # noqa: E501 :type: V1beta1UserInfo """ self._user = user def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1TokenReviewStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_user_info.py b/kubernetes/client/models/v1beta1_user_info.py index 3d0d7584b2..c4a2056bdb 100644 --- a/kubernetes/client/models/v1beta1_user_info.py +++ b/kubernetes/client/models/v1beta1_user_info.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1UserInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'extra': 'dict(str, list[str])', 'groups': 'list[str]', 'uid': 'str', @@ -44,10 +44,8 @@ class V1beta1UserInfo(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, uid=None, username=None): - """ - V1beta1UserInfo - a model defined in Swagger - """ + def __init__(self, extra=None, groups=None, uid=None, username=None): # noqa: E501 + """V1beta1UserInfo - a model defined in OpenAPI""" # noqa: E501 self._extra = None self._groups = None @@ -56,32 +54,32 @@ def __init__(self, extra=None, groups=None, uid=None, username=None): self.discriminator = None if extra is not None: - self.extra = extra + self.extra = extra if groups is not None: - self.groups = groups + self.groups = groups if uid is not None: - self.uid = uid + self.uid = uid if username is not None: - self.username = username + self.username = username @property def extra(self): - """ - Gets the extra of this V1beta1UserInfo. - Any additional information provided by the authenticator. + """Gets the extra of this V1beta1UserInfo. # noqa: E501 + + Any additional information provided by the authenticator. # noqa: E501 - :return: The extra of this V1beta1UserInfo. + :return: The extra of this V1beta1UserInfo. # noqa: E501 :rtype: dict(str, list[str]) """ return self._extra @extra.setter def extra(self, extra): - """ - Sets the extra of this V1beta1UserInfo. - Any additional information provided by the authenticator. + """Sets the extra of this V1beta1UserInfo. + + Any additional information provided by the authenticator. # noqa: E501 - :param extra: The extra of this V1beta1UserInfo. + :param extra: The extra of this V1beta1UserInfo. # noqa: E501 :type: dict(str, list[str]) """ @@ -89,22 +87,22 @@ def extra(self, extra): @property def groups(self): - """ - Gets the groups of this V1beta1UserInfo. - The names of groups this user is a part of. + """Gets the groups of this V1beta1UserInfo. # noqa: E501 + + The names of groups this user is a part of. # noqa: E501 - :return: The groups of this V1beta1UserInfo. + :return: The groups of this V1beta1UserInfo. # noqa: E501 :rtype: list[str] """ return self._groups @groups.setter def groups(self, groups): - """ - Sets the groups of this V1beta1UserInfo. - The names of groups this user is a part of. + """Sets the groups of this V1beta1UserInfo. + + The names of groups this user is a part of. # noqa: E501 - :param groups: The groups of this V1beta1UserInfo. + :param groups: The groups of this V1beta1UserInfo. # noqa: E501 :type: list[str] """ @@ -112,22 +110,22 @@ def groups(self, groups): @property def uid(self): - """ - Gets the uid of this V1beta1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + """Gets the uid of this V1beta1UserInfo. # noqa: E501 + + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. # noqa: E501 - :return: The uid of this V1beta1UserInfo. + :return: The uid of this V1beta1UserInfo. # noqa: E501 :rtype: str """ return self._uid @uid.setter def uid(self, uid): - """ - Sets the uid of this V1beta1UserInfo. - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + """Sets the uid of this V1beta1UserInfo. + + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. # noqa: E501 - :param uid: The uid of this V1beta1UserInfo. + :param uid: The uid of this V1beta1UserInfo. # noqa: E501 :type: str """ @@ -135,34 +133,32 @@ def uid(self, uid): @property def username(self): - """ - Gets the username of this V1beta1UserInfo. - The name that uniquely identifies this user among all active users. + """Gets the username of this V1beta1UserInfo. # noqa: E501 + + The name that uniquely identifies this user among all active users. # noqa: E501 - :return: The username of this V1beta1UserInfo. + :return: The username of this V1beta1UserInfo. # noqa: E501 :rtype: str """ return self._username @username.setter def username(self, username): - """ - Sets the username of this V1beta1UserInfo. - The name that uniquely identifies this user among all active users. + """Sets the username of this V1beta1UserInfo. + + The name that uniquely identifies this user among all active users. # noqa: E501 - :param username: The username of this V1beta1UserInfo. + :param username: The username of this V1beta1UserInfo. # noqa: E501 :type: str """ self._username = username def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1UserInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_webhook.py b/kubernetes/client/models/v1beta1_validating_webhook.py similarity index 53% rename from kubernetes/client/models/v1beta1_webhook.py rename to kubernetes/client/models/v1beta1_validating_webhook.py index 04524020c1..03b552c419 100644 --- a/kubernetes/client/models/v1beta1_webhook.py +++ b/kubernetes/client/models/v1beta1_validating_webhook.py @@ -3,39 +3,41 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 +import six + + +class V1beta1ValidatingWebhook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech -class V1beta1Webhook(object): - """ - NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'admission_review_versions': 'list[str]', 'client_config': 'AdmissionregistrationV1beta1WebhookClientConfig', 'failure_policy': 'str', + 'match_policy': 'str', 'name': 'str', 'namespace_selector': 'V1LabelSelector', + 'object_selector': 'V1LabelSelector', 'rules': 'list[V1beta1RuleWithOperations]', 'side_effects': 'str', 'timeout_seconds': 'int' @@ -45,61 +47,67 @@ class V1beta1Webhook(object): 'admission_review_versions': 'admissionReviewVersions', 'client_config': 'clientConfig', 'failure_policy': 'failurePolicy', + 'match_policy': 'matchPolicy', 'name': 'name', 'namespace_selector': 'namespaceSelector', + 'object_selector': 'objectSelector', 'rules': 'rules', 'side_effects': 'sideEffects', 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, name=None, namespace_selector=None, rules=None, side_effects=None, timeout_seconds=None): - """ - V1beta1Webhook - a model defined in Swagger - """ + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + """V1beta1ValidatingWebhook - a model defined in OpenAPI""" # noqa: E501 self._admission_review_versions = None self._client_config = None self._failure_policy = None + self._match_policy = None self._name = None self._namespace_selector = None + self._object_selector = None self._rules = None self._side_effects = None self._timeout_seconds = None self.discriminator = None if admission_review_versions is not None: - self.admission_review_versions = admission_review_versions + self.admission_review_versions = admission_review_versions self.client_config = client_config if failure_policy is not None: - self.failure_policy = failure_policy + self.failure_policy = failure_policy + if match_policy is not None: + self.match_policy = match_policy self.name = name if namespace_selector is not None: - self.namespace_selector = namespace_selector + self.namespace_selector = namespace_selector + if object_selector is not None: + self.object_selector = object_selector if rules is not None: - self.rules = rules + self.rules = rules if side_effects is not None: - self.side_effects = side_effects + self.side_effects = side_effects if timeout_seconds is not None: - self.timeout_seconds = timeout_seconds + self.timeout_seconds = timeout_seconds @property def admission_review_versions(self): - """ - Gets the admission_review_versions of this V1beta1Webhook. - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + """Gets the admission_review_versions of this V1beta1ValidatingWebhook. # noqa: E501 - :return: The admission_review_versions of this V1beta1Webhook. + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. # noqa: E501 + + :return: The admission_review_versions of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: list[str] """ return self._admission_review_versions @admission_review_versions.setter def admission_review_versions(self, admission_review_versions): - """ - Sets the admission_review_versions of this V1beta1Webhook. - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + """Sets the admission_review_versions of this V1beta1ValidatingWebhook. - :param admission_review_versions: The admission_review_versions of this V1beta1Webhook. + AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. # noqa: E501 + + :param admission_review_versions: The admission_review_versions of this V1beta1ValidatingWebhook. # noqa: E501 :type: list[str] """ @@ -107,118 +115,158 @@ def admission_review_versions(self, admission_review_versions): @property def client_config(self): - """ - Gets the client_config of this V1beta1Webhook. - ClientConfig defines how to communicate with the hook. Required + """Gets the client_config of this V1beta1ValidatingWebhook. # noqa: E501 + - :return: The client_config of this V1beta1Webhook. + :return: The client_config of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: AdmissionregistrationV1beta1WebhookClientConfig """ return self._client_config @client_config.setter def client_config(self, client_config): - """ - Sets the client_config of this V1beta1Webhook. - ClientConfig defines how to communicate with the hook. Required + """Sets the client_config of this V1beta1ValidatingWebhook. + - :param client_config: The client_config of this V1beta1Webhook. + :param client_config: The client_config of this V1beta1ValidatingWebhook. # noqa: E501 :type: AdmissionregistrationV1beta1WebhookClientConfig """ if client_config is None: - raise ValueError("Invalid value for `client_config`, must not be `None`") + raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @property def failure_policy(self): - """ - Gets the failure_policy of this V1beta1Webhook. - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + """Gets the failure_policy of this V1beta1ValidatingWebhook. # noqa: E501 + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. # noqa: E501 - :return: The failure_policy of this V1beta1Webhook. + :return: The failure_policy of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: str """ return self._failure_policy @failure_policy.setter def failure_policy(self, failure_policy): - """ - Sets the failure_policy of this V1beta1Webhook. - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + """Sets the failure_policy of this V1beta1ValidatingWebhook. + + FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. # noqa: E501 - :param failure_policy: The failure_policy of this V1beta1Webhook. + :param failure_policy: The failure_policy of this V1beta1ValidatingWebhook. # noqa: E501 :type: str """ self._failure_policy = failure_policy @property - def name(self): + def match_policy(self): + """Gets the match_policy of this V1beta1ValidatingWebhook. # noqa: E501 + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" # noqa: E501 + + :return: The match_policy of this V1beta1ValidatingWebhook. # noqa: E501 + :rtype: str + """ + return self._match_policy + + @match_policy.setter + def match_policy(self, match_policy): + """Sets the match_policy of this V1beta1ValidatingWebhook. + + matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" # noqa: E501 + + :param match_policy: The match_policy of this V1beta1ValidatingWebhook. # noqa: E501 + :type: str """ - Gets the name of this V1beta1Webhook. - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - :return: The name of this V1beta1Webhook. + self._match_policy = match_policy + + @property + def name(self): + """Gets the name of this V1beta1ValidatingWebhook. # noqa: E501 + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 + + :return: The name of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V1beta1Webhook. - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + """Sets the name of this V1beta1ValidatingWebhook. + + The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501 - :param name: The name of this V1beta1Webhook. + :param name: The name of this V1beta1ValidatingWebhook. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace_selector(self): - """ - Gets the namespace_selector of this V1beta1Webhook. - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything. + """Gets the namespace_selector of this V1beta1ValidatingWebhook. # noqa: E501 + - :return: The namespace_selector of this V1beta1Webhook. + :return: The namespace_selector of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: V1LabelSelector """ return self._namespace_selector @namespace_selector.setter def namespace_selector(self, namespace_selector): - """ - Sets the namespace_selector of this V1beta1Webhook. - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything. + """Sets the namespace_selector of this V1beta1ValidatingWebhook. + - :param namespace_selector: The namespace_selector of this V1beta1Webhook. + :param namespace_selector: The namespace_selector of this V1beta1ValidatingWebhook. # noqa: E501 :type: V1LabelSelector """ self._namespace_selector = namespace_selector @property - def rules(self): + def object_selector(self): + """Gets the object_selector of this V1beta1ValidatingWebhook. # noqa: E501 + + + :return: The object_selector of this V1beta1ValidatingWebhook. # noqa: E501 + :rtype: V1LabelSelector + """ + return self._object_selector + + @object_selector.setter + def object_selector(self, object_selector): + """Sets the object_selector of this V1beta1ValidatingWebhook. + + + :param object_selector: The object_selector of this V1beta1ValidatingWebhook. # noqa: E501 + :type: V1LabelSelector """ - Gets the rules of this V1beta1Webhook. - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - :return: The rules of this V1beta1Webhook. + self._object_selector = object_selector + + @property + def rules(self): + """Gets the rules of this V1beta1ValidatingWebhook. # noqa: E501 + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 + + :return: The rules of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: list[V1beta1RuleWithOperations] """ return self._rules @rules.setter def rules(self, rules): - """ - Sets the rules of this V1beta1Webhook. - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + """Sets the rules of this V1beta1ValidatingWebhook. + + Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501 - :param rules: The rules of this V1beta1Webhook. + :param rules: The rules of this V1beta1ValidatingWebhook. # noqa: E501 :type: list[V1beta1RuleWithOperations] """ @@ -226,22 +274,22 @@ def rules(self, rules): @property def side_effects(self): - """ - Gets the side_effects of this V1beta1Webhook. - SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + """Gets the side_effects of this V1beta1ValidatingWebhook. # noqa: E501 + + SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. # noqa: E501 - :return: The side_effects of this V1beta1Webhook. + :return: The side_effects of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: str """ return self._side_effects @side_effects.setter def side_effects(self, side_effects): - """ - Sets the side_effects of this V1beta1Webhook. - SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + """Sets the side_effects of this V1beta1ValidatingWebhook. - :param side_effects: The side_effects of this V1beta1Webhook. + SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. # noqa: E501 + + :param side_effects: The side_effects of this V1beta1ValidatingWebhook. # noqa: E501 :type: str """ @@ -249,34 +297,32 @@ def side_effects(self, side_effects): @property def timeout_seconds(self): - """ - Gets the timeout_seconds of this V1beta1Webhook. - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """Gets the timeout_seconds of this V1beta1ValidatingWebhook. # noqa: E501 - :return: The timeout_seconds of this V1beta1Webhook. + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. # noqa: E501 + + :return: The timeout_seconds of this V1beta1ValidatingWebhook. # noqa: E501 :rtype: int """ return self._timeout_seconds @timeout_seconds.setter def timeout_seconds(self, timeout_seconds): - """ - Sets the timeout_seconds of this V1beta1Webhook. - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """Sets the timeout_seconds of this V1beta1ValidatingWebhook. - :param timeout_seconds: The timeout_seconds of this V1beta1Webhook. + TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. # noqa: E501 + + :param timeout_seconds: The timeout_seconds of this V1beta1ValidatingWebhook. # noqa: E501 :type: int """ self._timeout_seconds = timeout_seconds def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +343,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1beta1Webhook): + """Returns true if both objects are equal""" + if not isinstance(other, V1beta1ValidatingWebhook): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_validating_webhook_configuration.py b/kubernetes/client/models/v1beta1_validating_webhook_configuration.py index 65478d47b5..77d9aea398 100644 --- a/kubernetes/client/models/v1beta1_validating_webhook_configuration.py +++ b/kubernetes/client/models/v1beta1_validating_webhook_configuration.py @@ -3,38 +3,38 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ValidatingWebhookConfiguration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', - 'webhooks': 'list[V1beta1Webhook]' + 'webhooks': 'list[V1beta1ValidatingWebhook]' } attribute_map = { @@ -44,10 +44,8 @@ class V1beta1ValidatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): - """ - V1beta1ValidatingWebhookConfiguration - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + """V1beta1ValidatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -56,32 +54,32 @@ def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if webhooks is not None: - self.webhooks = webhooks + self.webhooks = webhooks @property def api_version(self): - """ - Gets the api_version of this V1beta1ValidatingWebhookConfiguration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ValidatingWebhookConfiguration. + :return: The api_version of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ValidatingWebhookConfiguration. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ValidatingWebhookConfiguration. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ValidatingWebhookConfiguration. + :param api_version: The api_version of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :type: str """ @@ -89,22 +87,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1ValidatingWebhookConfiguration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ValidatingWebhookConfiguration. + :return: The kind of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ValidatingWebhookConfiguration. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ValidatingWebhookConfiguration. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ValidatingWebhookConfiguration. + :param kind: The kind of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :type: str """ @@ -112,22 +110,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ValidatingWebhookConfiguration. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Gets the metadata of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + - :return: The metadata of this V1beta1ValidatingWebhookConfiguration. + :return: The metadata of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ValidatingWebhookConfiguration. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + """Sets the metadata of this V1beta1ValidatingWebhookConfiguration. + - :param metadata: The metadata of this V1beta1ValidatingWebhookConfiguration. + :param metadata: The metadata of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 :type: V1ObjectMeta """ @@ -135,34 +131,32 @@ def metadata(self, metadata): @property def webhooks(self): - """ - Gets the webhooks of this V1beta1ValidatingWebhookConfiguration. - Webhooks is a list of webhooks and the affected resources and operations. + """Gets the webhooks of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 - :return: The webhooks of this V1beta1ValidatingWebhookConfiguration. - :rtype: list[V1beta1Webhook] + :return: The webhooks of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + :rtype: list[V1beta1ValidatingWebhook] """ return self._webhooks @webhooks.setter def webhooks(self, webhooks): - """ - Sets the webhooks of this V1beta1ValidatingWebhookConfiguration. - Webhooks is a list of webhooks and the affected resources and operations. + """Sets the webhooks of this V1beta1ValidatingWebhookConfiguration. + + Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501 - :param webhooks: The webhooks of this V1beta1ValidatingWebhookConfiguration. - :type: list[V1beta1Webhook] + :param webhooks: The webhooks of this V1beta1ValidatingWebhookConfiguration. # noqa: E501 + :type: list[V1beta1ValidatingWebhook] """ self._webhooks = webhooks def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -183,28 +177,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ValidatingWebhookConfiguration): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py b/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py index cbcbaf0090..6748a925c0 100644 --- a/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1ValidatingWebhookConfigurationList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1ValidatingWebhookConfiguration]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1ValidatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1ValidatingWebhookConfigurationList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1ValidatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1ValidatingWebhookConfigurationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1ValidatingWebhookConfigurationList. + :return: The api_version of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1ValidatingWebhookConfigurationList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1ValidatingWebhookConfigurationList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1ValidatingWebhookConfigurationList. + :param api_version: The api_version of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1ValidatingWebhookConfigurationList. - List of ValidatingWebhookConfiguration. + """Gets the items of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 + + List of ValidatingWebhookConfiguration. # noqa: E501 - :return: The items of this V1beta1ValidatingWebhookConfigurationList. + :return: The items of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :rtype: list[V1beta1ValidatingWebhookConfiguration] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1ValidatingWebhookConfigurationList. - List of ValidatingWebhookConfiguration. + """Sets the items of this V1beta1ValidatingWebhookConfigurationList. + + List of ValidatingWebhookConfiguration. # noqa: E501 - :param items: The items of this V1beta1ValidatingWebhookConfigurationList. + :param items: The items of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :type: list[V1beta1ValidatingWebhookConfiguration] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1ValidatingWebhookConfigurationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1ValidatingWebhookConfigurationList. + :return: The kind of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1ValidatingWebhookConfigurationList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1ValidatingWebhookConfigurationList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1ValidatingWebhookConfigurationList. + :param kind: The kind of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1ValidatingWebhookConfigurationList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the metadata of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 + - :return: The metadata of this V1beta1ValidatingWebhookConfigurationList. + :return: The metadata of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1ValidatingWebhookConfigurationList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the metadata of this V1beta1ValidatingWebhookConfigurationList. + - :param metadata: The metadata of this V1beta1ValidatingWebhookConfigurationList. + :param metadata: The metadata of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1ValidatingWebhookConfigurationList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_attachment.py b/kubernetes/client/models/v1beta1_volume_attachment.py index 6c67f6587a..c1e086923b 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment.py +++ b/kubernetes/client/models/v1beta1_volume_attachment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeAttachment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta1VolumeAttachment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1VolumeAttachment. # noqa: E501 - :return: The api_version of this V1beta1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta1VolumeAttachment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1VolumeAttachment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1VolumeAttachment. - :param api_version: The api_version of this V1beta1VolumeAttachment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta1VolumeAttachment. # noqa: E501 :type: str """ @@ -93,22 +91,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1VolumeAttachment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1VolumeAttachment. + :return: The kind of this V1beta1VolumeAttachment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1VolumeAttachment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1VolumeAttachment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1VolumeAttachment. + :param kind: The kind of this V1beta1VolumeAttachment. # noqa: E501 :type: str """ @@ -116,22 +114,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1VolumeAttachment. # noqa: E501 + - :return: The metadata of this V1beta1VolumeAttachment. + :return: The metadata of this V1beta1VolumeAttachment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1VolumeAttachment. - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1VolumeAttachment. + - :param metadata: The metadata of this V1beta1VolumeAttachment. + :param metadata: The metadata of this V1beta1VolumeAttachment. # noqa: E501 :type: V1ObjectMeta """ @@ -139,59 +135,53 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Gets the spec of this V1beta1VolumeAttachment. # noqa: E501 + - :return: The spec of this V1beta1VolumeAttachment. + :return: The spec of this V1beta1VolumeAttachment. # noqa: E501 :rtype: V1beta1VolumeAttachmentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta1VolumeAttachment. - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """Sets the spec of this V1beta1VolumeAttachment. - :param spec: The spec of this V1beta1VolumeAttachment. + + :param spec: The spec of this V1beta1VolumeAttachment. # noqa: E501 :type: V1beta1VolumeAttachmentSpec """ if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") + raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @property def status(self): - """ - Gets the status of this V1beta1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Gets the status of this V1beta1VolumeAttachment. # noqa: E501 - :return: The status of this V1beta1VolumeAttachment. + + :return: The status of this V1beta1VolumeAttachment. # noqa: E501 :rtype: V1beta1VolumeAttachmentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta1VolumeAttachment. - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """Sets the status of this V1beta1VolumeAttachment. - :param status: The status of this V1beta1VolumeAttachment. + + :param status: The status of this V1beta1VolumeAttachment. # noqa: E501 :type: V1beta1VolumeAttachmentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +202,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeAttachment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_attachment_list.py b/kubernetes/client/models/v1beta1_volume_attachment_list.py index 8aa29d5e48..736853a68b 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_list.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeAttachmentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1VolumeAttachment]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta1VolumeAttachmentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta1VolumeAttachmentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta1VolumeAttachmentList. + :return: The api_version of this V1beta1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta1VolumeAttachmentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta1VolumeAttachmentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta1VolumeAttachmentList. + :param api_version: The api_version of this V1beta1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Gets the items of this V1beta1VolumeAttachmentList. # noqa: E501 + + Items is the list of VolumeAttachments # noqa: E501 - :return: The items of this V1beta1VolumeAttachmentList. + :return: The items of this V1beta1VolumeAttachmentList. # noqa: E501 :rtype: list[V1beta1VolumeAttachment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta1VolumeAttachmentList. - Items is the list of VolumeAttachments + """Sets the items of this V1beta1VolumeAttachmentList. + + Items is the list of VolumeAttachments # noqa: E501 - :param items: The items of this V1beta1VolumeAttachmentList. + :param items: The items of this V1beta1VolumeAttachmentList. # noqa: E501 :type: list[V1beta1VolumeAttachment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta1VolumeAttachmentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta1VolumeAttachmentList. + :return: The kind of this V1beta1VolumeAttachmentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta1VolumeAttachmentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta1VolumeAttachmentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta1VolumeAttachmentList. + :param kind: The kind of this V1beta1VolumeAttachmentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V1beta1VolumeAttachmentList. # noqa: E501 + - :return: The metadata of this V1beta1VolumeAttachmentList. + :return: The metadata of this V1beta1VolumeAttachmentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta1VolumeAttachmentList. - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V1beta1VolumeAttachmentList. + - :param metadata: The metadata of this V1beta1VolumeAttachmentList. + :param metadata: The metadata of this V1beta1VolumeAttachmentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeAttachmentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_attachment_source.py b/kubernetes/client/models/v1beta1_volume_attachment_source.py index 83664d0d91..f2b0febbff 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_source.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_source.py @@ -3,82 +3,104 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeAttachmentSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { + 'inline_volume_spec': 'V1PersistentVolumeSpec', 'persistent_volume_name': 'str' } attribute_map = { + 'inline_volume_spec': 'inlineVolumeSpec', 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, persistent_volume_name=None): - """ - V1beta1VolumeAttachmentSource - a model defined in Swagger - """ + def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + """V1beta1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + self._inline_volume_spec = None self._persistent_volume_name = None self.discriminator = None + if inline_volume_spec is not None: + self.inline_volume_spec = inline_volume_spec if persistent_volume_name is not None: - self.persistent_volume_name = persistent_volume_name + self.persistent_volume_name = persistent_volume_name @property - def persistent_volume_name(self): + def inline_volume_spec(self): + """Gets the inline_volume_spec of this V1beta1VolumeAttachmentSource. # noqa: E501 + + + :return: The inline_volume_spec of this V1beta1VolumeAttachmentSource. # noqa: E501 + :rtype: V1PersistentVolumeSpec """ - Gets the persistent_volume_name of this V1beta1VolumeAttachmentSource. - Name of the persistent volume to attach. + return self._inline_volume_spec + + @inline_volume_spec.setter + def inline_volume_spec(self, inline_volume_spec): + """Sets the inline_volume_spec of this V1beta1VolumeAttachmentSource. + + + :param inline_volume_spec: The inline_volume_spec of this V1beta1VolumeAttachmentSource. # noqa: E501 + :type: V1PersistentVolumeSpec + """ + + self._inline_volume_spec = inline_volume_spec + + @property + def persistent_volume_name(self): + """Gets the persistent_volume_name of this V1beta1VolumeAttachmentSource. # noqa: E501 - :return: The persistent_volume_name of this V1beta1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :return: The persistent_volume_name of this V1beta1VolumeAttachmentSource. # noqa: E501 :rtype: str """ return self._persistent_volume_name @persistent_volume_name.setter def persistent_volume_name(self, persistent_volume_name): - """ - Sets the persistent_volume_name of this V1beta1VolumeAttachmentSource. - Name of the persistent volume to attach. + """Sets the persistent_volume_name of this V1beta1VolumeAttachmentSource. - :param persistent_volume_name: The persistent_volume_name of this V1beta1VolumeAttachmentSource. + Name of the persistent volume to attach. # noqa: E501 + + :param persistent_volume_name: The persistent_volume_name of this V1beta1VolumeAttachmentSource. # noqa: E501 :type: str """ self._persistent_volume_name = persistent_volume_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeAttachmentSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_attachment_spec.py b/kubernetes/client/models/v1beta1_volume_attachment_spec.py index 10d10e0fd3..025acc1104 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeAttachmentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attacher': 'str', 'node_name': 'str', 'source': 'V1beta1VolumeAttachmentSource' @@ -42,10 +42,8 @@ class V1beta1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): - """ - V1beta1VolumeAttachmentSpec - a model defined in Swagger - """ + def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + """V1beta1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 self._attacher = None self._node_name = None @@ -58,86 +56,82 @@ def __init__(self, attacher=None, node_name=None, source=None): @property def attacher(self): - """ - Gets the attacher of this V1beta1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Gets the attacher of this V1beta1VolumeAttachmentSpec. # noqa: E501 - :return: The attacher of this V1beta1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :return: The attacher of this V1beta1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._attacher @attacher.setter def attacher(self, attacher): - """ - Sets the attacher of this V1beta1VolumeAttachmentSpec. - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + """Sets the attacher of this V1beta1VolumeAttachmentSpec. - :param attacher: The attacher of this V1beta1VolumeAttachmentSpec. + Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). # noqa: E501 + + :param attacher: The attacher of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: str """ if attacher is None: - raise ValueError("Invalid value for `attacher`, must not be `None`") + raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @property def node_name(self): - """ - Gets the node_name of this V1beta1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Gets the node_name of this V1beta1VolumeAttachmentSpec. # noqa: E501 - :return: The node_name of this V1beta1VolumeAttachmentSpec. + The node that the volume should be attached to. # noqa: E501 + + :return: The node_name of this V1beta1VolumeAttachmentSpec. # noqa: E501 :rtype: str """ return self._node_name @node_name.setter def node_name(self, node_name): - """ - Sets the node_name of this V1beta1VolumeAttachmentSpec. - The node that the volume should be attached to. + """Sets the node_name of this V1beta1VolumeAttachmentSpec. + + The node that the volume should be attached to. # noqa: E501 - :param node_name: The node_name of this V1beta1VolumeAttachmentSpec. + :param node_name: The node_name of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: str """ if node_name is None: - raise ValueError("Invalid value for `node_name`, must not be `None`") + raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @property def source(self): - """ - Gets the source of this V1beta1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Gets the source of this V1beta1VolumeAttachmentSpec. # noqa: E501 + - :return: The source of this V1beta1VolumeAttachmentSpec. + :return: The source of this V1beta1VolumeAttachmentSpec. # noqa: E501 :rtype: V1beta1VolumeAttachmentSource """ return self._source @source.setter def source(self, source): - """ - Sets the source of this V1beta1VolumeAttachmentSpec. - Source represents the volume that should be attached. + """Sets the source of this V1beta1VolumeAttachmentSpec. + - :param source: The source of this V1beta1VolumeAttachmentSpec. + :param source: The source of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: V1beta1VolumeAttachmentSource """ if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -158,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeAttachmentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_attachment_status.py b/kubernetes/client/models/v1beta1_volume_attachment_status.py index 4c66b6baa0..c594803c67 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_status.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeAttachmentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'attach_error': 'V1beta1VolumeError', 'attached': 'bool', 'attachment_metadata': 'dict(str, str)', @@ -44,10 +44,8 @@ class V1beta1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): - """ - V1beta1VolumeAttachmentStatus - a model defined in Swagger - """ + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + """V1beta1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 self._attach_error = None self._attached = None @@ -56,31 +54,29 @@ def __init__(self, attach_error=None, attached=None, attachment_metadata=None, d self.discriminator = None if attach_error is not None: - self.attach_error = attach_error + self.attach_error = attach_error self.attached = attached if attachment_metadata is not None: - self.attachment_metadata = attachment_metadata + self.attachment_metadata = attachment_metadata if detach_error is not None: - self.detach_error = detach_error + self.detach_error = detach_error @property def attach_error(self): - """ - Gets the attach_error of this V1beta1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 + - :return: The attach_error of this V1beta1VolumeAttachmentStatus. + :return: The attach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 :rtype: V1beta1VolumeError """ return self._attach_error @attach_error.setter def attach_error(self, attach_error): - """ - Sets the attach_error of this V1beta1VolumeAttachmentStatus. - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attach_error of this V1beta1VolumeAttachmentStatus. + - :param attach_error: The attach_error of this V1beta1VolumeAttachmentStatus. + :param attach_error: The attach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 :type: V1beta1VolumeError """ @@ -88,47 +84,47 @@ def attach_error(self, attach_error): @property def attached(self): - """ - Gets the attached of this V1beta1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attached of this V1beta1VolumeAttachmentStatus. # noqa: E501 + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attached of this V1beta1VolumeAttachmentStatus. + :return: The attached of this V1beta1VolumeAttachmentStatus. # noqa: E501 :rtype: bool """ return self._attached @attached.setter def attached(self, attached): - """ - Sets the attached of this V1beta1VolumeAttachmentStatus. - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attached of this V1beta1VolumeAttachmentStatus. + + Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attached: The attached of this V1beta1VolumeAttachmentStatus. + :param attached: The attached of this V1beta1VolumeAttachmentStatus. # noqa: E501 :type: bool """ if attached is None: - raise ValueError("Invalid value for `attached`, must not be `None`") + raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @property def attachment_metadata(self): - """ - Gets the attachment_metadata of this V1beta1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Gets the attachment_metadata of this V1beta1VolumeAttachmentStatus. # noqa: E501 + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :return: The attachment_metadata of this V1beta1VolumeAttachmentStatus. + :return: The attachment_metadata of this V1beta1VolumeAttachmentStatus. # noqa: E501 :rtype: dict(str, str) """ return self._attachment_metadata @attachment_metadata.setter def attachment_metadata(self, attachment_metadata): - """ - Sets the attachment_metadata of this V1beta1VolumeAttachmentStatus. - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + """Sets the attachment_metadata of this V1beta1VolumeAttachmentStatus. + + Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. # noqa: E501 - :param attachment_metadata: The attachment_metadata of this V1beta1VolumeAttachmentStatus. + :param attachment_metadata: The attachment_metadata of this V1beta1VolumeAttachmentStatus. # noqa: E501 :type: dict(str, str) """ @@ -136,34 +132,30 @@ def attachment_metadata(self, attachment_metadata): @property def detach_error(self): - """ - Gets the detach_error of this V1beta1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Gets the detach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 + - :return: The detach_error of this V1beta1VolumeAttachmentStatus. + :return: The detach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 :rtype: V1beta1VolumeError """ return self._detach_error @detach_error.setter def detach_error(self, detach_error): - """ - Sets the detach_error of this V1beta1VolumeAttachmentStatus. - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """Sets the detach_error of this V1beta1VolumeAttachmentStatus. + - :param detach_error: The detach_error of this V1beta1VolumeAttachmentStatus. + :param detach_error: The detach_error of this V1beta1VolumeAttachmentStatus. # noqa: E501 :type: V1beta1VolumeError """ self._detach_error = detach_error def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeAttachmentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta1_volume_error.py b/kubernetes/client/models/v1beta1_volume_error.py index 72010c9d6b..ebdf6addba 100644 --- a/kubernetes/client/models/v1beta1_volume_error.py +++ b/kubernetes/client/models/v1beta1_volume_error.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta1VolumeError(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'message': 'str', 'time': 'datetime' } @@ -40,38 +40,36 @@ class V1beta1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): - """ - V1beta1VolumeError - a model defined in Swagger - """ + def __init__(self, message=None, time=None): # noqa: E501 + """V1beta1VolumeError - a model defined in OpenAPI""" # noqa: E501 self._message = None self._time = None self.discriminator = None if message is not None: - self.message = message + self.message = message if time is not None: - self.time = time + self.time = time @property def message(self): - """ - Gets the message of this V1beta1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + """Gets the message of this V1beta1VolumeError. # noqa: E501 + + String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. # noqa: E501 - :return: The message of this V1beta1VolumeError. + :return: The message of this V1beta1VolumeError. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta1VolumeError. - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + """Sets the message of this V1beta1VolumeError. - :param message: The message of this V1beta1VolumeError. + String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. # noqa: E501 + + :param message: The message of this V1beta1VolumeError. # noqa: E501 :type: str """ @@ -79,34 +77,32 @@ def message(self, message): @property def time(self): - """ - Gets the time of this V1beta1VolumeError. - Time the error was encountered. + """Gets the time of this V1beta1VolumeError. # noqa: E501 + + Time the error was encountered. # noqa: E501 - :return: The time of this V1beta1VolumeError. + :return: The time of this V1beta1VolumeError. # noqa: E501 :rtype: datetime """ return self._time @time.setter def time(self, time): - """ - Sets the time of this V1beta1VolumeError. - Time the error was encountered. + """Sets the time of this V1beta1VolumeError. + + Time the error was encountered. # noqa: E501 - :param time: The time of this V1beta1VolumeError. + :param time: The time of this V1beta1VolumeError. # noqa: E501 :type: datetime """ self._time = time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta1VolumeError): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_controller_revision.py b/kubernetes/client/models/v1beta2_controller_revision.py index 0e636fedf9..69fd8ed215 100644 --- a/kubernetes/client/models/v1beta2_controller_revision.py +++ b/kubernetes/client/models/v1beta2_controller_revision.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ControllerRevision(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'data': 'RuntimeRawExtension', 'kind': 'str', @@ -46,10 +46,8 @@ class V1beta2ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): - """ - V1beta2ControllerRevision - a model defined in Swagger - """ + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + """V1beta2ControllerRevision - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._data = None @@ -59,33 +57,33 @@ def __init__(self, api_version=None, data=None, kind=None, metadata=None, revisi self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if data is not None: - self.data = data + self.data = data if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.revision = revision @property def api_version(self): - """ - Gets the api_version of this V1beta2ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2ControllerRevision. # noqa: E501 - :return: The api_version of this V1beta2ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2ControllerRevision. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2ControllerRevision. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2ControllerRevision. - :param api_version: The api_version of this V1beta2ControllerRevision. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2ControllerRevision. # noqa: E501 :type: str """ @@ -93,22 +91,20 @@ def api_version(self, api_version): @property def data(self): - """ - Gets the data of this V1beta2ControllerRevision. - Data is the serialized representation of the state. + """Gets the data of this V1beta2ControllerRevision. # noqa: E501 + - :return: The data of this V1beta2ControllerRevision. + :return: The data of this V1beta2ControllerRevision. # noqa: E501 :rtype: RuntimeRawExtension """ return self._data @data.setter def data(self, data): - """ - Sets the data of this V1beta2ControllerRevision. - Data is the serialized representation of the state. + """Sets the data of this V1beta2ControllerRevision. + - :param data: The data of this V1beta2ControllerRevision. + :param data: The data of this V1beta2ControllerRevision. # noqa: E501 :type: RuntimeRawExtension """ @@ -116,22 +112,22 @@ def data(self, data): @property def kind(self): - """ - Gets the kind of this V1beta2ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2ControllerRevision. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2ControllerRevision. + :return: The kind of this V1beta2ControllerRevision. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2ControllerRevision. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2ControllerRevision. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2ControllerRevision. + :param kind: The kind of this V1beta2ControllerRevision. # noqa: E501 :type: str """ @@ -139,22 +135,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta2ControllerRevision. # noqa: E501 + - :return: The metadata of this V1beta2ControllerRevision. + :return: The metadata of this V1beta2ControllerRevision. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2ControllerRevision. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta2ControllerRevision. - :param metadata: The metadata of this V1beta2ControllerRevision. + + :param metadata: The metadata of this V1beta2ControllerRevision. # noqa: E501 :type: V1ObjectMeta """ @@ -162,36 +156,34 @@ def metadata(self, metadata): @property def revision(self): - """ - Gets the revision of this V1beta2ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Gets the revision of this V1beta2ControllerRevision. # noqa: E501 - :return: The revision of this V1beta2ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :return: The revision of this V1beta2ControllerRevision. # noqa: E501 :rtype: int """ return self._revision @revision.setter def revision(self, revision): - """ - Sets the revision of this V1beta2ControllerRevision. - Revision indicates the revision of the state represented by Data. + """Sets the revision of this V1beta2ControllerRevision. - :param revision: The revision of this V1beta2ControllerRevision. + Revision indicates the revision of the state represented by Data. # noqa: E501 + + :param revision: The revision of this V1beta2ControllerRevision. # noqa: E501 :type: int """ if revision is None: - raise ValueError("Invalid value for `revision`, must not be `None`") + raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +204,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ControllerRevision): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_controller_revision_list.py b/kubernetes/client/models/v1beta2_controller_revision_list.py index d0306a97e9..476761a298 100644 --- a/kubernetes/client/models/v1beta2_controller_revision_list.py +++ b/kubernetes/client/models/v1beta2_controller_revision_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ControllerRevisionList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta2ControllerRevision]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta2ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta2ControllerRevisionList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta2ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta2ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2ControllerRevisionList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta2ControllerRevisionList. + :return: The api_version of this V1beta2ControllerRevisionList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2ControllerRevisionList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2ControllerRevisionList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta2ControllerRevisionList. + :param api_version: The api_version of this V1beta2ControllerRevisionList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta2ControllerRevisionList. - Items is the list of ControllerRevisions + """Gets the items of this V1beta2ControllerRevisionList. # noqa: E501 + + Items is the list of ControllerRevisions # noqa: E501 - :return: The items of this V1beta2ControllerRevisionList. + :return: The items of this V1beta2ControllerRevisionList. # noqa: E501 :rtype: list[V1beta2ControllerRevision] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta2ControllerRevisionList. - Items is the list of ControllerRevisions + """Sets the items of this V1beta2ControllerRevisionList. + + Items is the list of ControllerRevisions # noqa: E501 - :param items: The items of this V1beta2ControllerRevisionList. + :param items: The items of this V1beta2ControllerRevisionList. # noqa: E501 :type: list[V1beta2ControllerRevision] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta2ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2ControllerRevisionList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2ControllerRevisionList. + :return: The kind of this V1beta2ControllerRevisionList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2ControllerRevisionList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2ControllerRevisionList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2ControllerRevisionList. + :param kind: The kind of this V1beta2ControllerRevisionList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta2ControllerRevisionList. # noqa: E501 + - :return: The metadata of this V1beta2ControllerRevisionList. + :return: The metadata of this V1beta2ControllerRevisionList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2ControllerRevisionList. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta2ControllerRevisionList. + - :param metadata: The metadata of this V1beta2ControllerRevisionList. + :param metadata: The metadata of this V1beta2ControllerRevisionList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ControllerRevisionList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set.py b/kubernetes/client/models/v1beta2_daemon_set.py index 839eb31b58..a5603c5f36 100644 --- a/kubernetes/client/models/v1beta2_daemon_set.py +++ b/kubernetes/client/models/v1beta2_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta2DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta2DaemonSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta2DaemonSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta2DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2DaemonSet. # noqa: E501 - :return: The api_version of this V1beta2DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2DaemonSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2DaemonSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2DaemonSet. - :param api_version: The api_version of this V1beta2DaemonSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2DaemonSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta2DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2DaemonSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2DaemonSet. + :return: The kind of this V1beta2DaemonSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2DaemonSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2DaemonSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2DaemonSet. + :param kind: The kind of this V1beta2DaemonSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta2DaemonSet. # noqa: E501 + - :return: The metadata of this V1beta2DaemonSet. + :return: The metadata of this V1beta2DaemonSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2DaemonSet. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta2DaemonSet. + - :param metadata: The metadata of this V1beta2DaemonSet. + :param metadata: The metadata of this V1beta2DaemonSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta2DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the spec of this V1beta2DaemonSet. # noqa: E501 + - :return: The spec of this V1beta2DaemonSet. + :return: The spec of this V1beta2DaemonSet. # noqa: E501 :rtype: V1beta2DaemonSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta2DaemonSet. - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the spec of this V1beta2DaemonSet. - :param spec: The spec of this V1beta2DaemonSet. + + :param spec: The spec of this V1beta2DaemonSet. # noqa: E501 :type: V1beta2DaemonSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta2DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the status of this V1beta2DaemonSet. # noqa: E501 - :return: The status of this V1beta2DaemonSet. + + :return: The status of this V1beta2DaemonSet. # noqa: E501 :rtype: V1beta2DaemonSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2DaemonSet. - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the status of this V1beta2DaemonSet. - :param status: The status of this V1beta2DaemonSet. + + :param status: The status of this V1beta2DaemonSet. # noqa: E501 :type: V1beta2DaemonSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set_condition.py b/kubernetes/client/models/v1beta2_daemon_set_condition.py index f778933730..ac816e0cb7 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_condition.py +++ b/kubernetes/client/models/v1beta2_daemon_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta2DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta2DaemonSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta2DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta2DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta2DaemonSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta2DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta2DaemonSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta2DaemonSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta2DaemonSetCondition. - :param last_transition_time: The last_transition_time of this V1beta2DaemonSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta2DaemonSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta2DaemonSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta2DaemonSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta2DaemonSetCondition. + :return: The message of this V1beta2DaemonSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta2DaemonSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta2DaemonSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta2DaemonSetCondition. + :param message: The message of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta2DaemonSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta2DaemonSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta2DaemonSetCondition. + :return: The reason of this V1beta2DaemonSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta2DaemonSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta2DaemonSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta2DaemonSetCondition. + :param reason: The reason of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta2DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta2DaemonSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta2DaemonSetCondition. + :return: The status of this V1beta2DaemonSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2DaemonSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta2DaemonSetCondition. - :param status: The status of this V1beta2DaemonSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta2DaemonSetCondition. - Type of DaemonSet condition. + """Gets the type of this V1beta2DaemonSetCondition. # noqa: E501 - :return: The type of this V1beta2DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :return: The type of this V1beta2DaemonSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2DaemonSetCondition. - Type of DaemonSet condition. + """Sets the type of this V1beta2DaemonSetCondition. - :param type: The type of this V1beta2DaemonSetCondition. + Type of DaemonSet condition. # noqa: E501 + + :param type: The type of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set_list.py b/kubernetes/client/models/v1beta2_daemon_set_list.py index 21aee2b8c2..fb64dc1f48 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_list.py +++ b/kubernetes/client/models/v1beta2_daemon_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta2DaemonSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta2DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta2DaemonSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta2DaemonSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta2DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2DaemonSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta2DaemonSetList. + :return: The api_version of this V1beta2DaemonSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2DaemonSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2DaemonSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta2DaemonSetList. + :param api_version: The api_version of this V1beta2DaemonSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta2DaemonSetList. - A list of daemon sets. + """Gets the items of this V1beta2DaemonSetList. # noqa: E501 + + A list of daemon sets. # noqa: E501 - :return: The items of this V1beta2DaemonSetList. + :return: The items of this V1beta2DaemonSetList. # noqa: E501 :rtype: list[V1beta2DaemonSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta2DaemonSetList. - A list of daemon sets. + """Sets the items of this V1beta2DaemonSetList. + + A list of daemon sets. # noqa: E501 - :param items: The items of this V1beta2DaemonSetList. + :param items: The items of this V1beta2DaemonSetList. # noqa: E501 :type: list[V1beta2DaemonSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta2DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2DaemonSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2DaemonSetList. + :return: The kind of this V1beta2DaemonSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2DaemonSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2DaemonSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2DaemonSetList. + :param kind: The kind of this V1beta2DaemonSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta2DaemonSetList. # noqa: E501 + - :return: The metadata of this V1beta2DaemonSetList. + :return: The metadata of this V1beta2DaemonSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2DaemonSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta2DaemonSetList. + - :param metadata: The metadata of this V1beta2DaemonSetList. + :param metadata: The metadata of this V1beta2DaemonSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set_spec.py b/kubernetes/client/models/v1beta2_daemon_set_spec.py index 48180c3229..034779a0ab 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta2_daemon_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', @@ -46,10 +46,8 @@ class V1beta2DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): - """ - V1beta2DaemonSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): # noqa: E501 + """V1beta2DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._revision_history_limit = None @@ -59,32 +57,32 @@ def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector self.template = template if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta2DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Gets the min_ready_seconds of this V1beta2DaemonSetSpec. # noqa: E501 - :return: The min_ready_seconds of this V1beta2DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 + + :return: The min_ready_seconds of this V1beta2DaemonSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta2DaemonSetSpec. - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + """Sets the min_ready_seconds of this V1beta2DaemonSetSpec. - :param min_ready_seconds: The min_ready_seconds of this V1beta2DaemonSetSpec. + The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1beta2DaemonSetSpec. # noqa: E501 :type: int """ @@ -92,22 +90,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1beta2DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Gets the revision_history_limit of this V1beta2DaemonSetSpec. # noqa: E501 + + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :return: The revision_history_limit of this V1beta2DaemonSetSpec. + :return: The revision_history_limit of this V1beta2DaemonSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1beta2DaemonSetSpec. - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Sets the revision_history_limit of this V1beta2DaemonSetSpec. + + The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1beta2DaemonSetSpec. + :param revision_history_limit: The revision_history_limit of this V1beta2DaemonSetSpec. # noqa: E501 :type: int """ @@ -115,84 +113,76 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1beta2DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta2DaemonSetSpec. # noqa: E501 + - :return: The selector of this V1beta2DaemonSetSpec. + :return: The selector of this V1beta2DaemonSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta2DaemonSetSpec. - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta2DaemonSetSpec. + - :param selector: The selector of this V1beta2DaemonSetSpec. + :param selector: The selector of this V1beta2DaemonSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def template(self): - """ - Gets the template of this V1beta2DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1beta2DaemonSetSpec. # noqa: E501 + - :return: The template of this V1beta2DaemonSetSpec. + :return: The template of this V1beta2DaemonSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta2DaemonSetSpec. - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1beta2DaemonSetSpec. - :param template: The template of this V1beta2DaemonSetSpec. + + :param template: The template of this V1beta2DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def update_strategy(self): - """ - Gets the update_strategy of this V1beta2DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Gets the update_strategy of this V1beta2DaemonSetSpec. # noqa: E501 - :return: The update_strategy of this V1beta2DaemonSetSpec. + + :return: The update_strategy of this V1beta2DaemonSetSpec. # noqa: E501 :rtype: V1beta2DaemonSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1beta2DaemonSetSpec. - An update strategy to replace existing DaemonSet pods with new pods. + """Sets the update_strategy of this V1beta2DaemonSetSpec. - :param update_strategy: The update_strategy of this V1beta2DaemonSetSpec. + + :param update_strategy: The update_strategy of this V1beta2DaemonSetSpec. # noqa: E501 :type: V1beta2DaemonSetUpdateStrategy """ self._update_strategy = update_strategy def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +203,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set_status.py b/kubernetes/client/models/v1beta2_daemon_set_status.py index 5b946f37c0..dee5f00eb3 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_status.py +++ b/kubernetes/client/models/v1beta2_daemon_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1beta2DaemonSetCondition]', 'current_number_scheduled': 'int', @@ -56,10 +56,8 @@ class V1beta2DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): - """ - V1beta2DaemonSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + """V1beta2DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -74,40 +72,40 @@ def __init__(self, collision_count=None, conditions=None, current_number_schedul self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions self.current_number_scheduled = current_number_scheduled self.desired_number_scheduled = desired_number_scheduled if number_available is not None: - self.number_available = number_available + self.number_available = number_available self.number_misscheduled = number_misscheduled self.number_ready = number_ready if number_unavailable is not None: - self.number_unavailable = number_unavailable + self.number_unavailable = number_unavailable if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if updated_number_scheduled is not None: - self.updated_number_scheduled = updated_number_scheduled + self.updated_number_scheduled = updated_number_scheduled @property def collision_count(self): - """ - Gets the collision_count of this V1beta2DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1beta2DaemonSetStatus. # noqa: E501 - :return: The collision_count of this V1beta2DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1beta2DaemonSetStatus. - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1beta2DaemonSetStatus. - :param collision_count: The collision_count of this V1beta2DaemonSetStatus. + Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :param collision_count: The collision_count of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ @@ -115,22 +113,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1beta2DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Gets the conditions of this V1beta2DaemonSetStatus. # noqa: E501 - :return: The conditions of this V1beta2DaemonSetStatus. + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 + + :return: The conditions of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: list[V1beta2DaemonSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta2DaemonSetStatus. - Represents the latest available observations of a DaemonSet's current state. + """Sets the conditions of this V1beta2DaemonSetStatus. + + Represents the latest available observations of a DaemonSet's current state. # noqa: E501 - :param conditions: The conditions of this V1beta2DaemonSetStatus. + :param conditions: The conditions of this V1beta2DaemonSetStatus. # noqa: E501 :type: list[V1beta2DaemonSetCondition] """ @@ -138,72 +136,72 @@ def conditions(self, conditions): @property def current_number_scheduled(self): - """ - Gets the current_number_scheduled of this V1beta2DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the current_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The current_number_scheduled of this V1beta2DaemonSetStatus. + :return: The current_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._current_number_scheduled @current_number_scheduled.setter def current_number_scheduled(self, current_number_scheduled): - """ - Sets the current_number_scheduled of this V1beta2DaemonSetStatus. - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the current_number_scheduled of this V1beta2DaemonSetStatus. + + The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param current_number_scheduled: The current_number_scheduled of this V1beta2DaemonSetStatus. + :param current_number_scheduled: The current_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ if current_number_scheduled is None: - raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @property def desired_number_scheduled(self): - """ - Gets the desired_number_scheduled of this V1beta2DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the desired_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 + + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The desired_number_scheduled of this V1beta2DaemonSetStatus. + :return: The desired_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._desired_number_scheduled @desired_number_scheduled.setter def desired_number_scheduled(self, desired_number_scheduled): - """ - Sets the desired_number_scheduled of this V1beta2DaemonSetStatus. - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the desired_number_scheduled of this V1beta2DaemonSetStatus. - :param desired_number_scheduled: The desired_number_scheduled of this V1beta2DaemonSetStatus. + The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 + + :param desired_number_scheduled: The desired_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ if desired_number_scheduled is None: - raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") + raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @property def number_available(self): - """ - Gets the number_available of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_available of this V1beta2DaemonSetStatus. # noqa: E501 - :return: The number_available of this V1beta2DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_available of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_available @number_available.setter def number_available(self, number_available): - """ - Sets the number_available of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_available of this V1beta2DaemonSetStatus. - :param number_available: The number_available of this V1beta2DaemonSetStatus. + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_available: The number_available of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ @@ -211,72 +209,72 @@ def number_available(self, number_available): @property def number_misscheduled(self): - """ - Gets the number_misscheduled of this V1beta2DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Gets the number_misscheduled of this V1beta2DaemonSetStatus. # noqa: E501 + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :return: The number_misscheduled of this V1beta2DaemonSetStatus. + :return: The number_misscheduled of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_misscheduled @number_misscheduled.setter def number_misscheduled(self, number_misscheduled): - """ - Sets the number_misscheduled of this V1beta2DaemonSetStatus. - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + """Sets the number_misscheduled of this V1beta2DaemonSetStatus. + + The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ # noqa: E501 - :param number_misscheduled: The number_misscheduled of this V1beta2DaemonSetStatus. + :param number_misscheduled: The number_misscheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ if number_misscheduled is None: - raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") + raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @property def number_ready(self): - """ - Gets the number_ready of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Gets the number_ready of this V1beta2DaemonSetStatus. # noqa: E501 + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :return: The number_ready of this V1beta2DaemonSetStatus. + :return: The number_ready of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_ready @number_ready.setter def number_ready(self, number_ready): - """ - Sets the number_ready of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + """Sets the number_ready of this V1beta2DaemonSetStatus. + + The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. # noqa: E501 - :param number_ready: The number_ready of this V1beta2DaemonSetStatus. + :param number_ready: The number_ready of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ if number_ready is None: - raise ValueError("Invalid value for `number_ready`, must not be `None`") + raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @property def number_unavailable(self): - """ - Gets the number_unavailable of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Gets the number_unavailable of this V1beta2DaemonSetStatus. # noqa: E501 - :return: The number_unavailable of this V1beta2DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :return: The number_unavailable of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._number_unavailable @number_unavailable.setter def number_unavailable(self, number_unavailable): - """ - Sets the number_unavailable of this V1beta2DaemonSetStatus. - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + """Sets the number_unavailable of this V1beta2DaemonSetStatus. - :param number_unavailable: The number_unavailable of this V1beta2DaemonSetStatus. + The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) # noqa: E501 + + :param number_unavailable: The number_unavailable of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ @@ -284,22 +282,22 @@ def number_unavailable(self, number_unavailable): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta2DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Gets the observed_generation of this V1beta2DaemonSetStatus. # noqa: E501 - :return: The observed_generation of this V1beta2DaemonSetStatus. + The most recent generation observed by the daemon set controller. # noqa: E501 + + :return: The observed_generation of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta2DaemonSetStatus. - The most recent generation observed by the daemon set controller. + """Sets the observed_generation of this V1beta2DaemonSetStatus. + + The most recent generation observed by the daemon set controller. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta2DaemonSetStatus. + :param observed_generation: The observed_generation of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ @@ -307,34 +305,32 @@ def observed_generation(self, observed_generation): @property def updated_number_scheduled(self): - """ - Gets the updated_number_scheduled of this V1beta2DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Gets the updated_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 + + The total number of nodes that are running updated daemon pod # noqa: E501 - :return: The updated_number_scheduled of this V1beta2DaemonSetStatus. + :return: The updated_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :rtype: int """ return self._updated_number_scheduled @updated_number_scheduled.setter def updated_number_scheduled(self, updated_number_scheduled): - """ - Sets the updated_number_scheduled of this V1beta2DaemonSetStatus. - The total number of nodes that are running updated daemon pod + """Sets the updated_number_scheduled of this V1beta2DaemonSetStatus. + + The total number of nodes that are running updated daemon pod # noqa: E501 - :param updated_number_scheduled: The updated_number_scheduled of this V1beta2DaemonSetStatus. + :param updated_number_scheduled: The updated_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ self._updated_number_scheduled = updated_number_scheduled def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -355,28 +351,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py index 03edeed901..05d6a36b07 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DaemonSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1beta2RollingUpdateDaemonSet', 'type': 'str' } @@ -40,38 +40,34 @@ class V1beta2DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1beta2DaemonSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1beta2DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1beta2DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Gets the rolling_update of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1beta2DaemonSetUpdateStrategy. + :return: The rolling_update of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 :rtype: V1beta2RollingUpdateDaemonSet """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta2DaemonSetUpdateStrategy. - Rolling update config params. Present only if type = \"RollingUpdate\". + """Sets the rolling_update of this V1beta2DaemonSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1beta2DaemonSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 :type: V1beta2RollingUpdateDaemonSet """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1beta2DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. + """Gets the type of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501 - :return: The type of this V1beta2DaemonSetUpdateStrategy. + :return: The type of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2DaemonSetUpdateStrategy. - Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. + """Sets the type of this V1beta2DaemonSetUpdateStrategy. + + Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1beta2DaemonSetUpdateStrategy. + :param type: The type of this V1beta2DaemonSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DaemonSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment.py b/kubernetes/client/models/v1beta2_deployment.py index ff9a061348..bdf651ae26 100644 --- a/kubernetes/client/models/v1beta2_deployment.py +++ b/kubernetes/client/models/v1beta2_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2Deployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta2Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta2Deployment - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta2Deployment - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta2Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2Deployment. # noqa: E501 - :return: The api_version of this V1beta2Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2Deployment. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2Deployment. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2Deployment. - :param api_version: The api_version of this V1beta2Deployment. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2Deployment. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta2Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2Deployment. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2Deployment. + :return: The kind of this V1beta2Deployment. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2Deployment. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2Deployment. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2Deployment. + :param kind: The kind of this V1beta2Deployment. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2Deployment. - Standard object metadata. + """Gets the metadata of this V1beta2Deployment. # noqa: E501 + - :return: The metadata of this V1beta2Deployment. + :return: The metadata of this V1beta2Deployment. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2Deployment. - Standard object metadata. + """Sets the metadata of this V1beta2Deployment. + - :param metadata: The metadata of this V1beta2Deployment. + :param metadata: The metadata of this V1beta2Deployment. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta2Deployment. - Specification of the desired behavior of the Deployment. + """Gets the spec of this V1beta2Deployment. # noqa: E501 + - :return: The spec of this V1beta2Deployment. + :return: The spec of this V1beta2Deployment. # noqa: E501 :rtype: V1beta2DeploymentSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta2Deployment. - Specification of the desired behavior of the Deployment. + """Sets the spec of this V1beta2Deployment. - :param spec: The spec of this V1beta2Deployment. + + :param spec: The spec of this V1beta2Deployment. # noqa: E501 :type: V1beta2DeploymentSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta2Deployment. - Most recently observed status of the Deployment. + """Gets the status of this V1beta2Deployment. # noqa: E501 - :return: The status of this V1beta2Deployment. + + :return: The status of this V1beta2Deployment. # noqa: E501 :rtype: V1beta2DeploymentStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2Deployment. - Most recently observed status of the Deployment. + """Sets the status of this V1beta2Deployment. - :param status: The status of this V1beta2Deployment. + + :param status: The status of this V1beta2Deployment. # noqa: E501 :type: V1beta2DeploymentStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2Deployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment_condition.py b/kubernetes/client/models/v1beta2_deployment_condition.py index b1b13ee4cd..72ff5696ad 100644 --- a/kubernetes/client/models/v1beta2_deployment_condition.py +++ b/kubernetes/client/models/v1beta2_deployment_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DeploymentCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'last_update_time': 'datetime', 'message': 'str', @@ -48,10 +48,8 @@ class V1beta2DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta2DeploymentCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta2DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._last_update_time = None @@ -62,34 +60,34 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if last_update_time is not None: - self.last_update_time = last_update_time + self.last_update_time = last_update_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta2DeploymentCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta2DeploymentCondition. # noqa: E501 + + Last time the condition transitioned from one status to another. # noqa: E501 - :return: The last_transition_time of this V1beta2DeploymentCondition. + :return: The last_transition_time of this V1beta2DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta2DeploymentCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta2DeploymentCondition. + + Last time the condition transitioned from one status to another. # noqa: E501 - :param last_transition_time: The last_transition_time of this V1beta2DeploymentCondition. + :param last_transition_time: The last_transition_time of this V1beta2DeploymentCondition. # noqa: E501 :type: datetime """ @@ -97,22 +95,22 @@ def last_transition_time(self, last_transition_time): @property def last_update_time(self): - """ - Gets the last_update_time of this V1beta2DeploymentCondition. - The last time this condition was updated. + """Gets the last_update_time of this V1beta2DeploymentCondition. # noqa: E501 + + The last time this condition was updated. # noqa: E501 - :return: The last_update_time of this V1beta2DeploymentCondition. + :return: The last_update_time of this V1beta2DeploymentCondition. # noqa: E501 :rtype: datetime """ return self._last_update_time @last_update_time.setter def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this V1beta2DeploymentCondition. - The last time this condition was updated. + """Sets the last_update_time of this V1beta2DeploymentCondition. - :param last_update_time: The last_update_time of this V1beta2DeploymentCondition. + The last time this condition was updated. # noqa: E501 + + :param last_update_time: The last_update_time of this V1beta2DeploymentCondition. # noqa: E501 :type: datetime """ @@ -120,22 +118,22 @@ def last_update_time(self, last_update_time): @property def message(self): - """ - Gets the message of this V1beta2DeploymentCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta2DeploymentCondition. # noqa: E501 - :return: The message of this V1beta2DeploymentCondition. + A human readable message indicating details about the transition. # noqa: E501 + + :return: The message of this V1beta2DeploymentCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta2DeploymentCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta2DeploymentCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta2DeploymentCondition. + :param message: The message of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ @@ -143,22 +141,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta2DeploymentCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta2DeploymentCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta2DeploymentCondition. + :return: The reason of this V1beta2DeploymentCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta2DeploymentCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta2DeploymentCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta2DeploymentCondition. + :param reason: The reason of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ @@ -166,61 +164,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta2DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta2DeploymentCondition. # noqa: E501 - :return: The status of this V1beta2DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :return: The status of this V1beta2DeploymentCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2DeploymentCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta2DeploymentCondition. - :param status: The status of this V1beta2DeploymentCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta2DeploymentCondition. - Type of deployment condition. + """Gets the type of this V1beta2DeploymentCondition. # noqa: E501 + + Type of deployment condition. # noqa: E501 - :return: The type of this V1beta2DeploymentCondition. + :return: The type of this V1beta2DeploymentCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2DeploymentCondition. - Type of deployment condition. + """Sets the type of this V1beta2DeploymentCondition. + + Type of deployment condition. # noqa: E501 - :param type: The type of this V1beta2DeploymentCondition. + :param type: The type of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -241,28 +237,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DeploymentCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment_list.py b/kubernetes/client/models/v1beta2_deployment_list.py index cbac9ab32f..cf4738463b 100644 --- a/kubernetes/client/models/v1beta2_deployment_list.py +++ b/kubernetes/client/models/v1beta2_deployment_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DeploymentList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta2Deployment]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta2DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta2DeploymentList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta2DeploymentList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta2DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2DeploymentList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta2DeploymentList. + :return: The api_version of this V1beta2DeploymentList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2DeploymentList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2DeploymentList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta2DeploymentList. + :param api_version: The api_version of this V1beta2DeploymentList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta2DeploymentList. - Items is the list of Deployments. + """Gets the items of this V1beta2DeploymentList. # noqa: E501 + + Items is the list of Deployments. # noqa: E501 - :return: The items of this V1beta2DeploymentList. + :return: The items of this V1beta2DeploymentList. # noqa: E501 :rtype: list[V1beta2Deployment] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta2DeploymentList. - Items is the list of Deployments. + """Sets the items of this V1beta2DeploymentList. + + Items is the list of Deployments. # noqa: E501 - :param items: The items of this V1beta2DeploymentList. + :param items: The items of this V1beta2DeploymentList. # noqa: E501 :type: list[V1beta2Deployment] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta2DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2DeploymentList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2DeploymentList. + :return: The kind of this V1beta2DeploymentList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2DeploymentList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2DeploymentList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2DeploymentList. + :param kind: The kind of this V1beta2DeploymentList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2DeploymentList. - Standard list metadata. + """Gets the metadata of this V1beta2DeploymentList. # noqa: E501 + - :return: The metadata of this V1beta2DeploymentList. + :return: The metadata of this V1beta2DeploymentList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2DeploymentList. - Standard list metadata. + """Sets the metadata of this V1beta2DeploymentList. + - :param metadata: The metadata of this V1beta2DeploymentList. + :param metadata: The metadata of this V1beta2DeploymentList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DeploymentList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment_spec.py b/kubernetes/client/models/v1beta2_deployment_spec.py index 0c5169b3ea..d2961e91a8 100644 --- a/kubernetes/client/models/v1beta2_deployment_spec.py +++ b/kubernetes/client/models/v1beta2_deployment_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DeploymentSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'paused': 'bool', 'progress_deadline_seconds': 'int', @@ -52,10 +52,8 @@ class V1beta2DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): - """ - V1beta2DeploymentSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): # noqa: E501 + """V1beta2DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._paused = None @@ -68,38 +66,38 @@ def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_second self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if paused is not None: - self.paused = paused + self.paused = paused if progress_deadline_seconds is not None: - self.progress_deadline_seconds = progress_deadline_seconds + self.progress_deadline_seconds = progress_deadline_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector if strategy is not None: - self.strategy = strategy + self.strategy = strategy self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta2DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1beta2DeploymentSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1beta2DeploymentSpec. + :return: The min_ready_seconds of this V1beta2DeploymentSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta2DeploymentSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1beta2DeploymentSpec. - :param min_ready_seconds: The min_ready_seconds of this V1beta2DeploymentSpec. + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 + + :param min_ready_seconds: The min_ready_seconds of this V1beta2DeploymentSpec. # noqa: E501 :type: int """ @@ -107,22 +105,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def paused(self): - """ - Gets the paused of this V1beta2DeploymentSpec. - Indicates that the deployment is paused. + """Gets the paused of this V1beta2DeploymentSpec. # noqa: E501 + + Indicates that the deployment is paused. # noqa: E501 - :return: The paused of this V1beta2DeploymentSpec. + :return: The paused of this V1beta2DeploymentSpec. # noqa: E501 :rtype: bool """ return self._paused @paused.setter def paused(self, paused): - """ - Sets the paused of this V1beta2DeploymentSpec. - Indicates that the deployment is paused. + """Sets the paused of this V1beta2DeploymentSpec. + + Indicates that the deployment is paused. # noqa: E501 - :param paused: The paused of this V1beta2DeploymentSpec. + :param paused: The paused of this V1beta2DeploymentSpec. # noqa: E501 :type: bool """ @@ -130,22 +128,22 @@ def paused(self, paused): @property def progress_deadline_seconds(self): - """ - Gets the progress_deadline_seconds of this V1beta2DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Gets the progress_deadline_seconds of this V1beta2DeploymentSpec. # noqa: E501 - :return: The progress_deadline_seconds of this V1beta2DeploymentSpec. + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 + + :return: The progress_deadline_seconds of this V1beta2DeploymentSpec. # noqa: E501 :rtype: int """ return self._progress_deadline_seconds @progress_deadline_seconds.setter def progress_deadline_seconds(self, progress_deadline_seconds): - """ - Sets the progress_deadline_seconds of this V1beta2DeploymentSpec. - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + """Sets the progress_deadline_seconds of this V1beta2DeploymentSpec. + + The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501 - :param progress_deadline_seconds: The progress_deadline_seconds of this V1beta2DeploymentSpec. + :param progress_deadline_seconds: The progress_deadline_seconds of this V1beta2DeploymentSpec. # noqa: E501 :type: int """ @@ -153,22 +151,22 @@ def progress_deadline_seconds(self, progress_deadline_seconds): @property def replicas(self): - """ - Gets the replicas of this V1beta2DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Gets the replicas of this V1beta2DeploymentSpec. # noqa: E501 + + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 - :return: The replicas of this V1beta2DeploymentSpec. + :return: The replicas of this V1beta2DeploymentSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2DeploymentSpec. - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + """Sets the replicas of this V1beta2DeploymentSpec. - :param replicas: The replicas of this V1beta2DeploymentSpec. + Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501 + + :param replicas: The replicas of this V1beta2DeploymentSpec. # noqa: E501 :type: int """ @@ -176,22 +174,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1beta2DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Gets the revision_history_limit of this V1beta2DeploymentSpec. # noqa: E501 + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :return: The revision_history_limit of this V1beta2DeploymentSpec. + :return: The revision_history_limit of this V1beta2DeploymentSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1beta2DeploymentSpec. - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + """Sets the revision_history_limit of this V1beta2DeploymentSpec. + + The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1beta2DeploymentSpec. + :param revision_history_limit: The revision_history_limit of this V1beta2DeploymentSpec. # noqa: E501 :type: int """ @@ -199,47 +197,43 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1beta2DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + """Gets the selector of this V1beta2DeploymentSpec. # noqa: E501 - :return: The selector of this V1beta2DeploymentSpec. + + :return: The selector of this V1beta2DeploymentSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta2DeploymentSpec. - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + """Sets the selector of this V1beta2DeploymentSpec. + - :param selector: The selector of this V1beta2DeploymentSpec. + :param selector: The selector of this V1beta2DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def strategy(self): - """ - Gets the strategy of this V1beta2DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Gets the strategy of this V1beta2DeploymentSpec. # noqa: E501 + - :return: The strategy of this V1beta2DeploymentSpec. + :return: The strategy of this V1beta2DeploymentSpec. # noqa: E501 :rtype: V1beta2DeploymentStrategy """ return self._strategy @strategy.setter def strategy(self, strategy): - """ - Sets the strategy of this V1beta2DeploymentSpec. - The deployment strategy to use to replace existing pods with new ones. + """Sets the strategy of this V1beta2DeploymentSpec. - :param strategy: The strategy of this V1beta2DeploymentSpec. + + :param strategy: The strategy of this V1beta2DeploymentSpec. # noqa: E501 :type: V1beta2DeploymentStrategy """ @@ -247,36 +241,32 @@ def strategy(self, strategy): @property def template(self): - """ - Gets the template of this V1beta2DeploymentSpec. - Template describes the pods that will be created. + """Gets the template of this V1beta2DeploymentSpec. # noqa: E501 + - :return: The template of this V1beta2DeploymentSpec. + :return: The template of this V1beta2DeploymentSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta2DeploymentSpec. - Template describes the pods that will be created. + """Sets the template of this V1beta2DeploymentSpec. + - :param template: The template of this V1beta2DeploymentSpec. + :param template: The template of this V1beta2DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -297,28 +287,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DeploymentSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment_status.py b/kubernetes/client/models/v1beta2_deployment_status.py index 2af8eec0be..dcfe28b6e5 100644 --- a/kubernetes/client/models/v1beta2_deployment_status.py +++ b/kubernetes/client/models/v1beta2_deployment_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DeploymentStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'collision_count': 'int', 'conditions': 'list[V1beta2DeploymentCondition]', @@ -52,10 +52,8 @@ class V1beta2DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): - """ - V1beta2DeploymentStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + """V1beta2DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._collision_count = None @@ -68,40 +66,40 @@ def __init__(self, available_replicas=None, collision_count=None, conditions=Non self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas if replicas is not None: - self.replicas = replicas + self.replicas = replicas if unavailable_replicas is not None: - self.unavailable_replicas = unavailable_replicas + self.unavailable_replicas = unavailable_replicas if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1beta2DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Gets the available_replicas of this V1beta2DeploymentStatus. # noqa: E501 + + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 - :return: The available_replicas of this V1beta2DeploymentStatus. + :return: The available_replicas of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1beta2DeploymentStatus. - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + """Sets the available_replicas of this V1beta2DeploymentStatus. - :param available_replicas: The available_replicas of this V1beta2DeploymentStatus. + Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. # noqa: E501 + + :param available_replicas: The available_replicas of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -109,22 +107,22 @@ def available_replicas(self, available_replicas): @property def collision_count(self): - """ - Gets the collision_count of this V1beta2DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Gets the collision_count of this V1beta2DeploymentStatus. # noqa: E501 + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :return: The collision_count of this V1beta2DeploymentStatus. + :return: The collision_count of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1beta2DeploymentStatus. - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + """Sets the collision_count of this V1beta2DeploymentStatus. + + Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. # noqa: E501 - :param collision_count: The collision_count of this V1beta2DeploymentStatus. + :param collision_count: The collision_count of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -132,22 +130,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1beta2DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Gets the conditions of this V1beta2DeploymentStatus. # noqa: E501 - :return: The conditions of this V1beta2DeploymentStatus. + Represents the latest available observations of a deployment's current state. # noqa: E501 + + :return: The conditions of this V1beta2DeploymentStatus. # noqa: E501 :rtype: list[V1beta2DeploymentCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta2DeploymentStatus. - Represents the latest available observations of a deployment's current state. + """Sets the conditions of this V1beta2DeploymentStatus. + + Represents the latest available observations of a deployment's current state. # noqa: E501 - :param conditions: The conditions of this V1beta2DeploymentStatus. + :param conditions: The conditions of this V1beta2DeploymentStatus. # noqa: E501 :type: list[V1beta2DeploymentCondition] """ @@ -155,22 +153,22 @@ def conditions(self, conditions): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta2DeploymentStatus. - The generation observed by the deployment controller. + """Gets the observed_generation of this V1beta2DeploymentStatus. # noqa: E501 + + The generation observed by the deployment controller. # noqa: E501 - :return: The observed_generation of this V1beta2DeploymentStatus. + :return: The observed_generation of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta2DeploymentStatus. - The generation observed by the deployment controller. + """Sets the observed_generation of this V1beta2DeploymentStatus. - :param observed_generation: The observed_generation of this V1beta2DeploymentStatus. + The generation observed by the deployment controller. # noqa: E501 + + :param observed_generation: The observed_generation of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -178,22 +176,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1beta2DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Gets the ready_replicas of this V1beta2DeploymentStatus. # noqa: E501 + + Total number of ready pods targeted by this deployment. # noqa: E501 - :return: The ready_replicas of this V1beta2DeploymentStatus. + :return: The ready_replicas of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1beta2DeploymentStatus. - Total number of ready pods targeted by this deployment. + """Sets the ready_replicas of this V1beta2DeploymentStatus. + + Total number of ready pods targeted by this deployment. # noqa: E501 - :param ready_replicas: The ready_replicas of this V1beta2DeploymentStatus. + :param ready_replicas: The ready_replicas of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -201,22 +199,22 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1beta2DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Gets the replicas of this V1beta2DeploymentStatus. # noqa: E501 - :return: The replicas of this V1beta2DeploymentStatus. + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 + + :return: The replicas of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2DeploymentStatus. - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + """Sets the replicas of this V1beta2DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment (their labels match the selector). # noqa: E501 - :param replicas: The replicas of this V1beta2DeploymentStatus. + :param replicas: The replicas of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -224,22 +222,22 @@ def replicas(self, replicas): @property def unavailable_replicas(self): - """ - Gets the unavailable_replicas of this V1beta2DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Gets the unavailable_replicas of this V1beta2DeploymentStatus. # noqa: E501 + + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 - :return: The unavailable_replicas of this V1beta2DeploymentStatus. + :return: The unavailable_replicas of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._unavailable_replicas @unavailable_replicas.setter def unavailable_replicas(self, unavailable_replicas): - """ - Sets the unavailable_replicas of this V1beta2DeploymentStatus. - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + """Sets the unavailable_replicas of this V1beta2DeploymentStatus. - :param unavailable_replicas: The unavailable_replicas of this V1beta2DeploymentStatus. + Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. # noqa: E501 + + :param unavailable_replicas: The unavailable_replicas of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ @@ -247,34 +245,32 @@ def unavailable_replicas(self, unavailable_replicas): @property def updated_replicas(self): - """ - Gets the updated_replicas of this V1beta2DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Gets the updated_replicas of this V1beta2DeploymentStatus. # noqa: E501 + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :return: The updated_replicas of this V1beta2DeploymentStatus. + :return: The updated_replicas of this V1beta2DeploymentStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this V1beta2DeploymentStatus. - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """Sets the updated_replicas of this V1beta2DeploymentStatus. + + Total number of non-terminated pods targeted by this deployment that have the desired template spec. # noqa: E501 - :param updated_replicas: The updated_replicas of this V1beta2DeploymentStatus. + :param updated_replicas: The updated_replicas of this V1beta2DeploymentStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -295,28 +291,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DeploymentStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_deployment_strategy.py b/kubernetes/client/models/v1beta2_deployment_strategy.py index 3812d31fc2..28feba3446 100644 --- a/kubernetes/client/models/v1beta2_deployment_strategy.py +++ b/kubernetes/client/models/v1beta2_deployment_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2DeploymentStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1beta2RollingUpdateDeployment', 'type': 'str' } @@ -40,38 +40,34 @@ class V1beta2DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1beta2DeploymentStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1beta2DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1beta2DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Gets the rolling_update of this V1beta2DeploymentStrategy. # noqa: E501 + - :return: The rolling_update of this V1beta2DeploymentStrategy. + :return: The rolling_update of this V1beta2DeploymentStrategy. # noqa: E501 :rtype: V1beta2RollingUpdateDeployment """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta2DeploymentStrategy. - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + """Sets the rolling_update of this V1beta2DeploymentStrategy. - :param rolling_update: The rolling_update of this V1beta2DeploymentStrategy. + + :param rolling_update: The rolling_update of this V1beta2DeploymentStrategy. # noqa: E501 :type: V1beta2RollingUpdateDeployment """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1beta2DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Gets the type of this V1beta2DeploymentStrategy. # noqa: E501 + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :return: The type of this V1beta2DeploymentStrategy. + :return: The type of this V1beta2DeploymentStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2DeploymentStrategy. - Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. + """Sets the type of this V1beta2DeploymentStrategy. + + Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1beta2DeploymentStrategy. + :param type: The type of this V1beta2DeploymentStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2DeploymentStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_replica_set.py b/kubernetes/client/models/v1beta2_replica_set.py index 5f67e91e49..dcefe09797 100644 --- a/kubernetes/client/models/v1beta2_replica_set.py +++ b/kubernetes/client/models/v1beta2_replica_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ReplicaSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta2ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta2ReplicaSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta2ReplicaSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta2ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2ReplicaSet. # noqa: E501 - :return: The api_version of this V1beta2ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2ReplicaSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2ReplicaSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2ReplicaSet. - :param api_version: The api_version of this V1beta2ReplicaSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2ReplicaSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta2ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2ReplicaSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2ReplicaSet. + :return: The kind of this V1beta2ReplicaSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2ReplicaSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2ReplicaSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2ReplicaSet. + :param kind: The kind of this V1beta2ReplicaSet. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Gets the metadata of this V1beta2ReplicaSet. # noqa: E501 + - :return: The metadata of this V1beta2ReplicaSet. + :return: The metadata of this V1beta2ReplicaSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2ReplicaSet. - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """Sets the metadata of this V1beta2ReplicaSet. + - :param metadata: The metadata of this V1beta2ReplicaSet. + :param metadata: The metadata of this V1beta2ReplicaSet. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta2ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the spec of this V1beta2ReplicaSet. # noqa: E501 + - :return: The spec of this V1beta2ReplicaSet. + :return: The spec of this V1beta2ReplicaSet. # noqa: E501 :rtype: V1beta2ReplicaSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta2ReplicaSet. - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the spec of this V1beta2ReplicaSet. - :param spec: The spec of this V1beta2ReplicaSet. + + :param spec: The spec of this V1beta2ReplicaSet. # noqa: E501 :type: V1beta2ReplicaSetSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta2ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Gets the status of this V1beta2ReplicaSet. # noqa: E501 - :return: The status of this V1beta2ReplicaSet. + + :return: The status of this V1beta2ReplicaSet. # noqa: E501 :rtype: V1beta2ReplicaSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2ReplicaSet. - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """Sets the status of this V1beta2ReplicaSet. - :param status: The status of this V1beta2ReplicaSet. + + :param status: The status of this V1beta2ReplicaSet. # noqa: E501 :type: V1beta2ReplicaSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ReplicaSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_replica_set_condition.py b/kubernetes/client/models/v1beta2_replica_set_condition.py index f3ee8d1d4d..f912156e73 100644 --- a/kubernetes/client/models/v1beta2_replica_set_condition.py +++ b/kubernetes/client/models/v1beta2_replica_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ReplicaSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta2ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta2ReplicaSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta2ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta2ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta2ReplicaSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta2ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta2ReplicaSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta2ReplicaSetCondition. - The last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta2ReplicaSetCondition. - :param last_transition_time: The last_transition_time of this V1beta2ReplicaSetCondition. + The last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta2ReplicaSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta2ReplicaSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta2ReplicaSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta2ReplicaSetCondition. + :return: The message of this V1beta2ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta2ReplicaSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta2ReplicaSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta2ReplicaSetCondition. + :param message: The message of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta2ReplicaSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta2ReplicaSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta2ReplicaSetCondition. + :return: The reason of this V1beta2ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta2ReplicaSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta2ReplicaSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta2ReplicaSetCondition. + :param reason: The reason of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta2ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta2ReplicaSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta2ReplicaSetCondition. + :return: The status of this V1beta2ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2ReplicaSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta2ReplicaSetCondition. - :param status: The status of this V1beta2ReplicaSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta2ReplicaSetCondition. - Type of replica set condition. + """Gets the type of this V1beta2ReplicaSetCondition. # noqa: E501 - :return: The type of this V1beta2ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :return: The type of this V1beta2ReplicaSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2ReplicaSetCondition. - Type of replica set condition. + """Sets the type of this V1beta2ReplicaSetCondition. - :param type: The type of this V1beta2ReplicaSetCondition. + Type of replica set condition. # noqa: E501 + + :param type: The type of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ReplicaSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_replica_set_list.py b/kubernetes/client/models/v1beta2_replica_set_list.py index 5d1a41a4a4..42cdacee75 100644 --- a/kubernetes/client/models/v1beta2_replica_set_list.py +++ b/kubernetes/client/models/v1beta2_replica_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ReplicaSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta2ReplicaSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta2ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta2ReplicaSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta2ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta2ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2ReplicaSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta2ReplicaSetList. + :return: The api_version of this V1beta2ReplicaSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2ReplicaSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2ReplicaSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta2ReplicaSetList. + :param api_version: The api_version of this V1beta2ReplicaSetList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta2ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Gets the items of this V1beta2ReplicaSetList. # noqa: E501 + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :return: The items of this V1beta2ReplicaSetList. + :return: The items of this V1beta2ReplicaSetList. # noqa: E501 :rtype: list[V1beta2ReplicaSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta2ReplicaSetList. - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """Sets the items of this V1beta2ReplicaSetList. + + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller # noqa: E501 - :param items: The items of this V1beta2ReplicaSetList. + :param items: The items of this V1beta2ReplicaSetList. # noqa: E501 :type: list[V1beta2ReplicaSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta2ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2ReplicaSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2ReplicaSetList. + :return: The kind of this V1beta2ReplicaSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2ReplicaSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2ReplicaSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2ReplicaSetList. + :param kind: The kind of this V1beta2ReplicaSetList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """Gets the metadata of this V1beta2ReplicaSetList. # noqa: E501 + - :return: The metadata of this V1beta2ReplicaSetList. + :return: The metadata of this V1beta2ReplicaSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2ReplicaSetList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """Sets the metadata of this V1beta2ReplicaSetList. + - :param metadata: The metadata of this V1beta2ReplicaSetList. + :param metadata: The metadata of this V1beta2ReplicaSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ReplicaSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_replica_set_spec.py b/kubernetes/client/models/v1beta2_replica_set_spec.py index 6726812025..b6bf1d723a 100644 --- a/kubernetes/client/models/v1beta2_replica_set_spec.py +++ b/kubernetes/client/models/v1beta2_replica_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ReplicaSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'V1LabelSelector', @@ -44,10 +44,8 @@ class V1beta2ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): - """ - V1beta2ReplicaSetSpec - a model defined in Swagger - """ + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + """V1beta2ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 self._min_ready_seconds = None self._replicas = None @@ -56,31 +54,31 @@ def __init__(self, min_ready_seconds=None, replicas=None, selector=None, templat self.discriminator = None if min_ready_seconds is not None: - self.min_ready_seconds = min_ready_seconds + self.min_ready_seconds = min_ready_seconds if replicas is not None: - self.replicas = replicas + self.replicas = replicas self.selector = selector if template is not None: - self.template = template + self.template = template @property def min_ready_seconds(self): - """ - Gets the min_ready_seconds of this V1beta2ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Gets the min_ready_seconds of this V1beta2ReplicaSetSpec. # noqa: E501 + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :return: The min_ready_seconds of this V1beta2ReplicaSetSpec. + :return: The min_ready_seconds of this V1beta2ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._min_ready_seconds @min_ready_seconds.setter def min_ready_seconds(self, min_ready_seconds): - """ - Sets the min_ready_seconds of this V1beta2ReplicaSetSpec. - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + """Sets the min_ready_seconds of this V1beta2ReplicaSetSpec. + + Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501 - :param min_ready_seconds: The min_ready_seconds of this V1beta2ReplicaSetSpec. + :param min_ready_seconds: The min_ready_seconds of this V1beta2ReplicaSetSpec. # noqa: E501 :type: int """ @@ -88,22 +86,22 @@ def min_ready_seconds(self, min_ready_seconds): @property def replicas(self): - """ - Gets the replicas of this V1beta2ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1beta2ReplicaSetSpec. # noqa: E501 + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1beta2ReplicaSetSpec. + :return: The replicas of this V1beta2ReplicaSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2ReplicaSetSpec. - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1beta2ReplicaSetSpec. + + Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1beta2ReplicaSetSpec. + :param replicas: The replicas of this V1beta2ReplicaSetSpec. # noqa: E501 :type: int """ @@ -111,59 +109,53 @@ def replicas(self, replicas): @property def selector(self): - """ - Gets the selector of this V1beta2ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta2ReplicaSetSpec. # noqa: E501 + - :return: The selector of this V1beta2ReplicaSetSpec. + :return: The selector of this V1beta2ReplicaSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta2ReplicaSetSpec. - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta2ReplicaSetSpec. + - :param selector: The selector of this V1beta2ReplicaSetSpec. + :param selector: The selector of this V1beta2ReplicaSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def template(self): - """ - Gets the template of this V1beta2ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Gets the template of this V1beta2ReplicaSetSpec. # noqa: E501 + - :return: The template of this V1beta2ReplicaSetSpec. + :return: The template of this V1beta2ReplicaSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta2ReplicaSetSpec. - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + """Sets the template of this V1beta2ReplicaSetSpec. + - :param template: The template of this V1beta2ReplicaSetSpec. + :param template: The template of this V1beta2ReplicaSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ReplicaSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_replica_set_status.py b/kubernetes/client/models/v1beta2_replica_set_status.py index 058bfe82ea..29974e75e9 100644 --- a/kubernetes/client/models/v1beta2_replica_set_status.py +++ b/kubernetes/client/models/v1beta2_replica_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ReplicaSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'available_replicas': 'int', 'conditions': 'list[V1beta2ReplicaSetCondition]', 'fully_labeled_replicas': 'int', @@ -48,10 +48,8 @@ class V1beta2ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): - """ - V1beta2ReplicaSetStatus - a model defined in Swagger - """ + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + """V1beta2ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 self._available_replicas = None self._conditions = None @@ -62,35 +60,35 @@ def __init__(self, available_replicas=None, conditions=None, fully_labeled_repli self.discriminator = None if available_replicas is not None: - self.available_replicas = available_replicas + self.available_replicas = available_replicas if conditions is not None: - self.conditions = conditions + self.conditions = conditions if fully_labeled_replicas is not None: - self.fully_labeled_replicas = fully_labeled_replicas + self.fully_labeled_replicas = fully_labeled_replicas if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas @property def available_replicas(self): - """ - Gets the available_replicas of this V1beta2ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Gets the available_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :return: The available_replicas of this V1beta2ReplicaSetStatus. + :return: The available_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._available_replicas @available_replicas.setter def available_replicas(self, available_replicas): - """ - Sets the available_replicas of this V1beta2ReplicaSetStatus. - The number of available replicas (ready for at least minReadySeconds) for this replica set. + """Sets the available_replicas of this V1beta2ReplicaSetStatus. + + The number of available replicas (ready for at least minReadySeconds) for this replica set. # noqa: E501 - :param available_replicas: The available_replicas of this V1beta2ReplicaSetStatus. + :param available_replicas: The available_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ @@ -98,22 +96,22 @@ def available_replicas(self, available_replicas): @property def conditions(self): - """ - Gets the conditions of this V1beta2ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Gets the conditions of this V1beta2ReplicaSetStatus. # noqa: E501 + + Represents the latest available observations of a replica set's current state. # noqa: E501 - :return: The conditions of this V1beta2ReplicaSetStatus. + :return: The conditions of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: list[V1beta2ReplicaSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta2ReplicaSetStatus. - Represents the latest available observations of a replica set's current state. + """Sets the conditions of this V1beta2ReplicaSetStatus. - :param conditions: The conditions of this V1beta2ReplicaSetStatus. + Represents the latest available observations of a replica set's current state. # noqa: E501 + + :param conditions: The conditions of this V1beta2ReplicaSetStatus. # noqa: E501 :type: list[V1beta2ReplicaSetCondition] """ @@ -121,22 +119,22 @@ def conditions(self, conditions): @property def fully_labeled_replicas(self): - """ - Gets the fully_labeled_replicas of this V1beta2ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Gets the fully_labeled_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 - :return: The fully_labeled_replicas of this V1beta2ReplicaSetStatus. + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 + + :return: The fully_labeled_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._fully_labeled_replicas @fully_labeled_replicas.setter def fully_labeled_replicas(self, fully_labeled_replicas): - """ - Sets the fully_labeled_replicas of this V1beta2ReplicaSetStatus. - The number of pods that have labels matching the labels of the pod template of the replicaset. + """Sets the fully_labeled_replicas of this V1beta2ReplicaSetStatus. + + The number of pods that have labels matching the labels of the pod template of the replicaset. # noqa: E501 - :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta2ReplicaSetStatus. + :param fully_labeled_replicas: The fully_labeled_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ @@ -144,22 +142,22 @@ def fully_labeled_replicas(self, fully_labeled_replicas): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta2ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Gets the observed_generation of this V1beta2ReplicaSetStatus. # noqa: E501 + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :return: The observed_generation of this V1beta2ReplicaSetStatus. + :return: The observed_generation of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta2ReplicaSetStatus. - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + """Sets the observed_generation of this V1beta2ReplicaSetStatus. + + ObservedGeneration reflects the generation of the most recently observed ReplicaSet. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta2ReplicaSetStatus. + :param observed_generation: The observed_generation of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ @@ -167,22 +165,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1beta2ReplicaSetStatus. - The number of ready replicas for this replica set. + """Gets the ready_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 - :return: The ready_replicas of this V1beta2ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :return: The ready_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1beta2ReplicaSetStatus. - The number of ready replicas for this replica set. + """Sets the ready_replicas of this V1beta2ReplicaSetStatus. - :param ready_replicas: The ready_replicas of this V1beta2ReplicaSetStatus. + The number of ready replicas for this replica set. # noqa: E501 + + :param ready_replicas: The ready_replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ @@ -190,36 +188,34 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1beta2ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Gets the replicas of this V1beta2ReplicaSetStatus. # noqa: E501 + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :return: The replicas of this V1beta2ReplicaSetStatus. + :return: The replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2ReplicaSetStatus. - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """Sets the replicas of this V1beta2ReplicaSetStatus. + + Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller # noqa: E501 - :param replicas: The replicas of this V1beta2ReplicaSetStatus. + :param replicas: The replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -240,28 +236,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ReplicaSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py index 0f540ef4fb..f626319ac0 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2RollingUpdateDaemonSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_unavailable': 'object' } @@ -38,47 +38,43 @@ class V1beta2RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): - """ - V1beta2RollingUpdateDaemonSet - a model defined in Swagger - """ + def __init__(self, max_unavailable=None): # noqa: E501 + """V1beta2RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 self._max_unavailable = None self.discriminator = None if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1beta2RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Gets the max_unavailable of this V1beta2RollingUpdateDaemonSet. # noqa: E501 + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :return: The max_unavailable of this V1beta2RollingUpdateDaemonSet. + :return: The max_unavailable of this V1beta2RollingUpdateDaemonSet. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1beta2RollingUpdateDaemonSet. - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + """Sets the max_unavailable of this V1beta2RollingUpdateDaemonSet. + + The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. # noqa: E501 - :param max_unavailable: The max_unavailable of this V1beta2RollingUpdateDaemonSet. + :param max_unavailable: The max_unavailable of this V1beta2RollingUpdateDaemonSet. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2RollingUpdateDaemonSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_rolling_update_deployment.py b/kubernetes/client/models/v1beta2_rolling_update_deployment.py index 4950e59c0c..acc0f44ee3 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_deployment.py +++ b/kubernetes/client/models/v1beta2_rolling_update_deployment.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2RollingUpdateDeployment(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_surge': 'object', 'max_unavailable': 'object' } @@ -40,38 +40,36 @@ class V1beta2RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): - """ - V1beta2RollingUpdateDeployment - a model defined in Swagger - """ + def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + """V1beta2RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 self._max_surge = None self._max_unavailable = None self.discriminator = None if max_surge is not None: - self.max_surge = max_surge + self.max_surge = max_surge if max_unavailable is not None: - self.max_unavailable = max_unavailable + self.max_unavailable = max_unavailable @property def max_surge(self): - """ - Gets the max_surge of this V1beta2RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Gets the max_surge of this V1beta2RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 - :return: The max_surge of this V1beta2RollingUpdateDeployment. + :return: The max_surge of this V1beta2RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_surge @max_surge.setter def max_surge(self, max_surge): - """ - Sets the max_surge of this V1beta2RollingUpdateDeployment. - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + """Sets the max_surge of this V1beta2RollingUpdateDeployment. - :param max_surge: The max_surge of this V1beta2RollingUpdateDeployment. + The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501 + + :param max_surge: The max_surge of this V1beta2RollingUpdateDeployment. # noqa: E501 :type: object """ @@ -79,34 +77,32 @@ def max_surge(self, max_surge): @property def max_unavailable(self): - """ - Gets the max_unavailable of this V1beta2RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Gets the max_unavailable of this V1beta2RollingUpdateDeployment. # noqa: E501 + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :return: The max_unavailable of this V1beta2RollingUpdateDeployment. + :return: The max_unavailable of this V1beta2RollingUpdateDeployment. # noqa: E501 :rtype: object """ return self._max_unavailable @max_unavailable.setter def max_unavailable(self, max_unavailable): - """ - Sets the max_unavailable of this V1beta2RollingUpdateDeployment. - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + """Sets the max_unavailable of this V1beta2RollingUpdateDeployment. + + The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501 - :param max_unavailable: The max_unavailable of this V1beta2RollingUpdateDeployment. + :param max_unavailable: The max_unavailable of this V1beta2RollingUpdateDeployment. # noqa: E501 :type: object """ self._max_unavailable = max_unavailable def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2RollingUpdateDeployment): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py index 06176eeacf..0aca758712 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2RollingUpdateStatefulSetStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'partition': 'int' } @@ -38,47 +38,43 @@ class V1beta2RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): - """ - V1beta2RollingUpdateStatefulSetStrategy - a model defined in Swagger - """ + def __init__(self, partition=None): # noqa: E501 + """V1beta2RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 self._partition = None self.discriminator = None if partition is not None: - self.partition = partition + self.partition = partition @property def partition(self): - """ - Gets the partition of this V1beta2RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + """Gets the partition of this V1beta2RollingUpdateStatefulSetStrategy. # noqa: E501 + + Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. # noqa: E501 - :return: The partition of this V1beta2RollingUpdateStatefulSetStrategy. + :return: The partition of this V1beta2RollingUpdateStatefulSetStrategy. # noqa: E501 :rtype: int """ return self._partition @partition.setter def partition(self, partition): - """ - Sets the partition of this V1beta2RollingUpdateStatefulSetStrategy. - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + """Sets the partition of this V1beta2RollingUpdateStatefulSetStrategy. + + Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. # noqa: E501 - :param partition: The partition of this V1beta2RollingUpdateStatefulSetStrategy. + :param partition: The partition of this V1beta2RollingUpdateStatefulSetStrategy. # noqa: E501 :type: int """ self._partition = partition def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2RollingUpdateStatefulSetStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_scale.py b/kubernetes/client/models/v1beta2_scale.py index b1ff8f818b..e0f307dd28 100644 --- a/kubernetes/client/models/v1beta2_scale.py +++ b/kubernetes/client/models/v1beta2_scale.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2Scale(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta2Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta2Scale - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta2Scale - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta2Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2Scale. # noqa: E501 - :return: The api_version of this V1beta2Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2Scale. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2Scale. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2Scale. - :param api_version: The api_version of this V1beta2Scale. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2Scale. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta2Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2Scale. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2Scale. + :return: The kind of this V1beta2Scale. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2Scale. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2Scale. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2Scale. + :param kind: The kind of this V1beta2Scale. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """Gets the metadata of this V1beta2Scale. # noqa: E501 + - :return: The metadata of this V1beta2Scale. + :return: The metadata of this V1beta2Scale. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2Scale. - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """Sets the metadata of this V1beta2Scale. + - :param metadata: The metadata of this V1beta2Scale. + :param metadata: The metadata of this V1beta2Scale. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta2Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """Gets the spec of this V1beta2Scale. # noqa: E501 + - :return: The spec of this V1beta2Scale. + :return: The spec of this V1beta2Scale. # noqa: E501 :rtype: V1beta2ScaleSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta2Scale. - defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """Sets the spec of this V1beta2Scale. - :param spec: The spec of this V1beta2Scale. + + :param spec: The spec of this V1beta2Scale. # noqa: E501 :type: V1beta2ScaleSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta2Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + """Gets the status of this V1beta2Scale. # noqa: E501 - :return: The status of this V1beta2Scale. + + :return: The status of this V1beta2Scale. # noqa: E501 :rtype: V1beta2ScaleStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2Scale. - current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + """Sets the status of this V1beta2Scale. - :param status: The status of this V1beta2Scale. + + :param status: The status of this V1beta2Scale. # noqa: E501 :type: V1beta2ScaleStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2Scale): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_scale_spec.py b/kubernetes/client/models/v1beta2_scale_spec.py index 290261942b..ddb3ad6573 100644 --- a/kubernetes/client/models/v1beta2_scale_spec.py +++ b/kubernetes/client/models/v1beta2_scale_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ScaleSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int' } @@ -38,47 +38,43 @@ class V1beta2ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): - """ - V1beta2ScaleSpec - a model defined in Swagger - """ + def __init__(self, replicas=None): # noqa: E501 + """V1beta2ScaleSpec - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self.discriminator = None if replicas is not None: - self.replicas = replicas + self.replicas = replicas @property def replicas(self): - """ - Gets the replicas of this V1beta2ScaleSpec. - desired number of instances for the scaled object. + """Gets the replicas of this V1beta2ScaleSpec. # noqa: E501 + + desired number of instances for the scaled object. # noqa: E501 - :return: The replicas of this V1beta2ScaleSpec. + :return: The replicas of this V1beta2ScaleSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2ScaleSpec. - desired number of instances for the scaled object. + """Sets the replicas of this V1beta2ScaleSpec. + + desired number of instances for the scaled object. # noqa: E501 - :param replicas: The replicas of this V1beta2ScaleSpec. + :param replicas: The replicas of this V1beta2ScaleSpec. # noqa: E501 :type: int """ self._replicas = replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -99,28 +95,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ScaleSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_scale_status.py b/kubernetes/client/models/v1beta2_scale_status.py index a88c1c6510..cc638f0dfc 100644 --- a/kubernetes/client/models/v1beta2_scale_status.py +++ b/kubernetes/client/models/v1beta2_scale_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2ScaleStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'replicas': 'int', 'selector': 'dict(str, str)', 'target_selector': 'str' @@ -42,10 +42,8 @@ class V1beta2ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): - """ - V1beta2ScaleStatus - a model defined in Swagger - """ + def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + """V1beta2ScaleStatus - a model defined in OpenAPI""" # noqa: E501 self._replicas = None self._selector = None @@ -54,53 +52,53 @@ def __init__(self, replicas=None, selector=None, target_selector=None): self.replicas = replicas if selector is not None: - self.selector = selector + self.selector = selector if target_selector is not None: - self.target_selector = target_selector + self.target_selector = target_selector @property def replicas(self): - """ - Gets the replicas of this V1beta2ScaleStatus. - actual number of observed instances of the scaled object. + """Gets the replicas of this V1beta2ScaleStatus. # noqa: E501 - :return: The replicas of this V1beta2ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :return: The replicas of this V1beta2ScaleStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2ScaleStatus. - actual number of observed instances of the scaled object. + """Sets the replicas of this V1beta2ScaleStatus. - :param replicas: The replicas of this V1beta2ScaleStatus. + actual number of observed instances of the scaled object. # noqa: E501 + + :param replicas: The replicas of this V1beta2ScaleStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def selector(self): - """ - Gets the selector of this V1beta2ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Gets the selector of this V1beta2ScaleStatus. # noqa: E501 - :return: The selector of this V1beta2ScaleStatus. + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 + + :return: The selector of this V1beta2ScaleStatus. # noqa: E501 :rtype: dict(str, str) """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta2ScaleStatus. - label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + """Sets the selector of this V1beta2ScaleStatus. + + label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors # noqa: E501 - :param selector: The selector of this V1beta2ScaleStatus. + :param selector: The selector of this V1beta2ScaleStatus. # noqa: E501 :type: dict(str, str) """ @@ -108,34 +106,32 @@ def selector(self, selector): @property def target_selector(self): - """ - Gets the target_selector of this V1beta2ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the target_selector of this V1beta2ScaleStatus. # noqa: E501 + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :return: The target_selector of this V1beta2ScaleStatus. + :return: The target_selector of this V1beta2ScaleStatus. # noqa: E501 :rtype: str """ return self._target_selector @target_selector.setter def target_selector(self, target_selector): - """ - Sets the target_selector of this V1beta2ScaleStatus. - label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the target_selector of this V1beta2ScaleStatus. + + label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors # noqa: E501 - :param target_selector: The target_selector of this V1beta2ScaleStatus. + :param target_selector: The target_selector of this V1beta2ScaleStatus. # noqa: E501 :type: str """ self._target_selector = target_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2ScaleStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set.py b/kubernetes/client/models/v1beta2_stateful_set.py index 0296caa2d7..f9552a95df 100644 --- a/kubernetes/client/models/v1beta2_stateful_set.py +++ b/kubernetes/client/models/v1beta2_stateful_set.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSet(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V1beta2StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V1beta2StatefulSet - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V1beta2StatefulSet - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V1beta2StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2StatefulSet. # noqa: E501 - :return: The api_version of this V1beta2StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V1beta2StatefulSet. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2StatefulSet. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2StatefulSet. - :param api_version: The api_version of this V1beta2StatefulSet. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V1beta2StatefulSet. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V1beta2StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2StatefulSet. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2StatefulSet. + :return: The kind of this V1beta2StatefulSet. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2StatefulSet. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2StatefulSet. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2StatefulSet. + :param kind: The kind of this V1beta2StatefulSet. # noqa: E501 :type: str """ @@ -117,20 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2StatefulSet. + """Gets the metadata of this V1beta2StatefulSet. # noqa: E501 + - :return: The metadata of this V1beta2StatefulSet. + :return: The metadata of this V1beta2StatefulSet. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2StatefulSet. + """Sets the metadata of this V1beta2StatefulSet. + - :param metadata: The metadata of this V1beta2StatefulSet. + :param metadata: The metadata of this V1beta2StatefulSet. # noqa: E501 :type: V1ObjectMeta """ @@ -138,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V1beta2StatefulSet. - Spec defines the desired identities of pods in this set. + """Gets the spec of this V1beta2StatefulSet. # noqa: E501 + - :return: The spec of this V1beta2StatefulSet. + :return: The spec of this V1beta2StatefulSet. # noqa: E501 :rtype: V1beta2StatefulSetSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V1beta2StatefulSet. - Spec defines the desired identities of pods in this set. + """Sets the spec of this V1beta2StatefulSet. - :param spec: The spec of this V1beta2StatefulSet. + + :param spec: The spec of this V1beta2StatefulSet. # noqa: E501 :type: V1beta2StatefulSetSpec """ @@ -161,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V1beta2StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Gets the status of this V1beta2StatefulSet. # noqa: E501 - :return: The status of this V1beta2StatefulSet. + + :return: The status of this V1beta2StatefulSet. # noqa: E501 :rtype: V1beta2StatefulSetStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2StatefulSet. - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """Sets the status of this V1beta2StatefulSet. - :param status: The status of this V1beta2StatefulSet. + + :param status: The status of this V1beta2StatefulSet. # noqa: E501 :type: V1beta2StatefulSetStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -209,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSet): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set_condition.py b/kubernetes/client/models/v1beta2_stateful_set_condition.py index 74acec91d8..28bcdaa06f 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_condition.py +++ b/kubernetes/client/models/v1beta2_stateful_set_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSetCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V1beta2StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V1beta2StatefulSetCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V1beta2StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V1beta2StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Gets the last_transition_time of this V1beta2StatefulSetCondition. # noqa: E501 - :return: The last_transition_time of this V1beta2StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :return: The last_transition_time of this V1beta2StatefulSetCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V1beta2StatefulSetCondition. - Last time the condition transitioned from one status to another. + """Sets the last_transition_time of this V1beta2StatefulSetCondition. - :param last_transition_time: The last_transition_time of this V1beta2StatefulSetCondition. + Last time the condition transitioned from one status to another. # noqa: E501 + + :param last_transition_time: The last_transition_time of this V1beta2StatefulSetCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V1beta2StatefulSetCondition. - A human readable message indicating details about the transition. + """Gets the message of this V1beta2StatefulSetCondition. # noqa: E501 + + A human readable message indicating details about the transition. # noqa: E501 - :return: The message of this V1beta2StatefulSetCondition. + :return: The message of this V1beta2StatefulSetCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V1beta2StatefulSetCondition. - A human readable message indicating details about the transition. + """Sets the message of this V1beta2StatefulSetCondition. + + A human readable message indicating details about the transition. # noqa: E501 - :param message: The message of this V1beta2StatefulSetCondition. + :param message: The message of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V1beta2StatefulSetCondition. - The reason for the condition's last transition. + """Gets the reason of this V1beta2StatefulSetCondition. # noqa: E501 + + The reason for the condition's last transition. # noqa: E501 - :return: The reason of this V1beta2StatefulSetCondition. + :return: The reason of this V1beta2StatefulSetCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V1beta2StatefulSetCondition. - The reason for the condition's last transition. + """Sets the reason of this V1beta2StatefulSetCondition. + + The reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V1beta2StatefulSetCondition. + :param reason: The reason of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V1beta2StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Gets the status of this V1beta2StatefulSetCondition. # noqa: E501 + + Status of the condition, one of True, False, Unknown. # noqa: E501 - :return: The status of this V1beta2StatefulSetCondition. + :return: The status of this V1beta2StatefulSetCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V1beta2StatefulSetCondition. - Status of the condition, one of True, False, Unknown. + """Sets the status of this V1beta2StatefulSetCondition. - :param status: The status of this V1beta2StatefulSetCondition. + Status of the condition, one of True, False, Unknown. # noqa: E501 + + :param status: The status of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V1beta2StatefulSetCondition. - Type of statefulset condition. + """Gets the type of this V1beta2StatefulSetCondition. # noqa: E501 - :return: The type of this V1beta2StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :return: The type of this V1beta2StatefulSetCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2StatefulSetCondition. - Type of statefulset condition. + """Sets the type of this V1beta2StatefulSetCondition. - :param type: The type of this V1beta2StatefulSetCondition. + Type of statefulset condition. # noqa: E501 + + :param type: The type of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSetCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set_list.py b/kubernetes/client/models/v1beta2_stateful_set_list.py index 7ba2c321d6..9ae1614876 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_list.py +++ b/kubernetes/client/models/v1beta2_stateful_set_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSetList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V1beta2StatefulSet]', 'kind': 'str', @@ -44,10 +44,8 @@ class V1beta2StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V1beta2StatefulSetList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V1beta2StatefulSetList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V1beta2StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V1beta2StatefulSetList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V1beta2StatefulSetList. + :return: The api_version of this V1beta2StatefulSetList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V1beta2StatefulSetList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V1beta2StatefulSetList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V1beta2StatefulSetList. + :param api_version: The api_version of this V1beta2StatefulSetList. # noqa: E501 :type: str """ @@ -88,45 +86,45 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V1beta2StatefulSetList. + """Gets the items of this V1beta2StatefulSetList. # noqa: E501 + - :return: The items of this V1beta2StatefulSetList. + :return: The items of this V1beta2StatefulSetList. # noqa: E501 :rtype: list[V1beta2StatefulSet] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V1beta2StatefulSetList. + """Sets the items of this V1beta2StatefulSetList. + - :param items: The items of this V1beta2StatefulSetList. + :param items: The items of this V1beta2StatefulSetList. # noqa: E501 :type: list[V1beta2StatefulSet] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V1beta2StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V1beta2StatefulSetList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V1beta2StatefulSetList. + :return: The kind of this V1beta2StatefulSetList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V1beta2StatefulSetList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V1beta2StatefulSetList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V1beta2StatefulSetList. + :param kind: The kind of this V1beta2StatefulSetList. # noqa: E501 :type: str """ @@ -134,32 +132,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V1beta2StatefulSetList. + """Gets the metadata of this V1beta2StatefulSetList. # noqa: E501 + - :return: The metadata of this V1beta2StatefulSetList. + :return: The metadata of this V1beta2StatefulSetList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V1beta2StatefulSetList. + """Sets the metadata of this V1beta2StatefulSetList. + - :param metadata: The metadata of this V1beta2StatefulSetList. + :param metadata: The metadata of this V1beta2StatefulSetList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,28 +176,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSetList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set_spec.py b/kubernetes/client/models/v1beta2_stateful_set_spec.py index 8ab5aa03ec..0ebf9c1975 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta2_stateful_set_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSetSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'pod_management_policy': 'str', 'replicas': 'int', 'revision_history_limit': 'int', @@ -52,10 +52,8 @@ class V1beta2StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): - """ - V1beta2StatefulSetSpec - a model defined in Swagger - """ + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + """V1beta2StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 self._pod_management_policy = None self._replicas = None @@ -68,37 +66,37 @@ def __init__(self, pod_management_policy=None, replicas=None, revision_history_l self.discriminator = None if pod_management_policy is not None: - self.pod_management_policy = pod_management_policy + self.pod_management_policy = pod_management_policy if replicas is not None: - self.replicas = replicas + self.replicas = replicas if revision_history_limit is not None: - self.revision_history_limit = revision_history_limit + self.revision_history_limit = revision_history_limit self.selector = selector self.service_name = service_name self.template = template if update_strategy is not None: - self.update_strategy = update_strategy + self.update_strategy = update_strategy if volume_claim_templates is not None: - self.volume_claim_templates = volume_claim_templates + self.volume_claim_templates = volume_claim_templates @property def pod_management_policy(self): - """ - Gets the pod_management_policy of this V1beta2StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Gets the pod_management_policy of this V1beta2StatefulSetSpec. # noqa: E501 + + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 - :return: The pod_management_policy of this V1beta2StatefulSetSpec. + :return: The pod_management_policy of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: str """ return self._pod_management_policy @pod_management_policy.setter def pod_management_policy(self, pod_management_policy): - """ - Sets the pod_management_policy of this V1beta2StatefulSetSpec. - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + """Sets the pod_management_policy of this V1beta2StatefulSetSpec. - :param pod_management_policy: The pod_management_policy of this V1beta2StatefulSetSpec. + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. # noqa: E501 + + :param pod_management_policy: The pod_management_policy of this V1beta2StatefulSetSpec. # noqa: E501 :type: str """ @@ -106,22 +104,22 @@ def pod_management_policy(self, pod_management_policy): @property def replicas(self): - """ - Gets the replicas of this V1beta2StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Gets the replicas of this V1beta2StatefulSetSpec. # noqa: E501 + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :return: The replicas of this V1beta2StatefulSetSpec. + :return: The replicas of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2StatefulSetSpec. - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + """Sets the replicas of this V1beta2StatefulSetSpec. + + replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. # noqa: E501 - :param replicas: The replicas of this V1beta2StatefulSetSpec. + :param replicas: The replicas of this V1beta2StatefulSetSpec. # noqa: E501 :type: int """ @@ -129,22 +127,22 @@ def replicas(self, replicas): @property def revision_history_limit(self): - """ - Gets the revision_history_limit of this V1beta2StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Gets the revision_history_limit of this V1beta2StatefulSetSpec. # noqa: E501 - :return: The revision_history_limit of this V1beta2StatefulSetSpec. + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 + + :return: The revision_history_limit of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: int """ return self._revision_history_limit @revision_history_limit.setter def revision_history_limit(self, revision_history_limit): - """ - Sets the revision_history_limit of this V1beta2StatefulSetSpec. - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + """Sets the revision_history_limit of this V1beta2StatefulSetSpec. + + revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. # noqa: E501 - :param revision_history_limit: The revision_history_limit of this V1beta2StatefulSetSpec. + :param revision_history_limit: The revision_history_limit of this V1beta2StatefulSetSpec. # noqa: E501 :type: int """ @@ -152,97 +150,91 @@ def revision_history_limit(self, revision_history_limit): @property def selector(self): - """ - Gets the selector of this V1beta2StatefulSetSpec. - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Gets the selector of this V1beta2StatefulSetSpec. # noqa: E501 + - :return: The selector of this V1beta2StatefulSetSpec. + :return: The selector of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V1beta2StatefulSetSpec. - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + """Sets the selector of this V1beta2StatefulSetSpec. - :param selector: The selector of this V1beta2StatefulSetSpec. + + :param selector: The selector of this V1beta2StatefulSetSpec. # noqa: E501 :type: V1LabelSelector """ if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") + raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @property def service_name(self): - """ - Gets the service_name of this V1beta2StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Gets the service_name of this V1beta2StatefulSetSpec. # noqa: E501 + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :return: The service_name of this V1beta2StatefulSetSpec. + :return: The service_name of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: str """ return self._service_name @service_name.setter def service_name(self, service_name): - """ - Sets the service_name of this V1beta2StatefulSetSpec. - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. + """Sets the service_name of this V1beta2StatefulSetSpec. + + serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. # noqa: E501 - :param service_name: The service_name of this V1beta2StatefulSetSpec. + :param service_name: The service_name of this V1beta2StatefulSetSpec. # noqa: E501 :type: str """ if service_name is None: - raise ValueError("Invalid value for `service_name`, must not be `None`") + raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @property def template(self): - """ - Gets the template of this V1beta2StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Gets the template of this V1beta2StatefulSetSpec. # noqa: E501 - :return: The template of this V1beta2StatefulSetSpec. + + :return: The template of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: V1PodTemplateSpec """ return self._template @template.setter def template(self, template): - """ - Sets the template of this V1beta2StatefulSetSpec. - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + """Sets the template of this V1beta2StatefulSetSpec. + - :param template: The template of this V1beta2StatefulSetSpec. + :param template: The template of this V1beta2StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ if template is None: - raise ValueError("Invalid value for `template`, must not be `None`") + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def update_strategy(self): - """ - Gets the update_strategy of this V1beta2StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Gets the update_strategy of this V1beta2StatefulSetSpec. # noqa: E501 + - :return: The update_strategy of this V1beta2StatefulSetSpec. + :return: The update_strategy of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: V1beta2StatefulSetUpdateStrategy """ return self._update_strategy @update_strategy.setter def update_strategy(self, update_strategy): - """ - Sets the update_strategy of this V1beta2StatefulSetSpec. - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + """Sets the update_strategy of this V1beta2StatefulSetSpec. - :param update_strategy: The update_strategy of this V1beta2StatefulSetSpec. + + :param update_strategy: The update_strategy of this V1beta2StatefulSetSpec. # noqa: E501 :type: V1beta2StatefulSetUpdateStrategy """ @@ -250,34 +242,32 @@ def update_strategy(self, update_strategy): @property def volume_claim_templates(self): - """ - Gets the volume_claim_templates of this V1beta2StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Gets the volume_claim_templates of this V1beta2StatefulSetSpec. # noqa: E501 + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :return: The volume_claim_templates of this V1beta2StatefulSetSpec. + :return: The volume_claim_templates of this V1beta2StatefulSetSpec. # noqa: E501 :rtype: list[V1PersistentVolumeClaim] """ return self._volume_claim_templates @volume_claim_templates.setter def volume_claim_templates(self, volume_claim_templates): - """ - Sets the volume_claim_templates of this V1beta2StatefulSetSpec. - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + """Sets the volume_claim_templates of this V1beta2StatefulSetSpec. + + volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. # noqa: E501 - :param volume_claim_templates: The volume_claim_templates of this V1beta2StatefulSetSpec. + :param volume_claim_templates: The volume_claim_templates of this V1beta2StatefulSetSpec. # noqa: E501 :type: list[V1PersistentVolumeClaim] """ self._volume_claim_templates = volume_claim_templates def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -298,28 +288,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSetSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set_status.py b/kubernetes/client/models/v1beta2_stateful_set_status.py index 2886cdc976..c1b9c446c1 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_status.py +++ b/kubernetes/client/models/v1beta2_stateful_set_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSetStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'collision_count': 'int', 'conditions': 'list[V1beta2StatefulSetCondition]', 'current_replicas': 'int', @@ -54,10 +54,8 @@ class V1beta2StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): - """ - V1beta2StatefulSetStatus - a model defined in Swagger - """ + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + """V1beta2StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 self._collision_count = None self._conditions = None @@ -71,41 +69,41 @@ def __init__(self, collision_count=None, conditions=None, current_replicas=None, self.discriminator = None if collision_count is not None: - self.collision_count = collision_count + self.collision_count = collision_count if conditions is not None: - self.conditions = conditions + self.conditions = conditions if current_replicas is not None: - self.current_replicas = current_replicas + self.current_replicas = current_replicas if current_revision is not None: - self.current_revision = current_revision + self.current_revision = current_revision if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation if ready_replicas is not None: - self.ready_replicas = ready_replicas + self.ready_replicas = ready_replicas self.replicas = replicas if update_revision is not None: - self.update_revision = update_revision + self.update_revision = update_revision if updated_replicas is not None: - self.updated_replicas = updated_replicas + self.updated_replicas = updated_replicas @property def collision_count(self): - """ - Gets the collision_count of this V1beta2StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Gets the collision_count of this V1beta2StatefulSetStatus. # noqa: E501 - :return: The collision_count of this V1beta2StatefulSetStatus. + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 + + :return: The collision_count of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._collision_count @collision_count.setter def collision_count(self, collision_count): - """ - Sets the collision_count of this V1beta2StatefulSetStatus. - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + """Sets the collision_count of this V1beta2StatefulSetStatus. + + collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. # noqa: E501 - :param collision_count: The collision_count of this V1beta2StatefulSetStatus. + :param collision_count: The collision_count of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ @@ -113,22 +111,22 @@ def collision_count(self, collision_count): @property def conditions(self): - """ - Gets the conditions of this V1beta2StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Gets the conditions of this V1beta2StatefulSetStatus. # noqa: E501 + + Represents the latest available observations of a statefulset's current state. # noqa: E501 - :return: The conditions of this V1beta2StatefulSetStatus. + :return: The conditions of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: list[V1beta2StatefulSetCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V1beta2StatefulSetStatus. - Represents the latest available observations of a statefulset's current state. + """Sets the conditions of this V1beta2StatefulSetStatus. - :param conditions: The conditions of this V1beta2StatefulSetStatus. + Represents the latest available observations of a statefulset's current state. # noqa: E501 + + :param conditions: The conditions of this V1beta2StatefulSetStatus. # noqa: E501 :type: list[V1beta2StatefulSetCondition] """ @@ -136,22 +134,22 @@ def conditions(self, conditions): @property def current_replicas(self): - """ - Gets the current_replicas of this V1beta2StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Gets the current_replicas of this V1beta2StatefulSetStatus. # noqa: E501 - :return: The current_replicas of this V1beta2StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :return: The current_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V1beta2StatefulSetStatus. - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + """Sets the current_replicas of this V1beta2StatefulSetStatus. - :param current_replicas: The current_replicas of this V1beta2StatefulSetStatus. + currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. # noqa: E501 + + :param current_replicas: The current_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ @@ -159,22 +157,22 @@ def current_replicas(self, current_replicas): @property def current_revision(self): - """ - Gets the current_revision of this V1beta2StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Gets the current_revision of this V1beta2StatefulSetStatus. # noqa: E501 + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :return: The current_revision of this V1beta2StatefulSetStatus. + :return: The current_revision of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: str """ return self._current_revision @current_revision.setter def current_revision(self, current_revision): - """ - Sets the current_revision of this V1beta2StatefulSetStatus. - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + """Sets the current_revision of this V1beta2StatefulSetStatus. + + currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). # noqa: E501 - :param current_revision: The current_revision of this V1beta2StatefulSetStatus. + :param current_revision: The current_revision of this V1beta2StatefulSetStatus. # noqa: E501 :type: str """ @@ -182,22 +180,22 @@ def current_revision(self, current_revision): @property def observed_generation(self): - """ - Gets the observed_generation of this V1beta2StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Gets the observed_generation of this V1beta2StatefulSetStatus. # noqa: E501 - :return: The observed_generation of this V1beta2StatefulSetStatus. + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 + + :return: The observed_generation of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V1beta2StatefulSetStatus. - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + """Sets the observed_generation of this V1beta2StatefulSetStatus. + + observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. # noqa: E501 - :param observed_generation: The observed_generation of this V1beta2StatefulSetStatus. + :param observed_generation: The observed_generation of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ @@ -205,22 +203,22 @@ def observed_generation(self, observed_generation): @property def ready_replicas(self): - """ - Gets the ready_replicas of this V1beta2StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Gets the ready_replicas of this V1beta2StatefulSetStatus. # noqa: E501 + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :return: The ready_replicas of this V1beta2StatefulSetStatus. + :return: The ready_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._ready_replicas @ready_replicas.setter def ready_replicas(self, ready_replicas): - """ - Sets the ready_replicas of this V1beta2StatefulSetStatus. - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + """Sets the ready_replicas of this V1beta2StatefulSetStatus. + + readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. # noqa: E501 - :param ready_replicas: The ready_replicas of this V1beta2StatefulSetStatus. + :param ready_replicas: The ready_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ @@ -228,47 +226,47 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): - """ - Gets the replicas of this V1beta2StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Gets the replicas of this V1beta2StatefulSetStatus. # noqa: E501 + + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 - :return: The replicas of this V1beta2StatefulSetStatus. + :return: The replicas of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._replicas @replicas.setter def replicas(self, replicas): - """ - Sets the replicas of this V1beta2StatefulSetStatus. - replicas is the number of Pods created by the StatefulSet controller. + """Sets the replicas of this V1beta2StatefulSetStatus. - :param replicas: The replicas of this V1beta2StatefulSetStatus. + replicas is the number of Pods created by the StatefulSet controller. # noqa: E501 + + :param replicas: The replicas of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ if replicas is None: - raise ValueError("Invalid value for `replicas`, must not be `None`") + raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @property def update_revision(self): - """ - Gets the update_revision of this V1beta2StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Gets the update_revision of this V1beta2StatefulSetStatus. # noqa: E501 + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :return: The update_revision of this V1beta2StatefulSetStatus. + :return: The update_revision of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: str """ return self._update_revision @update_revision.setter def update_revision(self, update_revision): - """ - Sets the update_revision of this V1beta2StatefulSetStatus. - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + """Sets the update_revision of this V1beta2StatefulSetStatus. + + updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) # noqa: E501 - :param update_revision: The update_revision of this V1beta2StatefulSetStatus. + :param update_revision: The update_revision of this V1beta2StatefulSetStatus. # noqa: E501 :type: str """ @@ -276,34 +274,32 @@ def update_revision(self, update_revision): @property def updated_replicas(self): - """ - Gets the updated_replicas of this V1beta2StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Gets the updated_replicas of this V1beta2StatefulSetStatus. # noqa: E501 - :return: The updated_replicas of this V1beta2StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :return: The updated_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :rtype: int """ return self._updated_replicas @updated_replicas.setter def updated_replicas(self, updated_replicas): - """ - Sets the updated_replicas of this V1beta2StatefulSetStatus. - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """Sets the updated_replicas of this V1beta2StatefulSetStatus. - :param updated_replicas: The updated_replicas of this V1beta2StatefulSetStatus. + updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. # noqa: E501 + + :param updated_replicas: The updated_replicas of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ self._updated_replicas = updated_replicas def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,28 +320,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSetStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py b/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py index 7315f5f461..b80d33d116 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V1beta2StatefulSetUpdateStrategy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'rolling_update': 'V1beta2RollingUpdateStatefulSetStrategy', 'type': 'str' } @@ -40,38 +40,34 @@ class V1beta2StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): - """ - V1beta2StatefulSetUpdateStrategy - a model defined in Swagger - """ + def __init__(self, rolling_update=None, type=None): # noqa: E501 + """V1beta2StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 self._rolling_update = None self._type = None self.discriminator = None if rolling_update is not None: - self.rolling_update = rolling_update + self.rolling_update = rolling_update if type is not None: - self.type = type + self.type = type @property def rolling_update(self): - """ - Gets the rolling_update of this V1beta2StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Gets the rolling_update of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 + - :return: The rolling_update of this V1beta2StatefulSetUpdateStrategy. + :return: The rolling_update of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 :rtype: V1beta2RollingUpdateStatefulSetStrategy """ return self._rolling_update @rolling_update.setter def rolling_update(self, rolling_update): - """ - Sets the rolling_update of this V1beta2StatefulSetUpdateStrategy. - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + """Sets the rolling_update of this V1beta2StatefulSetUpdateStrategy. - :param rolling_update: The rolling_update of this V1beta2StatefulSetUpdateStrategy. + + :param rolling_update: The rolling_update of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 :type: V1beta2RollingUpdateStatefulSetStrategy """ @@ -79,34 +75,32 @@ def rolling_update(self, rolling_update): @property def type(self): - """ - Gets the type of this V1beta2StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + """Gets the type of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 - :return: The type of this V1beta2StatefulSetUpdateStrategy. + :return: The type of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V1beta2StatefulSetUpdateStrategy. - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + """Sets the type of this V1beta2StatefulSetUpdateStrategy. + + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. # noqa: E501 - :param type: The type of this V1beta2StatefulSetUpdateStrategy. + :param type: The type of this V1beta2StatefulSetUpdateStrategy. # noqa: E501 :type: str """ self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V1beta2StatefulSetUpdateStrategy): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2alpha1_cron_job.py b/kubernetes/client/models/v2alpha1_cron_job.py index 98c656d5e4..6135d8992b 100644 --- a/kubernetes/client/models/v2alpha1_cron_job.py +++ b/kubernetes/client/models/v2alpha1_cron_job.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2alpha1CronJob(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V2alpha1CronJob(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V2alpha1CronJob - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V2alpha1CronJob - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V2alpha1CronJob. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2alpha1CronJob. # noqa: E501 - :return: The api_version of this V2alpha1CronJob. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V2alpha1CronJob. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2alpha1CronJob. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2alpha1CronJob. - :param api_version: The api_version of this V2alpha1CronJob. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V2alpha1CronJob. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V2alpha1CronJob. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2alpha1CronJob. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2alpha1CronJob. + :return: The kind of this V2alpha1CronJob. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2alpha1CronJob. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2alpha1CronJob. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2alpha1CronJob. + :param kind: The kind of this V2alpha1CronJob. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2alpha1CronJob. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V2alpha1CronJob. # noqa: E501 + - :return: The metadata of this V2alpha1CronJob. + :return: The metadata of this V2alpha1CronJob. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2alpha1CronJob. - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V2alpha1CronJob. + - :param metadata: The metadata of this V2alpha1CronJob. + :param metadata: The metadata of this V2alpha1CronJob. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V2alpha1CronJob. - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V2alpha1CronJob. # noqa: E501 + - :return: The spec of this V2alpha1CronJob. + :return: The spec of this V2alpha1CronJob. # noqa: E501 :rtype: V2alpha1CronJobSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V2alpha1CronJob. - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V2alpha1CronJob. - :param spec: The spec of this V2alpha1CronJob. + + :param spec: The spec of this V2alpha1CronJob. # noqa: E501 :type: V2alpha1CronJobSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V2alpha1CronJob. - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the status of this V2alpha1CronJob. # noqa: E501 - :return: The status of this V2alpha1CronJob. + + :return: The status of this V2alpha1CronJob. # noqa: E501 :rtype: V2alpha1CronJobStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V2alpha1CronJob. - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the status of this V2alpha1CronJob. - :param status: The status of this V2alpha1CronJob. + + :param status: The status of this V2alpha1CronJob. # noqa: E501 :type: V2alpha1CronJobStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2alpha1CronJob): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2alpha1_cron_job_list.py b/kubernetes/client/models/v2alpha1_cron_job_list.py index 7efdb14321..a5aa489964 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_list.py +++ b/kubernetes/client/models/v2alpha1_cron_job_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2alpha1CronJobList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V2alpha1CronJob]', 'kind': 'str', @@ -44,10 +44,8 @@ class V2alpha1CronJobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V2alpha1CronJobList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V2alpha1CronJobList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V2alpha1CronJobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2alpha1CronJobList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V2alpha1CronJobList. + :return: The api_version of this V2alpha1CronJobList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2alpha1CronJobList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2alpha1CronJobList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V2alpha1CronJobList. + :param api_version: The api_version of this V2alpha1CronJobList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V2alpha1CronJobList. - items is the list of CronJobs. + """Gets the items of this V2alpha1CronJobList. # noqa: E501 + + items is the list of CronJobs. # noqa: E501 - :return: The items of this V2alpha1CronJobList. + :return: The items of this V2alpha1CronJobList. # noqa: E501 :rtype: list[V2alpha1CronJob] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V2alpha1CronJobList. - items is the list of CronJobs. + """Sets the items of this V2alpha1CronJobList. + + items is the list of CronJobs. # noqa: E501 - :param items: The items of this V2alpha1CronJobList. + :param items: The items of this V2alpha1CronJobList. # noqa: E501 :type: list[V2alpha1CronJob] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V2alpha1CronJobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2alpha1CronJobList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2alpha1CronJobList. + :return: The kind of this V2alpha1CronJobList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2alpha1CronJobList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2alpha1CronJobList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2alpha1CronJobList. + :param kind: The kind of this V2alpha1CronJobList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2alpha1CronJobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V2alpha1CronJobList. # noqa: E501 + - :return: The metadata of this V2alpha1CronJobList. + :return: The metadata of this V2alpha1CronJobList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2alpha1CronJobList. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V2alpha1CronJobList. + - :param metadata: The metadata of this V2alpha1CronJobList. + :param metadata: The metadata of this V2alpha1CronJobList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2alpha1CronJobList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2alpha1_cron_job_spec.py b/kubernetes/client/models/v2alpha1_cron_job_spec.py index 1cac5c30a9..eb795a4451 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_spec.py +++ b/kubernetes/client/models/v2alpha1_cron_job_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2alpha1CronJobSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'concurrency_policy': 'str', 'failed_jobs_history_limit': 'int', 'job_template': 'V2alpha1JobTemplateSpec', @@ -50,10 +50,8 @@ class V2alpha1CronJobSpec(object): 'suspend': 'suspend' } - def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): - """ - V2alpha1CronJobSpec - a model defined in Swagger - """ + def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): # noqa: E501 + """V2alpha1CronJobSpec - a model defined in OpenAPI""" # noqa: E501 self._concurrency_policy = None self._failed_jobs_history_limit = None @@ -65,36 +63,36 @@ def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_ self.discriminator = None if concurrency_policy is not None: - self.concurrency_policy = concurrency_policy + self.concurrency_policy = concurrency_policy if failed_jobs_history_limit is not None: - self.failed_jobs_history_limit = failed_jobs_history_limit + self.failed_jobs_history_limit = failed_jobs_history_limit self.job_template = job_template self.schedule = schedule if starting_deadline_seconds is not None: - self.starting_deadline_seconds = starting_deadline_seconds + self.starting_deadline_seconds = starting_deadline_seconds if successful_jobs_history_limit is not None: - self.successful_jobs_history_limit = successful_jobs_history_limit + self.successful_jobs_history_limit = successful_jobs_history_limit if suspend is not None: - self.suspend = suspend + self.suspend = suspend @property def concurrency_policy(self): - """ - Gets the concurrency_policy of this V2alpha1CronJobSpec. - Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one + """Gets the concurrency_policy of this V2alpha1CronJobSpec. # noqa: E501 + + Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501 - :return: The concurrency_policy of this V2alpha1CronJobSpec. + :return: The concurrency_policy of this V2alpha1CronJobSpec. # noqa: E501 :rtype: str """ return self._concurrency_policy @concurrency_policy.setter def concurrency_policy(self, concurrency_policy): - """ - Sets the concurrency_policy of this V2alpha1CronJobSpec. - Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one + """Sets the concurrency_policy of this V2alpha1CronJobSpec. - :param concurrency_policy: The concurrency_policy of this V2alpha1CronJobSpec. + Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501 + + :param concurrency_policy: The concurrency_policy of this V2alpha1CronJobSpec. # noqa: E501 :type: str """ @@ -102,22 +100,22 @@ def concurrency_policy(self, concurrency_policy): @property def failed_jobs_history_limit(self): - """ - Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + """Gets the failed_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 - :return: The failed_jobs_history_limit of this V2alpha1CronJobSpec. + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. # noqa: E501 + + :return: The failed_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 :rtype: int """ return self._failed_jobs_history_limit @failed_jobs_history_limit.setter def failed_jobs_history_limit(self, failed_jobs_history_limit): - """ - Sets the failed_jobs_history_limit of this V2alpha1CronJobSpec. - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + """Sets the failed_jobs_history_limit of this V2alpha1CronJobSpec. + + The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. # noqa: E501 - :param failed_jobs_history_limit: The failed_jobs_history_limit of this V2alpha1CronJobSpec. + :param failed_jobs_history_limit: The failed_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 :type: int """ @@ -125,72 +123,70 @@ def failed_jobs_history_limit(self, failed_jobs_history_limit): @property def job_template(self): - """ - Gets the job_template of this V2alpha1CronJobSpec. - Specifies the job that will be created when executing a CronJob. + """Gets the job_template of this V2alpha1CronJobSpec. # noqa: E501 + - :return: The job_template of this V2alpha1CronJobSpec. + :return: The job_template of this V2alpha1CronJobSpec. # noqa: E501 :rtype: V2alpha1JobTemplateSpec """ return self._job_template @job_template.setter def job_template(self, job_template): - """ - Sets the job_template of this V2alpha1CronJobSpec. - Specifies the job that will be created when executing a CronJob. + """Sets the job_template of this V2alpha1CronJobSpec. - :param job_template: The job_template of this V2alpha1CronJobSpec. + + :param job_template: The job_template of this V2alpha1CronJobSpec. # noqa: E501 :type: V2alpha1JobTemplateSpec """ if job_template is None: - raise ValueError("Invalid value for `job_template`, must not be `None`") + raise ValueError("Invalid value for `job_template`, must not be `None`") # noqa: E501 self._job_template = job_template @property def schedule(self): - """ - Gets the schedule of this V2alpha1CronJobSpec. - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + """Gets the schedule of this V2alpha1CronJobSpec. # noqa: E501 + + The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501 - :return: The schedule of this V2alpha1CronJobSpec. + :return: The schedule of this V2alpha1CronJobSpec. # noqa: E501 :rtype: str """ return self._schedule @schedule.setter def schedule(self, schedule): - """ - Sets the schedule of this V2alpha1CronJobSpec. - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + """Sets the schedule of this V2alpha1CronJobSpec. + + The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. # noqa: E501 - :param schedule: The schedule of this V2alpha1CronJobSpec. + :param schedule: The schedule of this V2alpha1CronJobSpec. # noqa: E501 :type: str """ if schedule is None: - raise ValueError("Invalid value for `schedule`, must not be `None`") + raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501 self._schedule = schedule @property def starting_deadline_seconds(self): - """ - Gets the starting_deadline_seconds of this V2alpha1CronJobSpec. - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + """Gets the starting_deadline_seconds of this V2alpha1CronJobSpec. # noqa: E501 + + Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. # noqa: E501 - :return: The starting_deadline_seconds of this V2alpha1CronJobSpec. + :return: The starting_deadline_seconds of this V2alpha1CronJobSpec. # noqa: E501 :rtype: int """ return self._starting_deadline_seconds @starting_deadline_seconds.setter def starting_deadline_seconds(self, starting_deadline_seconds): - """ - Sets the starting_deadline_seconds of this V2alpha1CronJobSpec. - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + """Sets the starting_deadline_seconds of this V2alpha1CronJobSpec. - :param starting_deadline_seconds: The starting_deadline_seconds of this V2alpha1CronJobSpec. + Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. # noqa: E501 + + :param starting_deadline_seconds: The starting_deadline_seconds of this V2alpha1CronJobSpec. # noqa: E501 :type: int """ @@ -198,22 +194,22 @@ def starting_deadline_seconds(self, starting_deadline_seconds): @property def successful_jobs_history_limit(self): - """ - Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + """Gets the successful_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 + + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. # noqa: E501 - :return: The successful_jobs_history_limit of this V2alpha1CronJobSpec. + :return: The successful_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 :rtype: int """ return self._successful_jobs_history_limit @successful_jobs_history_limit.setter def successful_jobs_history_limit(self, successful_jobs_history_limit): - """ - Sets the successful_jobs_history_limit of this V2alpha1CronJobSpec. - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + """Sets the successful_jobs_history_limit of this V2alpha1CronJobSpec. + + The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. # noqa: E501 - :param successful_jobs_history_limit: The successful_jobs_history_limit of this V2alpha1CronJobSpec. + :param successful_jobs_history_limit: The successful_jobs_history_limit of this V2alpha1CronJobSpec. # noqa: E501 :type: int """ @@ -221,34 +217,32 @@ def successful_jobs_history_limit(self, successful_jobs_history_limit): @property def suspend(self): - """ - Gets the suspend of this V2alpha1CronJobSpec. - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """Gets the suspend of this V2alpha1CronJobSpec. # noqa: E501 - :return: The suspend of this V2alpha1CronJobSpec. + This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501 + + :return: The suspend of this V2alpha1CronJobSpec. # noqa: E501 :rtype: bool """ return self._suspend @suspend.setter def suspend(self, suspend): - """ - Sets the suspend of this V2alpha1CronJobSpec. - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """Sets the suspend of this V2alpha1CronJobSpec. - :param suspend: The suspend of this V2alpha1CronJobSpec. + This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. # noqa: E501 + + :param suspend: The suspend of this V2alpha1CronJobSpec. # noqa: E501 :type: bool """ self._suspend = suspend def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -269,28 +263,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2alpha1CronJobSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2alpha1_cron_job_status.py b/kubernetes/client/models/v2alpha1_cron_job_status.py index 5b3defae89..2d9276d196 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_status.py +++ b/kubernetes/client/models/v2alpha1_cron_job_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2alpha1CronJobStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'active': 'list[V1ObjectReference]', 'last_schedule_time': 'datetime' } @@ -40,38 +40,36 @@ class V2alpha1CronJobStatus(object): 'last_schedule_time': 'lastScheduleTime' } - def __init__(self, active=None, last_schedule_time=None): - """ - V2alpha1CronJobStatus - a model defined in Swagger - """ + def __init__(self, active=None, last_schedule_time=None): # noqa: E501 + """V2alpha1CronJobStatus - a model defined in OpenAPI""" # noqa: E501 self._active = None self._last_schedule_time = None self.discriminator = None if active is not None: - self.active = active + self.active = active if last_schedule_time is not None: - self.last_schedule_time = last_schedule_time + self.last_schedule_time = last_schedule_time @property def active(self): - """ - Gets the active of this V2alpha1CronJobStatus. - A list of pointers to currently running jobs. + """Gets the active of this V2alpha1CronJobStatus. # noqa: E501 + + A list of pointers to currently running jobs. # noqa: E501 - :return: The active of this V2alpha1CronJobStatus. + :return: The active of this V2alpha1CronJobStatus. # noqa: E501 :rtype: list[V1ObjectReference] """ return self._active @active.setter def active(self, active): - """ - Sets the active of this V2alpha1CronJobStatus. - A list of pointers to currently running jobs. + """Sets the active of this V2alpha1CronJobStatus. - :param active: The active of this V2alpha1CronJobStatus. + A list of pointers to currently running jobs. # noqa: E501 + + :param active: The active of this V2alpha1CronJobStatus. # noqa: E501 :type: list[V1ObjectReference] """ @@ -79,34 +77,32 @@ def active(self, active): @property def last_schedule_time(self): - """ - Gets the last_schedule_time of this V2alpha1CronJobStatus. - Information when was the last time the job was successfully scheduled. + """Gets the last_schedule_time of this V2alpha1CronJobStatus. # noqa: E501 + + Information when was the last time the job was successfully scheduled. # noqa: E501 - :return: The last_schedule_time of this V2alpha1CronJobStatus. + :return: The last_schedule_time of this V2alpha1CronJobStatus. # noqa: E501 :rtype: datetime """ return self._last_schedule_time @last_schedule_time.setter def last_schedule_time(self, last_schedule_time): - """ - Sets the last_schedule_time of this V2alpha1CronJobStatus. - Information when was the last time the job was successfully scheduled. + """Sets the last_schedule_time of this V2alpha1CronJobStatus. + + Information when was the last time the job was successfully scheduled. # noqa: E501 - :param last_schedule_time: The last_schedule_time of this V2alpha1CronJobStatus. + :param last_schedule_time: The last_schedule_time of this V2alpha1CronJobStatus. # noqa: E501 :type: datetime """ self._last_schedule_time = last_schedule_time def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2alpha1CronJobStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2alpha1_job_template_spec.py b/kubernetes/client/models/v2alpha1_job_template_spec.py index fbfcc82b7f..a956eeb520 100644 --- a/kubernetes/client/models/v2alpha1_job_template_spec.py +++ b/kubernetes/client/models/v2alpha1_job_template_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2alpha1JobTemplateSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metadata': 'V1ObjectMeta', 'spec': 'V1JobSpec' } @@ -40,38 +40,34 @@ class V2alpha1JobTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): - """ - V2alpha1JobTemplateSpec - a model defined in Swagger - """ + def __init__(self, metadata=None, spec=None): # noqa: E501 + """V2alpha1JobTemplateSpec - a model defined in OpenAPI""" # noqa: E501 self._metadata = None self._spec = None self.discriminator = None if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec @property def metadata(self): - """ - Gets the metadata of this V2alpha1JobTemplateSpec. - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V2alpha1JobTemplateSpec. # noqa: E501 + - :return: The metadata of this V2alpha1JobTemplateSpec. + :return: The metadata of this V2alpha1JobTemplateSpec. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2alpha1JobTemplateSpec. - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V2alpha1JobTemplateSpec. - :param metadata: The metadata of this V2alpha1JobTemplateSpec. + + :param metadata: The metadata of this V2alpha1JobTemplateSpec. # noqa: E501 :type: V1ObjectMeta """ @@ -79,34 +75,30 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V2alpha1JobTemplateSpec. - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Gets the spec of this V2alpha1JobTemplateSpec. # noqa: E501 + - :return: The spec of this V2alpha1JobTemplateSpec. + :return: The spec of this V2alpha1JobTemplateSpec. # noqa: E501 :rtype: V1JobSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V2alpha1JobTemplateSpec. - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + """Sets the spec of this V2alpha1JobTemplateSpec. + - :param spec: The spec of this V2alpha1JobTemplateSpec. + :param spec: The spec of this V2alpha1JobTemplateSpec. # noqa: E501 :type: V1JobSpec """ self._spec = spec def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -127,28 +119,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2alpha1JobTemplateSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_cross_version_object_reference.py b/kubernetes/client/models/v2beta1_cross_version_object_reference.py index dd96e1a898..2646dffc6c 100644 --- a/kubernetes/client/models/v2beta1_cross_version_object_reference.py +++ b/kubernetes/client/models/v2beta1_cross_version_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1CrossVersionObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V2beta1CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): - """ - V2beta1CrossVersionObjectReference - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + """V2beta1CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -53,28 +51,28 @@ def __init__(self, api_version=None, kind=None, name=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.kind = kind self.name = name @property def api_version(self): - """ - Gets the api_version of this V2beta1CrossVersionObjectReference. - API version of the referent + """Gets the api_version of this V2beta1CrossVersionObjectReference. # noqa: E501 - :return: The api_version of this V2beta1CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :return: The api_version of this V2beta1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta1CrossVersionObjectReference. - API version of the referent + """Sets the api_version of this V2beta1CrossVersionObjectReference. - :param api_version: The api_version of this V2beta1CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :param api_version: The api_version of this V2beta1CrossVersionObjectReference. # noqa: E501 :type: str """ @@ -82,61 +80,59 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V2beta1CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Gets the kind of this V2beta1CrossVersionObjectReference. # noqa: E501 - :return: The kind of this V2beta1CrossVersionObjectReference. + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 + + :return: The kind of this V2beta1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta1CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Sets the kind of this V2beta1CrossVersionObjectReference. + + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 - :param kind: The kind of this V2beta1CrossVersionObjectReference. + :param kind: The kind of this V2beta1CrossVersionObjectReference. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V2beta1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Gets the name of this V2beta1CrossVersionObjectReference. # noqa: E501 + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :return: The name of this V2beta1CrossVersionObjectReference. + :return: The name of this V2beta1CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta1CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Sets the name of this V2beta1CrossVersionObjectReference. + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :param name: The name of this V2beta1CrossVersionObjectReference. + :param name: The name of this V2beta1CrossVersionObjectReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1CrossVersionObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_external_metric_source.py b/kubernetes/client/models/v2beta1_external_metric_source.py index 887eeffaa1..4501ac273e 100644 --- a/kubernetes/client/models/v2beta1_external_metric_source.py +++ b/kubernetes/client/models/v2beta1_external_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ExternalMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metric_name': 'str', 'metric_selector': 'V1LabelSelector', 'target_average_value': 'str', @@ -44,10 +44,8 @@ class V2beta1ExternalMetricSource(object): 'target_value': 'targetValue' } - def __init__(self, metric_name=None, metric_selector=None, target_average_value=None, target_value=None): - """ - V2beta1ExternalMetricSource - a model defined in Swagger - """ + def __init__(self, metric_name=None, metric_selector=None, target_average_value=None, target_value=None): # noqa: E501 + """V2beta1ExternalMetricSource - a model defined in OpenAPI""" # noqa: E501 self._metric_name = None self._metric_selector = None @@ -57,55 +55,53 @@ def __init__(self, metric_name=None, metric_selector=None, target_average_value= self.metric_name = metric_name if metric_selector is not None: - self.metric_selector = metric_selector + self.metric_selector = metric_selector if target_average_value is not None: - self.target_average_value = target_average_value + self.target_average_value = target_average_value if target_value is not None: - self.target_value = target_value + self.target_value = target_value @property def metric_name(self): - """ - Gets the metric_name of this V2beta1ExternalMetricSource. - metricName is the name of the metric in question. + """Gets the metric_name of this V2beta1ExternalMetricSource. # noqa: E501 + + metricName is the name of the metric in question. # noqa: E501 - :return: The metric_name of this V2beta1ExternalMetricSource. + :return: The metric_name of this V2beta1ExternalMetricSource. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1ExternalMetricSource. - metricName is the name of the metric in question. + """Sets the metric_name of this V2beta1ExternalMetricSource. + + metricName is the name of the metric in question. # noqa: E501 - :param metric_name: The metric_name of this V2beta1ExternalMetricSource. + :param metric_name: The metric_name of this V2beta1ExternalMetricSource. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def metric_selector(self): - """ - Gets the metric_selector of this V2beta1ExternalMetricSource. - metricSelector is used to identify a specific time series within a given metric. + """Gets the metric_selector of this V2beta1ExternalMetricSource. # noqa: E501 + - :return: The metric_selector of this V2beta1ExternalMetricSource. + :return: The metric_selector of this V2beta1ExternalMetricSource. # noqa: E501 :rtype: V1LabelSelector """ return self._metric_selector @metric_selector.setter def metric_selector(self, metric_selector): - """ - Sets the metric_selector of this V2beta1ExternalMetricSource. - metricSelector is used to identify a specific time series within a given metric. + """Sets the metric_selector of this V2beta1ExternalMetricSource. + - :param metric_selector: The metric_selector of this V2beta1ExternalMetricSource. + :param metric_selector: The metric_selector of this V2beta1ExternalMetricSource. # noqa: E501 :type: V1LabelSelector """ @@ -113,22 +109,22 @@ def metric_selector(self, metric_selector): @property def target_average_value(self): - """ - Gets the target_average_value of this V2beta1ExternalMetricSource. - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + """Gets the target_average_value of this V2beta1ExternalMetricSource. # noqa: E501 + + targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. # noqa: E501 - :return: The target_average_value of this V2beta1ExternalMetricSource. + :return: The target_average_value of this V2beta1ExternalMetricSource. # noqa: E501 :rtype: str """ return self._target_average_value @target_average_value.setter def target_average_value(self, target_average_value): - """ - Sets the target_average_value of this V2beta1ExternalMetricSource. - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + """Sets the target_average_value of this V2beta1ExternalMetricSource. + + targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. # noqa: E501 - :param target_average_value: The target_average_value of this V2beta1ExternalMetricSource. + :param target_average_value: The target_average_value of this V2beta1ExternalMetricSource. # noqa: E501 :type: str """ @@ -136,34 +132,32 @@ def target_average_value(self, target_average_value): @property def target_value(self): - """ - Gets the target_value of this V2beta1ExternalMetricSource. - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + """Gets the target_value of this V2beta1ExternalMetricSource. # noqa: E501 + + targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. # noqa: E501 - :return: The target_value of this V2beta1ExternalMetricSource. + :return: The target_value of this V2beta1ExternalMetricSource. # noqa: E501 :rtype: str """ return self._target_value @target_value.setter def target_value(self, target_value): - """ - Sets the target_value of this V2beta1ExternalMetricSource. - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + """Sets the target_value of this V2beta1ExternalMetricSource. + + targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. # noqa: E501 - :param target_value: The target_value of this V2beta1ExternalMetricSource. + :param target_value: The target_value of this V2beta1ExternalMetricSource. # noqa: E501 :type: str """ self._target_value = target_value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ExternalMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_external_metric_status.py b/kubernetes/client/models/v2beta1_external_metric_status.py index fd899ec997..bfdfee8179 100644 --- a/kubernetes/client/models/v2beta1_external_metric_status.py +++ b/kubernetes/client/models/v2beta1_external_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ExternalMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current_average_value': 'str', 'current_value': 'str', 'metric_name': 'str', @@ -44,10 +44,8 @@ class V2beta1ExternalMetricStatus(object): 'metric_selector': 'metricSelector' } - def __init__(self, current_average_value=None, current_value=None, metric_name=None, metric_selector=None): - """ - V2beta1ExternalMetricStatus - a model defined in Swagger - """ + def __init__(self, current_average_value=None, current_value=None, metric_name=None, metric_selector=None): # noqa: E501 + """V2beta1ExternalMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current_average_value = None self._current_value = None @@ -56,30 +54,30 @@ def __init__(self, current_average_value=None, current_value=None, metric_name=N self.discriminator = None if current_average_value is not None: - self.current_average_value = current_average_value + self.current_average_value = current_average_value self.current_value = current_value self.metric_name = metric_name if metric_selector is not None: - self.metric_selector = metric_selector + self.metric_selector = metric_selector @property def current_average_value(self): - """ - Gets the current_average_value of this V2beta1ExternalMetricStatus. - currentAverageValue is the current value of metric averaged over autoscaled pods. + """Gets the current_average_value of this V2beta1ExternalMetricStatus. # noqa: E501 + + currentAverageValue is the current value of metric averaged over autoscaled pods. # noqa: E501 - :return: The current_average_value of this V2beta1ExternalMetricStatus. + :return: The current_average_value of this V2beta1ExternalMetricStatus. # noqa: E501 :rtype: str """ return self._current_average_value @current_average_value.setter def current_average_value(self, current_average_value): - """ - Sets the current_average_value of this V2beta1ExternalMetricStatus. - currentAverageValue is the current value of metric averaged over autoscaled pods. + """Sets the current_average_value of this V2beta1ExternalMetricStatus. + + currentAverageValue is the current value of metric averaged over autoscaled pods. # noqa: E501 - :param current_average_value: The current_average_value of this V2beta1ExternalMetricStatus. + :param current_average_value: The current_average_value of this V2beta1ExternalMetricStatus. # noqa: E501 :type: str """ @@ -87,84 +85,80 @@ def current_average_value(self, current_average_value): @property def current_value(self): - """ - Gets the current_value of this V2beta1ExternalMetricStatus. - currentValue is the current value of the metric (as a quantity) + """Gets the current_value of this V2beta1ExternalMetricStatus. # noqa: E501 + + currentValue is the current value of the metric (as a quantity) # noqa: E501 - :return: The current_value of this V2beta1ExternalMetricStatus. + :return: The current_value of this V2beta1ExternalMetricStatus. # noqa: E501 :rtype: str """ return self._current_value @current_value.setter def current_value(self, current_value): - """ - Sets the current_value of this V2beta1ExternalMetricStatus. - currentValue is the current value of the metric (as a quantity) + """Sets the current_value of this V2beta1ExternalMetricStatus. + + currentValue is the current value of the metric (as a quantity) # noqa: E501 - :param current_value: The current_value of this V2beta1ExternalMetricStatus. + :param current_value: The current_value of this V2beta1ExternalMetricStatus. # noqa: E501 :type: str """ if current_value is None: - raise ValueError("Invalid value for `current_value`, must not be `None`") + raise ValueError("Invalid value for `current_value`, must not be `None`") # noqa: E501 self._current_value = current_value @property def metric_name(self): - """ - Gets the metric_name of this V2beta1ExternalMetricStatus. - metricName is the name of a metric used for autoscaling in metric system. + """Gets the metric_name of this V2beta1ExternalMetricStatus. # noqa: E501 + + metricName is the name of a metric used for autoscaling in metric system. # noqa: E501 - :return: The metric_name of this V2beta1ExternalMetricStatus. + :return: The metric_name of this V2beta1ExternalMetricStatus. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1ExternalMetricStatus. - metricName is the name of a metric used for autoscaling in metric system. + """Sets the metric_name of this V2beta1ExternalMetricStatus. + + metricName is the name of a metric used for autoscaling in metric system. # noqa: E501 - :param metric_name: The metric_name of this V2beta1ExternalMetricStatus. + :param metric_name: The metric_name of this V2beta1ExternalMetricStatus. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def metric_selector(self): - """ - Gets the metric_selector of this V2beta1ExternalMetricStatus. - metricSelector is used to identify a specific time series within a given metric. + """Gets the metric_selector of this V2beta1ExternalMetricStatus. # noqa: E501 + - :return: The metric_selector of this V2beta1ExternalMetricStatus. + :return: The metric_selector of this V2beta1ExternalMetricStatus. # noqa: E501 :rtype: V1LabelSelector """ return self._metric_selector @metric_selector.setter def metric_selector(self, metric_selector): - """ - Sets the metric_selector of this V2beta1ExternalMetricStatus. - metricSelector is used to identify a specific time series within a given metric. + """Sets the metric_selector of this V2beta1ExternalMetricStatus. + - :param metric_selector: The metric_selector of this V2beta1ExternalMetricStatus. + :param metric_selector: The metric_selector of this V2beta1ExternalMetricStatus. # noqa: E501 :type: V1LabelSelector """ self._metric_selector = metric_selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ExternalMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py index 2b715911a8..81b1f32db2 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1HorizontalPodAutoscaler(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V2beta1HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V2beta1HorizontalPodAutoscaler - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V2beta1HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V2beta1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2beta1HorizontalPodAutoscaler. # noqa: E501 - :return: The api_version of this V2beta1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta1HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2beta1HorizontalPodAutoscaler. - :param api_version: The api_version of this V2beta1HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V2beta1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2beta1HorizontalPodAutoscaler. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2beta1HorizontalPodAutoscaler. + :return: The kind of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta1HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2beta1HorizontalPodAutoscaler. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2beta1HorizontalPodAutoscaler. + :param kind: The kind of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2beta1HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V2beta1HorizontalPodAutoscaler. # noqa: E501 + - :return: The metadata of this V2beta1HorizontalPodAutoscaler. + :return: The metadata of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2beta1HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V2beta1HorizontalPodAutoscaler. + - :param metadata: The metadata of this V2beta1HorizontalPodAutoscaler. + :param metadata: The metadata of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V2beta1HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Gets the spec of this V2beta1HorizontalPodAutoscaler. # noqa: E501 + - :return: The spec of this V2beta1HorizontalPodAutoscaler. + :return: The spec of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :rtype: V2beta1HorizontalPodAutoscalerSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V2beta1HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Sets the spec of this V2beta1HorizontalPodAutoscaler. - :param spec: The spec of this V2beta1HorizontalPodAutoscaler. + + :param spec: The spec of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :type: V2beta1HorizontalPodAutoscalerSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V2beta1HorizontalPodAutoscaler. - status is the current information about the autoscaler. + """Gets the status of this V2beta1HorizontalPodAutoscaler. # noqa: E501 - :return: The status of this V2beta1HorizontalPodAutoscaler. + + :return: The status of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :rtype: V2beta1HorizontalPodAutoscalerStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V2beta1HorizontalPodAutoscaler. - status is the current information about the autoscaler. + """Sets the status of this V2beta1HorizontalPodAutoscaler. - :param status: The status of this V2beta1HorizontalPodAutoscaler. + + :param status: The status of this V2beta1HorizontalPodAutoscaler. # noqa: E501 :type: V2beta1HorizontalPodAutoscalerStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1HorizontalPodAutoscaler): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py index 4a58b1d5f4..43100642a3 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1HorizontalPodAutoscalerCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V2beta1HorizontalPodAutoscalerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V2beta1HorizontalPodAutoscalerCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V2beta1HorizontalPodAutoscalerCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. - lastTransitionTime is the last time the condition transitioned from one status to another + """Gets the last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 - :return: The last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. + lastTransitionTime is the last time the condition transitioned from one status to another # noqa: E501 + + :return: The last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. - lastTransitionTime is the last time the condition transitioned from one status to another + """Sets the last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. - :param last_transition_time: The last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. + lastTransitionTime is the last time the condition transitioned from one status to another # noqa: E501 + + :param last_transition_time: The last_transition_time of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V2beta1HorizontalPodAutoscalerCondition. - message is a human-readable explanation containing details about the transition + """Gets the message of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 + + message is a human-readable explanation containing details about the transition # noqa: E501 - :return: The message of this V2beta1HorizontalPodAutoscalerCondition. + :return: The message of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V2beta1HorizontalPodAutoscalerCondition. - message is a human-readable explanation containing details about the transition + """Sets the message of this V2beta1HorizontalPodAutoscalerCondition. + + message is a human-readable explanation containing details about the transition # noqa: E501 - :param message: The message of this V2beta1HorizontalPodAutoscalerCondition. + :param message: The message of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V2beta1HorizontalPodAutoscalerCondition. - reason is the reason for the condition's last transition. + """Gets the reason of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 + + reason is the reason for the condition's last transition. # noqa: E501 - :return: The reason of this V2beta1HorizontalPodAutoscalerCondition. + :return: The reason of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V2beta1HorizontalPodAutoscalerCondition. - reason is the reason for the condition's last transition. + """Sets the reason of this V2beta1HorizontalPodAutoscalerCondition. + + reason is the reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V2beta1HorizontalPodAutoscalerCondition. + :param reason: The reason of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V2beta1HorizontalPodAutoscalerCondition. - status is the status of the condition (True, False, Unknown) + """Gets the status of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 + + status is the status of the condition (True, False, Unknown) # noqa: E501 - :return: The status of this V2beta1HorizontalPodAutoscalerCondition. + :return: The status of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V2beta1HorizontalPodAutoscalerCondition. - status is the status of the condition (True, False, Unknown) + """Sets the status of this V2beta1HorizontalPodAutoscalerCondition. - :param status: The status of this V2beta1HorizontalPodAutoscalerCondition. + status is the status of the condition (True, False, Unknown) # noqa: E501 + + :param status: The status of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V2beta1HorizontalPodAutoscalerCondition. - type describes the current condition + """Gets the type of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 - :return: The type of this V2beta1HorizontalPodAutoscalerCondition. + type describes the current condition # noqa: E501 + + :return: The type of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta1HorizontalPodAutoscalerCondition. - type describes the current condition + """Sets the type of this V2beta1HorizontalPodAutoscalerCondition. - :param type: The type of this V2beta1HorizontalPodAutoscalerCondition. + type describes the current condition # noqa: E501 + + :param type: The type of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1HorizontalPodAutoscalerCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py index 116e8e37a1..b1e85c0e4f 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1HorizontalPodAutoscalerList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V2beta1HorizontalPodAutoscaler]', 'kind': 'str', @@ -44,10 +44,8 @@ class V2beta1HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V2beta1HorizontalPodAutoscalerList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V2beta1HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V2beta1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V2beta1HorizontalPodAutoscalerList. + :return: The api_version of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta1HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2beta1HorizontalPodAutoscalerList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V2beta1HorizontalPodAutoscalerList. + :param api_version: The api_version of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V2beta1HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. + """Gets the items of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 + + items is the list of horizontal pod autoscaler objects. # noqa: E501 - :return: The items of this V2beta1HorizontalPodAutoscalerList. + :return: The items of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :rtype: list[V2beta1HorizontalPodAutoscaler] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V2beta1HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. + """Sets the items of this V2beta1HorizontalPodAutoscalerList. + + items is the list of horizontal pod autoscaler objects. # noqa: E501 - :param items: The items of this V2beta1HorizontalPodAutoscalerList. + :param items: The items of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :type: list[V2beta1HorizontalPodAutoscaler] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V2beta1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2beta1HorizontalPodAutoscalerList. + :return: The kind of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta1HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2beta1HorizontalPodAutoscalerList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2beta1HorizontalPodAutoscalerList. + :param kind: The kind of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2beta1HorizontalPodAutoscalerList. - metadata is the standard list metadata. + """Gets the metadata of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 + - :return: The metadata of this V2beta1HorizontalPodAutoscalerList. + :return: The metadata of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2beta1HorizontalPodAutoscalerList. - metadata is the standard list metadata. + """Sets the metadata of this V2beta1HorizontalPodAutoscalerList. + - :param metadata: The metadata of this V2beta1HorizontalPodAutoscalerList. + :param metadata: The metadata of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1HorizontalPodAutoscalerList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py index d90a04f244..1dea37e0f4 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1HorizontalPodAutoscalerSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_replicas': 'int', 'metrics': 'list[V2beta1MetricSpec]', 'min_replicas': 'int', @@ -44,10 +44,8 @@ class V2beta1HorizontalPodAutoscalerSpec(object): 'scale_target_ref': 'scaleTargetRef' } - def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): - """ - V2beta1HorizontalPodAutoscalerSpec - a model defined in Swagger - """ + def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): # noqa: E501 + """V2beta1HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 self._max_replicas = None self._metrics = None @@ -57,54 +55,54 @@ def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_tar self.max_replicas = max_replicas if metrics is not None: - self.metrics = metrics + self.metrics = metrics if min_replicas is not None: - self.min_replicas = min_replicas + self.min_replicas = min_replicas self.scale_target_ref = scale_target_ref @property def max_replicas(self): - """ - Gets the max_replicas of this V2beta1HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + """Gets the max_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 + + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. # noqa: E501 - :return: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec. + :return: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._max_replicas @max_replicas.setter def max_replicas(self, max_replicas): - """ - Sets the max_replicas of this V2beta1HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + """Sets the max_replicas of this V2beta1HorizontalPodAutoscalerSpec. + + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. # noqa: E501 - :param max_replicas: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec. + :param max_replicas: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ if max_replicas is None: - raise ValueError("Invalid value for `max_replicas`, must not be `None`") + raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @property def metrics(self): - """ - Gets the metrics of this V2beta1HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + """Gets the metrics of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 + + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. # noqa: E501 - :return: The metrics of this V2beta1HorizontalPodAutoscalerSpec. + :return: The metrics of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: list[V2beta1MetricSpec] """ return self._metrics @metrics.setter def metrics(self, metrics): - """ - Sets the metrics of this V2beta1HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + """Sets the metrics of this V2beta1HorizontalPodAutoscalerSpec. + + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. # noqa: E501 - :param metrics: The metrics of this V2beta1HorizontalPodAutoscalerSpec. + :param metrics: The metrics of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: list[V2beta1MetricSpec] """ @@ -112,22 +110,22 @@ def metrics(self, metrics): @property def min_replicas(self): - """ - Gets the min_replicas of this V2beta1HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + """Gets the min_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 + + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. # noqa: E501 - :return: The min_replicas of this V2beta1HorizontalPodAutoscalerSpec. + :return: The min_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._min_replicas @min_replicas.setter def min_replicas(self, min_replicas): - """ - Sets the min_replicas of this V2beta1HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + """Sets the min_replicas of this V2beta1HorizontalPodAutoscalerSpec. + + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. # noqa: E501 - :param min_replicas: The min_replicas of this V2beta1HorizontalPodAutoscalerSpec. + :param min_replicas: The min_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ @@ -135,36 +133,32 @@ def min_replicas(self, min_replicas): @property def scale_target_ref(self): - """ - Gets the scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """Gets the scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 + - :return: The scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. + :return: The scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: V2beta1CrossVersionObjectReference """ return self._scale_target_ref @scale_target_ref.setter def scale_target_ref(self, scale_target_ref): - """ - Sets the scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """Sets the scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. + - :param scale_target_ref: The scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. + :param scale_target_ref: The scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ if scale_target_ref is None: - raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") + raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1HorizontalPodAutoscalerSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py index 93ba97b1fd..244838d7bd 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1HorizontalPodAutoscalerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conditions': 'list[V2beta1HorizontalPodAutoscalerCondition]', 'current_metrics': 'list[V2beta1MetricStatus]', 'current_replicas': 'int', @@ -48,10 +48,8 @@ class V2beta1HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): - """ - V2beta1HorizontalPodAutoscalerStatus - a model defined in Swagger - """ + def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + """V2beta1HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 self._conditions = None self._current_metrics = None @@ -63,57 +61,57 @@ def __init__(self, conditions=None, current_metrics=None, current_replicas=None, self.conditions = conditions if current_metrics is not None: - self.current_metrics = current_metrics + self.current_metrics = current_metrics self.current_replicas = current_replicas self.desired_replicas = desired_replicas if last_scale_time is not None: - self.last_scale_time = last_scale_time + self.last_scale_time = last_scale_time if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation @property def conditions(self): - """ - Gets the conditions of this V2beta1HorizontalPodAutoscalerStatus. - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + """Gets the conditions of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 + + conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. # noqa: E501 - :return: The conditions of this V2beta1HorizontalPodAutoscalerStatus. + :return: The conditions of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: list[V2beta1HorizontalPodAutoscalerCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V2beta1HorizontalPodAutoscalerStatus. - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + """Sets the conditions of this V2beta1HorizontalPodAutoscalerStatus. + + conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. # noqa: E501 - :param conditions: The conditions of this V2beta1HorizontalPodAutoscalerStatus. + :param conditions: The conditions of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta1HorizontalPodAutoscalerCondition] """ if conditions is None: - raise ValueError("Invalid value for `conditions`, must not be `None`") + raise ValueError("Invalid value for `conditions`, must not be `None`") # noqa: E501 self._conditions = conditions @property def current_metrics(self): - """ - Gets the current_metrics of this V2beta1HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. + """Gets the current_metrics of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 + + currentMetrics is the last read state of the metrics used by this autoscaler. # noqa: E501 - :return: The current_metrics of this V2beta1HorizontalPodAutoscalerStatus. + :return: The current_metrics of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: list[V2beta1MetricStatus] """ return self._current_metrics @current_metrics.setter def current_metrics(self, current_metrics): - """ - Sets the current_metrics of this V2beta1HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. + """Sets the current_metrics of this V2beta1HorizontalPodAutoscalerStatus. - :param current_metrics: The current_metrics of this V2beta1HorizontalPodAutoscalerStatus. + currentMetrics is the last read state of the metrics used by this autoscaler. # noqa: E501 + + :param current_metrics: The current_metrics of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta1MetricStatus] """ @@ -121,72 +119,72 @@ def current_metrics(self, current_metrics): @property def current_replicas(self): - """ - Gets the current_replicas of this V2beta1HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + """Gets the current_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The current_replicas of this V2beta1HorizontalPodAutoscalerStatus. + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. # noqa: E501 + + :return: The current_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V2beta1HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + """Sets the current_replicas of this V2beta1HorizontalPodAutoscalerStatus. + + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. # noqa: E501 - :param current_replicas: The current_replicas of this V2beta1HorizontalPodAutoscalerStatus. + :param current_replicas: The current_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if current_replicas is None: - raise ValueError("Invalid value for `current_replicas`, must not be `None`") + raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @property def desired_replicas(self): - """ - Gets the desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + """Gets the desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 + + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. # noqa: E501 - :return: The desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. + :return: The desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._desired_replicas @desired_replicas.setter def desired_replicas(self, desired_replicas): - """ - Sets the desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + """Sets the desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. + + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. # noqa: E501 - :param desired_replicas: The desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. + :param desired_replicas: The desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if desired_replicas is None: - raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @property def last_scale_time(self): - """ - Gets the last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + """Gets the last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. # noqa: E501 + + :return: The last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: datetime """ return self._last_scale_time @last_scale_time.setter def last_scale_time(self, last_scale_time): - """ - Sets the last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + """Sets the last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. - :param last_scale_time: The last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. # noqa: E501 + + :param last_scale_time: The last_scale_time of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: datetime """ @@ -194,34 +192,32 @@ def last_scale_time(self, last_scale_time): @property def observed_generation(self): - """ - Gets the observed_generation of this V2beta1HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. + """Gets the observed_generation of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 + + observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501 - :return: The observed_generation of this V2beta1HorizontalPodAutoscalerStatus. + :return: The observed_generation of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V2beta1HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. + """Sets the observed_generation of this V2beta1HorizontalPodAutoscalerStatus. + + observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501 - :param observed_generation: The observed_generation of this V2beta1HorizontalPodAutoscalerStatus. + :param observed_generation: The observed_generation of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ self._observed_generation = observed_generation def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -242,28 +238,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1HorizontalPodAutoscalerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_metric_spec.py b/kubernetes/client/models/v2beta1_metric_spec.py index 44efd3ea33..a55794a9bf 100644 --- a/kubernetes/client/models/v2beta1_metric_spec.py +++ b/kubernetes/client/models/v2beta1_metric_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1MetricSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'external': 'V2beta1ExternalMetricSource', 'object': 'V2beta1ObjectMetricSource', 'pods': 'V2beta1PodsMetricSource', @@ -46,10 +46,8 @@ class V2beta1MetricSpec(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): - """ - V2beta1MetricSpec - a model defined in Swagger - """ + def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + """V2beta1MetricSpec - a model defined in OpenAPI""" # noqa: E501 self._external = None self._object = None @@ -59,33 +57,31 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No self.discriminator = None if external is not None: - self.external = external + self.external = external if object is not None: - self.object = object + self.object = object if pods is not None: - self.pods = pods + self.pods = pods if resource is not None: - self.resource = resource + self.resource = resource self.type = type @property def external(self): - """ - Gets the external of this V2beta1MetricSpec. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Gets the external of this V2beta1MetricSpec. # noqa: E501 - :return: The external of this V2beta1MetricSpec. + + :return: The external of this V2beta1MetricSpec. # noqa: E501 :rtype: V2beta1ExternalMetricSource """ return self._external @external.setter def external(self, external): - """ - Sets the external of this V2beta1MetricSpec. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Sets the external of this V2beta1MetricSpec. - :param external: The external of this V2beta1MetricSpec. + + :param external: The external of this V2beta1MetricSpec. # noqa: E501 :type: V2beta1ExternalMetricSource """ @@ -93,22 +89,20 @@ def external(self, external): @property def object(self): - """ - Gets the object of this V2beta1MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Gets the object of this V2beta1MetricSpec. # noqa: E501 + - :return: The object of this V2beta1MetricSpec. + :return: The object of this V2beta1MetricSpec. # noqa: E501 :rtype: V2beta1ObjectMetricSource """ return self._object @object.setter def object(self, object): - """ - Sets the object of this V2beta1MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Sets the object of this V2beta1MetricSpec. + - :param object: The object of this V2beta1MetricSpec. + :param object: The object of this V2beta1MetricSpec. # noqa: E501 :type: V2beta1ObjectMetricSource """ @@ -116,22 +110,20 @@ def object(self, object): @property def pods(self): - """ - Gets the pods of this V2beta1MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Gets the pods of this V2beta1MetricSpec. # noqa: E501 + - :return: The pods of this V2beta1MetricSpec. + :return: The pods of this V2beta1MetricSpec. # noqa: E501 :rtype: V2beta1PodsMetricSource """ return self._pods @pods.setter def pods(self, pods): - """ - Sets the pods of this V2beta1MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Sets the pods of this V2beta1MetricSpec. + - :param pods: The pods of this V2beta1MetricSpec. + :param pods: The pods of this V2beta1MetricSpec. # noqa: E501 :type: V2beta1PodsMetricSource """ @@ -139,22 +131,20 @@ def pods(self, pods): @property def resource(self): - """ - Gets the resource of this V2beta1MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Gets the resource of this V2beta1MetricSpec. # noqa: E501 + - :return: The resource of this V2beta1MetricSpec. + :return: The resource of this V2beta1MetricSpec. # noqa: E501 :rtype: V2beta1ResourceMetricSource """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V2beta1MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Sets the resource of this V2beta1MetricSpec. - :param resource: The resource of this V2beta1MetricSpec. + + :param resource: The resource of this V2beta1MetricSpec. # noqa: E501 :type: V2beta1ResourceMetricSource """ @@ -162,36 +152,34 @@ def resource(self, resource): @property def type(self): - """ - Gets the type of this V2beta1MetricSpec. - type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. + """Gets the type of this V2beta1MetricSpec. # noqa: E501 - :return: The type of this V2beta1MetricSpec. + type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. # noqa: E501 + + :return: The type of this V2beta1MetricSpec. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta1MetricSpec. - type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. + """Sets the type of this V2beta1MetricSpec. - :param type: The type of this V2beta1MetricSpec. + type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. # noqa: E501 + + :param type: The type of this V2beta1MetricSpec. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +200,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1MetricSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_metric_status.py b/kubernetes/client/models/v2beta1_metric_status.py index df00c5fb81..3a34e0c4b6 100644 --- a/kubernetes/client/models/v2beta1_metric_status.py +++ b/kubernetes/client/models/v2beta1_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1MetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'external': 'V2beta1ExternalMetricStatus', 'object': 'V2beta1ObjectMetricStatus', 'pods': 'V2beta1PodsMetricStatus', @@ -46,10 +46,8 @@ class V2beta1MetricStatus(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): - """ - V2beta1MetricStatus - a model defined in Swagger - """ + def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + """V2beta1MetricStatus - a model defined in OpenAPI""" # noqa: E501 self._external = None self._object = None @@ -59,33 +57,31 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No self.discriminator = None if external is not None: - self.external = external + self.external = external if object is not None: - self.object = object + self.object = object if pods is not None: - self.pods = pods + self.pods = pods if resource is not None: - self.resource = resource + self.resource = resource self.type = type @property def external(self): - """ - Gets the external of this V2beta1MetricStatus. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Gets the external of this V2beta1MetricStatus. # noqa: E501 - :return: The external of this V2beta1MetricStatus. + + :return: The external of this V2beta1MetricStatus. # noqa: E501 :rtype: V2beta1ExternalMetricStatus """ return self._external @external.setter def external(self, external): - """ - Sets the external of this V2beta1MetricStatus. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Sets the external of this V2beta1MetricStatus. - :param external: The external of this V2beta1MetricStatus. + + :param external: The external of this V2beta1MetricStatus. # noqa: E501 :type: V2beta1ExternalMetricStatus """ @@ -93,22 +89,20 @@ def external(self, external): @property def object(self): - """ - Gets the object of this V2beta1MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Gets the object of this V2beta1MetricStatus. # noqa: E501 + - :return: The object of this V2beta1MetricStatus. + :return: The object of this V2beta1MetricStatus. # noqa: E501 :rtype: V2beta1ObjectMetricStatus """ return self._object @object.setter def object(self, object): - """ - Sets the object of this V2beta1MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Sets the object of this V2beta1MetricStatus. + - :param object: The object of this V2beta1MetricStatus. + :param object: The object of this V2beta1MetricStatus. # noqa: E501 :type: V2beta1ObjectMetricStatus """ @@ -116,22 +110,20 @@ def object(self, object): @property def pods(self): - """ - Gets the pods of this V2beta1MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Gets the pods of this V2beta1MetricStatus. # noqa: E501 + - :return: The pods of this V2beta1MetricStatus. + :return: The pods of this V2beta1MetricStatus. # noqa: E501 :rtype: V2beta1PodsMetricStatus """ return self._pods @pods.setter def pods(self, pods): - """ - Sets the pods of this V2beta1MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Sets the pods of this V2beta1MetricStatus. + - :param pods: The pods of this V2beta1MetricStatus. + :param pods: The pods of this V2beta1MetricStatus. # noqa: E501 :type: V2beta1PodsMetricStatus """ @@ -139,22 +131,20 @@ def pods(self, pods): @property def resource(self): - """ - Gets the resource of this V2beta1MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Gets the resource of this V2beta1MetricStatus. # noqa: E501 + - :return: The resource of this V2beta1MetricStatus. + :return: The resource of this V2beta1MetricStatus. # noqa: E501 :rtype: V2beta1ResourceMetricStatus """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V2beta1MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Sets the resource of this V2beta1MetricStatus. - :param resource: The resource of this V2beta1MetricStatus. + + :param resource: The resource of this V2beta1MetricStatus. # noqa: E501 :type: V2beta1ResourceMetricStatus """ @@ -162,36 +152,34 @@ def resource(self, resource): @property def type(self): - """ - Gets the type of this V2beta1MetricStatus. - type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. + """Gets the type of this V2beta1MetricStatus. # noqa: E501 - :return: The type of this V2beta1MetricStatus. + type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. # noqa: E501 + + :return: The type of this V2beta1MetricStatus. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta1MetricStatus. - type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. + """Sets the type of this V2beta1MetricStatus. - :param type: The type of this V2beta1MetricStatus. + type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. # noqa: E501 + + :param type: The type of this V2beta1MetricStatus. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +200,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1MetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_object_metric_source.py b/kubernetes/client/models/v2beta1_object_metric_source.py index b303805742..eb52e4a2a3 100644 --- a/kubernetes/client/models/v2beta1_object_metric_source.py +++ b/kubernetes/client/models/v2beta1_object_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ObjectMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'average_value': 'str', 'metric_name': 'str', 'selector': 'V1LabelSelector', @@ -46,10 +46,8 @@ class V2beta1ObjectMetricSource(object): 'target_value': 'targetValue' } - def __init__(self, average_value=None, metric_name=None, selector=None, target=None, target_value=None): - """ - V2beta1ObjectMetricSource - a model defined in Swagger - """ + def __init__(self, average_value=None, metric_name=None, selector=None, target=None, target_value=None): # noqa: E501 + """V2beta1ObjectMetricSource - a model defined in OpenAPI""" # noqa: E501 self._average_value = None self._metric_name = None @@ -59,31 +57,31 @@ def __init__(self, average_value=None, metric_name=None, selector=None, target=N self.discriminator = None if average_value is not None: - self.average_value = average_value + self.average_value = average_value self.metric_name = metric_name if selector is not None: - self.selector = selector + self.selector = selector self.target = target self.target_value = target_value @property def average_value(self): - """ - Gets the average_value of this V2beta1ObjectMetricSource. - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Gets the average_value of this V2beta1ObjectMetricSource. # noqa: E501 - :return: The average_value of this V2beta1ObjectMetricSource. + averageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :return: The average_value of this V2beta1ObjectMetricSource. # noqa: E501 :rtype: str """ return self._average_value @average_value.setter def average_value(self, average_value): - """ - Sets the average_value of this V2beta1ObjectMetricSource. - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Sets the average_value of this V2beta1ObjectMetricSource. - :param average_value: The average_value of this V2beta1ObjectMetricSource. + averageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :param average_value: The average_value of this V2beta1ObjectMetricSource. # noqa: E501 :type: str """ @@ -91,47 +89,45 @@ def average_value(self, average_value): @property def metric_name(self): - """ - Gets the metric_name of this V2beta1ObjectMetricSource. - metricName is the name of the metric in question. + """Gets the metric_name of this V2beta1ObjectMetricSource. # noqa: E501 + + metricName is the name of the metric in question. # noqa: E501 - :return: The metric_name of this V2beta1ObjectMetricSource. + :return: The metric_name of this V2beta1ObjectMetricSource. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1ObjectMetricSource. - metricName is the name of the metric in question. + """Sets the metric_name of this V2beta1ObjectMetricSource. + + metricName is the name of the metric in question. # noqa: E501 - :param metric_name: The metric_name of this V2beta1ObjectMetricSource. + :param metric_name: The metric_name of this V2beta1ObjectMetricSource. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def selector(self): - """ - Gets the selector of this V2beta1ObjectMetricSource. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + """Gets the selector of this V2beta1ObjectMetricSource. # noqa: E501 + - :return: The selector of this V2beta1ObjectMetricSource. + :return: The selector of this V2beta1ObjectMetricSource. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V2beta1ObjectMetricSource. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + """Sets the selector of this V2beta1ObjectMetricSource. + - :param selector: The selector of this V2beta1ObjectMetricSource. + :param selector: The selector of this V2beta1ObjectMetricSource. # noqa: E501 :type: V1LabelSelector """ @@ -139,61 +135,57 @@ def selector(self, selector): @property def target(self): - """ - Gets the target of this V2beta1ObjectMetricSource. - target is the described Kubernetes object. + """Gets the target of this V2beta1ObjectMetricSource. # noqa: E501 + - :return: The target of this V2beta1ObjectMetricSource. + :return: The target of this V2beta1ObjectMetricSource. # noqa: E501 :rtype: V2beta1CrossVersionObjectReference """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta1ObjectMetricSource. - target is the described Kubernetes object. + """Sets the target of this V2beta1ObjectMetricSource. - :param target: The target of this V2beta1ObjectMetricSource. + + :param target: The target of this V2beta1ObjectMetricSource. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @property def target_value(self): - """ - Gets the target_value of this V2beta1ObjectMetricSource. - targetValue is the target value of the metric (as a quantity). + """Gets the target_value of this V2beta1ObjectMetricSource. # noqa: E501 - :return: The target_value of this V2beta1ObjectMetricSource. + targetValue is the target value of the metric (as a quantity). # noqa: E501 + + :return: The target_value of this V2beta1ObjectMetricSource. # noqa: E501 :rtype: str """ return self._target_value @target_value.setter def target_value(self, target_value): - """ - Sets the target_value of this V2beta1ObjectMetricSource. - targetValue is the target value of the metric (as a quantity). + """Sets the target_value of this V2beta1ObjectMetricSource. - :param target_value: The target_value of this V2beta1ObjectMetricSource. + targetValue is the target value of the metric (as a quantity). # noqa: E501 + + :param target_value: The target_value of this V2beta1ObjectMetricSource. # noqa: E501 :type: str """ if target_value is None: - raise ValueError("Invalid value for `target_value`, must not be `None`") + raise ValueError("Invalid value for `target_value`, must not be `None`") # noqa: E501 self._target_value = target_value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -214,28 +206,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ObjectMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_object_metric_status.py b/kubernetes/client/models/v2beta1_object_metric_status.py index 6f3e98e66e..0f08f2fafd 100644 --- a/kubernetes/client/models/v2beta1_object_metric_status.py +++ b/kubernetes/client/models/v2beta1_object_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ObjectMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'average_value': 'str', 'current_value': 'str', 'metric_name': 'str', @@ -46,10 +46,8 @@ class V2beta1ObjectMetricStatus(object): 'target': 'target' } - def __init__(self, average_value=None, current_value=None, metric_name=None, selector=None, target=None): - """ - V2beta1ObjectMetricStatus - a model defined in Swagger - """ + def __init__(self, average_value=None, current_value=None, metric_name=None, selector=None, target=None): # noqa: E501 + """V2beta1ObjectMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._average_value = None self._current_value = None @@ -59,31 +57,31 @@ def __init__(self, average_value=None, current_value=None, metric_name=None, sel self.discriminator = None if average_value is not None: - self.average_value = average_value + self.average_value = average_value self.current_value = current_value self.metric_name = metric_name if selector is not None: - self.selector = selector + self.selector = selector self.target = target @property def average_value(self): - """ - Gets the average_value of this V2beta1ObjectMetricStatus. - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Gets the average_value of this V2beta1ObjectMetricStatus. # noqa: E501 - :return: The average_value of this V2beta1ObjectMetricStatus. + averageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :return: The average_value of this V2beta1ObjectMetricStatus. # noqa: E501 :rtype: str """ return self._average_value @average_value.setter def average_value(self, average_value): - """ - Sets the average_value of this V2beta1ObjectMetricStatus. - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Sets the average_value of this V2beta1ObjectMetricStatus. - :param average_value: The average_value of this V2beta1ObjectMetricStatus. + averageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :param average_value: The average_value of this V2beta1ObjectMetricStatus. # noqa: E501 :type: str """ @@ -91,72 +89,70 @@ def average_value(self, average_value): @property def current_value(self): - """ - Gets the current_value of this V2beta1ObjectMetricStatus. - currentValue is the current value of the metric (as a quantity). + """Gets the current_value of this V2beta1ObjectMetricStatus. # noqa: E501 + + currentValue is the current value of the metric (as a quantity). # noqa: E501 - :return: The current_value of this V2beta1ObjectMetricStatus. + :return: The current_value of this V2beta1ObjectMetricStatus. # noqa: E501 :rtype: str """ return self._current_value @current_value.setter def current_value(self, current_value): - """ - Sets the current_value of this V2beta1ObjectMetricStatus. - currentValue is the current value of the metric (as a quantity). + """Sets the current_value of this V2beta1ObjectMetricStatus. + + currentValue is the current value of the metric (as a quantity). # noqa: E501 - :param current_value: The current_value of this V2beta1ObjectMetricStatus. + :param current_value: The current_value of this V2beta1ObjectMetricStatus. # noqa: E501 :type: str """ if current_value is None: - raise ValueError("Invalid value for `current_value`, must not be `None`") + raise ValueError("Invalid value for `current_value`, must not be `None`") # noqa: E501 self._current_value = current_value @property def metric_name(self): - """ - Gets the metric_name of this V2beta1ObjectMetricStatus. - metricName is the name of the metric in question. + """Gets the metric_name of this V2beta1ObjectMetricStatus. # noqa: E501 + + metricName is the name of the metric in question. # noqa: E501 - :return: The metric_name of this V2beta1ObjectMetricStatus. + :return: The metric_name of this V2beta1ObjectMetricStatus. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1ObjectMetricStatus. - metricName is the name of the metric in question. + """Sets the metric_name of this V2beta1ObjectMetricStatus. + + metricName is the name of the metric in question. # noqa: E501 - :param metric_name: The metric_name of this V2beta1ObjectMetricStatus. + :param metric_name: The metric_name of this V2beta1ObjectMetricStatus. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def selector(self): - """ - Gets the selector of this V2beta1ObjectMetricStatus. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Gets the selector of this V2beta1ObjectMetricStatus. # noqa: E501 + - :return: The selector of this V2beta1ObjectMetricStatus. + :return: The selector of this V2beta1ObjectMetricStatus. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V2beta1ObjectMetricStatus. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Sets the selector of this V2beta1ObjectMetricStatus. - :param selector: The selector of this V2beta1ObjectMetricStatus. + + :param selector: The selector of this V2beta1ObjectMetricStatus. # noqa: E501 :type: V1LabelSelector """ @@ -164,36 +160,32 @@ def selector(self, selector): @property def target(self): - """ - Gets the target of this V2beta1ObjectMetricStatus. - target is the described Kubernetes object. + """Gets the target of this V2beta1ObjectMetricStatus. # noqa: E501 - :return: The target of this V2beta1ObjectMetricStatus. + + :return: The target of this V2beta1ObjectMetricStatus. # noqa: E501 :rtype: V2beta1CrossVersionObjectReference """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta1ObjectMetricStatus. - target is the described Kubernetes object. + """Sets the target of this V2beta1ObjectMetricStatus. - :param target: The target of this V2beta1ObjectMetricStatus. + + :param target: The target of this V2beta1ObjectMetricStatus. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -214,28 +206,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ObjectMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_pods_metric_source.py b/kubernetes/client/models/v2beta1_pods_metric_source.py index 67220dae86..83d9f9340d 100644 --- a/kubernetes/client/models/v2beta1_pods_metric_source.py +++ b/kubernetes/client/models/v2beta1_pods_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1PodsMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metric_name': 'str', 'selector': 'V1LabelSelector', 'target_average_value': 'str' @@ -42,10 +42,8 @@ class V2beta1PodsMetricSource(object): 'target_average_value': 'targetAverageValue' } - def __init__(self, metric_name=None, selector=None, target_average_value=None): - """ - V2beta1PodsMetricSource - a model defined in Swagger - """ + def __init__(self, metric_name=None, selector=None, target_average_value=None): # noqa: E501 + """V2beta1PodsMetricSource - a model defined in OpenAPI""" # noqa: E501 self._metric_name = None self._selector = None @@ -54,52 +52,50 @@ def __init__(self, metric_name=None, selector=None, target_average_value=None): self.metric_name = metric_name if selector is not None: - self.selector = selector + self.selector = selector self.target_average_value = target_average_value @property def metric_name(self): - """ - Gets the metric_name of this V2beta1PodsMetricSource. - metricName is the name of the metric in question + """Gets the metric_name of this V2beta1PodsMetricSource. # noqa: E501 - :return: The metric_name of this V2beta1PodsMetricSource. + metricName is the name of the metric in question # noqa: E501 + + :return: The metric_name of this V2beta1PodsMetricSource. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1PodsMetricSource. - metricName is the name of the metric in question + """Sets the metric_name of this V2beta1PodsMetricSource. - :param metric_name: The metric_name of this V2beta1PodsMetricSource. + metricName is the name of the metric in question # noqa: E501 + + :param metric_name: The metric_name of this V2beta1PodsMetricSource. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def selector(self): - """ - Gets the selector of this V2beta1PodsMetricSource. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + """Gets the selector of this V2beta1PodsMetricSource. # noqa: E501 - :return: The selector of this V2beta1PodsMetricSource. + + :return: The selector of this V2beta1PodsMetricSource. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V2beta1PodsMetricSource. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + """Sets the selector of this V2beta1PodsMetricSource. + - :param selector: The selector of this V2beta1PodsMetricSource. + :param selector: The selector of this V2beta1PodsMetricSource. # noqa: E501 :type: V1LabelSelector """ @@ -107,36 +103,34 @@ def selector(self, selector): @property def target_average_value(self): - """ - Gets the target_average_value of this V2beta1PodsMetricSource. - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Gets the target_average_value of this V2beta1PodsMetricSource. # noqa: E501 + + targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 - :return: The target_average_value of this V2beta1PodsMetricSource. + :return: The target_average_value of this V2beta1PodsMetricSource. # noqa: E501 :rtype: str """ return self._target_average_value @target_average_value.setter def target_average_value(self, target_average_value): - """ - Sets the target_average_value of this V2beta1PodsMetricSource. - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Sets the target_average_value of this V2beta1PodsMetricSource. + + targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 - :param target_average_value: The target_average_value of this V2beta1PodsMetricSource. + :param target_average_value: The target_average_value of this V2beta1PodsMetricSource. # noqa: E501 :type: str """ if target_average_value is None: - raise ValueError("Invalid value for `target_average_value`, must not be `None`") + raise ValueError("Invalid value for `target_average_value`, must not be `None`") # noqa: E501 self._target_average_value = target_average_value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1PodsMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_pods_metric_status.py b/kubernetes/client/models/v2beta1_pods_metric_status.py index c82ebbe5a2..8130ef276a 100644 --- a/kubernetes/client/models/v2beta1_pods_metric_status.py +++ b/kubernetes/client/models/v2beta1_pods_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1PodsMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current_average_value': 'str', 'metric_name': 'str', 'selector': 'V1LabelSelector' @@ -42,10 +42,8 @@ class V2beta1PodsMetricStatus(object): 'selector': 'selector' } - def __init__(self, current_average_value=None, metric_name=None, selector=None): - """ - V2beta1PodsMetricStatus - a model defined in Swagger - """ + def __init__(self, current_average_value=None, metric_name=None, selector=None): # noqa: E501 + """V2beta1PodsMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current_average_value = None self._metric_name = None @@ -55,88 +53,84 @@ def __init__(self, current_average_value=None, metric_name=None, selector=None): self.current_average_value = current_average_value self.metric_name = metric_name if selector is not None: - self.selector = selector + self.selector = selector @property def current_average_value(self): - """ - Gets the current_average_value of this V2beta1PodsMetricStatus. - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Gets the current_average_value of this V2beta1PodsMetricStatus. # noqa: E501 - :return: The current_average_value of this V2beta1PodsMetricStatus. + currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :return: The current_average_value of this V2beta1PodsMetricStatus. # noqa: E501 :rtype: str """ return self._current_average_value @current_average_value.setter def current_average_value(self, current_average_value): - """ - Sets the current_average_value of this V2beta1PodsMetricStatus. - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Sets the current_average_value of this V2beta1PodsMetricStatus. - :param current_average_value: The current_average_value of this V2beta1PodsMetricStatus. + currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :param current_average_value: The current_average_value of this V2beta1PodsMetricStatus. # noqa: E501 :type: str """ if current_average_value is None: - raise ValueError("Invalid value for `current_average_value`, must not be `None`") + raise ValueError("Invalid value for `current_average_value`, must not be `None`") # noqa: E501 self._current_average_value = current_average_value @property def metric_name(self): - """ - Gets the metric_name of this V2beta1PodsMetricStatus. - metricName is the name of the metric in question + """Gets the metric_name of this V2beta1PodsMetricStatus. # noqa: E501 - :return: The metric_name of this V2beta1PodsMetricStatus. + metricName is the name of the metric in question # noqa: E501 + + :return: The metric_name of this V2beta1PodsMetricStatus. # noqa: E501 :rtype: str """ return self._metric_name @metric_name.setter def metric_name(self, metric_name): - """ - Sets the metric_name of this V2beta1PodsMetricStatus. - metricName is the name of the metric in question + """Sets the metric_name of this V2beta1PodsMetricStatus. + + metricName is the name of the metric in question # noqa: E501 - :param metric_name: The metric_name of this V2beta1PodsMetricStatus. + :param metric_name: The metric_name of this V2beta1PodsMetricStatus. # noqa: E501 :type: str """ if metric_name is None: - raise ValueError("Invalid value for `metric_name`, must not be `None`") + raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @property def selector(self): - """ - Gets the selector of this V2beta1PodsMetricStatus. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Gets the selector of this V2beta1PodsMetricStatus. # noqa: E501 + - :return: The selector of this V2beta1PodsMetricStatus. + :return: The selector of this V2beta1PodsMetricStatus. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V2beta1PodsMetricStatus. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Sets the selector of this V2beta1PodsMetricStatus. + - :param selector: The selector of this V2beta1PodsMetricStatus. + :param selector: The selector of this V2beta1PodsMetricStatus. # noqa: E501 :type: V1LabelSelector """ self._selector = selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1PodsMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_resource_metric_source.py b/kubernetes/client/models/v2beta1_resource_metric_source.py index e58ea11659..bdfe8c54ec 100644 --- a/kubernetes/client/models/v2beta1_resource_metric_source.py +++ b/kubernetes/client/models/v2beta1_resource_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ResourceMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'target_average_utilization': 'int', 'target_average_value': 'str' @@ -42,10 +42,8 @@ class V2beta1ResourceMetricSource(object): 'target_average_value': 'targetAverageValue' } - def __init__(self, name=None, target_average_utilization=None, target_average_value=None): - """ - V2beta1ResourceMetricSource - a model defined in Swagger - """ + def __init__(self, name=None, target_average_utilization=None, target_average_value=None): # noqa: E501 + """V2beta1ResourceMetricSource - a model defined in OpenAPI""" # noqa: E501 self._name = None self._target_average_utilization = None @@ -54,53 +52,53 @@ def __init__(self, name=None, target_average_utilization=None, target_average_va self.name = name if target_average_utilization is not None: - self.target_average_utilization = target_average_utilization + self.target_average_utilization = target_average_utilization if target_average_value is not None: - self.target_average_value = target_average_value + self.target_average_value = target_average_value @property def name(self): - """ - Gets the name of this V2beta1ResourceMetricSource. - name is the name of the resource in question. + """Gets the name of this V2beta1ResourceMetricSource. # noqa: E501 - :return: The name of this V2beta1ResourceMetricSource. + name is the name of the resource in question. # noqa: E501 + + :return: The name of this V2beta1ResourceMetricSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta1ResourceMetricSource. - name is the name of the resource in question. + """Sets the name of this V2beta1ResourceMetricSource. - :param name: The name of this V2beta1ResourceMetricSource. + name is the name of the resource in question. # noqa: E501 + + :param name: The name of this V2beta1ResourceMetricSource. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def target_average_utilization(self): - """ - Gets the target_average_utilization of this V2beta1ResourceMetricSource. - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + """Gets the target_average_utilization of this V2beta1ResourceMetricSource. # noqa: E501 - :return: The target_average_utilization of this V2beta1ResourceMetricSource. + targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. # noqa: E501 + + :return: The target_average_utilization of this V2beta1ResourceMetricSource. # noqa: E501 :rtype: int """ return self._target_average_utilization @target_average_utilization.setter def target_average_utilization(self, target_average_utilization): - """ - Sets the target_average_utilization of this V2beta1ResourceMetricSource. - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + """Sets the target_average_utilization of this V2beta1ResourceMetricSource. + + targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. # noqa: E501 - :param target_average_utilization: The target_average_utilization of this V2beta1ResourceMetricSource. + :param target_average_utilization: The target_average_utilization of this V2beta1ResourceMetricSource. # noqa: E501 :type: int """ @@ -108,34 +106,32 @@ def target_average_utilization(self, target_average_utilization): @property def target_average_value(self): - """ - Gets the target_average_value of this V2beta1ResourceMetricSource. - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + """Gets the target_average_value of this V2beta1ResourceMetricSource. # noqa: E501 + + targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. # noqa: E501 - :return: The target_average_value of this V2beta1ResourceMetricSource. + :return: The target_average_value of this V2beta1ResourceMetricSource. # noqa: E501 :rtype: str """ return self._target_average_value @target_average_value.setter def target_average_value(self, target_average_value): - """ - Sets the target_average_value of this V2beta1ResourceMetricSource. - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + """Sets the target_average_value of this V2beta1ResourceMetricSource. + + targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. # noqa: E501 - :param target_average_value: The target_average_value of this V2beta1ResourceMetricSource. + :param target_average_value: The target_average_value of this V2beta1ResourceMetricSource. # noqa: E501 :type: str """ self._target_average_value = target_average_value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +152,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ResourceMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta1_resource_metric_status.py b/kubernetes/client/models/v2beta1_resource_metric_status.py index dd0f489dc7..3774419cd3 100644 --- a/kubernetes/client/models/v2beta1_resource_metric_status.py +++ b/kubernetes/client/models/v2beta1_resource_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta1ResourceMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current_average_utilization': 'int', 'current_average_value': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V2beta1ResourceMetricStatus(object): 'name': 'name' } - def __init__(self, current_average_utilization=None, current_average_value=None, name=None): - """ - V2beta1ResourceMetricStatus - a model defined in Swagger - """ + def __init__(self, current_average_utilization=None, current_average_value=None, name=None): # noqa: E501 + """V2beta1ResourceMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current_average_utilization = None self._current_average_value = None @@ -53,28 +51,28 @@ def __init__(self, current_average_utilization=None, current_average_value=None, self.discriminator = None if current_average_utilization is not None: - self.current_average_utilization = current_average_utilization + self.current_average_utilization = current_average_utilization self.current_average_value = current_average_value self.name = name @property def current_average_utilization(self): - """ - Gets the current_average_utilization of this V2beta1ResourceMetricStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + """Gets the current_average_utilization of this V2beta1ResourceMetricStatus. # noqa: E501 - :return: The current_average_utilization of this V2beta1ResourceMetricStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. # noqa: E501 + + :return: The current_average_utilization of this V2beta1ResourceMetricStatus. # noqa: E501 :rtype: int """ return self._current_average_utilization @current_average_utilization.setter def current_average_utilization(self, current_average_utilization): - """ - Sets the current_average_utilization of this V2beta1ResourceMetricStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + """Sets the current_average_utilization of this V2beta1ResourceMetricStatus. - :param current_average_utilization: The current_average_utilization of this V2beta1ResourceMetricStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. # noqa: E501 + + :param current_average_utilization: The current_average_utilization of this V2beta1ResourceMetricStatus. # noqa: E501 :type: int """ @@ -82,61 +80,59 @@ def current_average_utilization(self, current_average_utilization): @property def current_average_value(self): - """ - Gets the current_average_value of this V2beta1ResourceMetricStatus. - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + """Gets the current_average_value of this V2beta1ResourceMetricStatus. # noqa: E501 - :return: The current_average_value of this V2beta1ResourceMetricStatus. + currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. # noqa: E501 + + :return: The current_average_value of this V2beta1ResourceMetricStatus. # noqa: E501 :rtype: str """ return self._current_average_value @current_average_value.setter def current_average_value(self, current_average_value): - """ - Sets the current_average_value of this V2beta1ResourceMetricStatus. - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + """Sets the current_average_value of this V2beta1ResourceMetricStatus. + + currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. # noqa: E501 - :param current_average_value: The current_average_value of this V2beta1ResourceMetricStatus. + :param current_average_value: The current_average_value of this V2beta1ResourceMetricStatus. # noqa: E501 :type: str """ if current_average_value is None: - raise ValueError("Invalid value for `current_average_value`, must not be `None`") + raise ValueError("Invalid value for `current_average_value`, must not be `None`") # noqa: E501 self._current_average_value = current_average_value @property def name(self): - """ - Gets the name of this V2beta1ResourceMetricStatus. - name is the name of the resource in question. + """Gets the name of this V2beta1ResourceMetricStatus. # noqa: E501 + + name is the name of the resource in question. # noqa: E501 - :return: The name of this V2beta1ResourceMetricStatus. + :return: The name of this V2beta1ResourceMetricStatus. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta1ResourceMetricStatus. - name is the name of the resource in question. + """Sets the name of this V2beta1ResourceMetricStatus. + + name is the name of the resource in question. # noqa: E501 - :param name: The name of this V2beta1ResourceMetricStatus. + :param name: The name of this V2beta1ResourceMetricStatus. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta1ResourceMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_cross_version_object_reference.py b/kubernetes/client/models/v2beta2_cross_version_object_reference.py index f8f7ad2eec..be46808299 100644 --- a/kubernetes/client/models/v2beta2_cross_version_object_reference.py +++ b/kubernetes/client/models/v2beta2_cross_version_object_reference.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2CrossVersionObjectReference(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'name': 'str' @@ -42,10 +42,8 @@ class V2beta2CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): - """ - V2beta2CrossVersionObjectReference - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + """V2beta2CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -53,28 +51,28 @@ def __init__(self, api_version=None, kind=None, name=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.kind = kind self.name = name @property def api_version(self): - """ - Gets the api_version of this V2beta2CrossVersionObjectReference. - API version of the referent + """Gets the api_version of this V2beta2CrossVersionObjectReference. # noqa: E501 - :return: The api_version of this V2beta2CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :return: The api_version of this V2beta2CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta2CrossVersionObjectReference. - API version of the referent + """Sets the api_version of this V2beta2CrossVersionObjectReference. - :param api_version: The api_version of this V2beta2CrossVersionObjectReference. + API version of the referent # noqa: E501 + + :param api_version: The api_version of this V2beta2CrossVersionObjectReference. # noqa: E501 :type: str """ @@ -82,61 +80,59 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V2beta2CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Gets the kind of this V2beta2CrossVersionObjectReference. # noqa: E501 - :return: The kind of this V2beta2CrossVersionObjectReference. + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 + + :return: The kind of this V2beta2CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta2CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" + """Sets the kind of this V2beta2CrossVersionObjectReference. + + Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\" # noqa: E501 - :param kind: The kind of this V2beta2CrossVersionObjectReference. + :param kind: The kind of this V2beta2CrossVersionObjectReference. # noqa: E501 :type: str """ if kind is None: - raise ValueError("Invalid value for `kind`, must not be `None`") + raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @property def name(self): - """ - Gets the name of this V2beta2CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Gets the name of this V2beta2CrossVersionObjectReference. # noqa: E501 + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :return: The name of this V2beta2CrossVersionObjectReference. + :return: The name of this V2beta2CrossVersionObjectReference. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta2CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + """Sets the name of this V2beta2CrossVersionObjectReference. + + Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 - :param name: The name of this V2beta2CrossVersionObjectReference. + :param name: The name of this V2beta2CrossVersionObjectReference. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -157,28 +153,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2CrossVersionObjectReference): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_external_metric_source.py b/kubernetes/client/models/v2beta2_external_metric_source.py index 4f99978fd5..c9276808f2 100644 --- a/kubernetes/client/models/v2beta2_external_metric_source.py +++ b/kubernetes/client/models/v2beta2_external_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ExternalMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metric': 'V2beta2MetricIdentifier', 'target': 'V2beta2MetricTarget' } @@ -40,10 +40,8 @@ class V2beta2ExternalMetricSource(object): 'target': 'target' } - def __init__(self, metric=None, target=None): - """ - V2beta2ExternalMetricSource - a model defined in Swagger - """ + def __init__(self, metric=None, target=None): # noqa: E501 + """V2beta2ExternalMetricSource - a model defined in OpenAPI""" # noqa: E501 self._metric = None self._target = None @@ -54,61 +52,55 @@ def __init__(self, metric=None, target=None): @property def metric(self): - """ - Gets the metric of this V2beta2ExternalMetricSource. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2ExternalMetricSource. # noqa: E501 + - :return: The metric of this V2beta2ExternalMetricSource. + :return: The metric of this V2beta2ExternalMetricSource. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2ExternalMetricSource. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2ExternalMetricSource. - :param metric: The metric of this V2beta2ExternalMetricSource. + + :param metric: The metric of this V2beta2ExternalMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @property def target(self): - """ - Gets the target of this V2beta2ExternalMetricSource. - target specifies the target value for the given metric + """Gets the target of this V2beta2ExternalMetricSource. # noqa: E501 + - :return: The target of this V2beta2ExternalMetricSource. + :return: The target of this V2beta2ExternalMetricSource. # noqa: E501 :rtype: V2beta2MetricTarget """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta2ExternalMetricSource. - target specifies the target value for the given metric + """Sets the target of this V2beta2ExternalMetricSource. + - :param target: The target of this V2beta2ExternalMetricSource. + :param target: The target of this V2beta2ExternalMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ExternalMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_external_metric_status.py b/kubernetes/client/models/v2beta2_external_metric_status.py index 31e345f639..3edb003ace 100644 --- a/kubernetes/client/models/v2beta2_external_metric_status.py +++ b/kubernetes/client/models/v2beta2_external_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ExternalMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current': 'V2beta2MetricValueStatus', 'metric': 'V2beta2MetricIdentifier' } @@ -40,10 +40,8 @@ class V2beta2ExternalMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, metric=None): - """ - V2beta2ExternalMetricStatus - a model defined in Swagger - """ + def __init__(self, current=None, metric=None): # noqa: E501 + """V2beta2ExternalMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current = None self._metric = None @@ -54,61 +52,55 @@ def __init__(self, current=None, metric=None): @property def current(self): - """ - Gets the current of this V2beta2ExternalMetricStatus. - current contains the current value for the given metric + """Gets the current of this V2beta2ExternalMetricStatus. # noqa: E501 + - :return: The current of this V2beta2ExternalMetricStatus. + :return: The current of this V2beta2ExternalMetricStatus. # noqa: E501 :rtype: V2beta2MetricValueStatus """ return self._current @current.setter def current(self, current): - """ - Sets the current of this V2beta2ExternalMetricStatus. - current contains the current value for the given metric + """Sets the current of this V2beta2ExternalMetricStatus. - :param current: The current of this V2beta2ExternalMetricStatus. + + :param current: The current of this V2beta2ExternalMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ if current is None: - raise ValueError("Invalid value for `current`, must not be `None`") + raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @property def metric(self): - """ - Gets the metric of this V2beta2ExternalMetricStatus. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2ExternalMetricStatus. # noqa: E501 + - :return: The metric of this V2beta2ExternalMetricStatus. + :return: The metric of this V2beta2ExternalMetricStatus. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2ExternalMetricStatus. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2ExternalMetricStatus. + - :param metric: The metric of this V2beta2ExternalMetricStatus. + :param metric: The metric of this V2beta2ExternalMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ExternalMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py index 7f4fe0b659..d6c6ff9b2a 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2HorizontalPodAutoscaler(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', @@ -46,10 +46,8 @@ class V2beta2HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): - """ - V2beta2HorizontalPodAutoscaler - a model defined in Swagger - """ + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + """V2beta2HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._kind = None @@ -59,34 +57,34 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata if spec is not None: - self.spec = spec + self.spec = spec if status is not None: - self.status = status + self.status = status @property def api_version(self): - """ - Gets the api_version of this V2beta2HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2beta2HorizontalPodAutoscaler. # noqa: E501 - :return: The api_version of this V2beta2HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :return: The api_version of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta2HorizontalPodAutoscaler. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2beta2HorizontalPodAutoscaler. - :param api_version: The api_version of this V2beta2HorizontalPodAutoscaler. + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 + + :param api_version: The api_version of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -94,22 +92,22 @@ def api_version(self, api_version): @property def kind(self): - """ - Gets the kind of this V2beta2HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2beta2HorizontalPodAutoscaler. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2beta2HorizontalPodAutoscaler. + :return: The kind of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta2HorizontalPodAutoscaler. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2beta2HorizontalPodAutoscaler. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2beta2HorizontalPodAutoscaler. + :param kind: The kind of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :type: str """ @@ -117,22 +115,20 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2beta2HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Gets the metadata of this V2beta2HorizontalPodAutoscaler. # noqa: E501 + - :return: The metadata of this V2beta2HorizontalPodAutoscaler. + :return: The metadata of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :rtype: V1ObjectMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2beta2HorizontalPodAutoscaler. - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + """Sets the metadata of this V2beta2HorizontalPodAutoscaler. + - :param metadata: The metadata of this V2beta2HorizontalPodAutoscaler. + :param metadata: The metadata of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :type: V1ObjectMeta """ @@ -140,22 +136,20 @@ def metadata(self, metadata): @property def spec(self): - """ - Gets the spec of this V2beta2HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Gets the spec of this V2beta2HorizontalPodAutoscaler. # noqa: E501 + - :return: The spec of this V2beta2HorizontalPodAutoscaler. + :return: The spec of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :rtype: V2beta2HorizontalPodAutoscalerSpec """ return self._spec @spec.setter def spec(self, spec): - """ - Sets the spec of this V2beta2HorizontalPodAutoscaler. - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + """Sets the spec of this V2beta2HorizontalPodAutoscaler. - :param spec: The spec of this V2beta2HorizontalPodAutoscaler. + + :param spec: The spec of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :type: V2beta2HorizontalPodAutoscalerSpec """ @@ -163,34 +157,30 @@ def spec(self, spec): @property def status(self): - """ - Gets the status of this V2beta2HorizontalPodAutoscaler. - status is the current information about the autoscaler. + """Gets the status of this V2beta2HorizontalPodAutoscaler. # noqa: E501 - :return: The status of this V2beta2HorizontalPodAutoscaler. + + :return: The status of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :rtype: V2beta2HorizontalPodAutoscalerStatus """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V2beta2HorizontalPodAutoscaler. - status is the current information about the autoscaler. + """Sets the status of this V2beta2HorizontalPodAutoscaler. - :param status: The status of this V2beta2HorizontalPodAutoscaler. + + :param status: The status of this V2beta2HorizontalPodAutoscaler. # noqa: E501 :type: V2beta2HorizontalPodAutoscalerStatus """ self._status = status def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -211,28 +201,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2HorizontalPodAutoscaler): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py index 0a880fa226..bacc54324f 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2HorizontalPodAutoscalerCondition(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', @@ -46,10 +46,8 @@ class V2beta2HorizontalPodAutoscalerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): - """ - V2beta2HorizontalPodAutoscalerCondition - a model defined in Swagger - """ + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + """V2beta2HorizontalPodAutoscalerCondition - a model defined in OpenAPI""" # noqa: E501 self._last_transition_time = None self._message = None @@ -59,32 +57,32 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= self.discriminator = None if last_transition_time is not None: - self.last_transition_time = last_transition_time + self.last_transition_time = last_transition_time if message is not None: - self.message = message + self.message = message if reason is not None: - self.reason = reason + self.reason = reason self.status = status self.type = type @property def last_transition_time(self): - """ - Gets the last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. - lastTransitionTime is the last time the condition transitioned from one status to another + """Gets the last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 - :return: The last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. + lastTransitionTime is the last time the condition transitioned from one status to another # noqa: E501 + + :return: The last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: datetime """ return self._last_transition_time @last_transition_time.setter def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. - lastTransitionTime is the last time the condition transitioned from one status to another + """Sets the last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. - :param last_transition_time: The last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. + lastTransitionTime is the last time the condition transitioned from one status to another # noqa: E501 + + :param last_transition_time: The last_transition_time of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: datetime """ @@ -92,22 +90,22 @@ def last_transition_time(self, last_transition_time): @property def message(self): - """ - Gets the message of this V2beta2HorizontalPodAutoscalerCondition. - message is a human-readable explanation containing details about the transition + """Gets the message of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 + + message is a human-readable explanation containing details about the transition # noqa: E501 - :return: The message of this V2beta2HorizontalPodAutoscalerCondition. + :return: The message of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """ - Sets the message of this V2beta2HorizontalPodAutoscalerCondition. - message is a human-readable explanation containing details about the transition + """Sets the message of this V2beta2HorizontalPodAutoscalerCondition. + + message is a human-readable explanation containing details about the transition # noqa: E501 - :param message: The message of this V2beta2HorizontalPodAutoscalerCondition. + :param message: The message of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ @@ -115,22 +113,22 @@ def message(self, message): @property def reason(self): - """ - Gets the reason of this V2beta2HorizontalPodAutoscalerCondition. - reason is the reason for the condition's last transition. + """Gets the reason of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 + + reason is the reason for the condition's last transition. # noqa: E501 - :return: The reason of this V2beta2HorizontalPodAutoscalerCondition. + :return: The reason of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): - """ - Sets the reason of this V2beta2HorizontalPodAutoscalerCondition. - reason is the reason for the condition's last transition. + """Sets the reason of this V2beta2HorizontalPodAutoscalerCondition. + + reason is the reason for the condition's last transition. # noqa: E501 - :param reason: The reason of this V2beta2HorizontalPodAutoscalerCondition. + :param reason: The reason of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ @@ -138,61 +136,59 @@ def reason(self, reason): @property def status(self): - """ - Gets the status of this V2beta2HorizontalPodAutoscalerCondition. - status is the status of the condition (True, False, Unknown) + """Gets the status of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 + + status is the status of the condition (True, False, Unknown) # noqa: E501 - :return: The status of this V2beta2HorizontalPodAutoscalerCondition. + :return: The status of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this V2beta2HorizontalPodAutoscalerCondition. - status is the status of the condition (True, False, Unknown) + """Sets the status of this V2beta2HorizontalPodAutoscalerCondition. - :param status: The status of this V2beta2HorizontalPodAutoscalerCondition. + status is the status of the condition (True, False, Unknown) # noqa: E501 + + :param status: The status of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def type(self): - """ - Gets the type of this V2beta2HorizontalPodAutoscalerCondition. - type describes the current condition + """Gets the type of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 - :return: The type of this V2beta2HorizontalPodAutoscalerCondition. + type describes the current condition # noqa: E501 + + :return: The type of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta2HorizontalPodAutoscalerCondition. - type describes the current condition + """Sets the type of this V2beta2HorizontalPodAutoscalerCondition. - :param type: The type of this V2beta2HorizontalPodAutoscalerCondition. + type describes the current condition # noqa: E501 + + :param type: The type of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -213,28 +209,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2HorizontalPodAutoscalerCondition): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py index 8076f48f16..68e5edd172 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2HorizontalPodAutoscalerList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'api_version': 'str', 'items': 'list[V2beta2HorizontalPodAutoscaler]', 'kind': 'str', @@ -44,10 +44,8 @@ class V2beta2HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): - """ - V2beta2HorizontalPodAutoscalerList - a model defined in Swagger - """ + def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + """V2beta2HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 self._api_version = None self._items = None @@ -56,31 +54,31 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): self.discriminator = None if api_version is not None: - self.api_version = api_version + self.api_version = api_version self.items = items if kind is not None: - self.kind = kind + self.kind = kind if metadata is not None: - self.metadata = metadata + self.metadata = metadata @property def api_version(self): - """ - Gets the api_version of this V2beta2HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Gets the api_version of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :return: The api_version of this V2beta2HorizontalPodAutoscalerList. + :return: The api_version of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._api_version @api_version.setter def api_version(self, api_version): - """ - Sets the api_version of this V2beta2HorizontalPodAutoscalerList. - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + """Sets the api_version of this V2beta2HorizontalPodAutoscalerList. + + APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources # noqa: E501 - :param api_version: The api_version of this V2beta2HorizontalPodAutoscalerList. + :param api_version: The api_version of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -88,47 +86,47 @@ def api_version(self, api_version): @property def items(self): - """ - Gets the items of this V2beta2HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. + """Gets the items of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 + + items is the list of horizontal pod autoscaler objects. # noqa: E501 - :return: The items of this V2beta2HorizontalPodAutoscalerList. + :return: The items of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :rtype: list[V2beta2HorizontalPodAutoscaler] """ return self._items @items.setter def items(self, items): - """ - Sets the items of this V2beta2HorizontalPodAutoscalerList. - items is the list of horizontal pod autoscaler objects. + """Sets the items of this V2beta2HorizontalPodAutoscalerList. + + items is the list of horizontal pod autoscaler objects. # noqa: E501 - :param items: The items of this V2beta2HorizontalPodAutoscalerList. + :param items: The items of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :type: list[V2beta2HorizontalPodAutoscaler] """ if items is None: - raise ValueError("Invalid value for `items`, must not be `None`") + raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @property def kind(self): - """ - Gets the kind of this V2beta2HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Gets the kind of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :return: The kind of this V2beta2HorizontalPodAutoscalerList. + :return: The kind of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :rtype: str """ return self._kind @kind.setter def kind(self, kind): - """ - Sets the kind of this V2beta2HorizontalPodAutoscalerList. - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + """Sets the kind of this V2beta2HorizontalPodAutoscalerList. + + Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds # noqa: E501 - :param kind: The kind of this V2beta2HorizontalPodAutoscalerList. + :param kind: The kind of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :type: str """ @@ -136,34 +134,30 @@ def kind(self, kind): @property def metadata(self): - """ - Gets the metadata of this V2beta2HorizontalPodAutoscalerList. - metadata is the standard list metadata. + """Gets the metadata of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 + - :return: The metadata of this V2beta2HorizontalPodAutoscalerList. + :return: The metadata of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :rtype: V1ListMeta """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this V2beta2HorizontalPodAutoscalerList. - metadata is the standard list metadata. + """Sets the metadata of this V2beta2HorizontalPodAutoscalerList. + - :param metadata: The metadata of this V2beta2HorizontalPodAutoscalerList. + :param metadata: The metadata of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :type: V1ListMeta """ self._metadata = metadata def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +178,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2HorizontalPodAutoscalerList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py index a87f6ebf39..59e173eebf 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2HorizontalPodAutoscalerSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'max_replicas': 'int', 'metrics': 'list[V2beta2MetricSpec]', 'min_replicas': 'int', @@ -44,10 +44,8 @@ class V2beta2HorizontalPodAutoscalerSpec(object): 'scale_target_ref': 'scaleTargetRef' } - def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): - """ - V2beta2HorizontalPodAutoscalerSpec - a model defined in Swagger - """ + def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): # noqa: E501 + """V2beta2HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 self._max_replicas = None self._metrics = None @@ -57,54 +55,54 @@ def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_tar self.max_replicas = max_replicas if metrics is not None: - self.metrics = metrics + self.metrics = metrics if min_replicas is not None: - self.min_replicas = min_replicas + self.min_replicas = min_replicas self.scale_target_ref = scale_target_ref @property def max_replicas(self): - """ - Gets the max_replicas of this V2beta2HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + """Gets the max_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 + + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. # noqa: E501 - :return: The max_replicas of this V2beta2HorizontalPodAutoscalerSpec. + :return: The max_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._max_replicas @max_replicas.setter def max_replicas(self, max_replicas): - """ - Sets the max_replicas of this V2beta2HorizontalPodAutoscalerSpec. - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + """Sets the max_replicas of this V2beta2HorizontalPodAutoscalerSpec. + + maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. # noqa: E501 - :param max_replicas: The max_replicas of this V2beta2HorizontalPodAutoscalerSpec. + :param max_replicas: The max_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ if max_replicas is None: - raise ValueError("Invalid value for `max_replicas`, must not be `None`") + raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @property def metrics(self): - """ - Gets the metrics of this V2beta2HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + """Gets the metrics of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 + + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. # noqa: E501 - :return: The metrics of this V2beta2HorizontalPodAutoscalerSpec. + :return: The metrics of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: list[V2beta2MetricSpec] """ return self._metrics @metrics.setter def metrics(self, metrics): - """ - Sets the metrics of this V2beta2HorizontalPodAutoscalerSpec. - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + """Sets the metrics of this V2beta2HorizontalPodAutoscalerSpec. + + metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. # noqa: E501 - :param metrics: The metrics of this V2beta2HorizontalPodAutoscalerSpec. + :param metrics: The metrics of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: list[V2beta2MetricSpec] """ @@ -112,22 +110,22 @@ def metrics(self, metrics): @property def min_replicas(self): - """ - Gets the min_replicas of this V2beta2HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + """Gets the min_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 + + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. # noqa: E501 - :return: The min_replicas of this V2beta2HorizontalPodAutoscalerSpec. + :return: The min_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: int """ return self._min_replicas @min_replicas.setter def min_replicas(self, min_replicas): - """ - Sets the min_replicas of this V2beta2HorizontalPodAutoscalerSpec. - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. + """Sets the min_replicas of this V2beta2HorizontalPodAutoscalerSpec. + + minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. # noqa: E501 - :param min_replicas: The min_replicas of this V2beta2HorizontalPodAutoscalerSpec. + :param min_replicas: The min_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ @@ -135,36 +133,32 @@ def min_replicas(self, min_replicas): @property def scale_target_ref(self): - """ - Gets the scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """Gets the scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 + - :return: The scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. + :return: The scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :rtype: V2beta2CrossVersionObjectReference """ return self._scale_target_ref @scale_target_ref.setter def scale_target_ref(self, scale_target_ref): - """ - Sets the scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """Sets the scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. + - :param scale_target_ref: The scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. + :param scale_target_ref: The scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ if scale_target_ref is None: - raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") + raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -185,28 +179,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2HorizontalPodAutoscalerSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py index f5875be68f..18fd7ed2d6 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2HorizontalPodAutoscalerStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'conditions': 'list[V2beta2HorizontalPodAutoscalerCondition]', 'current_metrics': 'list[V2beta2MetricStatus]', 'current_replicas': 'int', @@ -48,10 +48,8 @@ class V2beta2HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): - """ - V2beta2HorizontalPodAutoscalerStatus - a model defined in Swagger - """ + def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + """V2beta2HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 self._conditions = None self._current_metrics = None @@ -63,57 +61,57 @@ def __init__(self, conditions=None, current_metrics=None, current_replicas=None, self.conditions = conditions if current_metrics is not None: - self.current_metrics = current_metrics + self.current_metrics = current_metrics self.current_replicas = current_replicas self.desired_replicas = desired_replicas if last_scale_time is not None: - self.last_scale_time = last_scale_time + self.last_scale_time = last_scale_time if observed_generation is not None: - self.observed_generation = observed_generation + self.observed_generation = observed_generation @property def conditions(self): - """ - Gets the conditions of this V2beta2HorizontalPodAutoscalerStatus. - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + """Gets the conditions of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 + + conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. # noqa: E501 - :return: The conditions of this V2beta2HorizontalPodAutoscalerStatus. + :return: The conditions of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: list[V2beta2HorizontalPodAutoscalerCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): - """ - Sets the conditions of this V2beta2HorizontalPodAutoscalerStatus. - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + """Sets the conditions of this V2beta2HorizontalPodAutoscalerStatus. + + conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. # noqa: E501 - :param conditions: The conditions of this V2beta2HorizontalPodAutoscalerStatus. + :param conditions: The conditions of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta2HorizontalPodAutoscalerCondition] """ if conditions is None: - raise ValueError("Invalid value for `conditions`, must not be `None`") + raise ValueError("Invalid value for `conditions`, must not be `None`") # noqa: E501 self._conditions = conditions @property def current_metrics(self): - """ - Gets the current_metrics of this V2beta2HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. + """Gets the current_metrics of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 + + currentMetrics is the last read state of the metrics used by this autoscaler. # noqa: E501 - :return: The current_metrics of this V2beta2HorizontalPodAutoscalerStatus. + :return: The current_metrics of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: list[V2beta2MetricStatus] """ return self._current_metrics @current_metrics.setter def current_metrics(self, current_metrics): - """ - Sets the current_metrics of this V2beta2HorizontalPodAutoscalerStatus. - currentMetrics is the last read state of the metrics used by this autoscaler. + """Sets the current_metrics of this V2beta2HorizontalPodAutoscalerStatus. - :param current_metrics: The current_metrics of this V2beta2HorizontalPodAutoscalerStatus. + currentMetrics is the last read state of the metrics used by this autoscaler. # noqa: E501 + + :param current_metrics: The current_metrics of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta2MetricStatus] """ @@ -121,72 +119,72 @@ def current_metrics(self, current_metrics): @property def current_replicas(self): - """ - Gets the current_replicas of this V2beta2HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + """Gets the current_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The current_replicas of this V2beta2HorizontalPodAutoscalerStatus. + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. # noqa: E501 + + :return: The current_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._current_replicas @current_replicas.setter def current_replicas(self, current_replicas): - """ - Sets the current_replicas of this V2beta2HorizontalPodAutoscalerStatus. - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + """Sets the current_replicas of this V2beta2HorizontalPodAutoscalerStatus. + + currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. # noqa: E501 - :param current_replicas: The current_replicas of this V2beta2HorizontalPodAutoscalerStatus. + :param current_replicas: The current_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if current_replicas is None: - raise ValueError("Invalid value for `current_replicas`, must not be `None`") + raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @property def desired_replicas(self): - """ - Gets the desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + """Gets the desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 + + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. # noqa: E501 - :return: The desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. + :return: The desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._desired_replicas @desired_replicas.setter def desired_replicas(self, desired_replicas): - """ - Sets the desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + """Sets the desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. + + desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. # noqa: E501 - :param desired_replicas: The desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. + :param desired_replicas: The desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ if desired_replicas is None: - raise ValueError("Invalid value for `desired_replicas`, must not be `None`") + raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @property def last_scale_time(self): - """ - Gets the last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + """Gets the last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 - :return: The last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. # noqa: E501 + + :return: The last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: datetime """ return self._last_scale_time @last_scale_time.setter def last_scale_time(self, last_scale_time): - """ - Sets the last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + """Sets the last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. - :param last_scale_time: The last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. + lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. # noqa: E501 + + :param last_scale_time: The last_scale_time of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: datetime """ @@ -194,34 +192,32 @@ def last_scale_time(self, last_scale_time): @property def observed_generation(self): - """ - Gets the observed_generation of this V2beta2HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. + """Gets the observed_generation of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 + + observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501 - :return: The observed_generation of this V2beta2HorizontalPodAutoscalerStatus. + :return: The observed_generation of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :rtype: int """ return self._observed_generation @observed_generation.setter def observed_generation(self, observed_generation): - """ - Sets the observed_generation of this V2beta2HorizontalPodAutoscalerStatus. - observedGeneration is the most recent generation observed by this autoscaler. + """Sets the observed_generation of this V2beta2HorizontalPodAutoscalerStatus. + + observedGeneration is the most recent generation observed by this autoscaler. # noqa: E501 - :param observed_generation: The observed_generation of this V2beta2HorizontalPodAutoscalerStatus. + :param observed_generation: The observed_generation of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ self._observed_generation = observed_generation def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -242,28 +238,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2HorizontalPodAutoscalerStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_metric_identifier.py b/kubernetes/client/models/v2beta2_metric_identifier.py index df8472dd44..483c82a87d 100644 --- a/kubernetes/client/models/v2beta2_metric_identifier.py +++ b/kubernetes/client/models/v2beta2_metric_identifier.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2MetricIdentifier(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'selector': 'V1LabelSelector' } @@ -40,10 +40,8 @@ class V2beta2MetricIdentifier(object): 'selector': 'selector' } - def __init__(self, name=None, selector=None): - """ - V2beta2MetricIdentifier - a model defined in Swagger - """ + def __init__(self, name=None, selector=None): # noqa: E501 + """V2beta2MetricIdentifier - a model defined in OpenAPI""" # noqa: E501 self._name = None self._selector = None @@ -51,63 +49,59 @@ def __init__(self, name=None, selector=None): self.name = name if selector is not None: - self.selector = selector + self.selector = selector @property def name(self): - """ - Gets the name of this V2beta2MetricIdentifier. - name is the name of the given metric + """Gets the name of this V2beta2MetricIdentifier. # noqa: E501 + + name is the name of the given metric # noqa: E501 - :return: The name of this V2beta2MetricIdentifier. + :return: The name of this V2beta2MetricIdentifier. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta2MetricIdentifier. - name is the name of the given metric + """Sets the name of this V2beta2MetricIdentifier. - :param name: The name of this V2beta2MetricIdentifier. + name is the name of the given metric # noqa: E501 + + :param name: The name of this V2beta2MetricIdentifier. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def selector(self): - """ - Gets the selector of this V2beta2MetricIdentifier. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Gets the selector of this V2beta2MetricIdentifier. # noqa: E501 + - :return: The selector of this V2beta2MetricIdentifier. + :return: The selector of this V2beta2MetricIdentifier. # noqa: E501 :rtype: V1LabelSelector """ return self._selector @selector.setter def selector(self, selector): - """ - Sets the selector of this V2beta2MetricIdentifier. - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + """Sets the selector of this V2beta2MetricIdentifier. + - :param selector: The selector of this V2beta2MetricIdentifier. + :param selector: The selector of this V2beta2MetricIdentifier. # noqa: E501 :type: V1LabelSelector """ self._selector = selector def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -128,28 +122,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2MetricIdentifier): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_metric_spec.py b/kubernetes/client/models/v2beta2_metric_spec.py index 4b78a332d3..d7ff252350 100644 --- a/kubernetes/client/models/v2beta2_metric_spec.py +++ b/kubernetes/client/models/v2beta2_metric_spec.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2MetricSpec(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'external': 'V2beta2ExternalMetricSource', 'object': 'V2beta2ObjectMetricSource', 'pods': 'V2beta2PodsMetricSource', @@ -46,10 +46,8 @@ class V2beta2MetricSpec(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): - """ - V2beta2MetricSpec - a model defined in Swagger - """ + def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + """V2beta2MetricSpec - a model defined in OpenAPI""" # noqa: E501 self._external = None self._object = None @@ -59,33 +57,31 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No self.discriminator = None if external is not None: - self.external = external + self.external = external if object is not None: - self.object = object + self.object = object if pods is not None: - self.pods = pods + self.pods = pods if resource is not None: - self.resource = resource + self.resource = resource self.type = type @property def external(self): - """ - Gets the external of this V2beta2MetricSpec. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Gets the external of this V2beta2MetricSpec. # noqa: E501 - :return: The external of this V2beta2MetricSpec. + + :return: The external of this V2beta2MetricSpec. # noqa: E501 :rtype: V2beta2ExternalMetricSource """ return self._external @external.setter def external(self, external): - """ - Sets the external of this V2beta2MetricSpec. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Sets the external of this V2beta2MetricSpec. - :param external: The external of this V2beta2MetricSpec. + + :param external: The external of this V2beta2MetricSpec. # noqa: E501 :type: V2beta2ExternalMetricSource """ @@ -93,22 +89,20 @@ def external(self, external): @property def object(self): - """ - Gets the object of this V2beta2MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Gets the object of this V2beta2MetricSpec. # noqa: E501 + - :return: The object of this V2beta2MetricSpec. + :return: The object of this V2beta2MetricSpec. # noqa: E501 :rtype: V2beta2ObjectMetricSource """ return self._object @object.setter def object(self, object): - """ - Sets the object of this V2beta2MetricSpec. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Sets the object of this V2beta2MetricSpec. + - :param object: The object of this V2beta2MetricSpec. + :param object: The object of this V2beta2MetricSpec. # noqa: E501 :type: V2beta2ObjectMetricSource """ @@ -116,22 +110,20 @@ def object(self, object): @property def pods(self): - """ - Gets the pods of this V2beta2MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Gets the pods of this V2beta2MetricSpec. # noqa: E501 + - :return: The pods of this V2beta2MetricSpec. + :return: The pods of this V2beta2MetricSpec. # noqa: E501 :rtype: V2beta2PodsMetricSource """ return self._pods @pods.setter def pods(self, pods): - """ - Sets the pods of this V2beta2MetricSpec. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Sets the pods of this V2beta2MetricSpec. + - :param pods: The pods of this V2beta2MetricSpec. + :param pods: The pods of this V2beta2MetricSpec. # noqa: E501 :type: V2beta2PodsMetricSource """ @@ -139,22 +131,20 @@ def pods(self, pods): @property def resource(self): - """ - Gets the resource of this V2beta2MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Gets the resource of this V2beta2MetricSpec. # noqa: E501 + - :return: The resource of this V2beta2MetricSpec. + :return: The resource of this V2beta2MetricSpec. # noqa: E501 :rtype: V2beta2ResourceMetricSource """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V2beta2MetricSpec. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Sets the resource of this V2beta2MetricSpec. - :param resource: The resource of this V2beta2MetricSpec. + + :param resource: The resource of this V2beta2MetricSpec. # noqa: E501 :type: V2beta2ResourceMetricSource """ @@ -162,36 +152,34 @@ def resource(self, resource): @property def type(self): - """ - Gets the type of this V2beta2MetricSpec. - type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. + """Gets the type of this V2beta2MetricSpec. # noqa: E501 - :return: The type of this V2beta2MetricSpec. + type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. # noqa: E501 + + :return: The type of this V2beta2MetricSpec. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta2MetricSpec. - type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. + """Sets the type of this V2beta2MetricSpec. - :param type: The type of this V2beta2MetricSpec. + type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. # noqa: E501 + + :param type: The type of this V2beta2MetricSpec. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +200,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2MetricSpec): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_metric_status.py b/kubernetes/client/models/v2beta2_metric_status.py index b570e4bb71..fae2813fd9 100644 --- a/kubernetes/client/models/v2beta2_metric_status.py +++ b/kubernetes/client/models/v2beta2_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2MetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'external': 'V2beta2ExternalMetricStatus', 'object': 'V2beta2ObjectMetricStatus', 'pods': 'V2beta2PodsMetricStatus', @@ -46,10 +46,8 @@ class V2beta2MetricStatus(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): - """ - V2beta2MetricStatus - a model defined in Swagger - """ + def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + """V2beta2MetricStatus - a model defined in OpenAPI""" # noqa: E501 self._external = None self._object = None @@ -59,33 +57,31 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No self.discriminator = None if external is not None: - self.external = external + self.external = external if object is not None: - self.object = object + self.object = object if pods is not None: - self.pods = pods + self.pods = pods if resource is not None: - self.resource = resource + self.resource = resource self.type = type @property def external(self): - """ - Gets the external of this V2beta2MetricStatus. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Gets the external of this V2beta2MetricStatus. # noqa: E501 - :return: The external of this V2beta2MetricStatus. + + :return: The external of this V2beta2MetricStatus. # noqa: E501 :rtype: V2beta2ExternalMetricStatus """ return self._external @external.setter def external(self, external): - """ - Sets the external of this V2beta2MetricStatus. - external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + """Sets the external of this V2beta2MetricStatus. - :param external: The external of this V2beta2MetricStatus. + + :param external: The external of this V2beta2MetricStatus. # noqa: E501 :type: V2beta2ExternalMetricStatus """ @@ -93,22 +89,20 @@ def external(self, external): @property def object(self): - """ - Gets the object of this V2beta2MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Gets the object of this V2beta2MetricStatus. # noqa: E501 + - :return: The object of this V2beta2MetricStatus. + :return: The object of this V2beta2MetricStatus. # noqa: E501 :rtype: V2beta2ObjectMetricStatus """ return self._object @object.setter def object(self, object): - """ - Sets the object of this V2beta2MetricStatus. - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + """Sets the object of this V2beta2MetricStatus. + - :param object: The object of this V2beta2MetricStatus. + :param object: The object of this V2beta2MetricStatus. # noqa: E501 :type: V2beta2ObjectMetricStatus """ @@ -116,22 +110,20 @@ def object(self, object): @property def pods(self): - """ - Gets the pods of this V2beta2MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Gets the pods of this V2beta2MetricStatus. # noqa: E501 + - :return: The pods of this V2beta2MetricStatus. + :return: The pods of this V2beta2MetricStatus. # noqa: E501 :rtype: V2beta2PodsMetricStatus """ return self._pods @pods.setter def pods(self, pods): - """ - Sets the pods of this V2beta2MetricStatus. - pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + """Sets the pods of this V2beta2MetricStatus. + - :param pods: The pods of this V2beta2MetricStatus. + :param pods: The pods of this V2beta2MetricStatus. # noqa: E501 :type: V2beta2PodsMetricStatus """ @@ -139,22 +131,20 @@ def pods(self, pods): @property def resource(self): - """ - Gets the resource of this V2beta2MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Gets the resource of this V2beta2MetricStatus. # noqa: E501 + - :return: The resource of this V2beta2MetricStatus. + :return: The resource of this V2beta2MetricStatus. # noqa: E501 :rtype: V2beta2ResourceMetricStatus """ return self._resource @resource.setter def resource(self, resource): - """ - Sets the resource of this V2beta2MetricStatus. - resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + """Sets the resource of this V2beta2MetricStatus. - :param resource: The resource of this V2beta2MetricStatus. + + :param resource: The resource of this V2beta2MetricStatus. # noqa: E501 :type: V2beta2ResourceMetricStatus """ @@ -162,36 +152,34 @@ def resource(self, resource): @property def type(self): - """ - Gets the type of this V2beta2MetricStatus. - type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. + """Gets the type of this V2beta2MetricStatus. # noqa: E501 - :return: The type of this V2beta2MetricStatus. + type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. # noqa: E501 + + :return: The type of this V2beta2MetricStatus. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta2MetricStatus. - type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. + """Sets the type of this V2beta2MetricStatus. - :param type: The type of this V2beta2MetricStatus. + type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. # noqa: E501 + + :param type: The type of this V2beta2MetricStatus. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -212,28 +200,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2MetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_metric_target.py b/kubernetes/client/models/v2beta2_metric_target.py index 7505dc6e56..c9a4482475 100644 --- a/kubernetes/client/models/v2beta2_metric_target.py +++ b/kubernetes/client/models/v2beta2_metric_target.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2MetricTarget(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'average_utilization': 'int', 'average_value': 'str', 'type': 'str', @@ -44,10 +44,8 @@ class V2beta2MetricTarget(object): 'value': 'value' } - def __init__(self, average_utilization=None, average_value=None, type=None, value=None): - """ - V2beta2MetricTarget - a model defined in Swagger - """ + def __init__(self, average_utilization=None, average_value=None, type=None, value=None): # noqa: E501 + """V2beta2MetricTarget - a model defined in OpenAPI""" # noqa: E501 self._average_utilization = None self._average_value = None @@ -56,31 +54,31 @@ def __init__(self, average_utilization=None, average_value=None, type=None, valu self.discriminator = None if average_utilization is not None: - self.average_utilization = average_utilization + self.average_utilization = average_utilization if average_value is not None: - self.average_value = average_value + self.average_value = average_value self.type = type if value is not None: - self.value = value + self.value = value @property def average_utilization(self): - """ - Gets the average_utilization of this V2beta2MetricTarget. - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + """Gets the average_utilization of this V2beta2MetricTarget. # noqa: E501 + + averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type # noqa: E501 - :return: The average_utilization of this V2beta2MetricTarget. + :return: The average_utilization of this V2beta2MetricTarget. # noqa: E501 :rtype: int """ return self._average_utilization @average_utilization.setter def average_utilization(self, average_utilization): - """ - Sets the average_utilization of this V2beta2MetricTarget. - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + """Sets the average_utilization of this V2beta2MetricTarget. + + averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type # noqa: E501 - :param average_utilization: The average_utilization of this V2beta2MetricTarget. + :param average_utilization: The average_utilization of this V2beta2MetricTarget. # noqa: E501 :type: int """ @@ -88,22 +86,22 @@ def average_utilization(self, average_utilization): @property def average_value(self): - """ - Gets the average_value of this V2beta2MetricTarget. - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Gets the average_value of this V2beta2MetricTarget. # noqa: E501 + + averageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 - :return: The average_value of this V2beta2MetricTarget. + :return: The average_value of this V2beta2MetricTarget. # noqa: E501 :rtype: str """ return self._average_value @average_value.setter def average_value(self, average_value): - """ - Sets the average_value of this V2beta2MetricTarget. - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + """Sets the average_value of this V2beta2MetricTarget. + + averageValue is the target value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 - :param average_value: The average_value of this V2beta2MetricTarget. + :param average_value: The average_value of this V2beta2MetricTarget. # noqa: E501 :type: str """ @@ -111,59 +109,57 @@ def average_value(self, average_value): @property def type(self): - """ - Gets the type of this V2beta2MetricTarget. - type represents whether the metric type is Utilization, Value, or AverageValue + """Gets the type of this V2beta2MetricTarget. # noqa: E501 + + type represents whether the metric type is Utilization, Value, or AverageValue # noqa: E501 - :return: The type of this V2beta2MetricTarget. + :return: The type of this V2beta2MetricTarget. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): - """ - Sets the type of this V2beta2MetricTarget. - type represents whether the metric type is Utilization, Value, or AverageValue + """Sets the type of this V2beta2MetricTarget. + + type represents whether the metric type is Utilization, Value, or AverageValue # noqa: E501 - :param type: The type of this V2beta2MetricTarget. + :param type: The type of this V2beta2MetricTarget. # noqa: E501 :type: str """ if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @property def value(self): - """ - Gets the value of this V2beta2MetricTarget. - value is the target value of the metric (as a quantity). + """Gets the value of this V2beta2MetricTarget. # noqa: E501 + + value is the target value of the metric (as a quantity). # noqa: E501 - :return: The value of this V2beta2MetricTarget. + :return: The value of this V2beta2MetricTarget. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V2beta2MetricTarget. - value is the target value of the metric (as a quantity). + """Sets the value of this V2beta2MetricTarget. + + value is the target value of the metric (as a quantity). # noqa: E501 - :param value: The value of this V2beta2MetricTarget. + :param value: The value of this V2beta2MetricTarget. # noqa: E501 :type: str """ self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -184,28 +180,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2MetricTarget): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_metric_value_status.py b/kubernetes/client/models/v2beta2_metric_value_status.py index b8c0a3d5ed..11588b31f9 100644 --- a/kubernetes/client/models/v2beta2_metric_value_status.py +++ b/kubernetes/client/models/v2beta2_metric_value_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2MetricValueStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'average_utilization': 'int', 'average_value': 'str', 'value': 'str' @@ -42,10 +42,8 @@ class V2beta2MetricValueStatus(object): 'value': 'value' } - def __init__(self, average_utilization=None, average_value=None, value=None): - """ - V2beta2MetricValueStatus - a model defined in Swagger - """ + def __init__(self, average_utilization=None, average_value=None, value=None): # noqa: E501 + """V2beta2MetricValueStatus - a model defined in OpenAPI""" # noqa: E501 self._average_utilization = None self._average_value = None @@ -53,30 +51,30 @@ def __init__(self, average_utilization=None, average_value=None, value=None): self.discriminator = None if average_utilization is not None: - self.average_utilization = average_utilization + self.average_utilization = average_utilization if average_value is not None: - self.average_value = average_value + self.average_value = average_value if value is not None: - self.value = value + self.value = value @property def average_utilization(self): - """ - Gets the average_utilization of this V2beta2MetricValueStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + """Gets the average_utilization of this V2beta2MetricValueStatus. # noqa: E501 - :return: The average_utilization of this V2beta2MetricValueStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. # noqa: E501 + + :return: The average_utilization of this V2beta2MetricValueStatus. # noqa: E501 :rtype: int """ return self._average_utilization @average_utilization.setter def average_utilization(self, average_utilization): - """ - Sets the average_utilization of this V2beta2MetricValueStatus. - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + """Sets the average_utilization of this V2beta2MetricValueStatus. - :param average_utilization: The average_utilization of this V2beta2MetricValueStatus. + currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. # noqa: E501 + + :param average_utilization: The average_utilization of this V2beta2MetricValueStatus. # noqa: E501 :type: int """ @@ -84,22 +82,22 @@ def average_utilization(self, average_utilization): @property def average_value(self): - """ - Gets the average_value of this V2beta2MetricValueStatus. - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Gets the average_value of this V2beta2MetricValueStatus. # noqa: E501 - :return: The average_value of this V2beta2MetricValueStatus. + averageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 + + :return: The average_value of this V2beta2MetricValueStatus. # noqa: E501 :rtype: str """ return self._average_value @average_value.setter def average_value(self, average_value): - """ - Sets the average_value of this V2beta2MetricValueStatus. - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + """Sets the average_value of this V2beta2MetricValueStatus. + + averageValue is the current value of the average of the metric across all relevant pods (as a quantity) # noqa: E501 - :param average_value: The average_value of this V2beta2MetricValueStatus. + :param average_value: The average_value of this V2beta2MetricValueStatus. # noqa: E501 :type: str """ @@ -107,34 +105,32 @@ def average_value(self, average_value): @property def value(self): - """ - Gets the value of this V2beta2MetricValueStatus. - value is the current value of the metric (as a quantity). + """Gets the value of this V2beta2MetricValueStatus. # noqa: E501 + + value is the current value of the metric (as a quantity). # noqa: E501 - :return: The value of this V2beta2MetricValueStatus. + :return: The value of this V2beta2MetricValueStatus. # noqa: E501 :rtype: str """ return self._value @value.setter def value(self, value): - """ - Sets the value of this V2beta2MetricValueStatus. - value is the current value of the metric (as a quantity). + """Sets the value of this V2beta2MetricValueStatus. + + value is the current value of the metric (as a quantity). # noqa: E501 - :param value: The value of this V2beta2MetricValueStatus. + :param value: The value of this V2beta2MetricValueStatus. # noqa: E501 :type: str """ self._value = value def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -155,28 +151,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2MetricValueStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_object_metric_source.py b/kubernetes/client/models/v2beta2_object_metric_source.py index 33aeefad4a..9a6a6744cf 100644 --- a/kubernetes/client/models/v2beta2_object_metric_source.py +++ b/kubernetes/client/models/v2beta2_object_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ObjectMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'described_object': 'V2beta2CrossVersionObjectReference', 'metric': 'V2beta2MetricIdentifier', 'target': 'V2beta2MetricTarget' @@ -42,10 +42,8 @@ class V2beta2ObjectMetricSource(object): 'target': 'target' } - def __init__(self, described_object=None, metric=None, target=None): - """ - V2beta2ObjectMetricSource - a model defined in Swagger - """ + def __init__(self, described_object=None, metric=None, target=None): # noqa: E501 + """V2beta2ObjectMetricSource - a model defined in OpenAPI""" # noqa: E501 self._described_object = None self._metric = None @@ -58,84 +56,78 @@ def __init__(self, described_object=None, metric=None, target=None): @property def described_object(self): - """ - Gets the described_object of this V2beta2ObjectMetricSource. + """Gets the described_object of this V2beta2ObjectMetricSource. # noqa: E501 - :return: The described_object of this V2beta2ObjectMetricSource. + + :return: The described_object of this V2beta2ObjectMetricSource. # noqa: E501 :rtype: V2beta2CrossVersionObjectReference """ return self._described_object @described_object.setter def described_object(self, described_object): - """ - Sets the described_object of this V2beta2ObjectMetricSource. + """Sets the described_object of this V2beta2ObjectMetricSource. - :param described_object: The described_object of this V2beta2ObjectMetricSource. + + :param described_object: The described_object of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ if described_object is None: - raise ValueError("Invalid value for `described_object`, must not be `None`") + raise ValueError("Invalid value for `described_object`, must not be `None`") # noqa: E501 self._described_object = described_object @property def metric(self): - """ - Gets the metric of this V2beta2ObjectMetricSource. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2ObjectMetricSource. # noqa: E501 - :return: The metric of this V2beta2ObjectMetricSource. + + :return: The metric of this V2beta2ObjectMetricSource. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2ObjectMetricSource. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2ObjectMetricSource. + - :param metric: The metric of this V2beta2ObjectMetricSource. + :param metric: The metric of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @property def target(self): - """ - Gets the target of this V2beta2ObjectMetricSource. - target specifies the target value for the given metric + """Gets the target of this V2beta2ObjectMetricSource. # noqa: E501 + - :return: The target of this V2beta2ObjectMetricSource. + :return: The target of this V2beta2ObjectMetricSource. # noqa: E501 :rtype: V2beta2MetricTarget """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta2ObjectMetricSource. - target specifies the target value for the given metric + """Sets the target of this V2beta2ObjectMetricSource. + - :param target: The target of this V2beta2ObjectMetricSource. + :param target: The target of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +148,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ObjectMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_object_metric_status.py b/kubernetes/client/models/v2beta2_object_metric_status.py index 3d8e78021a..601cf45bb4 100644 --- a/kubernetes/client/models/v2beta2_object_metric_status.py +++ b/kubernetes/client/models/v2beta2_object_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ObjectMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current': 'V2beta2MetricValueStatus', 'described_object': 'V2beta2CrossVersionObjectReference', 'metric': 'V2beta2MetricIdentifier' @@ -42,10 +42,8 @@ class V2beta2ObjectMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, described_object=None, metric=None): - """ - V2beta2ObjectMetricStatus - a model defined in Swagger - """ + def __init__(self, current=None, described_object=None, metric=None): # noqa: E501 + """V2beta2ObjectMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current = None self._described_object = None @@ -58,84 +56,78 @@ def __init__(self, current=None, described_object=None, metric=None): @property def current(self): - """ - Gets the current of this V2beta2ObjectMetricStatus. - current contains the current value for the given metric + """Gets the current of this V2beta2ObjectMetricStatus. # noqa: E501 - :return: The current of this V2beta2ObjectMetricStatus. + + :return: The current of this V2beta2ObjectMetricStatus. # noqa: E501 :rtype: V2beta2MetricValueStatus """ return self._current @current.setter def current(self, current): - """ - Sets the current of this V2beta2ObjectMetricStatus. - current contains the current value for the given metric + """Sets the current of this V2beta2ObjectMetricStatus. - :param current: The current of this V2beta2ObjectMetricStatus. + + :param current: The current of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ if current is None: - raise ValueError("Invalid value for `current`, must not be `None`") + raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @property def described_object(self): - """ - Gets the described_object of this V2beta2ObjectMetricStatus. + """Gets the described_object of this V2beta2ObjectMetricStatus. # noqa: E501 - :return: The described_object of this V2beta2ObjectMetricStatus. + + :return: The described_object of this V2beta2ObjectMetricStatus. # noqa: E501 :rtype: V2beta2CrossVersionObjectReference """ return self._described_object @described_object.setter def described_object(self, described_object): - """ - Sets the described_object of this V2beta2ObjectMetricStatus. + """Sets the described_object of this V2beta2ObjectMetricStatus. + - :param described_object: The described_object of this V2beta2ObjectMetricStatus. + :param described_object: The described_object of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ if described_object is None: - raise ValueError("Invalid value for `described_object`, must not be `None`") + raise ValueError("Invalid value for `described_object`, must not be `None`") # noqa: E501 self._described_object = described_object @property def metric(self): - """ - Gets the metric of this V2beta2ObjectMetricStatus. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2ObjectMetricStatus. # noqa: E501 + - :return: The metric of this V2beta2ObjectMetricStatus. + :return: The metric of this V2beta2ObjectMetricStatus. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2ObjectMetricStatus. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2ObjectMetricStatus. + - :param metric: The metric of this V2beta2ObjectMetricStatus. + :param metric: The metric of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -156,28 +148,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ObjectMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_pods_metric_source.py b/kubernetes/client/models/v2beta2_pods_metric_source.py index 1798de9741..eab865e2bb 100644 --- a/kubernetes/client/models/v2beta2_pods_metric_source.py +++ b/kubernetes/client/models/v2beta2_pods_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2PodsMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'metric': 'V2beta2MetricIdentifier', 'target': 'V2beta2MetricTarget' } @@ -40,10 +40,8 @@ class V2beta2PodsMetricSource(object): 'target': 'target' } - def __init__(self, metric=None, target=None): - """ - V2beta2PodsMetricSource - a model defined in Swagger - """ + def __init__(self, metric=None, target=None): # noqa: E501 + """V2beta2PodsMetricSource - a model defined in OpenAPI""" # noqa: E501 self._metric = None self._target = None @@ -54,61 +52,55 @@ def __init__(self, metric=None, target=None): @property def metric(self): - """ - Gets the metric of this V2beta2PodsMetricSource. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2PodsMetricSource. # noqa: E501 + - :return: The metric of this V2beta2PodsMetricSource. + :return: The metric of this V2beta2PodsMetricSource. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2PodsMetricSource. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2PodsMetricSource. - :param metric: The metric of this V2beta2PodsMetricSource. + + :param metric: The metric of this V2beta2PodsMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @property def target(self): - """ - Gets the target of this V2beta2PodsMetricSource. - target specifies the target value for the given metric + """Gets the target of this V2beta2PodsMetricSource. # noqa: E501 + - :return: The target of this V2beta2PodsMetricSource. + :return: The target of this V2beta2PodsMetricSource. # noqa: E501 :rtype: V2beta2MetricTarget """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta2PodsMetricSource. - target specifies the target value for the given metric + """Sets the target of this V2beta2PodsMetricSource. + - :param target: The target of this V2beta2PodsMetricSource. + :param target: The target of this V2beta2PodsMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2PodsMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_pods_metric_status.py b/kubernetes/client/models/v2beta2_pods_metric_status.py index d6c902785a..135c0de02f 100644 --- a/kubernetes/client/models/v2beta2_pods_metric_status.py +++ b/kubernetes/client/models/v2beta2_pods_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2PodsMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current': 'V2beta2MetricValueStatus', 'metric': 'V2beta2MetricIdentifier' } @@ -40,10 +40,8 @@ class V2beta2PodsMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, metric=None): - """ - V2beta2PodsMetricStatus - a model defined in Swagger - """ + def __init__(self, current=None, metric=None): # noqa: E501 + """V2beta2PodsMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current = None self._metric = None @@ -54,61 +52,55 @@ def __init__(self, current=None, metric=None): @property def current(self): - """ - Gets the current of this V2beta2PodsMetricStatus. - current contains the current value for the given metric + """Gets the current of this V2beta2PodsMetricStatus. # noqa: E501 + - :return: The current of this V2beta2PodsMetricStatus. + :return: The current of this V2beta2PodsMetricStatus. # noqa: E501 :rtype: V2beta2MetricValueStatus """ return self._current @current.setter def current(self, current): - """ - Sets the current of this V2beta2PodsMetricStatus. - current contains the current value for the given metric + """Sets the current of this V2beta2PodsMetricStatus. - :param current: The current of this V2beta2PodsMetricStatus. + + :param current: The current of this V2beta2PodsMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ if current is None: - raise ValueError("Invalid value for `current`, must not be `None`") + raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @property def metric(self): - """ - Gets the metric of this V2beta2PodsMetricStatus. - metric identifies the target metric by name and selector + """Gets the metric of this V2beta2PodsMetricStatus. # noqa: E501 + - :return: The metric of this V2beta2PodsMetricStatus. + :return: The metric of this V2beta2PodsMetricStatus. # noqa: E501 :rtype: V2beta2MetricIdentifier """ return self._metric @metric.setter def metric(self, metric): - """ - Sets the metric of this V2beta2PodsMetricStatus. - metric identifies the target metric by name and selector + """Sets the metric of this V2beta2PodsMetricStatus. + - :param metric: The metric of this V2beta2PodsMetricStatus. + :param metric: The metric of this V2beta2PodsMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ if metric is None: - raise ValueError("Invalid value for `metric`, must not be `None`") + raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +121,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2PodsMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_resource_metric_source.py b/kubernetes/client/models/v2beta2_resource_metric_source.py index e149953025..789927a5f1 100644 --- a/kubernetes/client/models/v2beta2_resource_metric_source.py +++ b/kubernetes/client/models/v2beta2_resource_metric_source.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ResourceMetricSource(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'name': 'str', 'target': 'V2beta2MetricTarget' } @@ -40,10 +40,8 @@ class V2beta2ResourceMetricSource(object): 'target': 'target' } - def __init__(self, name=None, target=None): - """ - V2beta2ResourceMetricSource - a model defined in Swagger - """ + def __init__(self, name=None, target=None): # noqa: E501 + """V2beta2ResourceMetricSource - a model defined in OpenAPI""" # noqa: E501 self._name = None self._target = None @@ -54,61 +52,57 @@ def __init__(self, name=None, target=None): @property def name(self): - """ - Gets the name of this V2beta2ResourceMetricSource. - name is the name of the resource in question. + """Gets the name of this V2beta2ResourceMetricSource. # noqa: E501 + + name is the name of the resource in question. # noqa: E501 - :return: The name of this V2beta2ResourceMetricSource. + :return: The name of this V2beta2ResourceMetricSource. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta2ResourceMetricSource. - name is the name of the resource in question. + """Sets the name of this V2beta2ResourceMetricSource. - :param name: The name of this V2beta2ResourceMetricSource. + name is the name of the resource in question. # noqa: E501 + + :param name: The name of this V2beta2ResourceMetricSource. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def target(self): - """ - Gets the target of this V2beta2ResourceMetricSource. - target specifies the target value for the given metric + """Gets the target of this V2beta2ResourceMetricSource. # noqa: E501 + - :return: The target of this V2beta2ResourceMetricSource. + :return: The target of this V2beta2ResourceMetricSource. # noqa: E501 :rtype: V2beta2MetricTarget """ return self._target @target.setter def target(self, target): - """ - Sets the target of this V2beta2ResourceMetricSource. - target specifies the target value for the given metric + """Sets the target of this V2beta2ResourceMetricSource. + - :param target: The target of this V2beta2ResourceMetricSource. + :param target: The target of this V2beta2ResourceMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ if target is None: - raise ValueError("Invalid value for `target`, must not be `None`") + raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ResourceMetricSource): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/v2beta2_resource_metric_status.py b/kubernetes/client/models/v2beta2_resource_metric_status.py index a5246f8704..63c4e40f63 100644 --- a/kubernetes/client/models/v2beta2_resource_metric_status.py +++ b/kubernetes/client/models/v2beta2_resource_metric_status.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class V2beta2ResourceMetricStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'current': 'V2beta2MetricValueStatus', 'name': 'str' } @@ -40,10 +40,8 @@ class V2beta2ResourceMetricStatus(object): 'name': 'name' } - def __init__(self, current=None, name=None): - """ - V2beta2ResourceMetricStatus - a model defined in Swagger - """ + def __init__(self, current=None, name=None): # noqa: E501 + """V2beta2ResourceMetricStatus - a model defined in OpenAPI""" # noqa: E501 self._current = None self._name = None @@ -54,61 +52,57 @@ def __init__(self, current=None, name=None): @property def current(self): - """ - Gets the current of this V2beta2ResourceMetricStatus. - current contains the current value for the given metric + """Gets the current of this V2beta2ResourceMetricStatus. # noqa: E501 + - :return: The current of this V2beta2ResourceMetricStatus. + :return: The current of this V2beta2ResourceMetricStatus. # noqa: E501 :rtype: V2beta2MetricValueStatus """ return self._current @current.setter def current(self, current): - """ - Sets the current of this V2beta2ResourceMetricStatus. - current contains the current value for the given metric + """Sets the current of this V2beta2ResourceMetricStatus. - :param current: The current of this V2beta2ResourceMetricStatus. + + :param current: The current of this V2beta2ResourceMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ if current is None: - raise ValueError("Invalid value for `current`, must not be `None`") + raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @property def name(self): - """ - Gets the name of this V2beta2ResourceMetricStatus. - Name is the name of the resource in question. + """Gets the name of this V2beta2ResourceMetricStatus. # noqa: E501 + + Name is the name of the resource in question. # noqa: E501 - :return: The name of this V2beta2ResourceMetricStatus. + :return: The name of this V2beta2ResourceMetricStatus. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this V2beta2ResourceMetricStatus. - Name is the name of the resource in question. + """Sets the name of this V2beta2ResourceMetricStatus. + + Name is the name of the resource in question. # noqa: E501 - :param name: The name of this V2beta2ResourceMetricStatus. + :param name: The name of this V2beta2ResourceMetricStatus. # noqa: E501 :type: str """ if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -129,28 +123,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, V2beta2ResourceMetricStatus): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/models/version_info.py b/kubernetes/client/models/version_info.py index fecd47e204..6eaf5dc0c0 100644 --- a/kubernetes/client/models/version_info.py +++ b/kubernetes/client/models/version_info.py @@ -3,34 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six class VersionInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. """ - """ Attributes: - swagger_types (dict): The key is attribute name + openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ - swagger_types = { + openapi_types = { 'build_date': 'str', 'compiler': 'str', 'git_commit': 'str', @@ -54,10 +54,8 @@ class VersionInfo(object): 'platform': 'platform' } - def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None): - """ - VersionInfo - a model defined in Swagger - """ + def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None): # noqa: E501 + """VersionInfo - a model defined in OpenAPI""" # noqa: E501 self._build_date = None self._compiler = None @@ -82,218 +80,216 @@ def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_sta @property def build_date(self): - """ - Gets the build_date of this VersionInfo. + """Gets the build_date of this VersionInfo. # noqa: E501 - :return: The build_date of this VersionInfo. + + :return: The build_date of this VersionInfo. # noqa: E501 :rtype: str """ return self._build_date @build_date.setter def build_date(self, build_date): - """ - Sets the build_date of this VersionInfo. + """Sets the build_date of this VersionInfo. + - :param build_date: The build_date of this VersionInfo. + :param build_date: The build_date of this VersionInfo. # noqa: E501 :type: str """ if build_date is None: - raise ValueError("Invalid value for `build_date`, must not be `None`") + raise ValueError("Invalid value for `build_date`, must not be `None`") # noqa: E501 self._build_date = build_date @property def compiler(self): - """ - Gets the compiler of this VersionInfo. + """Gets the compiler of this VersionInfo. # noqa: E501 + - :return: The compiler of this VersionInfo. + :return: The compiler of this VersionInfo. # noqa: E501 :rtype: str """ return self._compiler @compiler.setter def compiler(self, compiler): - """ - Sets the compiler of this VersionInfo. + """Sets the compiler of this VersionInfo. - :param compiler: The compiler of this VersionInfo. + + :param compiler: The compiler of this VersionInfo. # noqa: E501 :type: str """ if compiler is None: - raise ValueError("Invalid value for `compiler`, must not be `None`") + raise ValueError("Invalid value for `compiler`, must not be `None`") # noqa: E501 self._compiler = compiler @property def git_commit(self): - """ - Gets the git_commit of this VersionInfo. + """Gets the git_commit of this VersionInfo. # noqa: E501 - :return: The git_commit of this VersionInfo. + + :return: The git_commit of this VersionInfo. # noqa: E501 :rtype: str """ return self._git_commit @git_commit.setter def git_commit(self, git_commit): - """ - Sets the git_commit of this VersionInfo. + """Sets the git_commit of this VersionInfo. - :param git_commit: The git_commit of this VersionInfo. + + :param git_commit: The git_commit of this VersionInfo. # noqa: E501 :type: str """ if git_commit is None: - raise ValueError("Invalid value for `git_commit`, must not be `None`") + raise ValueError("Invalid value for `git_commit`, must not be `None`") # noqa: E501 self._git_commit = git_commit @property def git_tree_state(self): - """ - Gets the git_tree_state of this VersionInfo. + """Gets the git_tree_state of this VersionInfo. # noqa: E501 + - :return: The git_tree_state of this VersionInfo. + :return: The git_tree_state of this VersionInfo. # noqa: E501 :rtype: str """ return self._git_tree_state @git_tree_state.setter def git_tree_state(self, git_tree_state): - """ - Sets the git_tree_state of this VersionInfo. + """Sets the git_tree_state of this VersionInfo. + - :param git_tree_state: The git_tree_state of this VersionInfo. + :param git_tree_state: The git_tree_state of this VersionInfo. # noqa: E501 :type: str """ if git_tree_state is None: - raise ValueError("Invalid value for `git_tree_state`, must not be `None`") + raise ValueError("Invalid value for `git_tree_state`, must not be `None`") # noqa: E501 self._git_tree_state = git_tree_state @property def git_version(self): - """ - Gets the git_version of this VersionInfo. + """Gets the git_version of this VersionInfo. # noqa: E501 - :return: The git_version of this VersionInfo. + + :return: The git_version of this VersionInfo. # noqa: E501 :rtype: str """ return self._git_version @git_version.setter def git_version(self, git_version): - """ - Sets the git_version of this VersionInfo. + """Sets the git_version of this VersionInfo. + - :param git_version: The git_version of this VersionInfo. + :param git_version: The git_version of this VersionInfo. # noqa: E501 :type: str """ if git_version is None: - raise ValueError("Invalid value for `git_version`, must not be `None`") + raise ValueError("Invalid value for `git_version`, must not be `None`") # noqa: E501 self._git_version = git_version @property def go_version(self): - """ - Gets the go_version of this VersionInfo. + """Gets the go_version of this VersionInfo. # noqa: E501 + - :return: The go_version of this VersionInfo. + :return: The go_version of this VersionInfo. # noqa: E501 :rtype: str """ return self._go_version @go_version.setter def go_version(self, go_version): - """ - Sets the go_version of this VersionInfo. + """Sets the go_version of this VersionInfo. + - :param go_version: The go_version of this VersionInfo. + :param go_version: The go_version of this VersionInfo. # noqa: E501 :type: str """ if go_version is None: - raise ValueError("Invalid value for `go_version`, must not be `None`") + raise ValueError("Invalid value for `go_version`, must not be `None`") # noqa: E501 self._go_version = go_version @property def major(self): - """ - Gets the major of this VersionInfo. + """Gets the major of this VersionInfo. # noqa: E501 + - :return: The major of this VersionInfo. + :return: The major of this VersionInfo. # noqa: E501 :rtype: str """ return self._major @major.setter def major(self, major): - """ - Sets the major of this VersionInfo. + """Sets the major of this VersionInfo. - :param major: The major of this VersionInfo. + + :param major: The major of this VersionInfo. # noqa: E501 :type: str """ if major is None: - raise ValueError("Invalid value for `major`, must not be `None`") + raise ValueError("Invalid value for `major`, must not be `None`") # noqa: E501 self._major = major @property def minor(self): - """ - Gets the minor of this VersionInfo. + """Gets the minor of this VersionInfo. # noqa: E501 + - :return: The minor of this VersionInfo. + :return: The minor of this VersionInfo. # noqa: E501 :rtype: str """ return self._minor @minor.setter def minor(self, minor): - """ - Sets the minor of this VersionInfo. + """Sets the minor of this VersionInfo. + - :param minor: The minor of this VersionInfo. + :param minor: The minor of this VersionInfo. # noqa: E501 :type: str """ if minor is None: - raise ValueError("Invalid value for `minor`, must not be `None`") + raise ValueError("Invalid value for `minor`, must not be `None`") # noqa: E501 self._minor = minor @property def platform(self): - """ - Gets the platform of this VersionInfo. + """Gets the platform of this VersionInfo. # noqa: E501 - :return: The platform of this VersionInfo. + + :return: The platform of this VersionInfo. # noqa: E501 :rtype: str """ return self._platform @platform.setter def platform(self, platform): - """ - Sets the platform of this VersionInfo. + """Sets the platform of this VersionInfo. - :param platform: The platform of this VersionInfo. + + :param platform: The platform of this VersionInfo. # noqa: E501 :type: str """ if platform is None: - raise ValueError("Invalid value for `platform`, must not be `None`") + raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 self._platform = platform def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -314,28 +310,20 @@ def to_dict(self): return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, VersionInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): - """ - Returns true if both objects are not equal - """ + """Returns true if both objects are not equal""" return not self == other diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py index c214daa76e..a28e12387c 100644 --- a/kubernetes/client/rest.py +++ b/kubernetes/client/rest.py @@ -3,11 +3,10 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ @@ -15,19 +14,19 @@ import io import json -import ssl -import certifi import logging import re +import ssl +import certifi # python 2 and python 3 compatibility library -from six import PY3 +import six from six.moves.urllib.parse import urlencode try: import urllib3 except ImportError: - raise ImportError('Swagger python client requires urllib3.') + raise ImportError('OpenAPI Python client requires urllib3.') logger = logging.getLogger(__name__) @@ -42,15 +41,11 @@ def __init__(self, resp): self.data = resp.data def getheaders(self): - """ - Returns a dictionary of the response headers. - """ + """Returns a dictionary of the response headers.""" return self.urllib3_response.getheaders() def getheader(self, name, default=None): - """ - Returns a given response header. - """ + """Returns a given response header.""" return self.urllib3_response.getheader(name, default) @@ -58,10 +53,10 @@ class RESTClientObject(object): def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 - # maxsize is the number of requests to host that are allowed in parallel - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 # cert_reqs if configuration.verify_ssl: @@ -78,7 +73,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 if maxsize is None: if configuration.connection_pool_maxsize is not None: @@ -110,8 +105,10 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ) def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, _request_timeout=None): - """ + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + :param method: http request method :param url: http request url :param query_params: query parameters in the url @@ -120,13 +117,17 @@ def request(self, method, url, query_params=None, headers=None, :param post_params: request post parameters, `application/x-www-form-urlencoded` and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without - reading/decoding response data. Default is True. - :param _request_timeout: timeout setting for this request. If one number provided, it will be total request - timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. """ method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH', 'OPTIONS'] + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] if post_params and body: raise ValueError( @@ -138,10 +139,12 @@ def request(self, method, url, query_params=None, headers=None, timeout = None if _request_timeout: - if isinstance(_request_timeout, (int, ) if PY3 else (int, long)): + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 timeout = urllib3.Timeout(total=_request_timeout) - elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: - timeout = urllib3.Timeout(connect=_request_timeout[0], read=_request_timeout[1]) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) if 'Content-Type' not in headers: headers['Content-Type'] = 'application/json' @@ -159,42 +162,48 @@ def request(self, method, url, query_params=None, headers=None, request_body = None if body is not None: request_body = json.dumps(body) - r = self.pool_manager.request(method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': - r = self.pool_manager.request(method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct Content-Type - # which generated by urllib3 will be overwritten. + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. del headers['Content-Type'] - r = self.pool_manager.request(method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is provided - # in serialized form + # other content types than Json when `body` argument is + # provided in serialized form elif isinstance(body, str): request_body = body - r = self.pool_manager.request(method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) else: # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided arguments. - Please check that your arguments match declared content type.""" + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: @@ -212,7 +221,7 @@ def request(self, method, url, query_params=None, headers=None, # In the python 3, the response.data is bytes. # we need to decode it to string. - if PY3: + if six.PY3: r.data = r.data.decode('utf8') # log response body @@ -223,22 +232,24 @@ def request(self, method, url, query_params=None, headers=None, return r - def GET(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): return self.request("GET", url, headers=headers, _preload_content=_preload_content, _request_timeout=_request_timeout, query_params=query_params) - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): return self.request("HEAD", url, headers=headers, _preload_content=_preload_content, _request_timeout=_request_timeout, query_params=query_params) - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("OPTIONS", url, headers=headers, query_params=query_params, @@ -247,7 +258,8 @@ def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=N _request_timeout=_request_timeout, body=body) - def DELETE(self, url, headers=None, query_params=None, body=None, _preload_content=True, _request_timeout=None): + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): return self.request("DELETE", url, headers=headers, query_params=query_params, @@ -255,8 +267,8 @@ def DELETE(self, url, headers=None, query_params=None, body=None, _preload_conte _request_timeout=_request_timeout, body=body) - def POST(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("POST", url, headers=headers, query_params=query_params, @@ -265,8 +277,8 @@ def POST(self, url, headers=None, query_params=None, post_params=None, body=None _request_timeout=_request_timeout, body=body) - def PUT(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("PUT", url, headers=headers, query_params=query_params, @@ -275,8 +287,8 @@ def PUT(self, url, headers=None, query_params=None, post_params=None, body=None, _request_timeout=_request_timeout, body=body) - def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("PATCH", url, headers=headers, query_params=query_params, @@ -301,13 +313,12 @@ def __init__(self, status=None, reason=None, http_resp=None): self.headers = None def __str__(self): - """ - Custom error messages for exception - """ + """Custom error messages for exception""" error_message = "({0})\n"\ "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/kubernetes/docs/AdmissionregistrationApi.md b/kubernetes/docs/AdmissionregistrationApi.md index 429716af8b..31106f95bc 100644 --- a/kubernetes/docs/AdmissionregistrationApi.md +++ b/kubernetes/docs/AdmissionregistrationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AdmissionregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index 2e78e8022f..d578515f5b 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AdmissionregistrationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,7 +28,9 @@ Method | HTTP request | Description create a MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -49,7 +51,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_mutating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -75,7 +77,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -87,7 +89,9 @@ Name | Type | Description | Notes create a ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -108,7 +112,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_validating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -134,19 +138,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_mutating_webhook_configuration** -> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -163,16 +169,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_mutating_webhook_configuration: %s\n" % e) @@ -183,13 +195,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -201,19 +219,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_validating_webhook_configuration** -> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -230,16 +250,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_validating_webhook_configuration: %s\n" % e) @@ -250,13 +276,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -268,19 +300,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_mutating_webhook_configuration** -> V1Status delete_mutating_webhook_configuration(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -298,14 +332,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->delete_mutating_webhook_configuration: %s\n" % e) @@ -317,11 +351,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the MutatingWebhookConfiguration | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -333,19 +367,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_validating_webhook_configuration** -> V1Status delete_validating_webhook_configuration(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -363,14 +399,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->delete_validating_webhook_configuration: %s\n" % e) @@ -382,11 +418,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ValidatingWebhookConfiguration | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -398,7 +434,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -410,7 +446,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -427,7 +465,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -447,19 +485,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_mutating_webhook_configuration** -> V1beta1MutatingWebhookConfigurationList list_mutating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1MutatingWebhookConfigurationList list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -476,16 +516,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->list_mutating_webhook_configuration: %s\n" % e) @@ -496,6 +537,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -514,19 +556,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_validating_webhook_configuration** -> V1beta1ValidatingWebhookConfigurationList list_validating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ValidatingWebhookConfigurationList list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -543,16 +587,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AdmissionregistrationV1beta1Api->list_validating_webhook_configuration: %s\n" % e) @@ -563,6 +608,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -581,7 +627,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -593,7 +639,9 @@ Name | Type | Description | Notes partially update the specified MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -610,13 +658,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the MutatingWebhookConfiguration -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -628,7 +676,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the MutatingWebhookConfiguration | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -656,7 +704,9 @@ Name | Type | Description | Notes partially update the specified ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -673,13 +723,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ValidatingWebhookConfiguration -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -691,7 +741,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ValidatingWebhookConfiguration | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -719,7 +769,9 @@ Name | Type | Description | Notes read the specified MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -737,10 +789,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_mutating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -766,7 +818,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -778,7 +830,9 @@ Name | Type | Description | Notes read the specified ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -796,10 +850,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_validating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -825,7 +879,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -837,7 +891,9 @@ Name | Type | Description | Notes replace the specified MutatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -859,7 +915,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -886,7 +942,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -898,7 +954,9 @@ Name | Type | Description | Notes replace the specified ValidatingWebhookConfiguration -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -920,7 +978,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -947,7 +1005,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md index b87526cd22..2dc6a015d4 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **name** | **str** | `name` is the name of the service. Required | **namespace** | **str** | `namespace` is the namespace of the service. Required | **path** | **str** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **int** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md index 5a1804f96f..16a1735862 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ca_bundle** | **str** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**AdmissionregistrationV1beta1ServiceReference**](AdmissionregistrationV1beta1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**AdmissionregistrationV1beta1ServiceReference**](AdmissionregistrationV1beta1ServiceReference.md) | | [optional] **url** | **str** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsApi.md b/kubernetes/docs/ApiextensionsApi.md index 0cb293db26..0136708278 100644 --- a/kubernetes/docs/ApiextensionsApi.md +++ b/kubernetes/docs/ApiextensionsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.ApiextensionsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1beta1Api.md b/kubernetes/docs/ApiextensionsV1beta1Api.md index 609b2cae45..706a95d3e7 100644 --- a/kubernetes/docs/ApiextensionsV1beta1Api.md +++ b/kubernetes/docs/ApiextensionsV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.ApiextensionsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,7 +24,9 @@ Method | HTTP request | Description create a CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -45,7 +47,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_custom_resource_definition** -> V1Status delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -100,16 +104,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ApiextensionsV1beta1Api->delete_collection_custom_resource_definition: %s\n" % e) @@ -120,13 +130,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -138,19 +154,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_custom_resource_definition** -> V1Status delete_custom_resource_definition(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -168,14 +186,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ApiextensionsV1beta1Api->delete_custom_resource_definition: %s\n" % e) @@ -187,11 +205,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -203,7 +221,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,7 +233,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -232,7 +252,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -252,19 +272,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_custom_resource_definition** -> V1beta1CustomResourceDefinitionList list_custom_resource_definition(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CustomResourceDefinitionList list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -281,16 +303,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_custom_resource_definition(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ApiextensionsV1beta1Api->list_custom_resource_definition: %s\n" % e) @@ -301,6 +324,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -319,7 +343,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -331,7 +355,9 @@ Name | Type | Description | Notes partially update the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -348,13 +374,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CustomResourceDefinition -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -366,7 +392,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -394,7 +420,9 @@ Name | Type | Description | Notes partially update status of the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -411,13 +439,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CustomResourceDefinition -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -429,7 +457,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -457,7 +485,9 @@ Name | Type | Description | Notes read the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -475,10 +505,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_custom_resource_definition(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -504,7 +534,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -516,7 +546,9 @@ Name | Type | Description | Notes read status of the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -535,7 +567,7 @@ api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiCl name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_custom_resource_definition_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -559,7 +591,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -571,7 +603,9 @@ Name | Type | Description | Notes replace the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -593,7 +627,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -620,7 +654,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -632,7 +666,9 @@ Name | Type | Description | Notes replace status of the specified CustomResourceDefinition -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -654,7 +690,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -681,7 +717,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md index fcf244eda1..d90c928f48 100644 --- a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **name** | **str** | `name` is the name of the service. Required | **namespace** | **str** | `namespace` is the namespace of the service. Required | **path** | **str** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **int** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md index e9dd06059b..9279a1096c 100644 --- a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ca_bundle** | **str** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**ApiextensionsV1beta1ServiceReference**](ApiextensionsV1beta1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**ApiextensionsV1beta1ServiceReference**](ApiextensionsV1beta1ServiceReference.md) | | [optional] **url** | **str** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationApi.md b/kubernetes/docs/ApiregistrationApi.md index a940a7f5b7..7832cb01d8 100644 --- a/kubernetes/docs/ApiregistrationApi.md +++ b/kubernetes/docs/ApiregistrationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.ApiregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index 7dec6495d6..0e6e3d7bf1 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.ApiregistrationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,7 +24,9 @@ Method | HTTP request | Description create an APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -45,7 +47,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_api_service** -> V1Status delete_api_service(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,14 +105,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_api_service(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1Api->delete_api_service: %s\n" % e) @@ -120,11 +124,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -136,19 +140,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_api_service** -> V1Status delete_collection_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,16 +171,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1Api->delete_collection_api_service: %s\n" % e) @@ -185,13 +197,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -203,7 +221,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,7 +233,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -232,7 +252,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -252,19 +272,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_api_service** -> V1APIServiceList list_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1APIServiceList list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -281,16 +303,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1Api->list_api_service: %s\n" % e) @@ -301,6 +324,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -319,7 +343,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -331,7 +355,9 @@ Name | Type | Description | Notes partially update the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -348,13 +374,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -366,7 +392,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -394,7 +420,9 @@ Name | Type | Description | Notes partially update status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -411,13 +439,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -429,7 +457,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -457,7 +485,9 @@ Name | Type | Description | Notes read the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -475,10 +505,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -504,7 +534,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -516,7 +546,9 @@ Name | Type | Description | Notes read status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -535,7 +567,7 @@ api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_api_service_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -559,7 +591,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -571,7 +603,9 @@ Name | Type | Description | Notes replace the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -593,7 +627,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -620,7 +654,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -632,7 +666,9 @@ Name | Type | Description | Notes replace status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -654,7 +690,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -681,7 +717,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1beta1Api.md b/kubernetes/docs/ApiregistrationV1beta1Api.md index b4f8afd98f..e56cf41c2b 100644 --- a/kubernetes/docs/ApiregistrationV1beta1Api.md +++ b/kubernetes/docs/ApiregistrationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.ApiregistrationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,7 +24,9 @@ Method | HTTP request | Description create an APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -45,7 +47,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_api_service** -> V1Status delete_api_service(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,14 +105,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_api_service(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1beta1Api->delete_api_service: %s\n" % e) @@ -120,11 +124,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -136,19 +140,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_api_service** -> V1Status delete_collection_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,16 +171,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1beta1Api->delete_collection_api_service: %s\n" % e) @@ -185,13 +197,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -203,7 +221,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,7 +233,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -232,7 +252,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -252,19 +272,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_api_service** -> V1beta1APIServiceList list_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1APIServiceList list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -281,16 +303,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_api_service(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ApiregistrationV1beta1Api->list_api_service: %s\n" % e) @@ -301,6 +324,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -319,7 +343,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -331,7 +355,9 @@ Name | Type | Description | Notes partially update the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -348,13 +374,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -366,7 +392,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -394,7 +420,9 @@ Name | Type | Description | Notes partially update status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -411,13 +439,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -429,7 +457,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -457,7 +485,9 @@ Name | Type | Description | Notes read the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -475,10 +505,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -504,7 +534,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -516,7 +546,9 @@ Name | Type | Description | Notes read status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -535,7 +567,7 @@ api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.Api name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_api_service_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -559,7 +591,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -571,7 +603,9 @@ Name | Type | Description | Notes replace the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -593,7 +627,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -620,7 +654,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -632,7 +666,9 @@ Name | Type | Description | Notes replace status of the specified APIService -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -654,7 +690,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -681,7 +717,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md index 923d341435..55372a7980 100644 --- a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name is the name of the service | [optional] **namespace** | **str** | Namespace is the namespace of the service | [optional] +**port** | **int** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 2698052523..195aa33468 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -1,6 +1,6 @@ # kubernetes.client.ApisApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get available API versions -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ApisApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_versions() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index 2b8c64714c..dba9eea3da 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AppsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index 73eb91c4d5..290909ac7b 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AppsV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -75,7 +75,9 @@ Method | HTTP request | Description create a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,7 +99,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -124,7 +126,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -136,7 +138,9 @@ Name | Type | Description | Notes create a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -158,7 +162,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -185,7 +189,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -197,7 +201,9 @@ Name | Type | Description | Notes create a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -219,7 +225,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -246,7 +252,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -258,7 +264,9 @@ Name | Type | Description | Notes create a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -280,7 +288,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -307,7 +315,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -319,7 +327,9 @@ Name | Type | Description | Notes create a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -341,7 +351,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -368,19 +378,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -398,16 +410,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_collection_namespaced_controller_revision: %s\n" % e) @@ -419,13 +437,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -437,19 +461,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -467,16 +493,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_collection_namespaced_daemon_set: %s\n" % e) @@ -488,13 +520,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -506,19 +544,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -536,16 +576,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_collection_namespaced_deployment: %s\n" % e) @@ -557,13 +603,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -575,19 +627,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -605,16 +659,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_collection_namespaced_replica_set: %s\n" % e) @@ -626,13 +686,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -644,19 +710,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -674,16 +742,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_collection_namespaced_stateful_set: %s\n" % e) @@ -695,13 +769,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -713,19 +793,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** -> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -744,14 +826,14 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_namespaced_controller_revision: %s\n" % e) @@ -764,11 +846,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -780,19 +862,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** -> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -811,14 +895,14 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_namespaced_daemon_set: %s\n" % e) @@ -831,11 +915,11 @@ Name | Type | Description | Notes **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -847,19 +931,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -878,14 +964,14 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_namespaced_deployment: %s\n" % e) @@ -898,11 +984,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -914,19 +1000,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** -> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -945,14 +1033,14 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_namespaced_replica_set: %s\n" % e) @@ -965,11 +1053,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -981,19 +1069,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** -> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1012,14 +1102,14 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->delete_namespaced_stateful_set: %s\n" % e) @@ -1032,11 +1122,11 @@ Name | Type | Description | Notes **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1048,7 +1138,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1060,7 +1150,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1077,7 +1169,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -1097,19 +1189,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** -> V1ControllerRevisionList list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ControllerRevisionList list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1125,6 +1219,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1132,10 +1227,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_controller_revision_for_all_namespaces: %s\n" % e) @@ -1145,6 +1240,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1164,19 +1260,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** -> V1DaemonSetList list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1DaemonSetList list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1192,6 +1290,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1199,10 +1298,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_daemon_set_for_all_namespaces: %s\n" % e) @@ -1212,6 +1311,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1231,19 +1331,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** -> V1DeploymentList list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1DeploymentList list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1259,6 +1361,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1266,10 +1369,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_deployment_for_all_namespaces: %s\n" % e) @@ -1279,6 +1382,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1298,19 +1402,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** -> V1ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1328,16 +1434,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_namespaced_controller_revision: %s\n" % e) @@ -1349,6 +1456,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1367,19 +1475,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** -> V1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1397,16 +1507,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_namespaced_daemon_set: %s\n" % e) @@ -1418,6 +1529,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1436,19 +1548,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** -> V1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1466,16 +1580,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_namespaced_deployment: %s\n" % e) @@ -1487,6 +1602,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1505,19 +1621,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** -> V1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1535,16 +1653,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_namespaced_replica_set: %s\n" % e) @@ -1556,6 +1675,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1574,19 +1694,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** -> V1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1604,16 +1726,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_namespaced_stateful_set: %s\n" % e) @@ -1625,6 +1748,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1643,19 +1767,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** -> V1ReplicaSetList list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ReplicaSetList list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1671,6 +1797,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1678,10 +1805,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_replica_set_for_all_namespaces: %s\n" % e) @@ -1691,6 +1818,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1710,19 +1838,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** -> V1StatefulSetList list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1StatefulSetList list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1738,6 +1868,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1745,10 +1876,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1Api->list_stateful_set_for_all_namespaces: %s\n" % e) @@ -1758,6 +1889,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1777,7 +1909,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1789,7 +1921,9 @@ Name | Type | Description | Notes partially update the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1807,13 +1941,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1826,7 +1960,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1854,7 +1988,9 @@ Name | Type | Description | Notes partially update the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1872,13 +2008,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1891,7 +2027,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1919,7 +2055,9 @@ Name | Type | Description | Notes partially update status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1937,13 +2075,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1956,7 +2094,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1984,7 +2122,9 @@ Name | Type | Description | Notes partially update the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2002,13 +2142,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2021,7 +2161,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2049,7 +2189,9 @@ Name | Type | Description | Notes partially update scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2067,13 +2209,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2086,7 +2228,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2114,7 +2256,9 @@ Name | Type | Description | Notes partially update status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2132,13 +2276,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2151,7 +2295,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2179,7 +2323,9 @@ Name | Type | Description | Notes partially update the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2197,13 +2343,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2216,7 +2362,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2244,7 +2390,9 @@ Name | Type | Description | Notes partially update scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2262,13 +2410,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2281,7 +2429,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2309,7 +2457,9 @@ Name | Type | Description | Notes partially update status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2327,13 +2477,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2346,7 +2496,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2374,7 +2524,9 @@ Name | Type | Description | Notes partially update the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2392,13 +2544,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2411,7 +2563,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2439,7 +2591,9 @@ Name | Type | Description | Notes partially update scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2457,13 +2611,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2476,7 +2630,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2504,7 +2658,9 @@ Name | Type | Description | Notes partially update status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2522,13 +2678,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2541,7 +2697,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2569,7 +2725,9 @@ Name | Type | Description | Notes read the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2588,10 +2746,10 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2618,7 +2776,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2630,7 +2788,9 @@ Name | Type | Description | Notes read the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2649,10 +2809,10 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2679,7 +2839,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2691,7 +2851,9 @@ Name | Type | Description | Notes read status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2711,7 +2873,7 @@ name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2736,7 +2898,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2748,7 +2910,9 @@ Name | Type | Description | Notes read the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2767,10 +2931,10 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2797,7 +2961,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2809,7 +2973,9 @@ Name | Type | Description | Notes read scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2829,7 +2995,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2854,7 +3020,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2866,7 +3032,9 @@ Name | Type | Description | Notes read status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2886,7 +3054,7 @@ name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2911,7 +3079,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2923,7 +3091,9 @@ Name | Type | Description | Notes read the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2942,10 +3112,10 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2972,7 +3142,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2984,7 +3154,9 @@ Name | Type | Description | Notes read scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3004,7 +3176,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3029,7 +3201,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3041,7 +3213,9 @@ Name | Type | Description | Notes read status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3061,7 +3235,7 @@ name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3086,7 +3260,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3098,7 +3272,9 @@ Name | Type | Description | Notes read the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3117,10 +3293,10 @@ api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3147,7 +3323,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3159,7 +3335,9 @@ Name | Type | Description | Notes read scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3179,7 +3357,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3204,7 +3382,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3216,7 +3394,9 @@ Name | Type | Description | Notes read status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3236,7 +3416,7 @@ name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3261,7 +3441,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3273,7 +3453,9 @@ Name | Type | Description | Notes replace the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3296,7 +3478,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3324,7 +3506,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3336,7 +3518,9 @@ Name | Type | Description | Notes replace the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3359,7 +3543,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3387,7 +3571,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3399,7 +3583,9 @@ Name | Type | Description | Notes replace status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3422,7 +3608,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3450,7 +3636,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3462,7 +3648,9 @@ Name | Type | Description | Notes replace the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3485,7 +3673,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3513,7 +3701,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3525,7 +3713,9 @@ Name | Type | Description | Notes replace scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3548,7 +3738,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3576,7 +3766,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3588,7 +3778,9 @@ Name | Type | Description | Notes replace status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3611,7 +3803,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3639,7 +3831,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3651,7 +3843,9 @@ Name | Type | Description | Notes replace the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3674,7 +3868,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3702,7 +3896,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3714,7 +3908,9 @@ Name | Type | Description | Notes replace scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3737,7 +3933,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3765,7 +3961,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3777,7 +3973,9 @@ Name | Type | Description | Notes replace status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3800,7 +3998,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3828,7 +4026,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3840,7 +4038,9 @@ Name | Type | Description | Notes replace the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3863,7 +4063,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3891,7 +4091,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3903,7 +4103,9 @@ Name | Type | Description | Notes replace scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3926,7 +4128,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3954,7 +4156,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3966,7 +4168,9 @@ Name | Type | Description | Notes replace status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3989,7 +4193,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4017,7 +4221,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index 9a3f2043cb..2a567a5d54 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AppsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -51,7 +51,9 @@ Method | HTTP request | Description create a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -73,7 +75,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -100,7 +102,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -112,7 +114,9 @@ Name | Type | Description | Notes create a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -134,7 +138,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -161,7 +165,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -173,7 +177,9 @@ Name | Type | Description | Notes create rollback of a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -196,7 +202,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -224,7 +230,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -236,7 +242,9 @@ Name | Type | Description | Notes create a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -258,7 +266,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -285,19 +293,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -315,16 +325,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_controller_revision: %s\n" % e) @@ -336,13 +352,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -354,19 +376,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -384,16 +408,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) @@ -405,13 +435,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -423,19 +459,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -453,16 +491,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_stateful_set: %s\n" % e) @@ -474,13 +518,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -492,19 +542,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** -> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -523,14 +575,14 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_namespaced_controller_revision: %s\n" % e) @@ -543,11 +595,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -559,19 +611,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -590,14 +644,14 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_namespaced_deployment: %s\n" % e) @@ -610,11 +664,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -626,19 +680,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** -> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -657,14 +713,14 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) @@ -677,11 +733,11 @@ Name | Type | Description | Notes **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -693,7 +749,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -705,7 +761,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -722,7 +780,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -742,19 +800,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** -> V1beta1ControllerRevisionList list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ControllerRevisionList list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -770,6 +830,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -777,10 +838,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_controller_revision_for_all_namespaces: %s\n" % e) @@ -790,6 +851,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -809,19 +871,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** -> AppsV1beta1DeploymentList list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> AppsV1beta1DeploymentList list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -837,6 +901,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -844,10 +909,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) @@ -857,6 +922,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -876,19 +942,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** -> V1beta1ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -906,16 +974,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_namespaced_controller_revision: %s\n" % e) @@ -927,6 +996,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -945,19 +1015,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** -> AppsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> AppsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -975,16 +1047,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_namespaced_deployment: %s\n" % e) @@ -996,6 +1069,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1014,19 +1088,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** -> V1beta1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1044,16 +1120,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) @@ -1065,6 +1142,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1083,19 +1161,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** -> V1beta1StatefulSetList list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1StatefulSetList list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1111,6 +1191,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1118,10 +1199,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) @@ -1131,6 +1212,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1150,7 +1232,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1162,7 +1244,9 @@ Name | Type | Description | Notes partially update the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1180,13 +1264,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1199,7 +1283,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1227,7 +1311,9 @@ Name | Type | Description | Notes partially update the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1245,13 +1331,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1264,7 +1350,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1292,7 +1378,9 @@ Name | Type | Description | Notes partially update scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1310,13 +1398,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1329,7 +1417,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1357,7 +1445,9 @@ Name | Type | Description | Notes partially update status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1375,13 +1465,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1394,7 +1484,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1422,7 +1512,9 @@ Name | Type | Description | Notes partially update the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1440,13 +1532,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1459,7 +1551,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1487,7 +1579,9 @@ Name | Type | Description | Notes partially update scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1505,13 +1599,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1524,7 +1618,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1552,7 +1646,9 @@ Name | Type | Description | Notes partially update status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1570,13 +1666,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1589,7 +1685,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1617,7 +1713,9 @@ Name | Type | Description | Notes read the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1636,10 +1734,10 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1666,7 +1764,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1678,7 +1776,9 @@ Name | Type | Description | Notes read the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1697,10 +1797,10 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1727,7 +1827,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1739,7 +1839,9 @@ Name | Type | Description | Notes read scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1759,7 +1861,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1784,7 +1886,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1796,7 +1898,9 @@ Name | Type | Description | Notes read status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1816,7 +1920,7 @@ name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1841,7 +1945,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1853,7 +1957,9 @@ Name | Type | Description | Notes read the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1872,10 +1978,10 @@ api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1902,7 +2008,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1914,7 +2020,9 @@ Name | Type | Description | Notes read scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1934,7 +2042,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1959,7 +2067,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1971,7 +2079,9 @@ Name | Type | Description | Notes read status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1991,7 +2101,7 @@ name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2016,7 +2126,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2028,7 +2138,9 @@ Name | Type | Description | Notes replace the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2051,7 +2163,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2079,7 +2191,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2091,7 +2203,9 @@ Name | Type | Description | Notes replace the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2114,7 +2228,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2142,7 +2256,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2154,7 +2268,9 @@ Name | Type | Description | Notes replace scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2177,7 +2293,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2205,7 +2321,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2217,7 +2333,9 @@ Name | Type | Description | Notes replace status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2240,7 +2358,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2268,7 +2386,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2280,7 +2398,9 @@ Name | Type | Description | Notes replace the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2303,7 +2423,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2331,7 +2451,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2343,7 +2463,9 @@ Name | Type | Description | Notes replace scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2366,7 +2488,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2394,7 +2516,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2406,7 +2528,9 @@ Name | Type | Description | Notes replace status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2429,7 +2553,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -2457,7 +2581,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md index 6cf429fa9d..82f38b0a50 100644 --- a/kubernetes/docs/AppsV1beta1Deployment.md +++ b/kubernetes/docs/AppsV1beta1Deployment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | | [optional] +**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md index b7246a40d4..ddcace5eae 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentList.md +++ b/kubernetes/docs/AppsV1beta1DeploymentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[AppsV1beta1Deployment]**](AppsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md index 0c76307d2f..0351458350 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/AppsV1beta1DeploymentRollback.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **str** | Required: This must match the Name of a deployment. | -**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config of this deployment rollback. | +**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | | **updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md index 858a023c31..ae65c4343a 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/AppsV1beta1DeploymentSpec.md @@ -8,10 +8,10 @@ Name | Type | Description | Notes **progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. | [optional] -**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**rollback_to** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md index 36ecb07f70..8cbb7f265c 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rolling_update** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | | [optional] **type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md index e211e3309c..630a8ead31 100644 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | **object** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**max_unavailable** | **object** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**max_surge** | [**object**](.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md index 3bc7183b61..67a57642be 100644 --- a/kubernetes/docs/AppsV1beta1Scale.md +++ b/kubernetes/docs/AppsV1beta1Scale.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | | [optional] +**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta2Api.md b/kubernetes/docs/AppsV1beta2Api.md index c1e4c51f5d..17da8b5cb9 100644 --- a/kubernetes/docs/AppsV1beta2Api.md +++ b/kubernetes/docs/AppsV1beta2Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AppsV1beta2Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -75,7 +75,9 @@ Method | HTTP request | Description create a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,7 +99,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -124,7 +126,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -136,7 +138,9 @@ Name | Type | Description | Notes create a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -158,7 +162,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -185,7 +189,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -197,7 +201,9 @@ Name | Type | Description | Notes create a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -219,7 +225,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -246,7 +252,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -258,7 +264,9 @@ Name | Type | Description | Notes create a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -280,7 +288,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -307,7 +315,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -319,7 +327,9 @@ Name | Type | Description | Notes create a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -341,7 +351,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -368,19 +378,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -398,16 +410,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_controller_revision: %s\n" % e) @@ -419,13 +437,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -437,19 +461,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -467,16 +493,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_daemon_set: %s\n" % e) @@ -488,13 +520,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -506,19 +544,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -536,16 +576,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_deployment: %s\n" % e) @@ -557,13 +603,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -575,19 +627,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -605,16 +659,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_replica_set: %s\n" % e) @@ -626,13 +686,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -644,19 +710,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -674,16 +742,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_stateful_set: %s\n" % e) @@ -695,13 +769,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -713,19 +793,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** -> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -744,14 +826,14 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_namespaced_controller_revision: %s\n" % e) @@ -764,11 +846,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -780,19 +862,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** -> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -811,14 +895,14 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_namespaced_daemon_set: %s\n" % e) @@ -831,11 +915,11 @@ Name | Type | Description | Notes **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -847,19 +931,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -878,14 +964,14 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_namespaced_deployment: %s\n" % e) @@ -898,11 +984,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -914,19 +1000,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** -> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -945,14 +1033,14 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_namespaced_replica_set: %s\n" % e) @@ -965,11 +1053,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -981,19 +1069,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** -> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1012,14 +1102,14 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->delete_namespaced_stateful_set: %s\n" % e) @@ -1032,11 +1122,11 @@ Name | Type | Description | Notes **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1048,7 +1138,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1060,7 +1150,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1077,7 +1169,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -1097,19 +1189,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** -> V1beta2ControllerRevisionList list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2ControllerRevisionList list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1125,6 +1219,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1132,10 +1227,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_controller_revision_for_all_namespaces: %s\n" % e) @@ -1145,6 +1240,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1164,19 +1260,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** -> V1beta2DaemonSetList list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2DaemonSetList list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1192,6 +1290,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1199,10 +1298,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_daemon_set_for_all_namespaces: %s\n" % e) @@ -1212,6 +1311,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1231,19 +1331,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** -> V1beta2DeploymentList list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2DeploymentList list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1259,6 +1361,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1266,10 +1369,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_deployment_for_all_namespaces: %s\n" % e) @@ -1279,6 +1382,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1298,19 +1402,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** -> V1beta2ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2ControllerRevisionList list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1328,16 +1434,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_namespaced_controller_revision: %s\n" % e) @@ -1349,6 +1456,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1367,19 +1475,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** -> V1beta2DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1397,16 +1507,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_namespaced_daemon_set: %s\n" % e) @@ -1418,6 +1529,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1436,19 +1548,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** -> V1beta2DeploymentList list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2DeploymentList list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1466,16 +1580,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_namespaced_deployment: %s\n" % e) @@ -1487,6 +1602,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1505,19 +1621,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** -> V1beta2ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1535,16 +1653,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_namespaced_replica_set: %s\n" % e) @@ -1556,6 +1675,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1574,19 +1694,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** -> V1beta2StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2StatefulSetList list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1604,16 +1726,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_namespaced_stateful_set: %s\n" % e) @@ -1625,6 +1748,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1643,19 +1767,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** -> V1beta2ReplicaSetList list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2ReplicaSetList list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1671,6 +1797,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1678,10 +1805,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_replica_set_for_all_namespaces: %s\n" % e) @@ -1691,6 +1818,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1710,19 +1838,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** -> V1beta2StatefulSetList list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta2StatefulSetList list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1738,6 +1868,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1745,10 +1876,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AppsV1beta2Api->list_stateful_set_for_all_namespaces: %s\n" % e) @@ -1758,6 +1889,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1777,7 +1909,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1789,7 +1921,9 @@ Name | Type | Description | Notes partially update the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1807,13 +1941,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1826,7 +1960,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1854,7 +1988,9 @@ Name | Type | Description | Notes partially update the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1872,13 +2008,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1891,7 +2027,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1919,7 +2055,9 @@ Name | Type | Description | Notes partially update status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1937,13 +2075,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1956,7 +2094,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1984,7 +2122,9 @@ Name | Type | Description | Notes partially update the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2002,13 +2142,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2021,7 +2161,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2049,7 +2189,9 @@ Name | Type | Description | Notes partially update scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2067,13 +2209,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2086,7 +2228,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2114,7 +2256,9 @@ Name | Type | Description | Notes partially update status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2132,13 +2276,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2151,7 +2295,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2179,7 +2323,9 @@ Name | Type | Description | Notes partially update the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2197,13 +2343,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2216,7 +2362,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2244,7 +2390,9 @@ Name | Type | Description | Notes partially update scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2262,13 +2410,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2281,7 +2429,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2309,7 +2457,9 @@ Name | Type | Description | Notes partially update status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2327,13 +2477,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2346,7 +2496,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2374,7 +2524,9 @@ Name | Type | Description | Notes partially update the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2392,13 +2544,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2411,7 +2563,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2439,7 +2591,9 @@ Name | Type | Description | Notes partially update scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2457,13 +2611,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2476,7 +2630,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2504,7 +2658,9 @@ Name | Type | Description | Notes partially update status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2522,13 +2678,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2541,7 +2697,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2569,7 +2725,9 @@ Name | Type | Description | Notes read the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2588,10 +2746,10 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2618,7 +2776,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2630,7 +2788,9 @@ Name | Type | Description | Notes read the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2649,10 +2809,10 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2679,7 +2839,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2691,7 +2851,9 @@ Name | Type | Description | Notes read status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2711,7 +2873,7 @@ name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2736,7 +2898,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2748,7 +2910,9 @@ Name | Type | Description | Notes read the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2767,10 +2931,10 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2797,7 +2961,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2809,7 +2973,9 @@ Name | Type | Description | Notes read scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2829,7 +2995,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2854,7 +3020,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2866,7 +3032,9 @@ Name | Type | Description | Notes read status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2886,7 +3054,7 @@ name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -2911,7 +3079,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2923,7 +3091,9 @@ Name | Type | Description | Notes read the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2942,10 +3112,10 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -2972,7 +3142,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2984,7 +3154,9 @@ Name | Type | Description | Notes read scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3004,7 +3176,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3029,7 +3201,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3041,7 +3213,9 @@ Name | Type | Description | Notes read status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3061,7 +3235,7 @@ name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3086,7 +3260,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3098,7 +3272,9 @@ Name | Type | Description | Notes read the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3117,10 +3293,10 @@ api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(conf name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3147,7 +3323,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3159,7 +3335,9 @@ Name | Type | Description | Notes read scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3179,7 +3357,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3204,7 +3382,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3216,7 +3394,9 @@ Name | Type | Description | Notes read status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3236,7 +3416,7 @@ name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3261,7 +3441,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3273,7 +3453,9 @@ Name | Type | Description | Notes replace the specified ControllerRevision -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3296,7 +3478,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3324,7 +3506,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3336,7 +3518,9 @@ Name | Type | Description | Notes replace the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3359,7 +3543,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3387,7 +3571,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3399,7 +3583,9 @@ Name | Type | Description | Notes replace status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3422,7 +3608,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3450,7 +3636,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3462,7 +3648,9 @@ Name | Type | Description | Notes replace the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3485,7 +3673,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3513,7 +3701,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3525,7 +3713,9 @@ Name | Type | Description | Notes replace scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3548,7 +3738,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3576,7 +3766,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3588,7 +3778,9 @@ Name | Type | Description | Notes replace status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3611,7 +3803,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3639,7 +3831,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3651,7 +3843,9 @@ Name | Type | Description | Notes replace the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3674,7 +3868,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3702,7 +3896,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3714,7 +3908,9 @@ Name | Type | Description | Notes replace scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3737,7 +3933,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3765,7 +3961,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3777,7 +3973,9 @@ Name | Type | Description | Notes replace status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3800,7 +3998,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3828,7 +4026,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3840,7 +4038,9 @@ Name | Type | Description | Notes replace the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3863,7 +4063,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3891,7 +4091,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3903,7 +4103,9 @@ Name | Type | Description | Notes replace scale of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3926,7 +4128,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3954,7 +4156,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3966,7 +4168,9 @@ Name | Type | Description | Notes replace status of the specified StatefulSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3989,7 +4193,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4017,7 +4221,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuditregistrationApi.md b/kubernetes/docs/AuditregistrationApi.md index 9328e33d23..3b019b0091 100644 --- a/kubernetes/docs/AuditregistrationApi.md +++ b/kubernetes/docs/AuditregistrationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AuditregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuditregistrationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuditregistrationV1alpha1Api.md b/kubernetes/docs/AuditregistrationV1alpha1Api.md index cada93d30c..25f33ae199 100644 --- a/kubernetes/docs/AuditregistrationV1alpha1Api.md +++ b/kubernetes/docs/AuditregistrationV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AuditregistrationV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create an AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_audit_sink(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_audit_sink** -> V1Status delete_audit_sink(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_audit_sink(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -98,14 +102,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the AuditSink pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_audit_sink(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_audit_sink(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AuditregistrationV1alpha1Api->delete_audit_sink: %s\n" % e) @@ -117,11 +121,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the AuditSink | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -133,19 +137,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_audit_sink** -> V1Status delete_collection_audit_sink(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -162,16 +168,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_audit_sink(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AuditregistrationV1alpha1Api->delete_collection_audit_sink: %s\n" % e) @@ -182,13 +194,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_audit_sink** -> V1alpha1AuditSinkList list_audit_sink(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1AuditSinkList list_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_audit_sink(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AuditregistrationV1alpha1Api->list_audit_sink: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the AuditSink -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the AuditSink | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the AuditSink pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_audit_sink(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified AuditSink -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 75789e6e13..163ab2bf22 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthenticationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthenticationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md index 94dd773cf7..bba28b261a 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthenticationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -15,7 +15,9 @@ Method | HTTP request | Description create a TokenReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -36,7 +38,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -62,7 +64,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -74,7 +76,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -91,7 +95,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthenticationV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -111,7 +115,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index b688c7355e..a4f106dad9 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthenticationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -15,7 +15,9 @@ Method | HTTP request | Description create a TokenReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -36,7 +38,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -62,7 +64,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -74,7 +76,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -91,7 +95,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthenticationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -111,7 +115,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index f24ea18bd3..bf0ae7092f 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthorizationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthorizationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md index cb0fb025fd..e072fdae9b 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthorizationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,7 +18,9 @@ Method | HTTP request | Description create a LocalSubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -40,7 +42,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -67,7 +69,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -79,7 +81,9 @@ Name | Type | Description | Notes create a SelfSubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -100,7 +104,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -126,7 +130,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -138,7 +142,9 @@ Name | Type | Description | Notes create a SelfSubjectRulesReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -159,7 +165,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -185,7 +191,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -197,7 +203,9 @@ Name | Type | Description | Notes create a SubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -218,7 +226,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -244,7 +252,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -256,7 +264,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -273,7 +283,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -293,7 +303,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationV1beta1Api.md b/kubernetes/docs/AuthorizationV1beta1Api.md index 8b3b5fb47c..cb20c10cd9 100644 --- a/kubernetes/docs/AuthorizationV1beta1Api.md +++ b/kubernetes/docs/AuthorizationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AuthorizationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,7 +18,9 @@ Method | HTTP request | Description create a LocalSubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -40,7 +42,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -67,7 +69,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -79,7 +81,9 @@ Name | Type | Description | Notes create a SelfSubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -100,7 +104,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -126,7 +130,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -138,7 +142,9 @@ Name | Type | Description | Notes create a SelfSubjectRulesReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -159,7 +165,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -185,7 +191,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -197,7 +203,9 @@ Name | Type | Description | Notes create a SubjectAccessReview -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -218,7 +226,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -244,7 +252,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -256,7 +264,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -273,7 +283,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -293,7 +303,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 718c0c7992..238726e9eb 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -1,6 +1,6 @@ # kubernetes.client.AutoscalingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index 47bf1661ae..40966c50a6 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AutoscalingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** -> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** -> V1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** -> V1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV2beta1Api.md b/kubernetes/docs/AutoscalingV2beta1Api.md index 09e3ae42c3..11453b7d9c 100644 --- a/kubernetes/docs/AutoscalingV2beta1Api.md +++ b/kubernetes/docs/AutoscalingV2beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AutoscalingV2beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** -> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClie name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** -> V2beta1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2beta1HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** -> V2beta1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2beta1HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClie name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV2beta2Api.md b/kubernetes/docs/AutoscalingV2beta2Api.md index 13c7255995..6429ec119e 100644 --- a/kubernetes/docs/AutoscalingV2beta2Api.md +++ b/kubernetes/docs/AutoscalingV2beta2Api.md @@ -1,6 +1,6 @@ # kubernetes.client.AutoscalingV2beta2Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta2Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** -> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClie name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta2Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** -> V2beta2HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2beta2HorizontalPodAutoscalerList list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta2Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** -> V2beta2HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2beta2HorizontalPodAutoscalerList list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling AutoscalingV2beta2Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClie name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified HorizontalPodAutoscaler -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index 2508261fe5..dcf481f329 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -1,6 +1,6 @@ # kubernetes.client.BatchApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index aefc9f6d76..6762383248 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.BatchV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_job** -> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->delete_collection_namespaced_job: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_job** -> V1Status delete_namespaced_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configur name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->delete_namespaced_job: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_job_for_all_namespaces** -> V1JobList list_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1JobList list_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->list_job_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_job** -> V1JobList list_namespaced_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1JobList list_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1Api->list_namespaced_job: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configur name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified Job -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV1beta1Api.md b/kubernetes/docs/BatchV1beta1Api.md index bde563c18b..79169dd44f 100644 --- a/kubernetes/docs/BatchV1beta1Api.md +++ b/kubernetes/docs/BatchV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.BatchV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_cron_job** -> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1beta1Api->delete_collection_namespaced_cron_job: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_cron_job** -> V1Status delete_namespaced_cron_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(con name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1beta1Api->delete_namespaced_cron_job: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cron_job_for_all_namespaces** -> V1beta1CronJobList list_cron_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CronJobList list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cron_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1beta1Api->list_cron_job_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_cron_job** -> V1beta1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV1beta1Api->list_namespaced_cron_job: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(con name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index 0ff023d843..f8772ef46b 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.BatchV2alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_cron_job** -> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->delete_collection_namespaced_cron_job: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_cron_job** -> V1Status delete_namespaced_cron_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->delete_namespaced_cron_job: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cron_job_for_all_namespaces** -> V2alpha1CronJobList list_cron_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2alpha1CronJobList list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cron_job_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_cron_job** -> V2alpha1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V2alpha1CronJobList list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_job: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified CronJob -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index c8d9f697a2..99d8ebc83a 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -1,6 +1,6 @@ # kubernetes.client.CertificatesApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md index b9be3e252e..3983d8ce10 100644 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.CertificatesV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create a CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -46,7 +48,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_certificate_signing_request(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -72,19 +74,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_certificate_signing_request** -> V1Status delete_certificate_signing_request(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -102,14 +106,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_certificate_signing_request(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CertificatesV1beta1Api->delete_certificate_signing_request: %s\n" % e) @@ -121,11 +125,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -137,19 +141,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_certificate_signing_request** -> V1Status delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -166,16 +172,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CertificatesV1beta1Api->delete_collection_certificate_signing_request: %s\n" % e) @@ -186,13 +198,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -204,7 +222,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -216,7 +234,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -233,7 +253,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -253,19 +273,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_certificate_signing_request** -> V1beta1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CertificateSigningRequestList list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -282,16 +304,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_certificate_signing_request(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CertificatesV1beta1Api->list_certificate_signing_request: %s\n" % e) @@ -302,6 +325,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -320,7 +344,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -332,7 +356,9 @@ Name | Type | Description | Notes partially update the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -349,13 +375,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CertificateSigningRequest -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -367,7 +393,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -395,7 +421,9 @@ Name | Type | Description | Notes partially update status of the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -412,13 +440,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CertificateSigningRequest -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -430,7 +458,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -458,7 +486,9 @@ Name | Type | Description | Notes read the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -476,10 +506,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -505,7 +535,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -517,7 +547,9 @@ Name | Type | Description | Notes read status of the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -536,7 +568,7 @@ api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_certificate_signing_request_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -560,7 +592,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -572,7 +604,9 @@ Name | Type | Description | Notes replace the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -594,7 +628,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -621,7 +655,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -633,7 +667,9 @@ Name | Type | Description | Notes replace approval of the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -655,7 +691,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.replace_certificate_signing_request_approval(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -682,7 +718,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -694,7 +730,9 @@ Name | Type | Description | Notes replace status of the specified CertificateSigningRequest -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -716,7 +754,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -743,7 +781,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index e42623591a..5d4f275dc7 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.CoordinationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoordinationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index 04fcc6f161..43babd202d 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.CoordinationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,7 +22,9 @@ Method | HTTP request | Description create a Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -44,7 +46,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_lease** -> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,16 +105,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1Api->delete_collection_namespaced_lease: %s\n" % e) @@ -122,13 +132,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -140,19 +156,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_lease** -> V1Status delete_namespaced_lease(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -171,14 +189,14 @@ api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(c name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1Api->delete_namespaced_lease: %s\n" % e) @@ -191,11 +209,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -207,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +237,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -236,7 +256,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -256,19 +276,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_lease_for_all_namespaces** -> V1LeaseList list_lease_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1LeaseList list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -284,6 +306,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -291,10 +314,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_lease_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1Api->list_lease_for_all_namespaces: %s\n" % e) @@ -304,6 +327,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -323,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_lease** -> V1LeaseList list_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1LeaseList list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -353,16 +379,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1Api->list_namespaced_lease: %s\n" % e) @@ -374,6 +401,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -392,7 +420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +432,9 @@ Name | Type | Description | Notes partially update the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -422,13 +452,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -441,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -469,7 +499,9 @@ Name | Type | Description | Notes read the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -488,10 +520,10 @@ api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(c name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -518,7 +550,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +562,9 @@ Name | Type | Description | Notes replace the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -553,7 +587,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -581,7 +615,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md index e13e4cb5ab..21e435eb7c 100644 --- a/kubernetes/docs/CoordinationV1beta1Api.md +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.CoordinationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,7 +22,9 @@ Method | HTTP request | Description create a Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -44,7 +46,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_lease** -> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,16 +105,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1beta1Api->delete_collection_namespaced_lease: %s\n" % e) @@ -122,13 +132,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -140,19 +156,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_lease** -> V1Status delete_namespaced_lease(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -171,14 +189,14 @@ api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1beta1Api->delete_namespaced_lease: %s\n" % e) @@ -191,11 +209,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -207,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +237,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -236,7 +256,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -256,19 +276,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_lease_for_all_namespaces** -> V1beta1LeaseList list_lease_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1LeaseList list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -284,6 +306,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -291,10 +314,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_lease_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1beta1Api->list_lease_for_all_namespaces: %s\n" % e) @@ -304,6 +327,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -323,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_lease** -> V1beta1LeaseList list_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1LeaseList list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -353,16 +379,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoordinationV1beta1Api->list_namespaced_lease: %s\n" % e) @@ -374,6 +401,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -392,7 +420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +432,9 @@ Name | Type | Description | Notes partially update the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -422,13 +452,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -441,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -469,7 +499,9 @@ Name | Type | Description | Notes read the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -488,10 +520,10 @@ api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -518,7 +550,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +562,9 @@ Name | Type | Description | Notes replace the specified Lease -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -553,7 +587,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -581,7 +615,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index 514cc8ef72..55604f5adc 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -1,6 +1,6 @@ # kubernetes.client.CoreApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get available API versions -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_versions() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 43a6c11dc1..40c105f808 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.CoreV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -211,7 +211,9 @@ Method | HTTP request | Description connect DELETE requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -231,7 +233,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_delete_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -256,7 +258,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -268,7 +270,9 @@ Name | Type | Description | Notes connect DELETE requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -289,7 +293,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -315,7 +319,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -327,7 +331,9 @@ Name | Type | Description | Notes connect DELETE requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -347,7 +353,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_delete_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -372,7 +378,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -384,7 +390,9 @@ Name | Type | Description | Notes connect DELETE requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -405,7 +413,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -431,7 +439,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -443,7 +451,9 @@ Name | Type | Description | Notes connect DELETE requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -462,7 +472,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_delete_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -486,7 +496,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -498,7 +508,9 @@ Name | Type | Description | Notes connect DELETE requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -518,7 +530,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_delete_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -543,7 +555,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -555,7 +567,9 @@ Name | Type | Description | Notes connect GET requests to attach of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -574,12 +588,12 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PodAttachOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) -stderr = true # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) -stdin = true # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) -stdout = true # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) -tty = true # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) +stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) +stdin = True # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) +tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: @@ -608,7 +622,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -620,7 +634,9 @@ Name | Type | Description | Notes connect GET requests to exec of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -640,12 +656,12 @@ name = 'name_example' # str | name of the PodExecOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) -stderr = true # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) -stdin = true # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) -stdout = true # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) -tty = true # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) +stderr = True # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) +stdin = True # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) +tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: @@ -675,7 +691,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -687,7 +703,9 @@ Name | Type | Description | Notes connect GET requests to portforward of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -707,7 +725,7 @@ name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) -try: +try: api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: @@ -732,7 +750,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -744,7 +762,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -764,7 +784,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -789,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -801,7 +821,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -822,7 +844,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -848,7 +870,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -860,7 +882,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -880,7 +904,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -905,7 +929,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -917,7 +941,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -938,7 +964,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -964,7 +990,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -976,7 +1002,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -995,7 +1023,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_get_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -1019,7 +1047,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1031,7 +1059,9 @@ Name | Type | Description | Notes connect GET requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1051,7 +1081,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_get_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1076,7 +1106,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1088,7 +1118,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1108,7 +1140,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_head_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1133,7 +1165,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1145,7 +1177,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1166,7 +1200,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1192,7 +1226,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1204,7 +1238,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1224,7 +1260,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_head_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1249,7 +1285,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1261,7 +1297,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1282,7 +1320,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1308,7 +1346,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1320,7 +1358,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1339,7 +1379,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_head_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -1363,7 +1403,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1375,7 +1415,9 @@ Name | Type | Description | Notes connect HEAD requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1395,7 +1437,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_head_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1420,7 +1462,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1432,7 +1474,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1452,7 +1496,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_options_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1477,7 +1521,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1489,7 +1533,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1510,7 +1556,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1536,7 +1582,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1548,7 +1594,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1568,7 +1616,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_options_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1593,7 +1641,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1605,7 +1653,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1626,7 +1676,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1652,7 +1702,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1664,7 +1714,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1683,7 +1735,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_options_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -1707,7 +1759,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1719,7 +1771,9 @@ Name | Type | Description | Notes connect OPTIONS requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1739,7 +1793,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_options_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1764,7 +1818,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1776,7 +1830,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1796,7 +1852,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_patch_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1821,7 +1877,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1833,7 +1889,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1854,7 +1912,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1880,7 +1938,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1892,7 +1950,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1912,7 +1972,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_patch_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -1937,7 +1997,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1949,7 +2009,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1970,7 +2032,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -1996,7 +2058,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2008,7 +2070,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2027,7 +2091,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_patch_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -2051,7 +2115,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2063,7 +2127,9 @@ Name | Type | Description | Notes connect PATCH requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2083,7 +2149,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_patch_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2108,7 +2174,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2120,7 +2186,9 @@ Name | Type | Description | Notes connect POST requests to attach of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2139,12 +2207,12 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PodAttachOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) -stderr = true # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) -stdin = true # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) -stdout = true # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) -tty = true # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) +stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) +stdin = True # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) +tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: @@ -2173,7 +2241,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2185,7 +2253,9 @@ Name | Type | Description | Notes connect POST requests to exec of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2205,12 +2275,12 @@ name = 'name_example' # str | name of the PodExecOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) -stderr = true # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) -stdin = true # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) -stdout = true # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) -tty = true # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) +stderr = True # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) +stdin = True # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) +stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) +tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: @@ -2240,7 +2310,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2252,7 +2322,9 @@ Name | Type | Description | Notes connect POST requests to portforward of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2272,7 +2344,7 @@ name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) -try: +try: api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: @@ -2297,7 +2369,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2309,7 +2381,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2329,7 +2403,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -2354,7 +2428,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2366,7 +2440,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2387,7 +2463,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2413,7 +2489,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2425,7 +2501,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2445,7 +2523,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -2470,7 +2548,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2482,7 +2560,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2503,7 +2583,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2529,7 +2609,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2541,7 +2621,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2560,7 +2642,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_post_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -2584,7 +2666,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2596,7 +2678,9 @@ Name | Type | Description | Notes connect POST requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2616,7 +2700,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_post_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2641,7 +2725,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2653,7 +2737,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2673,7 +2759,7 @@ name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_put_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -2698,7 +2784,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2710,7 +2796,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2731,7 +2819,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: +try: api_response = api_instance.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2757,7 +2845,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2769,7 +2857,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2789,7 +2879,7 @@ name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_put_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: @@ -2814,7 +2904,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2826,7 +2916,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2847,7 +2939,7 @@ namespace = 'namespace_example' # str | object name and auth scope, such as for path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: +try: api_response = api_instance.connect_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2873,7 +2965,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2885,7 +2977,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2904,7 +2998,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_put_node_proxy(name, path=path) pprint(api_response) except ApiException as e: @@ -2928,7 +3022,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2940,7 +3034,9 @@ Name | Type | Description | Notes connect PUT requests to proxy of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2960,7 +3056,7 @@ name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: +try: api_response = api_instance.connect_put_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: @@ -2985,7 +3081,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2997,7 +3093,9 @@ Name | Type | Description | Notes create a Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3018,7 +3116,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespace(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3044,7 +3142,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3056,7 +3154,9 @@ Name | Type | Description | Notes create a Binding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3078,7 +3178,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_binding(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3105,7 +3205,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3117,7 +3217,9 @@ Name | Type | Description | Notes create a ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3139,7 +3241,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3166,7 +3268,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3178,7 +3280,9 @@ Name | Type | Description | Notes create Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3200,7 +3304,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3227,7 +3331,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3239,7 +3343,9 @@ Name | Type | Description | Notes create an Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3261,7 +3367,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3288,7 +3394,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3300,7 +3406,9 @@ Name | Type | Description | Notes create a LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3322,7 +3430,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3349,7 +3457,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3361,7 +3469,9 @@ Name | Type | Description | Notes create a PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3383,7 +3493,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3410,7 +3520,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3422,7 +3532,9 @@ Name | Type | Description | Notes create a Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3444,7 +3556,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3471,7 +3583,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3483,7 +3595,9 @@ Name | Type | Description | Notes create binding of a Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3506,7 +3620,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_pod_binding(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3534,7 +3648,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3546,7 +3660,9 @@ Name | Type | Description | Notes create eviction of a Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3569,7 +3685,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_pod_eviction(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3597,7 +3713,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3609,7 +3725,9 @@ Name | Type | Description | Notes create a PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3631,7 +3749,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3658,7 +3776,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3670,7 +3788,9 @@ Name | Type | Description | Notes create a ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3692,7 +3812,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3719,7 +3839,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3731,7 +3851,9 @@ Name | Type | Description | Notes create a ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3753,7 +3875,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3780,7 +3902,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3792,7 +3914,9 @@ Name | Type | Description | Notes create a Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3814,7 +3938,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3841,7 +3965,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3853,7 +3977,9 @@ Name | Type | Description | Notes create a Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3875,7 +4001,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3902,7 +4028,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3914,7 +4040,9 @@ Name | Type | Description | Notes create a ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3936,7 +4064,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3963,7 +4091,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3975,7 +4103,9 @@ Name | Type | Description | Notes create a Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3996,7 +4126,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4022,7 +4152,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4034,7 +4164,9 @@ Name | Type | Description | Notes create a PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4055,7 +4187,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_persistent_volume(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4081,19 +4213,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_config_map** -> V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4111,16 +4245,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_config_map: %s\n" % e) @@ -4132,13 +4272,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4150,19 +4296,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_endpoints** -> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4180,16 +4328,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_endpoints: %s\n" % e) @@ -4201,13 +4355,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4219,19 +4379,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_event** -> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4249,16 +4411,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_event: %s\n" % e) @@ -4270,13 +4438,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4288,19 +4462,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_limit_range** -> V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4318,16 +4494,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_limit_range: %s\n" % e) @@ -4339,13 +4521,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4357,19 +4545,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_persistent_volume_claim** -> V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4387,16 +4577,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_persistent_volume_claim: %s\n" % e) @@ -4408,13 +4604,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4426,19 +4628,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod** -> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4456,16 +4660,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_pod: %s\n" % e) @@ -4477,13 +4687,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4495,19 +4711,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_template** -> V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4525,16 +4743,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_pod_template: %s\n" % e) @@ -4546,13 +4770,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4564,19 +4794,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replication_controller** -> V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4594,16 +4826,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_replication_controller: %s\n" % e) @@ -4615,13 +4853,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4633,19 +4877,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_resource_quota** -> V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4663,16 +4909,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_resource_quota: %s\n" % e) @@ -4684,13 +4936,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4702,19 +4960,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_secret** -> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4732,16 +4992,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_secret(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_secret: %s\n" % e) @@ -4753,13 +5019,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4771,19 +5043,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_service_account** -> V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4801,16 +5075,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_service_account: %s\n" % e) @@ -4822,13 +5102,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4840,19 +5126,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_node** -> V1Status delete_collection_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4869,16 +5157,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_node: %s\n" % e) @@ -4889,13 +5183,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4907,19 +5207,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_persistent_volume** -> V1Status delete_collection_persistent_volume(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4936,16 +5238,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_persistent_volume(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_persistent_volume: %s\n" % e) @@ -4956,13 +5264,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4974,19 +5288,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespace** -> V1Status delete_namespace(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5004,14 +5320,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespace(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e) @@ -5023,11 +5339,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5039,19 +5355,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_config_map** -> V1Status delete_namespaced_config_map(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5070,14 +5388,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_config_map(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e) @@ -5090,11 +5408,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5106,19 +5424,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_endpoints** -> V1Status delete_namespaced_endpoints(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5137,14 +5457,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_endpoints(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e) @@ -5157,11 +5477,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5173,19 +5493,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_event** -> V1Status delete_namespaced_event(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5204,14 +5526,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e) @@ -5224,11 +5546,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5240,19 +5562,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_limit_range** -> V1Status delete_namespaced_limit_range(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5271,14 +5595,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_limit_range(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e) @@ -5291,11 +5615,11 @@ Name | Type | Description | Notes **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5307,19 +5631,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_persistent_volume_claim** -> V1Status delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5338,14 +5664,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e) @@ -5358,11 +5684,11 @@ Name | Type | Description | Notes **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5374,19 +5700,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod** -> V1Status delete_namespaced_pod(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5405,14 +5733,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e) @@ -5425,11 +5753,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5441,19 +5769,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_template** -> V1Status delete_namespaced_pod_template(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5472,14 +5802,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_template(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e) @@ -5492,11 +5822,11 @@ Name | Type | Description | Notes **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5508,19 +5838,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replication_controller** -> V1Status delete_namespaced_replication_controller(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5539,14 +5871,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replication_controller(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e) @@ -5559,11 +5891,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5575,19 +5907,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_resource_quota** -> V1Status delete_namespaced_resource_quota(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5606,14 +5940,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_resource_quota(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e) @@ -5626,11 +5960,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5642,19 +5976,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_secret** -> V1Status delete_namespaced_secret(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5673,14 +6009,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_secret(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e) @@ -5693,11 +6029,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Secret | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5709,19 +6045,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service** -> V1Status delete_namespaced_service(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5740,14 +6078,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_service(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service: %s\n" % e) @@ -5760,11 +6098,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5776,19 +6114,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service_account** -> V1Status delete_namespaced_service_account(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5807,14 +6147,14 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_service_account(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e) @@ -5827,11 +6167,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ServiceAccount | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5843,19 +6183,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_node** -> V1Status delete_node(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5873,14 +6215,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_node(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_node: %s\n" % e) @@ -5892,11 +6234,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5908,19 +6250,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_persistent_volume** -> V1Status delete_persistent_volume(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -5938,14 +6282,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_persistent_volume(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) @@ -5957,11 +6301,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5973,7 +6317,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -5985,7 +6329,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6002,7 +6348,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -6022,19 +6368,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_component_status** -> V1ComponentStatusList list_component_status(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ComponentStatusList list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list objects of kind ComponentStatus -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6050,6 +6398,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6057,10 +6406,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_component_status(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_component_status: %s\n" % e) @@ -6070,6 +6419,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6089,19 +6439,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_config_map_for_all_namespaces** -> V1ConfigMapList list_config_map_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ConfigMapList list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6117,6 +6469,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6124,10 +6477,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_config_map_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e) @@ -6137,6 +6490,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6156,19 +6510,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_endpoints_for_all_namespaces** -> V1EndpointsList list_endpoints_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1EndpointsList list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6184,6 +6540,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6191,10 +6548,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_endpoints_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e) @@ -6204,6 +6561,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6223,19 +6581,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_event_for_all_namespaces** -> V1EventList list_event_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1EventList list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6251,6 +6611,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6258,10 +6619,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_event_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e) @@ -6271,6 +6632,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6290,19 +6652,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_limit_range_for_all_namespaces** -> V1LimitRangeList list_limit_range_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1LimitRangeList list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6318,6 +6682,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6325,10 +6690,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_limit_range_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e) @@ -6338,6 +6703,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6357,19 +6723,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespace** -> V1NamespaceList list_namespace(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1NamespaceList list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6386,16 +6754,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespace(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespace: %s\n" % e) @@ -6406,6 +6775,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6424,19 +6794,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_config_map** -> V1ConfigMapList list_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ConfigMapList list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6454,16 +6826,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e) @@ -6475,6 +6848,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6493,19 +6867,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_endpoints** -> V1EndpointsList list_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1EndpointsList list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6523,16 +6899,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e) @@ -6544,6 +6921,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6562,19 +6940,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_event** -> V1EventList list_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1EventList list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6592,16 +6972,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e) @@ -6613,6 +6994,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6631,19 +7013,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_limit_range** -> V1LimitRangeList list_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1LimitRangeList list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6661,16 +7045,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e) @@ -6682,6 +7067,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6700,19 +7086,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_persistent_volume_claim** -> V1PersistentVolumeClaimList list_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PersistentVolumeClaimList list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6730,16 +7118,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e) @@ -6751,6 +7140,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6769,19 +7159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod** -> V1PodList list_namespaced_pod(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PodList list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6799,16 +7191,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e) @@ -6820,6 +7213,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6838,19 +7232,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_template** -> V1PodTemplateList list_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PodTemplateList list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6868,16 +7264,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e) @@ -6889,6 +7286,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6907,19 +7305,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replication_controller** -> V1ReplicationControllerList list_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ReplicationControllerList list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -6937,16 +7337,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e) @@ -6958,6 +7359,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6976,19 +7378,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_resource_quota** -> V1ResourceQuotaList list_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ResourceQuotaList list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7006,16 +7410,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e) @@ -7027,6 +7432,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7045,19 +7451,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_secret** -> V1SecretList list_namespaced_secret(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1SecretList list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7075,16 +7483,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e) @@ -7096,6 +7505,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7114,19 +7524,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_service** -> V1ServiceList list_namespaced_service(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ServiceList list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7144,16 +7556,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e) @@ -7165,6 +7578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7183,19 +7597,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_service_account** -> V1ServiceAccountList list_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ServiceAccountList list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7213,16 +7629,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e) @@ -7234,6 +7651,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7252,19 +7670,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_node** -> V1NodeList list_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1NodeList list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7281,16 +7701,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_node: %s\n" % e) @@ -7301,6 +7722,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7319,19 +7741,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_persistent_volume** -> V1PersistentVolumeList list_persistent_volume(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PersistentVolumeList list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7348,16 +7772,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_persistent_volume(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e) @@ -7368,6 +7793,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7386,19 +7812,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_persistent_volume_claim_for_all_namespaces** -> V1PersistentVolumeClaimList list_persistent_volume_claim_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PersistentVolumeClaimList list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7414,6 +7842,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7421,10 +7850,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e) @@ -7434,6 +7863,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7453,19 +7883,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_for_all_namespaces** -> V1PodList list_pod_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PodList list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7481,6 +7913,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7488,10 +7921,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e) @@ -7501,6 +7934,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7520,19 +7954,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_template_for_all_namespaces** -> V1PodTemplateList list_pod_template_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PodTemplateList list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7548,6 +7984,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7555,10 +7992,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_template_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e) @@ -7568,6 +8005,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7587,19 +8025,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replication_controller_for_all_namespaces** -> V1ReplicationControllerList list_replication_controller_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ReplicationControllerList list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7615,6 +8055,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7622,10 +8063,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replication_controller_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e) @@ -7635,6 +8076,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7654,19 +8096,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_resource_quota_for_all_namespaces** -> V1ResourceQuotaList list_resource_quota_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ResourceQuotaList list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7682,6 +8126,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7689,10 +8134,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_resource_quota_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e) @@ -7702,6 +8147,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7721,19 +8167,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_secret_for_all_namespaces** -> V1SecretList list_secret_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1SecretList list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7749,6 +8197,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7756,10 +8205,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_secret_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e) @@ -7769,6 +8218,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7788,19 +8238,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_service_account_for_all_namespaces** -> V1ServiceAccountList list_service_account_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ServiceAccountList list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7816,6 +8268,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7823,10 +8276,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_service_account_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e) @@ -7836,6 +8289,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7855,19 +8309,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_service_for_all_namespaces** -> V1ServiceList list_service_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ServiceList list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7883,6 +8339,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7890,10 +8347,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_service_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e) @@ -7903,6 +8360,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7922,7 +8380,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -7934,7 +8392,9 @@ Name | Type | Description | Notes partially update the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -7951,13 +8411,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Namespace -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -7969,7 +8429,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -7997,7 +8457,9 @@ Name | Type | Description | Notes partially update status of the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8014,13 +8476,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Namespace -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8032,7 +8494,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8060,7 +8522,9 @@ Name | Type | Description | Notes partially update the specified ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8078,13 +8542,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8097,7 +8561,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8125,7 +8589,9 @@ Name | Type | Description | Notes partially update the specified Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8143,13 +8609,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8162,7 +8628,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8190,7 +8656,9 @@ Name | Type | Description | Notes partially update the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8208,13 +8676,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8227,7 +8695,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8255,7 +8723,9 @@ Name | Type | Description | Notes partially update the specified LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8273,13 +8743,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8292,7 +8762,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8320,7 +8790,9 @@ Name | Type | Description | Notes partially update the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8338,13 +8810,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8357,7 +8829,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8385,7 +8857,9 @@ Name | Type | Description | Notes partially update status of the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8403,13 +8877,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8422,7 +8896,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8450,7 +8924,9 @@ Name | Type | Description | Notes partially update the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8468,13 +8944,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8487,7 +8963,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8515,7 +8991,9 @@ Name | Type | Description | Notes partially update status of the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8533,13 +9011,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8552,7 +9030,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8580,7 +9058,9 @@ Name | Type | Description | Notes partially update the specified PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8598,13 +9078,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8617,7 +9097,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8645,7 +9125,9 @@ Name | Type | Description | Notes partially update the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8663,13 +9145,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8682,7 +9164,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8710,7 +9192,9 @@ Name | Type | Description | Notes partially update scale of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8728,13 +9212,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8747,7 +9231,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8775,7 +9259,9 @@ Name | Type | Description | Notes partially update status of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8793,13 +9279,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8812,7 +9298,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8840,7 +9326,9 @@ Name | Type | Description | Notes partially update the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8858,13 +9346,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8877,7 +9365,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8905,7 +9393,9 @@ Name | Type | Description | Notes partially update status of the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8923,13 +9413,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -8942,7 +9432,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8970,7 +9460,9 @@ Name | Type | Description | Notes partially update the specified Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -8988,13 +9480,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9007,7 +9499,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Secret | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9035,7 +9527,9 @@ Name | Type | Description | Notes partially update the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9053,13 +9547,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9072,7 +9566,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9100,7 +9594,9 @@ Name | Type | Description | Notes partially update the specified ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9118,13 +9614,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9137,7 +9633,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ServiceAccount | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9165,7 +9661,9 @@ Name | Type | Description | Notes partially update status of the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9183,13 +9681,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9202,7 +9700,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9230,7 +9728,9 @@ Name | Type | Description | Notes partially update the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9247,13 +9747,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Node -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9265,7 +9765,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9293,7 +9793,9 @@ Name | Type | Description | Notes partially update status of the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9310,13 +9812,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Node -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9328,7 +9830,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9356,7 +9858,9 @@ Name | Type | Description | Notes partially update the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9373,13 +9877,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolume -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9391,7 +9895,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9419,7 +9923,9 @@ Name | Type | Description | Notes partially update status of the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9436,13 +9942,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolume -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -9454,7 +9960,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9482,7 +9988,9 @@ Name | Type | Description | Notes read the specified ComponentStatus -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9501,7 +10009,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ComponentStatus pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_component_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -9525,7 +10033,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9537,7 +10045,9 @@ Name | Type | Description | Notes read the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9555,10 +10065,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespace(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9584,7 +10094,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9596,7 +10106,9 @@ Name | Type | Description | Notes read status of the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9615,7 +10127,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespace_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -9639,7 +10151,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9651,7 +10163,9 @@ Name | Type | Description | Notes read the specified ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9670,10 +10184,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9700,7 +10214,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9712,7 +10226,9 @@ Name | Type | Description | Notes read the specified Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9731,10 +10247,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9761,7 +10277,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9773,7 +10289,9 @@ Name | Type | Description | Notes read the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9792,10 +10310,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9822,7 +10340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9834,7 +10352,9 @@ Name | Type | Description | Notes read the specified LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9853,10 +10373,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9883,7 +10403,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9895,7 +10415,9 @@ Name | Type | Description | Notes read the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9914,10 +10436,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -9944,7 +10466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9956,7 +10478,9 @@ Name | Type | Description | Notes read status of the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -9976,7 +10500,7 @@ name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10001,7 +10525,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10013,7 +10537,9 @@ Name | Type | Description | Notes read the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10032,10 +10558,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10062,7 +10588,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10074,7 +10600,9 @@ Name | Type | Description | Notes read log of the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10093,15 +10621,15 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) -follow = true # bool | Follow the log stream of the pod. Defaults to false. (optional) +follow = True # bool | Follow the log stream of the pod. Defaults to false. (optional) limit_bytes = 56 # int | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -previous = true # bool | Return previous terminated container logs. Defaults to false. (optional) +previous = True # bool | Return previous terminated container logs. Defaults to false. (optional) since_seconds = 56 # int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) -timestamps = true # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) +timestamps = True # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) pprint(api_response) except ApiException as e: @@ -10133,7 +10661,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10145,7 +10673,9 @@ Name | Type | Description | Notes read status of the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10165,7 +10695,7 @@ name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10190,7 +10720,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10202,7 +10732,9 @@ Name | Type | Description | Notes read the specified PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10221,10 +10753,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10251,7 +10783,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10263,7 +10795,9 @@ Name | Type | Description | Notes read the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10282,10 +10816,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10312,7 +10846,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10324,7 +10858,9 @@ Name | Type | Description | Notes read scale of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10344,7 +10880,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replication_controller_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10369,7 +10905,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10381,7 +10917,9 @@ Name | Type | Description | Notes read status of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10401,7 +10939,7 @@ name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replication_controller_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10426,7 +10964,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10438,7 +10976,9 @@ Name | Type | Description | Notes read the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10457,10 +10997,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10487,7 +11027,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10499,7 +11039,9 @@ Name | Type | Description | Notes read status of the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10519,7 +11061,7 @@ name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_resource_quota_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10544,7 +11086,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10556,7 +11098,9 @@ Name | Type | Description | Notes read the specified Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10575,10 +11119,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10605,7 +11149,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10617,7 +11161,9 @@ Name | Type | Description | Notes read the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10636,10 +11182,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10666,7 +11212,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10678,7 +11224,9 @@ Name | Type | Description | Notes read the specified ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10697,10 +11245,10 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10727,7 +11275,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10739,7 +11287,9 @@ Name | Type | Description | Notes read status of the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10759,7 +11309,7 @@ name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_service_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10784,7 +11334,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10796,7 +11346,9 @@ Name | Type | Description | Notes read the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10814,10 +11366,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_node(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10843,7 +11395,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10855,7 +11407,9 @@ Name | Type | Description | Notes read status of the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10874,7 +11428,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_node_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -10898,7 +11452,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10910,7 +11464,9 @@ Name | Type | Description | Notes read the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10928,10 +11484,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_persistent_volume(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -10957,7 +11513,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10969,7 +11525,9 @@ Name | Type | Description | Notes read status of the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -10988,7 +11546,7 @@ api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configura name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_persistent_volume_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -11012,7 +11570,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11024,7 +11582,9 @@ Name | Type | Description | Notes replace the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11046,7 +11606,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11073,7 +11633,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11085,7 +11645,9 @@ Name | Type | Description | Notes replace finalize of the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11107,7 +11669,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.replace_namespace_finalize(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -11134,7 +11696,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11146,7 +11708,9 @@ Name | Type | Description | Notes replace status of the specified Namespace -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11168,7 +11732,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11195,7 +11759,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11207,7 +11771,9 @@ Name | Type | Description | Notes replace the specified ConfigMap -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11230,7 +11796,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11258,7 +11824,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11270,7 +11836,9 @@ Name | Type | Description | Notes replace the specified Endpoints -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11293,7 +11861,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11321,7 +11889,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11333,7 +11901,9 @@ Name | Type | Description | Notes replace the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11356,7 +11926,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11384,7 +11954,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11396,7 +11966,9 @@ Name | Type | Description | Notes replace the specified LimitRange -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11419,7 +11991,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11447,7 +12019,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11459,7 +12031,9 @@ Name | Type | Description | Notes replace the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11482,7 +12056,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11510,7 +12084,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11522,7 +12096,9 @@ Name | Type | Description | Notes replace status of the specified PersistentVolumeClaim -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11545,7 +12121,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11573,7 +12149,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11585,7 +12161,9 @@ Name | Type | Description | Notes replace the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11608,7 +12186,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11636,7 +12214,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11648,7 +12226,9 @@ Name | Type | Description | Notes replace status of the specified Pod -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11671,7 +12251,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11699,7 +12279,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11711,7 +12291,9 @@ Name | Type | Description | Notes replace the specified PodTemplate -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11734,7 +12316,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11762,7 +12344,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11774,7 +12356,9 @@ Name | Type | Description | Notes replace the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11797,7 +12381,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11825,7 +12409,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11837,7 +12421,9 @@ Name | Type | Description | Notes replace scale of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11860,7 +12446,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11888,7 +12474,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11900,7 +12486,9 @@ Name | Type | Description | Notes replace status of the specified ReplicationController -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11923,7 +12511,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -11951,7 +12539,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -11963,7 +12551,9 @@ Name | Type | Description | Notes replace the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -11986,7 +12576,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12014,7 +12604,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12026,7 +12616,9 @@ Name | Type | Description | Notes replace status of the specified ResourceQuota -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12049,7 +12641,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12077,7 +12669,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12089,7 +12681,9 @@ Name | Type | Description | Notes replace the specified Secret -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12112,7 +12706,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12140,7 +12734,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12152,7 +12746,9 @@ Name | Type | Description | Notes replace the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12175,7 +12771,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12203,7 +12799,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12215,7 +12811,9 @@ Name | Type | Description | Notes replace the specified ServiceAccount -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12238,7 +12836,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12266,7 +12864,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12278,7 +12876,9 @@ Name | Type | Description | Notes replace status of the specified Service -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12301,7 +12901,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12329,7 +12929,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12341,7 +12941,9 @@ Name | Type | Description | Notes replace the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12363,7 +12965,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12390,7 +12992,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12402,7 +13004,9 @@ Name | Type | Description | Notes replace status of the specified Node -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12424,7 +13028,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12451,7 +13055,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12463,7 +13067,9 @@ Name | Type | Description | Notes replace the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12485,7 +13091,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12512,7 +13118,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -12524,7 +13130,9 @@ Name | Type | Description | Notes replace status of the specified PersistentVolume -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -12546,7 +13154,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -12573,7 +13181,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index b9583bd6c4..c0305921ca 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.CustomObjectsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -37,7 +37,9 @@ Method | HTTP request | Description Creates a cluster scoped Custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -56,10 +58,10 @@ api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(co group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. -body = NULL # object | The JSON schema of the Resource to create. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to create. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_cluster_custom_object(group, version, plural, body, pretty=pretty) pprint(api_response) except ApiException as e: @@ -73,7 +75,7 @@ Name | Type | Description | Notes **group** | **str**| The custom resource's group name | **version** | **str**| The custom resource's version | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | **object**| The JSON schema of the Resource to create. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to create. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -98,7 +100,9 @@ Name | Type | Description | Notes Creates a namespace scoped Custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -118,10 +122,10 @@ group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. -body = NULL # object | The JSON schema of the Resource to create. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to create. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty) pprint(api_response) except ApiException as e: @@ -136,7 +140,7 @@ Name | Type | Description | Notes **version** | **str**| The custom resource's version | **namespace** | **str**| The custom resource's namespace | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | **object**| The JSON schema of the Resource to create. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to create. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -161,7 +165,9 @@ Name | Type | Description | Notes Deletes the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -183,10 +189,10 @@ plural = 'plural_example' # str | the custom object's plural name. For TPRs this name = 'name_example' # str | the custom object's name body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) -try: +try: api_response = api_instance.delete_cluster_custom_object(group, version, plural, name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: @@ -216,7 +222,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -228,7 +234,9 @@ Name | Type | Description | Notes Deletes the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -251,10 +259,10 @@ plural = 'plural_example' # str | the custom resource's plural name. For TPRs th name = 'name_example' # str | the custom object's name body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) -try: +try: api_response = api_instance.delete_namespaced_custom_object(group, version, namespace, plural, name, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) pprint(api_response) except ApiException as e: @@ -285,7 +293,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -297,7 +305,9 @@ Name | Type | Description | Notes Returns a cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -318,7 +328,7 @@ version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_cluster_custom_object(group, version, plural, name) pprint(api_response) except ApiException as e: @@ -344,7 +354,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -356,7 +366,9 @@ Name | Type | Description | Notes read scale of the specified custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -377,7 +389,7 @@ version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_cluster_custom_object_scale(group, version, plural, name) pprint(api_response) except ApiException as e: @@ -403,7 +415,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -415,7 +427,9 @@ Name | Type | Description | Notes read status of the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -436,7 +450,7 @@ version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_cluster_custom_object_status(group, version, plural, name) pprint(api_response) except ApiException as e: @@ -462,7 +476,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -474,7 +488,9 @@ Name | Type | Description | Notes Returns a namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -496,7 +512,7 @@ namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_namespaced_custom_object(group, version, namespace, plural, name) pprint(api_response) except ApiException as e: @@ -523,7 +539,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -535,7 +551,9 @@ Name | Type | Description | Notes read scale of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -557,7 +575,7 @@ namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_namespaced_custom_object_scale(group, version, namespace, plural, name) pprint(api_response) except ApiException as e: @@ -584,7 +602,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -596,7 +614,9 @@ Name | Type | Description | Notes read status of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +638,7 @@ namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: +try: api_response = api_instance.get_namespaced_custom_object_status(group, version, namespace, plural, name) pprint(api_response) except ApiException as e: @@ -645,19 +665,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_custom_object** -> object list_cluster_custom_object(group, version, plural, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> object list_cluster_custom_object(group, version, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch cluster scoped custom objects -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -677,14 +699,16 @@ group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) -try: - api_response = api_instance.list_cluster_custom_object(group, version, plural, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_custom_object(group, version, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CustomObjectsApi->list_cluster_custom_object: %s\n" % e) @@ -698,8 +722,10 @@ Name | Type | Description | Notes **version** | **str**| The custom resource's version | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] @@ -714,19 +740,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_custom_object** -> object list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> object list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch namespace scoped custom objects -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -747,14 +775,16 @@ version = 'version_example' # str | The custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) -try: - api_response = api_instance.list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, field_selector=field_selector, label_selector=label_selector, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CustomObjectsApi->list_namespaced_custom_object: %s\n" % e) @@ -769,8 +799,10 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | [optional] @@ -785,7 +817,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -797,7 +829,9 @@ Name | Type | Description | Notes patch the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -817,9 +851,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | The JSON schema of the Resource to patch. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to patch. -try: +try: api_response = api_instance.patch_cluster_custom_object(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -834,7 +868,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| The JSON schema of the Resource to patch. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to patch. | ### Return type @@ -846,7 +880,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -858,7 +892,9 @@ Name | Type | Description | Notes partially update scale of the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -878,9 +914,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.patch_cluster_custom_object_scale(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -895,7 +931,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -907,7 +943,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -919,7 +955,9 @@ Name | Type | Description | Notes partially update status of the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -939,9 +977,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.patch_cluster_custom_object_status(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -956,7 +994,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -968,7 +1006,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -980,7 +1018,9 @@ Name | Type | Description | Notes patch the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1001,9 +1041,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | The JSON schema of the Resource to patch. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to patch. -try: +try: api_response = api_instance.patch_namespaced_custom_object(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1019,7 +1059,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| The JSON schema of the Resource to patch. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to patch. | ### Return type @@ -1031,7 +1071,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1043,7 +1083,9 @@ Name | Type | Description | Notes partially update scale of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1064,9 +1106,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1082,7 +1124,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1094,7 +1136,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1106,7 +1148,9 @@ Name | Type | Description | Notes partially update status of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1127,9 +1171,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.patch_namespaced_custom_object_status(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1145,7 +1189,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1157,7 +1201,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1169,7 +1213,9 @@ Name | Type | Description | Notes replace the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1189,9 +1235,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | The JSON schema of the Resource to replace. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to replace. -try: +try: api_response = api_instance.replace_cluster_custom_object(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -1206,7 +1252,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| The JSON schema of the Resource to replace. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to replace. | ### Return type @@ -1218,7 +1264,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1230,7 +1276,9 @@ Name | Type | Description | Notes replace scale of the specified cluster scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1250,9 +1298,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.replace_cluster_custom_object_scale(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -1267,7 +1315,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1279,7 +1327,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1291,7 +1339,9 @@ Name | Type | Description | Notes replace status of the cluster scoped specified custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1311,9 +1361,9 @@ group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.replace_cluster_custom_object_status(group, version, plural, name, body) pprint(api_response) except ApiException as e: @@ -1328,7 +1378,7 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1340,7 +1390,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1352,7 +1402,9 @@ Name | Type | Description | Notes replace the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1373,9 +1425,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | The JSON schema of the Resource to replace. +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to replace. -try: +try: api_response = api_instance.replace_namespaced_custom_object(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1391,7 +1443,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| The JSON schema of the Resource to replace. | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to replace. | ### Return type @@ -1403,7 +1455,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1415,7 +1467,9 @@ Name | Type | Description | Notes replace scale of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1436,9 +1490,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1454,7 +1508,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1466,7 +1520,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1478,7 +1532,9 @@ Name | Type | Description | Notes replace status of the specified namespace scoped custom object -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1499,9 +1555,9 @@ version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | -try: +try: api_response = api_instance.replace_namespaced_custom_object_status(group, version, namespace, plural, name, body) pprint(api_response) except ApiException as e: @@ -1517,7 +1573,7 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | ### Return type @@ -1529,7 +1585,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index 7315be5324..7f7b130c37 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.EventsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.EventsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/EventsV1beta1Api.md b/kubernetes/docs/EventsV1beta1Api.md index 5b8615793a..e37e8e4b62 100644 --- a/kubernetes/docs/EventsV1beta1Api.md +++ b/kubernetes/docs/EventsV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.EventsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,7 +22,9 @@ Method | HTTP request | Description create an Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -44,7 +46,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_event** -> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,16 +105,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling EventsV1beta1Api->delete_collection_namespaced_event: %s\n" % e) @@ -122,13 +132,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -140,19 +156,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_event** -> V1Status delete_namespaced_event(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -171,14 +189,14 @@ api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling EventsV1beta1Api->delete_namespaced_event: %s\n" % e) @@ -191,11 +209,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -207,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +237,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -236,7 +256,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -256,19 +276,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_event_for_all_namespaces** -> V1beta1EventList list_event_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1EventList list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -284,6 +306,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -291,10 +314,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_event_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling EventsV1beta1Api->list_event_for_all_namespaces: %s\n" % e) @@ -304,6 +327,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -323,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_event** -> V1beta1EventList list_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1EventList list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -353,16 +379,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling EventsV1beta1Api->list_namespaced_event: %s\n" % e) @@ -374,6 +401,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -392,7 +420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +432,9 @@ Name | Type | Description | Notes partially update the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -422,13 +452,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -441,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -469,7 +499,9 @@ Name | Type | Description | Notes read the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -488,10 +520,10 @@ api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -518,7 +550,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +562,9 @@ Name | Type | Description | Notes replace the specified Event -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -553,7 +587,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -581,7 +615,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md index f1d921bd96..2839adb8d1 100644 --- a/kubernetes/docs/ExtensionsApi.md +++ b/kubernetes/docs/ExtensionsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.ExtensionsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index 333c96d629..5db0e18977 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.ExtensionsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -83,7 +83,9 @@ Method | HTTP request | Description create a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -105,7 +107,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -132,7 +134,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -144,7 +146,9 @@ Name | Type | Description | Notes create a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -166,7 +170,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -193,7 +197,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -205,7 +209,9 @@ Name | Type | Description | Notes create rollback of a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -228,7 +234,7 @@ dry_run = 'dry_run_example' # str | When present, indicates that modifications s field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: @@ -256,7 +262,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -268,7 +274,9 @@ Name | Type | Description | Notes create an Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -290,7 +298,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -317,7 +325,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -329,7 +337,9 @@ Name | Type | Description | Notes create a NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -351,7 +361,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -378,7 +388,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -390,7 +400,9 @@ Name | Type | Description | Notes create a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -412,7 +424,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -439,7 +451,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -451,7 +463,9 @@ Name | Type | Description | Notes create a PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +486,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -498,19 +512,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -528,16 +544,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) @@ -549,13 +571,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -567,19 +595,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -597,16 +627,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) @@ -618,13 +654,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -636,19 +678,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_ingress** -> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -666,16 +710,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) @@ -687,13 +737,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -705,19 +761,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_network_policy** -> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -735,16 +793,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) @@ -756,13 +820,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -774,19 +844,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -804,16 +876,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) @@ -825,13 +903,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -843,19 +927,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_pod_security_policy** -> V1Status delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -872,16 +958,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) @@ -892,13 +984,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -910,19 +1008,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** -> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -941,14 +1041,14 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) @@ -961,11 +1061,11 @@ Name | Type | Description | Notes **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -977,19 +1077,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** -> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1008,14 +1110,14 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) @@ -1028,11 +1130,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1044,19 +1146,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_ingress** -> V1Status delete_namespaced_ingress(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1075,14 +1179,14 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) @@ -1095,11 +1199,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1111,19 +1215,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_network_policy** -> V1Status delete_namespaced_network_policy(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1142,14 +1248,14 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) @@ -1162,11 +1268,11 @@ Name | Type | Description | Notes **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1178,19 +1284,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** -> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1209,14 +1317,14 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) @@ -1229,11 +1337,11 @@ Name | Type | Description | Notes **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1245,19 +1353,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pod_security_policy** -> V1Status delete_pod_security_policy(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1275,14 +1385,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %s\n" % e) @@ -1294,11 +1404,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1310,7 +1420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1322,7 +1432,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1339,7 +1451,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -1359,19 +1471,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** -> V1beta1DaemonSetList list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1DaemonSetList list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1387,6 +1501,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1394,10 +1509,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_daemon_set_for_all_namespaces: %s\n" % e) @@ -1407,6 +1522,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1426,19 +1542,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** -> ExtensionsV1beta1DeploymentList list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1DeploymentList list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1454,6 +1572,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1461,10 +1580,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) @@ -1474,6 +1593,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1493,19 +1613,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_ingress_for_all_namespaces** -> ExtensionsV1beta1IngressList list_ingress_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1IngressList list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1521,6 +1643,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1528,10 +1651,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_ingress_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) @@ -1541,6 +1664,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1560,19 +1684,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** -> V1beta1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1DaemonSetList list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1590,16 +1716,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_namespaced_daemon_set: %s\n" % e) @@ -1611,6 +1738,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1629,19 +1757,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** -> ExtensionsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1DeploymentList list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1659,16 +1789,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_namespaced_deployment: %s\n" % e) @@ -1680,6 +1811,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1698,19 +1830,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_ingress** -> ExtensionsV1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1728,16 +1862,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_namespaced_ingress: %s\n" % e) @@ -1749,6 +1884,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1767,19 +1903,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_network_policy** -> V1beta1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1797,16 +1935,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) @@ -1818,6 +1957,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1836,19 +1976,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** -> V1beta1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ReplicaSetList list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1866,16 +2008,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) @@ -1887,6 +2030,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1905,19 +2049,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_network_policy_for_all_namespaces** -> V1beta1NetworkPolicyList list_network_policy_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1NetworkPolicyList list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1933,6 +2079,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1940,10 +2087,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_network_policy_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %s\n" % e) @@ -1953,6 +2100,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1972,19 +2120,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_security_policy** -> ExtensionsV1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> ExtensionsV1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2001,16 +2151,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %s\n" % e) @@ -2021,6 +2172,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -2039,19 +2191,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** -> V1beta1ReplicaSetList list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ReplicaSetList list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2067,6 +2221,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2074,10 +2229,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling ExtensionsV1beta1Api->list_replica_set_for_all_namespaces: %s\n" % e) @@ -2087,6 +2242,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -2106,7 +2262,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2118,7 +2274,9 @@ Name | Type | Description | Notes partially update the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2136,13 +2294,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2155,7 +2313,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2183,7 +2341,9 @@ Name | Type | Description | Notes partially update status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2201,13 +2361,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2220,7 +2380,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2248,7 +2408,9 @@ Name | Type | Description | Notes partially update the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2266,13 +2428,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2285,7 +2447,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2313,7 +2475,9 @@ Name | Type | Description | Notes partially update scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2331,13 +2495,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2350,7 +2514,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2378,7 +2542,9 @@ Name | Type | Description | Notes partially update status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2396,13 +2562,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2415,7 +2581,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2443,7 +2609,9 @@ Name | Type | Description | Notes partially update the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2461,13 +2629,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2480,7 +2648,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2508,7 +2676,9 @@ Name | Type | Description | Notes partially update status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2526,13 +2696,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2545,7 +2715,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2573,7 +2743,9 @@ Name | Type | Description | Notes partially update the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2591,13 +2763,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2610,7 +2782,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2638,7 +2810,9 @@ Name | Type | Description | Notes partially update the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2656,13 +2830,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2675,7 +2849,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2703,7 +2877,9 @@ Name | Type | Description | Notes partially update scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2721,13 +2897,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2740,7 +2916,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2768,7 +2944,9 @@ Name | Type | Description | Notes partially update status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2786,13 +2964,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2805,7 +2983,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2833,7 +3011,9 @@ Name | Type | Description | Notes partially update scale of the specified ReplicationControllerDummy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2851,13 +3031,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2870,7 +3050,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2898,7 +3078,9 @@ Name | Type | Description | Notes partially update the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2915,13 +3097,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -2933,7 +3115,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2961,7 +3143,9 @@ Name | Type | Description | Notes read the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -2980,10 +3164,10 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3010,7 +3194,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3022,7 +3206,9 @@ Name | Type | Description | Notes read status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3042,7 +3228,7 @@ name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3067,7 +3253,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3079,7 +3265,9 @@ Name | Type | Description | Notes read the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3098,10 +3286,10 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3128,7 +3316,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3140,7 +3328,9 @@ Name | Type | Description | Notes read scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3160,7 +3350,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3185,7 +3375,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3197,7 +3387,9 @@ Name | Type | Description | Notes read status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3217,7 +3409,7 @@ name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3242,7 +3434,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3254,7 +3446,9 @@ Name | Type | Description | Notes read the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3273,10 +3467,10 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3303,7 +3497,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3315,7 +3509,9 @@ Name | Type | Description | Notes read status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3335,7 +3531,7 @@ name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3360,7 +3556,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3372,7 +3568,9 @@ Name | Type | Description | Notes read the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3391,10 +3589,10 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3421,7 +3619,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3433,7 +3631,9 @@ Name | Type | Description | Notes read the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3452,10 +3652,10 @@ api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3482,7 +3682,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3494,7 +3694,9 @@ Name | Type | Description | Notes read scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3514,7 +3716,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3539,7 +3741,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3551,7 +3753,9 @@ Name | Type | Description | Notes read status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3571,7 +3775,7 @@ name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3596,7 +3800,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3608,7 +3812,9 @@ Name | Type | Description | Notes read scale of the specified ReplicationControllerDummy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3628,7 +3834,7 @@ name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_replication_controller_dummy_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -3653,7 +3859,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3665,7 +3871,9 @@ Name | Type | Description | Notes read the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3683,10 +3891,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -3712,7 +3920,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3724,7 +3932,9 @@ Name | Type | Description | Notes replace the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3747,7 +3957,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3775,7 +3985,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3787,7 +3997,9 @@ Name | Type | Description | Notes replace status of the specified DaemonSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3810,7 +4022,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3838,7 +4050,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3850,7 +4062,9 @@ Name | Type | Description | Notes replace the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3873,7 +4087,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3901,7 +4115,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3913,7 +4127,9 @@ Name | Type | Description | Notes replace scale of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3936,7 +4152,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -3964,7 +4180,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3976,7 +4192,9 @@ Name | Type | Description | Notes replace status of the specified Deployment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -3999,7 +4217,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4027,7 +4245,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4039,7 +4257,9 @@ Name | Type | Description | Notes replace the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4062,7 +4282,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4090,7 +4310,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4102,7 +4322,9 @@ Name | Type | Description | Notes replace status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4125,7 +4347,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4153,7 +4375,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4165,7 +4387,9 @@ Name | Type | Description | Notes replace the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4188,7 +4412,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4216,7 +4440,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4228,7 +4452,9 @@ Name | Type | Description | Notes replace the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4251,7 +4477,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4279,7 +4505,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4291,7 +4517,9 @@ Name | Type | Description | Notes replace scale of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4314,7 +4542,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4342,7 +4570,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4354,7 +4582,9 @@ Name | Type | Description | Notes replace status of the specified ReplicaSet -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4377,7 +4607,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4405,7 +4635,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4417,7 +4647,9 @@ Name | Type | Description | Notes replace scale of the specified ReplicationControllerDummy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4440,7 +4672,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4468,7 +4700,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4480,7 +4712,9 @@ Name | Type | Description | Notes replace the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -4502,7 +4736,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -4529,7 +4763,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md index a844fdf346..b525f68af1 100644 --- a/kubernetes/docs/ExtensionsV1beta1Deployment.md +++ b/kubernetes/docs/ExtensionsV1beta1Deployment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md index 45f71eade2..363c2893f3 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[ExtensionsV1beta1Deployment]**](ExtensionsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md index 6441252eab..14ffe13be7 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **str** | Required: This must match the Name of a deployment. | -**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config of this deployment rollback. | +**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | | **updated_annotations** | **dict(str, str)** | The annotations to be updated to a deployment | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md index 855fa785a6..a2c70b9c98 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md @@ -8,10 +8,10 @@ Name | Type | Description | Notes **progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". | [optional] -**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**rollback_to** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md index 336f836a85..8d0c545ff5 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rolling_update** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | | [optional] **type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md index 62ca22195c..4964d38e36 100644 --- a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | Backend defines the referenced service endpoint to which the traffic will be forwarded to. | +**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | | **path** | **str** | Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1Ingress.md b/kubernetes/docs/ExtensionsV1beta1Ingress.md index d2cd1ac79f..b2f8c4b39d 100644 --- a/kubernetes/docs/ExtensionsV1beta1Ingress.md +++ b/kubernetes/docs/ExtensionsV1beta1Ingress.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**ExtensionsV1beta1IngressSpec**](ExtensionsV1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**ExtensionsV1beta1IngressStatus**](ExtensionsV1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1IngressSpec**](ExtensionsV1beta1IngressSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1IngressStatus**](ExtensionsV1beta1IngressStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md index a69874eaea..5995338d83 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **service_name** | **str** | Specifies the name of the referenced service. | -**service_port** | **object** | Specifies the port of the referenced service. | +**service_port** | [**object**](.md) | Specifies the port of the referenced service. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1IngressList.md b/kubernetes/docs/ExtensionsV1beta1IngressList.md index 4491ecd249..746bca1d2f 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressList.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[ExtensionsV1beta1Ingress]**](ExtensionsV1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md index 1007ae125f..4f1184128d 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] +**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | | [optional] **rules** | [**list[ExtensionsV1beta1IngressRule]**](ExtensionsV1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**list[ExtensionsV1beta1IngressTLS]**](ExtensionsV1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md index 65c25d2b34..ee3614573d 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] +**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md index 7270eb632e..f78f7aa52a 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**ExtensionsV1beta1PodSecurityPolicySpec**](ExtensionsV1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1PodSecurityPolicySpec**](ExtensionsV1beta1PodSecurityPolicySpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md index e4040970d9..aec21e75be 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[ExtensionsV1beta1PodSecurityPolicy]**](ExtensionsV1beta1PodSecurityPolicy.md) | items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md index 46200bbab1..c9e160707d 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_privilege_escalation** | **bool** | allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. | [optional] -**allowed_csi_drivers** | [**list[ExtensionsV1beta1AllowedCSIDriver]**](ExtensionsV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. | [optional] +**allowed_csi_drivers** | [**list[ExtensionsV1beta1AllowedCSIDriver]**](ExtensionsV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. | [optional] **allowed_capabilities** | **list[str]** | allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. | [optional] **allowed_flex_volumes** | [**list[ExtensionsV1beta1AllowedFlexVolume]**](ExtensionsV1beta1AllowedFlexVolume.md) | allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. | [optional] **allowed_host_paths** | [**list[ExtensionsV1beta1AllowedHostPath]**](ExtensionsV1beta1AllowedHostPath.md) | allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes **default_add_capabilities** | **list[str]** | defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. | [optional] **default_allow_privilege_escalation** | **bool** | defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. | [optional] **forbidden_sysctls** | **list[str]** | forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. | [optional] -**fs_group** | [**ExtensionsV1beta1FSGroupStrategyOptions**](ExtensionsV1beta1FSGroupStrategyOptions.md) | fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. | +**fs_group** | [**ExtensionsV1beta1FSGroupStrategyOptions**](ExtensionsV1beta1FSGroupStrategyOptions.md) | | **host_ipc** | **bool** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] **host_network** | **bool** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] **host_pid** | **bool** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] @@ -21,10 +21,11 @@ Name | Type | Description | Notes **privileged** | **bool** | privileged determines if a pod can request to be run as privileged. | [optional] **read_only_root_filesystem** | **bool** | readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] **required_drop_capabilities** | **list[str]** | requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**run_as_group** | [**ExtensionsV1beta1RunAsGroupStrategyOptions**](ExtensionsV1beta1RunAsGroupStrategyOptions.md) | RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. | [optional] -**run_as_user** | [**ExtensionsV1beta1RunAsUserStrategyOptions**](ExtensionsV1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | -**se_linux** | [**ExtensionsV1beta1SELinuxStrategyOptions**](ExtensionsV1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | -**supplemental_groups** | [**ExtensionsV1beta1SupplementalGroupsStrategyOptions**](ExtensionsV1beta1SupplementalGroupsStrategyOptions.md) | supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | +**run_as_group** | [**ExtensionsV1beta1RunAsGroupStrategyOptions**](ExtensionsV1beta1RunAsGroupStrategyOptions.md) | | [optional] +**run_as_user** | [**ExtensionsV1beta1RunAsUserStrategyOptions**](ExtensionsV1beta1RunAsUserStrategyOptions.md) | | +**runtime_class** | [**ExtensionsV1beta1RuntimeClassStrategyOptions**](ExtensionsV1beta1RuntimeClassStrategyOptions.md) | | [optional] +**se_linux** | [**ExtensionsV1beta1SELinuxStrategyOptions**](ExtensionsV1beta1SELinuxStrategyOptions.md) | | +**supplemental_groups** | [**ExtensionsV1beta1SupplementalGroupsStrategyOptions**](ExtensionsV1beta1SupplementalGroupsStrategyOptions.md) | | **volumes** | **list[str]** | volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md index 77e386e2a9..80390426fc 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | **object** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**max_unavailable** | **object** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**max_surge** | [**object**](.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md new file mode 100644 index 0000000000..4243834d14 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md @@ -0,0 +1,11 @@ +# ExtensionsV1beta1RuntimeClassStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_runtime_class_names** | **list[str]** | allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. | +**default_runtime_class_name** | **str** | defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md index 4d519c1357..61ea24e604 100644 --- a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rule** | **str** | rule is the strategy that will dictate the allowable labels that may be set. | -**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1Scale.md b/kubernetes/docs/ExtensionsV1beta1Scale.md index f63b09dba7..7bcd5193cf 100644 --- a/kubernetes/docs/ExtensionsV1beta1Scale.md +++ b/kubernetes/docs/ExtensionsV1beta1Scale.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. | [optional] -**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. | [optional] -**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md index 15b3de55c3..a58358c714 100644 --- a/kubernetes/docs/LogsApi.md +++ b/kubernetes/docs/LogsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.LogsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -13,7 +13,9 @@ Method | HTTP request | Description -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.LogsApi(kubernetes.client.ApiClient(configuration)) logpath = 'logpath_example' # str | path to the log -try: +try: api_instance.log_file_handler(logpath) except ApiException as e: print("Exception when calling LogsApi->log_file_handler: %s\n" % e) @@ -63,7 +65,9 @@ void (empty response body) -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -80,7 +84,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.LogsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_instance.log_file_list_handler() except ApiException as e: print("Exception when calling LogsApi->log_file_list_handler: %s\n" % e) diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index 9c7619ffec..097b6ee324 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -1,6 +1,6 @@ # kubernetes.client.NetworkingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NetworkingApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 6ca23bbb9e..26ff77af00 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.NetworkingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,7 +22,9 @@ Method | HTTP request | Description create a NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -44,7 +46,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_network_policy** -> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,16 +105,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1Api->delete_collection_namespaced_network_policy: %s\n" % e) @@ -122,13 +132,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -140,19 +156,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_network_policy** -> V1Status delete_namespaced_network_policy(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -171,14 +189,14 @@ api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(con name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1Api->delete_namespaced_network_policy: %s\n" % e) @@ -191,11 +209,11 @@ Name | Type | Description | Notes **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -207,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +237,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -236,7 +256,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -256,19 +276,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_network_policy** -> V1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1NetworkPolicyList list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -286,16 +308,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1Api->list_namespaced_network_policy: %s\n" % e) @@ -307,6 +330,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -325,19 +349,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_network_policy_for_all_namespaces** -> V1NetworkPolicyList list_network_policy_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1NetworkPolicyList list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -353,6 +379,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -360,10 +387,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_network_policy_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1Api->list_network_policy_for_all_namespaces: %s\n" % e) @@ -373,6 +400,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -392,7 +420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +432,9 @@ Name | Type | Description | Notes partially update the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -422,13 +452,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -441,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -469,7 +499,9 @@ Name | Type | Description | Notes read the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -488,10 +520,10 @@ api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(con name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -518,7 +550,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +562,9 @@ Name | Type | Description | Notes replace the specified NetworkPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -553,7 +587,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -581,7 +615,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/NetworkingV1beta1Api.md index f0e1266164..777e67a289 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.NetworkingV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,7 +25,9 @@ Method | HTTP request | Description create an Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -47,7 +49,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -74,19 +76,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_ingress** -> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -104,16 +108,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) @@ -125,13 +135,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,19 +159,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_ingress** -> V1Status delete_namespaced_ingress(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete an Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -174,14 +192,14 @@ api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1beta1Api->delete_namespaced_ingress: %s\n" % e) @@ -194,11 +212,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -210,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -222,7 +240,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -239,7 +259,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -259,19 +279,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_ingress_for_all_namespaces** -> NetworkingV1beta1IngressList list_ingress_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> NetworkingV1beta1IngressList list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -287,6 +309,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -294,10 +317,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_ingress_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) @@ -307,6 +330,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -326,19 +350,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_ingress** -> NetworkingV1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> NetworkingV1beta1IngressList list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -356,16 +382,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NetworkingV1beta1Api->list_namespaced_ingress: %s\n" % e) @@ -377,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -395,7 +423,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -407,7 +435,9 @@ Name | Type | Description | Notes partially update the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -425,13 +455,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -444,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -472,7 +502,9 @@ Name | Type | Description | Notes partially update status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -490,13 +522,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -509,7 +541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -537,7 +569,9 @@ Name | Type | Description | Notes read the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -556,10 +590,10 @@ api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClien name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -586,7 +620,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -598,7 +632,9 @@ Name | Type | Description | Notes read status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -618,7 +654,7 @@ name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -643,7 +679,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,7 +691,9 @@ Name | Type | Description | Notes replace the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -678,7 +716,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -706,7 +744,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -718,7 +756,9 @@ Name | Type | Description | Notes replace status of the specified Ingress -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -741,7 +781,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -769,7 +809,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md index 14a961eb33..1b20801faa 100644 --- a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | Backend defines the referenced service endpoint to which the traffic will be forwarded to. | +**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | | **path** | **str** | Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1Ingress.md b/kubernetes/docs/NetworkingV1beta1Ingress.md index 355e6f0d19..23e3c9e362 100644 --- a/kubernetes/docs/NetworkingV1beta1Ingress.md +++ b/kubernetes/docs/NetworkingV1beta1Ingress.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**NetworkingV1beta1IngressSpec**](NetworkingV1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**NetworkingV1beta1IngressStatus**](NetworkingV1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**NetworkingV1beta1IngressSpec**](NetworkingV1beta1IngressSpec.md) | | [optional] +**status** | [**NetworkingV1beta1IngressStatus**](NetworkingV1beta1IngressStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1IngressBackend.md b/kubernetes/docs/NetworkingV1beta1IngressBackend.md index eb4ddf0e0b..47348671c3 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressBackend.md +++ b/kubernetes/docs/NetworkingV1beta1IngressBackend.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **service_name** | **str** | Specifies the name of the referenced service. | -**service_port** | **object** | Specifies the port of the referenced service. | +**service_port** | [**object**](.md) | Specifies the port of the referenced service. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1IngressList.md b/kubernetes/docs/NetworkingV1beta1IngressList.md index a8f8ede867..c2a5406cee 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressList.md +++ b/kubernetes/docs/NetworkingV1beta1IngressList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[NetworkingV1beta1Ingress]**](NetworkingV1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1IngressSpec.md b/kubernetes/docs/NetworkingV1beta1IngressSpec.md index 62263851c2..22364544dc 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressSpec.md +++ b/kubernetes/docs/NetworkingV1beta1IngressSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] +**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | | [optional] **rules** | [**list[NetworkingV1beta1IngressRule]**](NetworkingV1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**list[NetworkingV1beta1IngressTLS]**](NetworkingV1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressStatus.md b/kubernetes/docs/NetworkingV1beta1IngressStatus.md index 7458a58379..ef936252db 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressStatus.md +++ b/kubernetes/docs/NetworkingV1beta1IngressStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] +**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 5dbbdc6b7e..1a7efb7155 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -1,6 +1,6 @@ # kubernetes.client.NodeApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NodeV1alpha1Api.md b/kubernetes/docs/NodeV1alpha1Api.md index 214c50dd4e..25b0f622eb 100644 --- a/kubernetes/docs/NodeV1alpha1Api.md +++ b/kubernetes/docs/NodeV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.NodeV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_runtime_class** -> V1Status delete_collection_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1alpha1Api->delete_collection_runtime_class: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_runtime_class** -> V1Status delete_runtime_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_runtime_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1alpha1Api->delete_runtime_class: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runtime_class** -> V1alpha1RuntimeClassList list_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1RuntimeClassList list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1alpha1Api->list_runtime_class: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NodeV1beta1Api.md b/kubernetes/docs/NodeV1beta1Api.md index 46bcd9a80b..02f17fea94 100644 --- a/kubernetes/docs/NodeV1beta1Api.md +++ b/kubernetes/docs/NodeV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.NodeV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_runtime_class** -> V1Status delete_collection_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1beta1Api->delete_collection_runtime_class: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_runtime_class** -> V1Status delete_runtime_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_runtime_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1beta1Api->delete_runtime_class: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runtime_class** -> V1beta1RuntimeClassList list_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1RuntimeClassList list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_runtime_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling NodeV1beta1Api->list_runtime_class: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified RuntimeClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 08f453f70f..8c35b467cb 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -1,6 +1,6 @@ # kubernetes.client.PolicyApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index 500d0c1681..b5e492e43c 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.PolicyV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -32,7 +32,9 @@ Method | HTTP request | Description create a PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -54,7 +56,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_pod_disruption_budget(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -81,7 +83,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -93,7 +95,9 @@ Name | Type | Description | Notes create a PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -114,7 +118,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -140,19 +144,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_disruption_budget** -> V1Status delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -170,16 +176,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_collection_namespaced_pod_disruption_budget: %s\n" % e) @@ -191,13 +203,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -209,19 +227,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_pod_security_policy** -> V1Status delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -238,16 +258,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) @@ -258,13 +284,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -276,19 +308,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_disruption_budget** -> V1Status delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -307,14 +341,14 @@ api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_namespaced_pod_disruption_budget: %s\n" % e) @@ -327,11 +361,11 @@ Name | Type | Description | Notes **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -343,19 +377,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pod_security_policy** -> V1Status delete_pod_security_policy(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -373,14 +409,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->delete_pod_security_policy: %s\n" % e) @@ -392,11 +428,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -408,7 +444,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -420,7 +456,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -437,7 +475,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -457,19 +495,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_disruption_budget** -> V1beta1PodDisruptionBudgetList list_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodDisruptionBudgetList list_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -487,16 +527,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->list_namespaced_pod_disruption_budget: %s\n" % e) @@ -508,6 +549,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -526,19 +568,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_disruption_budget_for_all_namespaces** -> V1beta1PodDisruptionBudgetList list_pod_disruption_budget_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PodDisruptionBudgetList list_pod_disruption_budget_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -554,6 +598,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -561,10 +606,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->list_pod_disruption_budget_for_all_namespaces: %s\n" % e) @@ -574,6 +619,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -593,19 +639,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_security_policy** -> PolicyV1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> PolicyV1beta1PodSecurityPolicyList list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -622,16 +670,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_security_policy(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling PolicyV1beta1Api->list_pod_security_policy: %s\n" % e) @@ -642,6 +691,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -660,7 +710,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -672,7 +722,9 @@ Name | Type | Description | Notes partially update the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -690,13 +742,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -709,7 +761,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -737,7 +789,9 @@ Name | Type | Description | Notes partially update status of the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -755,13 +809,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -774,7 +828,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -802,7 +856,9 @@ Name | Type | Description | Notes partially update the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -819,13 +875,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -837,7 +893,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -865,7 +921,9 @@ Name | Type | Description | Notes read the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -884,10 +942,10 @@ api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(co name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -914,7 +972,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -926,7 +984,9 @@ Name | Type | Description | Notes read status of the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -946,7 +1006,7 @@ name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_disruption_budget_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -971,7 +1031,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -983,7 +1043,9 @@ Name | Type | Description | Notes read the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1001,10 +1063,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1030,7 +1092,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1042,7 +1104,9 @@ Name | Type | Description | Notes replace the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1065,7 +1129,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1093,7 +1157,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1105,7 +1169,9 @@ Name | Type | Description | Notes replace status of the specified PodDisruptionBudget -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1128,7 +1194,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1156,7 +1222,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1168,7 +1234,9 @@ Name | Type | Description | Notes replace the specified PodSecurityPolicy -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1190,7 +1258,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1217,7 +1285,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md index 558440b97d..03c5b0698f 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**PolicyV1beta1PodSecurityPolicySpec**](PolicyV1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**PolicyV1beta1PodSecurityPolicySpec**](PolicyV1beta1PodSecurityPolicySpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md index 437cbaa6fc..6bacec8536 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[PolicyV1beta1PodSecurityPolicy]**](PolicyV1beta1PodSecurityPolicy.md) | items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md index 9e4355ca9e..d99f1b85f1 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_privilege_escalation** | **bool** | allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. | [optional] -**allowed_csi_drivers** | [**list[PolicyV1beta1AllowedCSIDriver]**](PolicyV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. | [optional] +**allowed_csi_drivers** | [**list[PolicyV1beta1AllowedCSIDriver]**](PolicyV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. | [optional] **allowed_capabilities** | **list[str]** | allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. | [optional] **allowed_flex_volumes** | [**list[PolicyV1beta1AllowedFlexVolume]**](PolicyV1beta1AllowedFlexVolume.md) | allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. | [optional] **allowed_host_paths** | [**list[PolicyV1beta1AllowedHostPath]**](PolicyV1beta1AllowedHostPath.md) | allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes **default_add_capabilities** | **list[str]** | defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. | [optional] **default_allow_privilege_escalation** | **bool** | defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. | [optional] **forbidden_sysctls** | **list[str]** | forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. | [optional] -**fs_group** | [**PolicyV1beta1FSGroupStrategyOptions**](PolicyV1beta1FSGroupStrategyOptions.md) | fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. | +**fs_group** | [**PolicyV1beta1FSGroupStrategyOptions**](PolicyV1beta1FSGroupStrategyOptions.md) | | **host_ipc** | **bool** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] **host_network** | **bool** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] **host_pid** | **bool** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] @@ -21,10 +21,11 @@ Name | Type | Description | Notes **privileged** | **bool** | privileged determines if a pod can request to be run as privileged. | [optional] **read_only_root_filesystem** | **bool** | readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] **required_drop_capabilities** | **list[str]** | requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**run_as_group** | [**PolicyV1beta1RunAsGroupStrategyOptions**](PolicyV1beta1RunAsGroupStrategyOptions.md) | RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. | [optional] -**run_as_user** | [**PolicyV1beta1RunAsUserStrategyOptions**](PolicyV1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | -**se_linux** | [**PolicyV1beta1SELinuxStrategyOptions**](PolicyV1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | -**supplemental_groups** | [**PolicyV1beta1SupplementalGroupsStrategyOptions**](PolicyV1beta1SupplementalGroupsStrategyOptions.md) | supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | +**run_as_group** | [**PolicyV1beta1RunAsGroupStrategyOptions**](PolicyV1beta1RunAsGroupStrategyOptions.md) | | [optional] +**run_as_user** | [**PolicyV1beta1RunAsUserStrategyOptions**](PolicyV1beta1RunAsUserStrategyOptions.md) | | +**runtime_class** | [**PolicyV1beta1RuntimeClassStrategyOptions**](PolicyV1beta1RuntimeClassStrategyOptions.md) | | [optional] +**se_linux** | [**PolicyV1beta1SELinuxStrategyOptions**](PolicyV1beta1SELinuxStrategyOptions.md) | | +**supplemental_groups** | [**PolicyV1beta1SupplementalGroupsStrategyOptions**](PolicyV1beta1SupplementalGroupsStrategyOptions.md) | | **volumes** | **list[str]** | volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md new file mode 100644 index 0000000000..f6a81c5450 --- /dev/null +++ b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md @@ -0,0 +1,11 @@ +# PolicyV1beta1RuntimeClassStrategyOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_runtime_class_names** | **list[str]** | allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. | +**default_runtime_class_name** | **str** | defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md index 881500d343..9c7cf5403f 100644 --- a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rule** | **str** | rule is the strategy that will dictate the allowable labels that may be set. | -**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index 9bf5a1667f..bad5dfedf6 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -1,6 +1,6 @@ # kubernetes.client.RbacAuthorizationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index 18c0897b95..7d51c071aa 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.RbacAuthorizationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -44,7 +44,9 @@ Method | HTTP request | Description create a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -65,7 +67,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -91,7 +93,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -103,7 +105,9 @@ Name | Type | Description | Notes create a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -124,7 +128,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -150,7 +154,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -162,7 +166,9 @@ Name | Type | Description | Notes create a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -184,7 +190,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -211,7 +217,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -223,7 +229,9 @@ Name | Type | Description | Notes create a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -245,7 +253,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -272,19 +280,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** -> V1Status delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -302,14 +312,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role: %s\n" % e) @@ -321,11 +331,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -337,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** -> V1Status delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -367,14 +379,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role_binding: %s\n" % e) @@ -386,11 +398,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -402,19 +414,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -431,16 +445,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role: %s\n" % e) @@ -451,13 +471,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -469,19 +495,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -498,16 +526,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role_binding: %s\n" % e) @@ -518,13 +552,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -536,19 +576,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -566,16 +608,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role: %s\n" % e) @@ -587,13 +635,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -605,19 +659,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -635,16 +691,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role_binding: %s\n" % e) @@ -656,13 +718,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -674,19 +742,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** -> V1Status delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -705,14 +775,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role: %s\n" % e) @@ -725,11 +795,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -741,19 +811,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** -> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -772,14 +844,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role_binding: %s\n" % e) @@ -792,11 +864,11 @@ Name | Type | Description | Notes **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -808,7 +880,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -820,7 +892,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -837,7 +911,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -857,19 +931,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** -> V1ClusterRoleList list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ClusterRoleList list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -886,16 +962,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_cluster_role: %s\n" % e) @@ -906,6 +983,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -924,19 +1002,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** -> V1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -953,16 +1033,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_cluster_role_binding: %s\n" % e) @@ -973,6 +1054,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -991,19 +1073,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** -> V1RoleList list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1RoleList list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1021,16 +1105,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role: %s\n" % e) @@ -1042,6 +1127,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1060,19 +1146,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** -> V1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1090,16 +1178,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role_binding: %s\n" % e) @@ -1111,6 +1200,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1129,19 +1219,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** -> V1RoleBindingList list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1RoleBindingList list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1157,6 +1249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1164,10 +1257,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_role_binding_for_all_namespaces: %s\n" % e) @@ -1177,6 +1270,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1196,19 +1290,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** -> V1RoleList list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1RoleList list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1224,6 +1320,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1231,10 +1328,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1Api->list_role_for_all_namespaces: %s\n" % e) @@ -1244,6 +1341,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1263,7 +1361,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1275,7 +1373,9 @@ Name | Type | Description | Notes partially update the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1292,13 +1392,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1310,7 +1410,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1338,7 +1438,9 @@ Name | Type | Description | Notes partially update the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1355,13 +1457,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1373,7 +1475,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1401,7 +1503,9 @@ Name | Type | Description | Notes partially update the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1419,13 +1523,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1438,7 +1542,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1466,7 +1570,9 @@ Name | Type | Description | Notes partially update the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1484,13 +1590,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1503,7 +1609,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1531,7 +1637,9 @@ Name | Type | Description | Notes read the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1550,7 +1658,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1574,7 +1682,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1586,7 +1694,9 @@ Name | Type | Description | Notes read the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1605,7 +1715,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiCli name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1629,7 +1739,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1641,7 +1751,9 @@ Name | Type | Description | Notes read the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1661,7 +1773,7 @@ name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1686,7 +1798,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1698,7 +1810,9 @@ Name | Type | Description | Notes read the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1718,7 +1832,7 @@ name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1743,7 +1857,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1755,7 +1869,9 @@ Name | Type | Description | Notes replace the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1777,7 +1893,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1804,7 +1920,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1816,7 +1932,9 @@ Name | Type | Description | Notes replace the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1838,7 +1956,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1865,7 +1983,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1877,7 +1995,9 @@ Name | Type | Description | Notes replace the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1900,7 +2020,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1928,7 +2048,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1940,7 +2060,9 @@ Name | Type | Description | Notes replace the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1963,7 +2085,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1991,7 +2113,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md index 96545fa915..2b380fda99 100644 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.RbacAuthorizationV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -44,7 +44,9 @@ Method | HTTP request | Description create a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -65,7 +67,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -91,7 +93,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -103,7 +105,9 @@ Name | Type | Description | Notes create a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -124,7 +128,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -150,7 +154,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -162,7 +166,9 @@ Name | Type | Description | Notes create a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -184,7 +190,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -211,7 +217,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -223,7 +229,9 @@ Name | Type | Description | Notes create a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -245,7 +253,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -272,19 +280,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** -> V1Status delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -302,14 +312,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role: %s\n" % e) @@ -321,11 +331,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -337,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** -> V1Status delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -367,14 +379,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role_binding: %s\n" % e) @@ -386,11 +398,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -402,19 +414,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -431,16 +445,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role: %s\n" % e) @@ -451,13 +471,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -469,19 +495,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -498,16 +526,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role_binding: %s\n" % e) @@ -518,13 +552,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -536,19 +576,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -566,16 +608,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role: %s\n" % e) @@ -587,13 +635,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -605,19 +659,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -635,16 +691,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role_binding: %s\n" % e) @@ -656,13 +718,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -674,19 +742,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** -> V1Status delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -705,14 +775,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client. name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role: %s\n" % e) @@ -725,11 +795,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -741,19 +811,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** -> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -772,14 +844,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client. name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role_binding: %s\n" % e) @@ -792,11 +864,11 @@ Name | Type | Description | Notes **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -808,7 +880,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -820,7 +892,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -837,7 +911,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -857,19 +931,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** -> V1alpha1ClusterRoleList list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1ClusterRoleList list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -886,16 +962,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role: %s\n" % e) @@ -906,6 +983,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -924,19 +1002,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** -> V1alpha1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -953,16 +1033,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role_binding: %s\n" % e) @@ -973,6 +1054,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -991,19 +1073,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** -> V1alpha1RoleList list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1RoleList list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1021,16 +1105,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role: %s\n" % e) @@ -1042,6 +1127,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1060,19 +1146,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** -> V1alpha1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1090,16 +1178,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role_binding: %s\n" % e) @@ -1111,6 +1200,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1129,19 +1219,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** -> V1alpha1RoleBindingList list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1RoleBindingList list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1157,6 +1249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1164,10 +1257,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_binding_for_all_namespaces: %s\n" % e) @@ -1177,6 +1270,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1196,19 +1290,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** -> V1alpha1RoleList list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1RoleList list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1224,6 +1320,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1231,10 +1328,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_for_all_namespaces: %s\n" % e) @@ -1244,6 +1341,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1263,7 +1361,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1275,7 +1373,9 @@ Name | Type | Description | Notes partially update the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1292,13 +1392,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1310,7 +1410,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1338,7 +1438,9 @@ Name | Type | Description | Notes partially update the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1355,13 +1457,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1373,7 +1475,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1401,7 +1503,9 @@ Name | Type | Description | Notes partially update the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1419,13 +1523,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1438,7 +1542,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1466,7 +1570,9 @@ Name | Type | Description | Notes partially update the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1484,13 +1590,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1503,7 +1609,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1531,7 +1637,9 @@ Name | Type | Description | Notes read the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1550,7 +1658,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client. name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1574,7 +1682,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1586,7 +1694,9 @@ Name | Type | Description | Notes read the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1605,7 +1715,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client. name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1629,7 +1739,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1641,7 +1751,9 @@ Name | Type | Description | Notes read the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1661,7 +1773,7 @@ name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1686,7 +1798,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1698,7 +1810,9 @@ Name | Type | Description | Notes read the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1718,7 +1832,7 @@ name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1743,7 +1857,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1755,7 +1869,9 @@ Name | Type | Description | Notes replace the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1777,7 +1893,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1804,7 +1920,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1816,7 +1932,9 @@ Name | Type | Description | Notes replace the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1838,7 +1956,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1865,7 +1983,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1877,7 +1995,9 @@ Name | Type | Description | Notes replace the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1900,7 +2020,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1928,7 +2048,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1940,7 +2060,9 @@ Name | Type | Description | Notes replace the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1963,7 +2085,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1991,7 +2113,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md index 44b1f68767..da007efa2c 100644 --- a/kubernetes/docs/RbacAuthorizationV1beta1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.RbacAuthorizationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -44,7 +44,9 @@ Method | HTTP request | Description create a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -65,7 +67,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -91,7 +93,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -103,7 +105,9 @@ Name | Type | Description | Notes create a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -124,7 +128,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -150,7 +154,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -162,7 +166,9 @@ Name | Type | Description | Notes create a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -184,7 +190,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -211,7 +217,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -223,7 +229,9 @@ Name | Type | Description | Notes create a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -245,7 +253,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -272,19 +280,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** -> V1Status delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -302,14 +312,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role: %s\n" % e) @@ -321,11 +331,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -337,19 +347,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** -> V1Status delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -367,14 +379,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role_binding: %s\n" % e) @@ -386,11 +398,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -402,19 +414,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -431,16 +445,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role: %s\n" % e) @@ -451,13 +471,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -469,19 +495,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -498,16 +526,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role_binding: %s\n" % e) @@ -518,13 +552,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -536,19 +576,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -566,16 +608,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role: %s\n" % e) @@ -587,13 +635,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -605,19 +659,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -635,16 +691,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role_binding: %s\n" % e) @@ -656,13 +718,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -674,19 +742,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** -> V1Status delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -705,14 +775,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.A name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role: %s\n" % e) @@ -725,11 +795,11 @@ Name | Type | Description | Notes **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -741,19 +811,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** -> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -772,14 +844,14 @@ api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.A name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role_binding: %s\n" % e) @@ -792,11 +864,11 @@ Name | Type | Description | Notes **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -808,7 +880,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -820,7 +892,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -837,7 +911,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -857,19 +931,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** -> V1beta1ClusterRoleList list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ClusterRoleList list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -886,16 +962,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role: %s\n" % e) @@ -906,6 +983,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -924,19 +1002,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** -> V1beta1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1ClusterRoleBindingList list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -953,16 +1033,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role_binding: %s\n" % e) @@ -973,6 +1054,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -991,19 +1073,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** -> V1beta1RoleList list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1RoleList list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1021,16 +1105,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role: %s\n" % e) @@ -1042,6 +1127,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1060,19 +1146,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** -> V1beta1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1RoleBindingList list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1090,16 +1178,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role_binding: %s\n" % e) @@ -1111,6 +1200,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1129,19 +1219,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** -> V1beta1RoleBindingList list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1RoleBindingList list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1157,6 +1249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1164,10 +1257,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_role_binding_for_all_namespaces: %s\n" % e) @@ -1177,6 +1270,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1196,19 +1290,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** -> V1beta1RoleList list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1RoleList list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1224,6 +1320,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1231,10 +1328,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling RbacAuthorizationV1beta1Api->list_role_for_all_namespaces: %s\n" % e) @@ -1244,6 +1341,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1263,7 +1361,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1275,7 +1373,9 @@ Name | Type | Description | Notes partially update the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1292,13 +1392,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRole -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1310,7 +1410,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1338,7 +1438,9 @@ Name | Type | Description | Notes partially update the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1355,13 +1457,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the ClusterRoleBinding -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1373,7 +1475,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1401,7 +1503,9 @@ Name | Type | Description | Notes partially update the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1419,13 +1523,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1438,7 +1542,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1466,7 +1570,9 @@ Name | Type | Description | Notes partially update the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1484,13 +1590,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1503,7 +1609,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1531,7 +1637,9 @@ Name | Type | Description | Notes read the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1550,7 +1658,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.A name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1574,7 +1682,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1586,7 +1694,9 @@ Name | Type | Description | Notes read the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1605,7 +1715,7 @@ api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.A name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1629,7 +1739,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1641,7 +1751,9 @@ Name | Type | Description | Notes read the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1661,7 +1773,7 @@ name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1686,7 +1798,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1698,7 +1810,9 @@ Name | Type | Description | Notes read the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1718,7 +1832,7 @@ name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: @@ -1743,7 +1857,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1755,7 +1869,9 @@ Name | Type | Description | Notes replace the specified ClusterRole -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1777,7 +1893,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1804,7 +1920,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1816,7 +1932,9 @@ Name | Type | Description | Notes replace the specified ClusterRoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1838,7 +1956,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1865,7 +1983,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1877,7 +1995,9 @@ Name | Type | Description | Notes replace the specified Role -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1900,7 +2020,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1928,7 +2048,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1940,7 +2060,9 @@ Name | Type | Description | Notes replace the specified RoleBinding -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1963,7 +2085,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1991,7 +2113,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index a460cbbc5c..f9b2153c14 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -1,6 +1,6 @@ # kubernetes.client.SchedulingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index f0b5becd5e..623cb8316d 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.SchedulingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1Api->delete_collection_priority_class: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** -> V1Status delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1Api->delete_priority_class: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** -> V1PriorityClassList list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1PriorityClassList list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1Api->list_priority_class: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1alpha1Api.md b/kubernetes/docs/SchedulingV1alpha1Api.md index b83c3c3b33..119d8ffa9f 100644 --- a/kubernetes/docs/SchedulingV1alpha1Api.md +++ b/kubernetes/docs/SchedulingV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.SchedulingV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1alpha1Api->delete_collection_priority_class: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** -> V1Status delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1alpha1Api->delete_priority_class: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** -> V1alpha1PriorityClassList list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1PriorityClassList list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1alpha1Api->list_priority_class: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1beta1Api.md b/kubernetes/docs/SchedulingV1beta1Api.md index 04c74f1dd4..b76c39f895 100644 --- a/kubernetes/docs/SchedulingV1beta1Api.md +++ b/kubernetes/docs/SchedulingV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.SchedulingV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1beta1Api->delete_collection_priority_class: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** -> V1Status delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1beta1Api->delete_priority_class: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** -> V1beta1PriorityClassList list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1PriorityClassList list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling SchedulingV1beta1Api->list_priority_class: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified PriorityClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md index 1a5bf5621d..408fe5f651 100644 --- a/kubernetes/docs/SettingsApi.md +++ b/kubernetes/docs/SettingsApi.md @@ -1,6 +1,6 @@ # kubernetes.client.SettingsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SettingsApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md index eaf76c54f8..eb7a9c2f1d 100644 --- a/kubernetes/docs/SettingsV1alpha1Api.md +++ b/kubernetes/docs/SettingsV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.SettingsV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,7 +22,9 @@ Method | HTTP request | Description create a PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -44,7 +46,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_namespaced_pod_preset(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -71,19 +73,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_preset** -> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -101,16 +105,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling SettingsV1alpha1Api->delete_collection_namespaced_pod_preset: %s\n" % e) @@ -122,13 +132,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -140,19 +156,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_preset** -> V1Status delete_namespaced_pod_preset(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_namespaced_pod_preset(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -171,14 +189,14 @@ api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_preset(name, namespace, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_namespaced_pod_preset(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling SettingsV1alpha1Api->delete_namespaced_pod_preset: %s\n" % e) @@ -191,11 +209,11 @@ Name | Type | Description | Notes **name** | **str**| name of the PodPreset | **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -207,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +237,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -236,7 +256,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -256,19 +276,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_preset** -> V1alpha1PodPresetList list_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1PodPresetList list_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -286,16 +308,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling SettingsV1alpha1Api->list_namespaced_pod_preset: %s\n" % e) @@ -307,6 +330,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -325,19 +349,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_preset_for_all_namespaces** -> V1alpha1PodPresetList list_pod_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1PodPresetList list_pod_preset_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -353,6 +379,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -360,10 +387,10 @@ limit = 56 # int | limit is a maximum number of responses to return for a list c pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_preset_for_all_namespaces(_continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_pod_preset_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling SettingsV1alpha1Api->list_pod_preset_for_all_namespaces: %s\n" % e) @@ -373,6 +400,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -392,7 +420,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +432,9 @@ Name | Type | Description | Notes partially update the specified PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -422,13 +452,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -441,7 +471,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodPreset | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -469,7 +499,9 @@ Name | Type | Description | Notes read the specified PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -488,10 +520,10 @@ api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -518,7 +550,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -530,7 +562,9 @@ Name | Type | Description | Notes replace the specified PodPreset -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -553,7 +587,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -581,7 +615,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 5218c90402..1afab2f784 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -1,6 +1,6 @@ # kubernetes.client.StorageApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get information of a group -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_group() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 21507d5bac..9c34ef767f 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.StorageV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -31,7 +31,9 @@ Method | HTTP request | Description create a StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -52,7 +54,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -78,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -90,7 +92,9 @@ Name | Type | Description | Notes create a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -111,7 +115,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -137,19 +141,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -166,16 +172,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->delete_collection_storage_class: %s\n" % e) @@ -186,13 +198,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -204,19 +222,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -233,16 +253,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->delete_collection_volume_attachment: %s\n" % e) @@ -253,13 +279,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -271,19 +303,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_storage_class** -> V1Status delete_storage_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -301,14 +335,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_storage_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->delete_storage_class: %s\n" % e) @@ -320,11 +354,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -336,19 +370,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** -> V1Status delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -366,14 +402,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->delete_volume_attachment: %s\n" % e) @@ -385,11 +421,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -401,7 +437,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -413,7 +449,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -430,7 +468,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -450,19 +488,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_storage_class** -> V1StorageClassList list_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1StorageClassList list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -479,16 +519,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->list_storage_class: %s\n" % e) @@ -499,6 +540,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -517,19 +559,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** -> V1VolumeAttachmentList list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1VolumeAttachmentList list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -546,16 +590,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1Api->list_volume_attachment: %s\n" % e) @@ -566,6 +611,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -584,7 +630,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -596,7 +642,9 @@ Name | Type | Description | Notes partially update the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -613,13 +661,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -631,7 +679,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -659,7 +707,9 @@ Name | Type | Description | Notes partially update the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -676,13 +726,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -694,7 +744,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -722,7 +772,9 @@ Name | Type | Description | Notes partially update status of the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -739,13 +791,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -757,7 +809,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -785,7 +837,9 @@ Name | Type | Description | Notes read the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -803,10 +857,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -832,7 +886,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -844,7 +898,9 @@ Name | Type | Description | Notes read the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -862,10 +918,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -891,7 +947,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -903,7 +959,9 @@ Name | Type | Description | Notes read status of the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -922,7 +980,7 @@ api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(config name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: +try: api_response = api_instance.read_volume_attachment_status(name, pretty=pretty) pprint(api_response) except ApiException as e: @@ -946,7 +1004,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -958,7 +1016,9 @@ Name | Type | Description | Notes replace the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -980,7 +1040,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1007,7 +1067,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1019,7 +1079,9 @@ Name | Type | Description | Notes replace the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1041,7 +1103,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1068,7 +1130,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1080,7 +1142,9 @@ Name | Type | Description | Notes replace status of the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1102,7 +1166,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1129,7 +1193,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1alpha1Api.md b/kubernetes/docs/StorageV1alpha1Api.md index fc1922be5f..86ad61f40f 100644 --- a/kubernetes/docs/StorageV1alpha1Api.md +++ b/kubernetes/docs/StorageV1alpha1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.StorageV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -21,7 +21,9 @@ Method | HTTP request | Description create a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -42,7 +44,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -68,19 +70,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -97,16 +101,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1alpha1Api->delete_collection_volume_attachment: %s\n" % e) @@ -117,13 +127,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -135,19 +151,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** -> V1Status delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -165,14 +183,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1alpha1Api->delete_volume_attachment: %s\n" % e) @@ -184,11 +202,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -200,7 +218,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +230,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -229,7 +249,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -249,19 +269,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** -> V1alpha1VolumeAttachmentList list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1alpha1VolumeAttachmentList list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -278,16 +300,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1alpha1Api->list_volume_attachment: %s\n" % e) @@ -298,6 +321,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -316,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -328,7 +352,9 @@ Name | Type | Description | Notes partially update the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -345,13 +371,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -363,7 +389,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -391,7 +417,9 @@ Name | Type | Description | Notes read the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -409,10 +437,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -438,7 +466,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -450,7 +478,9 @@ Name | Type | Description | Notes replace the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -472,7 +502,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -499,7 +529,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index 61f8d6df5b..8e2658e0db 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -1,6 +1,6 @@ # kubernetes.client.StorageV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -42,7 +42,9 @@ Method | HTTP request | Description create a CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -63,7 +65,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_csi_driver(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -89,7 +91,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -101,7 +103,9 @@ Name | Type | Description | Notes create a CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -122,7 +126,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_csi_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -148,7 +152,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -160,7 +164,9 @@ Name | Type | Description | Notes create a StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -181,7 +187,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -207,7 +213,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -219,7 +225,9 @@ Name | Type | Description | Notes create a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -240,7 +248,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -266,19 +274,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_csi_driver** -> V1Status delete_collection_csi_driver(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -295,16 +305,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_csi_driver(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_collection_csi_driver: %s\n" % e) @@ -315,13 +331,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -333,19 +355,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_csi_node** -> V1Status delete_collection_csi_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -362,16 +386,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_csi_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_collection_csi_node: %s\n" % e) @@ -382,13 +412,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -400,19 +436,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -429,16 +467,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_collection_storage_class: %s\n" % e) @@ -449,13 +493,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -467,19 +517,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) delete collection of VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -496,16 +548,22 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_collection_volume_attachment: %s\n" % e) @@ -516,13 +574,19 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -534,19 +598,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_csi_driver** -> V1Status delete_csi_driver(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_csi_driver(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -564,14 +630,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSIDriver pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_csi_driver(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_csi_driver(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_csi_driver: %s\n" % e) @@ -583,11 +649,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSIDriver | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -599,19 +665,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_csi_node** -> V1Status delete_csi_node(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_csi_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -629,14 +697,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSINode pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_csi_node(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_csi_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_csi_node: %s\n" % e) @@ -648,11 +716,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSINode | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -664,19 +732,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_storage_class** -> V1Status delete_storage_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -694,14 +764,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_storage_class(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_storage_class: %s\n" % e) @@ -713,11 +783,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -729,19 +799,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** -> V1Status delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +> V1Status delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) delete a VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -759,14 +831,14 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) -orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, body=body, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->delete_volume_attachment: %s\n" % e) @@ -778,11 +850,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -794,7 +866,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -806,7 +878,9 @@ Name | Type | Description | Notes get available resources -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -823,7 +897,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: @@ -843,19 +917,21 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_csi_driver** -> V1beta1CSIDriverList list_csi_driver(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CSIDriverList list_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -872,16 +948,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_csi_driver(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->list_csi_driver: %s\n" % e) @@ -892,6 +969,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -910,19 +988,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_csi_node** -> V1beta1CSINodeList list_csi_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1CSINodeList list_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -939,16 +1019,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_csi_node(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->list_csi_node: %s\n" % e) @@ -959,6 +1040,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -977,19 +1059,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_storage_class** -> V1beta1StorageClassList list_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1StorageClassList list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1006,16 +1090,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_storage_class(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->list_storage_class: %s\n" % e) @@ -1026,6 +1111,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1044,19 +1130,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** -> V1beta1VolumeAttachmentList list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VolumeAttachmentList list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) list or watch objects of kind VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1073,16 +1161,17 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) +watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling StorageV1beta1Api->list_volume_attachment: %s\n" % e) @@ -1093,6 +1182,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **allow_watch_bookmarks** | **bool**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1111,7 +1201,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1123,7 +1213,9 @@ Name | Type | Description | Notes partially update the specified CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1140,13 +1232,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSIDriver -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1158,7 +1250,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSIDriver | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1186,7 +1278,9 @@ Name | Type | Description | Notes partially update the specified CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1203,13 +1297,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSINode -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1221,7 +1315,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSINode | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1249,7 +1343,9 @@ Name | Type | Description | Notes partially update the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1266,13 +1362,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1284,7 +1380,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1312,7 +1408,9 @@ Name | Type | Description | Notes partially update the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1329,13 +1427,13 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment -body = NULL # object | +body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) -force = true # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) +force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) -try: +try: api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: @@ -1347,7 +1445,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | **object**| | + **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **field_manager** | **str**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1375,7 +1473,9 @@ Name | Type | Description | Notes read the specified CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1393,10 +1493,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSIDriver pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_csi_driver(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1422,7 +1522,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1434,7 +1534,9 @@ Name | Type | Description | Notes read the specified CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1452,10 +1554,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the CSINode pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_csi_node(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1481,7 +1583,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1493,7 +1595,9 @@ Name | Type | Description | Notes read the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1511,10 +1615,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1540,7 +1644,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1552,7 +1656,9 @@ Name | Type | Description | Notes read the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1570,10 +1676,10 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -exact = true # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) -export = true # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) +exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) +export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: +try: api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: @@ -1599,7 +1705,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1611,7 +1717,9 @@ Name | Type | Description | Notes replace the specified CSIDriver -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1633,7 +1741,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1660,7 +1768,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1672,7 +1780,9 @@ Name | Type | Description | Notes replace the specified CSINode -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1694,7 +1804,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1721,7 +1831,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1733,7 +1843,9 @@ Name | Type | Description | Notes replace the specified StorageClass -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1755,7 +1867,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1782,7 +1894,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1794,7 +1906,9 @@ Name | Type | Description | Notes replace the specified VolumeAttachment -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -1816,7 +1930,7 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) -try: +try: api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: @@ -1843,7 +1957,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md index 77c67b2e11..4c8cd563ed 100644 --- a/kubernetes/docs/V1APIGroup.md +++ b/kubernetes/docs/V1APIGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **str** | name is the name of the group. | -**preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**preferred_version** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | | [optional] **server_address_by_client_cid_rs** | [**list[V1ServerAddressByClientCIDR]**](V1ServerAddressByClientCIDR.md) | a map of kubernetes.client CIDR to server address that is serving this group. This is to help kubernetes.clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, kubernetes.clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the kubernetes.client can match. For example: the master will return an internal IP CIDR only, if the kubernetes.client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the kubernetes.client IP. | [optional] **versions** | [**list[V1GroupVersionForDiscovery]**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | diff --git a/kubernetes/docs/V1APIService.md b/kubernetes/docs/V1APIService.md index 28ff62e745..769828a36d 100644 --- a/kubernetes/docs/V1APIService.md +++ b/kubernetes/docs/V1APIService.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | Spec contains information for locating and communicating with a server | [optional] -**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | Status contains derived information about an API server | [optional] +**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | | [optional] +**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1APIServiceSpec.md b/kubernetes/docs/V1APIServiceSpec.md index d29f7cb85a..3cae26eb8e 100644 --- a/kubernetes/docs/V1APIServiceSpec.md +++ b/kubernetes/docs/V1APIServiceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **group** | **str** | Group is the API group name this server hosts | [optional] **group_priority_minimum** | **int** | GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by kubernetes.clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s | **insecure_skip_tls_verify** | **bool** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] -**service** | [**V1ServiceReference**](V1ServiceReference.md) | Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. | +**service** | [**V1ServiceReference**](V1ServiceReference.md) | | **version** | **str** | Version is the API version this server hosts. For example, \"v1\" | [optional] **version_priority** | **int** | VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md index 14dfb61142..661b2e6e9b 100644 --- a/kubernetes/docs/V1Affinity.md +++ b/kubernetes/docs/V1Affinity.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] -**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] -**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] +**node_affinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | | [optional] +**pod_affinity** | [**V1PodAffinity**](V1PodAffinity.md) | | [optional] +**pod_anti_affinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index 1f4c5ac24a..99d0bc0ebd 100644 --- a/kubernetes/docs/V1Binding.md +++ b/kubernetes/docs/V1Binding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**target** | [**V1ObjectReference**](V1ObjectReference.md) | The target object that you want to bind to the standard object. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**target** | [**V1ObjectReference**](V1ObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index d2936d48d9..3163e05550 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -3,11 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**controller_publish_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] +**controller_expand_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] +**controller_publish_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **driver** | **str** | Driver is the name of the driver to use for this volume. Required. | **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] -**node_publish_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] -**node_stage_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] +**node_publish_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] +**node_stage_secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **read_only** | **bool** | Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] **volume_attributes** | **dict(str, str)** | Attributes of the volume to publish. | [optional] **volume_handle** | **str** | VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. | diff --git a/kubernetes/docs/V1CSIVolumeSource.md b/kubernetes/docs/V1CSIVolumeSource.md index b4c42c92a5..15d3a47522 100644 --- a/kubernetes/docs/V1CSIVolumeSource.md +++ b/kubernetes/docs/V1CSIVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **str** | Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. | **fs_type** | **str** | Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. | [optional] -**node_publish_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. | [optional] +**node_publish_secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **read_only** | **bool** | Specifies a read-only configuration for the volume. Defaults to false (read/write). | [optional] **volume_attributes** | **dict(str, str)** | VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. | [optional] diff --git a/kubernetes/docs/V1CephFSPersistentVolumeSource.md b/kubernetes/docs/V1CephFSPersistentVolumeSource.md index 05d1eb6b48..f239e26ce3 100644 --- a/kubernetes/docs/V1CephFSPersistentVolumeSource.md +++ b/kubernetes/docs/V1CephFSPersistentVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **path** | **str** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] **secret_file** | **str** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **user** | **str** | Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1CephFSVolumeSource.md b/kubernetes/docs/V1CephFSVolumeSource.md index 45edac4d99..2c554da128 100644 --- a/kubernetes/docs/V1CephFSVolumeSource.md +++ b/kubernetes/docs/V1CephFSVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **path** | **str** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] **secret_file** | **str** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **user** | **str** | Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1CinderPersistentVolumeSource.md b/kubernetes/docs/V1CinderPersistentVolumeSource.md index 967e4fa08b..83521d29cf 100644 --- a/kubernetes/docs/V1CinderPersistentVolumeSource.md +++ b/kubernetes/docs/V1CinderPersistentVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | Optional: points to a secret object containing parameters used to connect to OpenStack. | [optional] +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **volume_id** | **str** | volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1CinderVolumeSource.md b/kubernetes/docs/V1CinderVolumeSource.md index 58f1938e6a..fba9442434 100644 --- a/kubernetes/docs/V1CinderVolumeSource.md +++ b/kubernetes/docs/V1CinderVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: points to a secret object containing parameters used to connect to OpenStack. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **volume_id** | **str** | volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index d791378c08..c193d91564 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregation_rule** | [**V1AggregationRule**](V1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregation_rule** | [**V1AggregationRule**](V1AggregationRule.md) | | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index 0f14176b14..d93f656c48 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1RoleRef**](V1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1RoleRef**](V1RoleRef.md) | | **subjects** | [**list[V1Subject]**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ClusterRoleBindingList.md b/kubernetes/docs/V1ClusterRoleBindingList.md index 3a77b05c5e..06dae71d5a 100644 --- a/kubernetes/docs/V1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1ClusterRoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ClusterRoleBinding]**](V1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ClusterRoleList.md b/kubernetes/docs/V1ClusterRoleList.md index 978b658cde..191d94e445 100644 --- a/kubernetes/docs/V1ClusterRoleList.md +++ b/kubernetes/docs/V1ClusterRoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ClusterRole]**](V1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ComponentStatus.md b/kubernetes/docs/V1ComponentStatus.md index 763cfc44bd..c5083ecde6 100644 --- a/kubernetes/docs/V1ComponentStatus.md +++ b/kubernetes/docs/V1ComponentStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **conditions** | [**list[V1ComponentCondition]**](V1ComponentCondition.md) | List of component conditions observed | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 86778cf22f..e600f7688a 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ComponentStatus]**](V1ComponentStatus.md) | List of ComponentStatus objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index e024296878..dcc2b80432 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **binary_data** | **dict(str, str)** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] **data** | **dict(str, str)** | Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index 716c588476..0801468bcc 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key to select. | **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's key must be defined | [optional] +**optional** | **bool** | Specify whether the ConfigMap or its key must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index 709d8ee20b..e5ef809e94 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ConfigMap]**](V1ConfigMap.md) | Items is the list of ConfigMaps. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md index 543c230b77..7170359be2 100644 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] +**optional** | **bool** | Specify whether the ConfigMap or its keys must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index f2611e13b0..85da94f88a 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **bool** | Specify whether the ConfigMap or it's keys must be defined | [optional] +**optional** | **bool** | Specify whether the ConfigMap or its keys must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 94b2d7fe08..1cc7198011 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] **image** | **str** | Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. | [optional] **image_pull_policy** | **str** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] -**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | Actions that the management system should take in response to container lifecycle events. Cannot be updated. | [optional] -**liveness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] +**liveness_probe** | [**V1Probe**](V1Probe.md) | | [optional] **name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | **ports** | [**list[V1ContainerPort]**](V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] -**readiness_probe** | [**V1Probe**](V1Probe.md) | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] -**security_context** | [**V1SecurityContext**](V1SecurityContext.md) | Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**readiness_probe** | [**V1Probe**](V1Probe.md) | | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**security_context** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] **stdin** | **bool** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] **stdin_once** | **bool** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first kubernetes.client attaches to stdin, and then remains open and accepts data until the kubernetes.client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false | [optional] **termination_message_path** | **str** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. | [optional] diff --git a/kubernetes/docs/V1ContainerState.md b/kubernetes/docs/V1ContainerState.md index cb5d098541..6b5c623d4e 100644 --- a/kubernetes/docs/V1ContainerState.md +++ b/kubernetes/docs/V1ContainerState.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | Details about a running container | [optional] -**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | Details about a terminated container | [optional] -**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | Details about a waiting container | [optional] +**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | | [optional] +**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | | [optional] +**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 6cbb8321bc..8853869197 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes **container_id** | **str** | Container's ID in the format 'docker://<container_id>'. | [optional] **image** | **str** | The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images | **image_id** | **str** | ImageID of the container's image. | -**last_state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's last termination condition. | [optional] +**last_state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] **name** | **str** | This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. | **ready** | **bool** | Specifies whether the container has passed its readiness probe. | **restart_count** | **int** | The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. | -**state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's current condition. | [optional] +**state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index ed3a311003..aa5c07631d 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **int** | Revision indicates the revision of the state represented by Data. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ControllerRevisionList.md b/kubernetes/docs/V1ControllerRevisionList.md index 5697b99061..8fe8a4758a 100644 --- a/kubernetes/docs/V1ControllerRevisionList.md +++ b/kubernetes/docs/V1ControllerRevisionList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ControllerRevision]**](V1ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index 7308639779..a5a3e7404b 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] +**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DaemonSetList.md b/kubernetes/docs/V1DaemonSetList.md index 6539c1f5ff..78643d2870 100644 --- a/kubernetes/docs/V1DaemonSetList.md +++ b/kubernetes/docs/V1DaemonSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1DaemonSet]**](V1DaemonSet.md) | A list of daemon sets. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DaemonSetSpec.md b/kubernetes/docs/V1DaemonSetSpec.md index 8c85e84b75..8b034150bd 100644 --- a/kubernetes/docs/V1DaemonSetSpec.md +++ b/kubernetes/docs/V1DaemonSetSpec.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revision_history_limit** | **int** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | -**update_strategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**update_strategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1DaemonSetUpdateStrategy.md index f544a3fe7d..b62567fa8f 100644 --- a/kubernetes/docs/V1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1DaemonSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rolling_update** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | | [optional] **type** | **str** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index d785689c6b..3f8ed5745e 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **grace_period_seconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **orphan_dependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] -**preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] +**preconditions** | [**V1Preconditions**](V1Preconditions.md) | | [optional] **propagation_policy** | **str** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index a7568d3a6c..332b260d70 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] +**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeploymentList.md b/kubernetes/docs/V1DeploymentList.md index c442eb0fe0..d77cfdeec2 100644 --- a/kubernetes/docs/V1DeploymentList.md +++ b/kubernetes/docs/V1DeploymentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Deployment]**](V1Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeploymentSpec.md b/kubernetes/docs/V1DeploymentSpec.md index f4e0f4a1a0..efd3b64c41 100644 --- a/kubernetes/docs/V1DeploymentSpec.md +++ b/kubernetes/docs/V1DeploymentSpec.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes **progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. | -**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DeploymentStrategy.md b/kubernetes/docs/V1DeploymentStrategy.md index 5f64d4c13f..d9b24ad5e9 100644 --- a/kubernetes/docs/V1DeploymentStrategy.md +++ b/kubernetes/docs/V1DeploymentStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rolling_update** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | | [optional] **type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index b82c019dcd..505816f088 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] +**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] **mode** | **int** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **str** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | -**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] +**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index 90cd032612..3b1c088116 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **hostname** | **str** | The Hostname of this endpoint | [optional] **ip** | **str** | The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. | **node_name** | **str** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] -**target_ref** | [**V1ObjectReference**](V1ObjectReference.md) | Reference to object providing the endpoint. | [optional] +**target_ref** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 4f5cc356d8..815fffe952 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **subsets** | [**list[V1EndpointSubset]**](V1EndpointSubset.md) | The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 66787a8ced..099963f268 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Endpoints]**](V1Endpoints.md) | List of endpoints. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 0baefa9dc2..2b20c7ee5b 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_map_ref** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | The ConfigMap to select from | [optional] +**config_map_ref** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] **prefix** | **str** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] -**secret_ref** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | The Secret to select from | [optional] +**secret_ref** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index a3869b8a61..df08a3629b 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the environment variable. Must be a C_IDENTIFIER. | **value** | **str** | Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] -**value_from** | [**V1EnvVarSource**](V1EnvVarSource.md) | Source for the environment variable's value. Cannot be used if value is not empty. | [optional] +**value_from** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index b8a3c23128..e8ed44cba6 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_map_key_ref** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | Selects a key of a ConfigMap. | [optional] -**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. | [optional] -**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. | [optional] -**secret_key_ref** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | Selects a key of a secret in the pod's namespace | [optional] +**config_map_key_ref** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] +**field_ref** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] +**resource_field_ref** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +**secret_key_ref** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md index 352cd803a0..f77d3d69a0 100644 --- a/kubernetes/docs/V1Event.md +++ b/kubernetes/docs/V1Event.md @@ -8,17 +8,17 @@ Name | Type | Description | Notes **count** | **int** | The number of times this event has occurred. | [optional] **event_time** | **datetime** | Time when this Event was first observed. | [optional] **first_timestamp** | **datetime** | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] -**involved_object** | [**V1ObjectReference**](V1ObjectReference.md) | The object that this event is about. | +**involved_object** | [**V1ObjectReference**](V1ObjectReference.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **last_timestamp** | **datetime** | The time at which the most recent occurrence of this event was recorded. | [optional] **message** | **str** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | **reason** | **str** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | Optional secondary object for more complex actions. | [optional] +**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **reporting_component** | **str** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] **reporting_instance** | **str** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] -**series** | [**V1EventSeries**](V1EventSeries.md) | Data about the Event series this event represents or nil if it's a singleton Event. | [optional] -**source** | [**V1EventSource**](V1EventSource.md) | The component reporting this event. Should be a short machine understandable string. | [optional] +**series** | [**V1EventSeries**](V1EventSeries.md) | | [optional] +**source** | [**V1EventSource**](V1EventSource.md) | | [optional] **type** | **str** | Type of this event (Normal, Warning), new types could be added in the future | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md index 9a3ba7c52b..055c4d61ee 100644 --- a/kubernetes/docs/V1EventList.md +++ b/kubernetes/docs/V1EventList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Event]**](V1Event.md) | List of events | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1EventSeries.md b/kubernetes/docs/V1EventSeries.md index dc2388a5d0..92590ce051 100644 --- a/kubernetes/docs/V1EventSeries.md +++ b/kubernetes/docs/V1EventSeries.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of occurrences in this series up to the last heartbeat time | [optional] **last_observed_time** | **datetime** | Time of the last occurrence observed | [optional] -**state** | **str** | State of this Series: Ongoing or Finished | [optional] +**state** | **str** | State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1FlexPersistentVolumeSource.md b/kubernetes/docs/V1FlexPersistentVolumeSource.md index 283854ddbc..648f33a432 100644 --- a/kubernetes/docs/V1FlexPersistentVolumeSource.md +++ b/kubernetes/docs/V1FlexPersistentVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. | [optional] **options** | **dict(str, str)** | Optional: Extra command options if any. | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. | [optional] +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1FlexVolumeSource.md b/kubernetes/docs/V1FlexVolumeSource.md index 5dde69d8e2..f34ba8d41a 100644 --- a/kubernetes/docs/V1FlexVolumeSource.md +++ b/kubernetes/docs/V1FlexVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. | [optional] **options** | **dict(str, str)** | Optional: Extra command options if any. | [optional] **read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index d7ee4dad99..b79018736a 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **host** | **str** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] **http_headers** | [**list[V1HTTPHeader]**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **str** | Path to access on the HTTP server. | [optional] -**port** | **object** | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | [**object**](.md) | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | **scheme** | **str** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Handler.md b/kubernetes/docs/V1Handler.md index 6e6687ddcd..1f294eb43a 100644 --- a/kubernetes/docs/V1Handler.md +++ b/kubernetes/docs/V1Handler.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] -**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] -**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**_exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] +**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] +**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md index fcf9799904..fb5671b5c4 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V1HorizontalPodAutoscaler.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index 2b128048fb..084e6e0814 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1HorizontalPodAutoscaler]**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md index 3681654af0..739cce385b 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max_replicas** | **int** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | **min_replicas** | **int** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] -**scale_target_ref** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. | +**scale_target_ref** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | | **target_cpu_utilization_percentage** | **int** | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md index e7a993913e..c9922aa0b4 100644 --- a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **lun** | **int** | iSCSI Target Lun number. | **portals** | **list[str]** | iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | CHAP Secret for iSCSI target and initiator authentication | [optional] +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **target_portal** | **str** | iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index 4b43278b99..307416c22f 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **lun** | **int** | iSCSI Target Lun number. | **portals** | **list[str]** | iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | CHAP Secret for iSCSI target and initiator authentication | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **target_portal** | **str** | iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Initializers.md b/kubernetes/docs/V1Initializers.md index 0da9577308..292e4707f2 100644 --- a/kubernetes/docs/V1Initializers.md +++ b/kubernetes/docs/V1Initializers.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pending** | [**list[V1Initializer]**](V1Initializer.md) | Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all kubernetes.clients. | -**result** | [**V1Status**](V1Status.md) | If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other kubernetes.clients can observe the deletion. | [optional] +**result** | [**V1Status**](V1Status.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Job.md b/kubernetes/docs/V1Job.md index d79b41181f..122e9caa68 100644 --- a/kubernetes/docs/V1Job.md +++ b/kubernetes/docs/V1Job.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1JobStatus**](V1JobStatus.md) | Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] +**status** | [**V1JobStatus**](V1JobStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index 24a84b50f8..b42f10393b 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Job]**](V1Job.md) | items is the list of Jobs. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index a4c6f61326..f0ef51f588 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **completions** | **int** | Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] **manual_selector** | **bool** | manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector | [optional] **parallelism** | **int** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **ttl_seconds_after_finished** | **int** | ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Lease.md b/kubernetes/docs/V1Lease.md index c50468e9c2..12ca04d1d7 100644 --- a/kubernetes/docs/V1Lease.md +++ b/kubernetes/docs/V1Lease.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1LeaseList.md b/kubernetes/docs/V1LeaseList.md index ff0943f1de..cdfbb25cd8 100644 --- a/kubernetes/docs/V1LeaseList.md +++ b/kubernetes/docs/V1LeaseList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Lease]**](V1Lease.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index 1ba3a35d65..e089f75256 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**post_start** | [**V1Handler**](V1Handler.md) | PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks | [optional] -**pre_stop** | [**V1Handler**](V1Handler.md) | PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks | [optional] +**post_start** | [**V1Handler**](V1Handler.md) | | [optional] +**pre_stop** | [**V1Handler**](V1Handler.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1LimitRange.md b/kubernetes/docs/V1LimitRange.md index 14f90bc37e..586c06f926 100644 --- a/kubernetes/docs/V1LimitRange.md +++ b/kubernetes/docs/V1LimitRange.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index 975abe35c3..88a653ea21 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1LimitRange]**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md index 12f2e35dfb..73d167ebdd 100644 --- a/kubernetes/docs/V1ListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] +**remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice. | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by kubernetes.clients to determine when objects have changed. Value must be treated as opaque by kubernetes.clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency | [optional] **self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. | [optional] diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md index 58c976dc58..6d1e09943a 100644 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ManagedFieldsEntry.md b/kubernetes/docs/V1ManagedFieldsEntry.md index f7dfa61487..6d693ee000 100644 --- a/kubernetes/docs/V1ManagedFieldsEntry.md +++ b/kubernetes/docs/V1ManagedFieldsEntry.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] -**fields** | **object** | Fields identifies a set of fields. | [optional] +**fields** | [**object**](.md) | Fields identifies a set of fields. | [optional] **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **str** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] **time** | **datetime** | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] diff --git a/kubernetes/docs/V1Namespace.md b/kubernetes/docs/V1Namespace.md index d05bcf964f..67470e264b 100644 --- a/kubernetes/docs/V1Namespace.md +++ b/kubernetes/docs/V1Namespace.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | | [optional] +**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index 8833a7dc31..f1468d522b 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Namespace]**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetworkPolicy.md b/kubernetes/docs/V1NetworkPolicy.md index 8fe84d02db..0a5638f1f5 100644 --- a/kubernetes/docs/V1NetworkPolicy.md +++ b/kubernetes/docs/V1NetworkPolicy.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1NetworkPolicySpec**](V1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NetworkPolicySpec**](V1NetworkPolicySpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetworkPolicyList.md b/kubernetes/docs/V1NetworkPolicyList.md index d9d911608b..b49438c74c 100644 --- a/kubernetes/docs/V1NetworkPolicyList.md +++ b/kubernetes/docs/V1NetworkPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1NetworkPolicy]**](V1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetworkPolicyPeer.md b/kubernetes/docs/V1NetworkPolicyPeer.md index 4aa2cb6c9e..0e9781352e 100644 --- a/kubernetes/docs/V1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1NetworkPolicyPeer.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip_block** | [**V1IPBlock**](V1IPBlock.md) | IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. | [optional] -**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. | [optional] +**ip_block** | [**V1IPBlock**](V1IPBlock.md) | | [optional] +**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetworkPolicyPort.md b/kubernetes/docs/V1NetworkPolicyPort.md index 40de0e7ba4..776b2392cf 100644 --- a/kubernetes/docs/V1NetworkPolicyPort.md +++ b/kubernetes/docs/V1NetworkPolicyPort.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | **object** | The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. | [optional] +**port** | [**object**](.md) | The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. | [optional] **protocol** | **str** | The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index b9763b01a7..6f79ffb67f 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **egress** | [**list[V1NetworkPolicyEgressRule]**](V1NetworkPolicyEgressRule.md) | List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 | [optional] **ingress** | [**list[V1NetworkPolicyIngressRule]**](V1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | +**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **policy_types** | **list[str]** | List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Node.md b/kubernetes/docs/V1Node.md index a19108eff3..63161db1b3 100644 --- a/kubernetes/docs/V1Node.md +++ b/kubernetes/docs/V1Node.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NodeSpec**](V1NodeSpec.md) | Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NodeStatus**](V1NodeStatus.md) | Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NodeSpec**](V1NodeSpec.md) | | [optional] +**status** | [**V1NodeStatus**](V1NodeStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md index 71f35d0b82..4227e26f07 100644 --- a/kubernetes/docs/V1NodeAffinity.md +++ b/kubernetes/docs/V1NodeAffinity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferred_during_scheduling_ignored_during_execution** | [**list[V1PreferredSchedulingTerm]**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] -**required_during_scheduling_ignored_during_execution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] +**required_during_scheduling_ignored_during_execution** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeConfigSource.md b/kubernetes/docs/V1NodeConfigSource.md index 967d90840b..d41324fb35 100644 --- a/kubernetes/docs/V1NodeConfigSource.md +++ b/kubernetes/docs/V1NodeConfigSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_map** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | ConfigMap is a reference to a Node's ConfigMap | [optional] +**config_map** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeConfigStatus.md b/kubernetes/docs/V1NodeConfigStatus.md index bb37c87c21..d5914b741d 100644 --- a/kubernetes/docs/V1NodeConfigStatus.md +++ b/kubernetes/docs/V1NodeConfigStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. | [optional] -**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. | [optional] +**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] +**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] **error** | **str** | Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. | [optional] -**last_known_good** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. | [optional] +**last_known_good** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeDaemonEndpoints.md b/kubernetes/docs/V1NodeDaemonEndpoints.md index 5c04aaa84a..9a3fb7744a 100644 --- a/kubernetes/docs/V1NodeDaemonEndpoints.md +++ b/kubernetes/docs/V1NodeDaemonEndpoints.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**kubelet_endpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | Endpoint on which Kubelet is listening. | [optional] +**kubelet_endpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index 452413b066..16491da300 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Node]**](V1Node.md) | List of nodes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index d11cf66f08..e3ddc073a4 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_source** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field | [optional] +**config_source** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] **external_id** | **str** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] **pod_cidr** | **str** | PodCIDR represents the pod IP range assigned to the node. | [optional] **provider_id** | **str** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index 7f9c6a41d7..f235b3c717 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **allocatable** | **dict(str, str)** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] **capacity** | **dict(str, str)** | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] **conditions** | [**list[V1NodeCondition]**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] -**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | Status of the config assigned to the node via the dynamic Kubelet config feature. | [optional] -**daemon_endpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | Endpoints of daemons running on the Node. | [optional] +**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | | [optional] +**daemon_endpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | | [optional] **images** | [**list[V1ContainerImage]**](V1ContainerImage.md) | List of container images on this node | [optional] -**node_info** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info | [optional] +**node_info** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | | [optional] **phase** | **str** | NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. | [optional] **volumes_attached** | [**list[V1AttachedVolume]**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] **volumes_in_use** | **list[str]** | List of attachable volumes in use (mounted) by the node. | [optional] diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index c25fd6c216..d02245cf93 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the kubernetes.client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the kubernetes.client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**initializers** | [**V1Initializers**](V1Initializers.md) | An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from kubernetes.clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15. | [optional] +**initializers** | [**V1Initializers**](V1Initializers.md) | | [optional] **labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managed_fields** | [**list[V1ManagedFieldsEntry]**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. | [optional] **name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a kubernetes.client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] diff --git a/kubernetes/docs/V1PersistentVolume.md b/kubernetes/docs/V1PersistentVolume.md index eb8a3bd0f1..d019da2e55 100644 --- a/kubernetes/docs/V1PersistentVolume.md +++ b/kubernetes/docs/V1PersistentVolume.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes | [optional] -**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] +**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeClaim.md b/kubernetes/docs/V1PersistentVolumeClaim.md index 4e3345feae..a03abeff49 100644 --- a/kubernetes/docs/V1PersistentVolumeClaim.md +++ b/kubernetes/docs/V1PersistentVolumeClaim.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | [optional] +**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index bcfb872456..daf75cf40b 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 74fc786038..89d7f86ad6 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**data_source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**data_source** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] **volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index 529a2ba713..ca49d91e0a 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PersistentVolume]**](V1PersistentVolume.md) | List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index 2ea79b5174..125d1cdf98 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -4,35 +4,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes | [optional] -**aws_elastic_block_store** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] -**azure_disk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azure_file** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] +**aws_elastic_block_store** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] +**azure_disk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] +**azure_file** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | | [optional] **capacity** | **dict(str, str)** | A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] -**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**claim_ref** | [**V1ObjectReference**](V1ObjectReference.md) | ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding | [optional] -**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | CSI represents storage that is handled by an external CSI driver (Beta feature). | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flex_volume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running | [optional] -**gce_persistent_disk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] -**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**host_path** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. | [optional] -**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | Local represents directly-attached storage with node affinity | [optional] +**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | | [optional] +**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | | [optional] +**claim_ref** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] +**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | | [optional] +**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] +**flex_volume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | | [optional] +**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] +**gce_persistent_disk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] +**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | | [optional] +**host_path** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] +**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | | [optional] +**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | | [optional] **mount_options** | **list[str]** | A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options | [optional] -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] -**node_affinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. | [optional] +**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] +**node_affinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | | [optional] **persistent_volume_reclaim_policy** | **str** | What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming | [optional] -**photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scale_io** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] +**photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] +**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] +**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] +**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | | [optional] +**scale_io** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] **storage_class_name** | **str** | Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] -**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md | [optional] +**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] **volume_mode** | **str** | volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. | [optional] -**vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] +**vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Pod.md b/kubernetes/docs/V1Pod.md index 5a639daf9c..d9ec329a03 100644 --- a/kubernetes/docs/V1Pod.md +++ b/kubernetes/docs/V1Pod.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1PodStatus**](V1PodStatus.md) | Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] +**status** | [**V1PodStatus**](V1PodStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index 100df31462..a4aa00ee14 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**label_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index 9eca4c3c8f..43c5d30f54 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Pod]**](V1Pod.md) | List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 5d51dc4646..5ff9ea0306 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -7,9 +7,10 @@ Name | Type | Description | Notes **run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] **run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] -**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] **supplemental_groups** | **list[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. | [optional] **sysctls** | [**list[V1Sysctl]**](V1Sysctl.md) | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. | [optional] +**windows_options** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 6e5f9987e8..83a4b308cb 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active_deadline_seconds** | **int** | Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. | [optional] -**affinity** | [**V1Affinity**](V1Affinity.md) | If specified, the pod's scheduling constraints | [optional] +**affinity** | [**V1Affinity**](V1Affinity.md) | | [optional] **automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] **containers** | [**list[V1Container]**](V1Container.md) | List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. | -**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] +**dns_config** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | | [optional] **dns_policy** | **str** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enable_service_links** | **bool** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] **host_aliases** | [**list[V1HostAlias]**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] @@ -19,13 +19,14 @@ Name | Type | Description | Notes **init_containers** | [**list[V1Container]**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] **node_name** | **str** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] **node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] +**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_gates** | [**list[V1PodReadinessGate]**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md | [optional] **restart_policy** | **str** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy | [optional] -**runtime_class_name** | **str** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future. | [optional] +**runtime_class_name** | **str** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. | [optional] **scheduler_name** | **str** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] -**security_context** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. | [optional] +**security_context** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] **service_account** | **str** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **service_account_name** | **str** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] **share_process_namespace** | **bool** | Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. | [optional] diff --git a/kubernetes/docs/V1PodTemplate.md b/kubernetes/docs/V1PodTemplate.md index 56bd7aa2a3..d0f4ad8efc 100644 --- a/kubernetes/docs/V1PodTemplate.md +++ b/kubernetes/docs/V1PodTemplate.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index 4db3807a28..6dabfa1cb1 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PodTemplate]**](V1PodTemplate.md) | List of pod templates | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PodTemplateSpec.md b/kubernetes/docs/V1PodTemplateSpec.md index 8608da1ad6..8c730213fe 100644 --- a/kubernetes/docs/V1PodTemplateSpec.md +++ b/kubernetes/docs/V1PodTemplateSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md index 92f5b35984..0a3773e408 100644 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ b/kubernetes/docs/V1PreferredSchedulingTerm.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | +**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | | **weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PriorityClass.md b/kubernetes/docs/V1PriorityClass.md index 56885f3bdd..658f1e54bd 100644 --- a/kubernetes/docs/V1PriorityClass.md +++ b/kubernetes/docs/V1PriorityClass.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **description** | **str** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **global_default** | **bool** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **int** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PriorityClassList.md b/kubernetes/docs/V1PriorityClassList.md index 8f2489274c..528fdb6a32 100644 --- a/kubernetes/docs/V1PriorityClassList.md +++ b/kubernetes/docs/V1PriorityClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1PriorityClass]**](V1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Probe.md b/kubernetes/docs/V1Probe.md index c528e8f61d..4e21fc78a3 100644 --- a/kubernetes/docs/V1Probe.md +++ b/kubernetes/docs/V1Probe.md @@ -3,13 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] +**_exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] **failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] -**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] +**http_get** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] **initial_delay_seconds** | **int** | Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] **success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] -**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**tcp_socket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] **timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RBDPersistentVolumeSource.md b/kubernetes/docs/V1RBDPersistentVolumeSource.md index 2e20f4b5bf..cae32ec059 100644 --- a/kubernetes/docs/V1RBDPersistentVolumeSource.md +++ b/kubernetes/docs/V1RBDPersistentVolumeSource.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **monitors** | **list[str]** | A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | **pool** | **str** | The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **user** | **str** | The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RBDVolumeSource.md b/kubernetes/docs/V1RBDVolumeSource.md index 7aff0a30fa..e05aab9951 100644 --- a/kubernetes/docs/V1RBDVolumeSource.md +++ b/kubernetes/docs/V1RBDVolumeSource.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **monitors** | **list[str]** | A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | **pool** | **str** | The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] **read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **user** | **str** | The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index 5b1197d1c7..ff53ae0294 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] +**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 98d13f3f0e..4dc6e09174 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ReplicaSet]**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 3ed31551dc..6ac6f59cd7 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicationController.md b/kubernetes/docs/V1ReplicationController.md index 9e01efdf6b..8afe19f7e2 100644 --- a/kubernetes/docs/V1ReplicationController.md +++ b/kubernetes/docs/V1ReplicationController.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | | [optional] +**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 73821e0071..662c4f4356 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ReplicationController]**](V1ReplicationController.md) | List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicationControllerSpec.md b/kubernetes/docs/V1ReplicationControllerSpec.md index 6fc46a1fb2..0969ecf2a7 100644 --- a/kubernetes/docs/V1ReplicationControllerSpec.md +++ b/kubernetes/docs/V1ReplicationControllerSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | [optional] **selector** | **dict(str, str)** | Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuota.md b/kubernetes/docs/V1ResourceQuota.md index 5ffac0c83b..76b31bff15 100644 --- a/kubernetes/docs/V1ResourceQuota.md +++ b/kubernetes/docs/V1ResourceQuota.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | | [optional] +**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index af4bf939d5..1f9c1efefa 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ResourceQuota]**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md index 41c0fb8b21..ab3bdfaff2 100644 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ b/kubernetes/docs/V1ResourceQuotaSpec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hard** | **dict(str, str)** | hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] -**scope_selector** | [**V1ScopeSelector**](V1ScopeSelector.md) | scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. | [optional] +**scope_selector** | [**V1ScopeSelector**](V1ScopeSelector.md) | | [optional] **scopes** | **list[str]** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index 8dd7b42190..280742c4ae 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1PolicyRule]**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index 1d361d8840..da904e4e13 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1RoleRef**](V1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1RoleRef**](V1RoleRef.md) | | **subjects** | [**list[V1Subject]**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RoleBindingList.md b/kubernetes/docs/V1RoleBindingList.md index 19672426b6..d549533ec9 100644 --- a/kubernetes/docs/V1RoleBindingList.md +++ b/kubernetes/docs/V1RoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1RoleBinding]**](V1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RoleList.md b/kubernetes/docs/V1RoleList.md index e079d2e2ba..a21b5085da 100644 --- a/kubernetes/docs/V1RoleList.md +++ b/kubernetes/docs/V1RoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Role]**](V1Role.md) | Items is a list of Roles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RollingUpdateDaemonSet.md b/kubernetes/docs/V1RollingUpdateDaemonSet.md index 5c7cdc7f4f..5b77ac55ab 100644 --- a/kubernetes/docs/V1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1RollingUpdateDaemonSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **object** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1RollingUpdateDeployment.md b/kubernetes/docs/V1RollingUpdateDeployment.md index 3ae18e0b5b..16035e17b3 100644 --- a/kubernetes/docs/V1RollingUpdateDeployment.md +++ b/kubernetes/docs/V1RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | **object** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**max_unavailable** | **object** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**max_surge** | [**object**](.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Scale.md b/kubernetes/docs/V1Scale.md index e821777ddb..663fb27d22 100644 --- a/kubernetes/docs/V1Scale.md +++ b/kubernetes/docs/V1Scale.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | | [optional] +**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md index 6ba2701fc6..9fda6c9884 100644 --- a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **gateway** | **str** | The host address of the ScaleIO API Gateway. | **protection_domain** | **str** | The name of the ScaleIO Protection Domain for the configured storage. | [optional] **read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | +**secret_ref** | [**V1SecretReference**](V1SecretReference.md) | | **ssl_enabled** | **bool** | Flag to enable/disable SSL communication with Gateway, default false | [optional] **storage_mode** | **str** | Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] **storage_pool** | **str** | The ScaleIO Storage Pool associated with the protection domain. | [optional] diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md index f307ccd690..3f2aae7e5d 100644 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOVolumeSource.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **gateway** | **str** | The host address of the ScaleIO API Gateway. | **protection_domain** | **str** | The name of the ScaleIO Protection Domain for the configured storage. | [optional] **read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | **ssl_enabled** | **bool** | Flag to enable/disable SSL communication with Gateway, default false | [optional] **storage_mode** | **str** | Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] **storage_pool** | **str** | The ScaleIO Storage Pool associated with the protection domain. | [optional] diff --git a/kubernetes/docs/V1Secret.md b/kubernetes/docs/V1Secret.md index bc24da9b2a..c97fbdf153 100644 --- a/kubernetes/docs/V1Secret.md +++ b/kubernetes/docs/V1Secret.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **data** | **dict(str, str)** | Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **string_data** | **dict(str, str)** | stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. | [optional] **type** | **str** | Used to facilitate programmatic handling of secret data. | [optional] diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index ae32622b97..2bd3dc54ee 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **str** | The key of the secret to select from. Must be a valid secret key. | **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **bool** | Specify whether the Secret or it's key must be defined | [optional] +**optional** | **bool** | Specify whether the Secret or its key must be defined | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index b1a9b44ca7..b1dc3c74b5 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Secret]**](V1Secret.md) | Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 4502278ffa..704afcb260 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **default_mode** | **int** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **items** | [**list[V1KeyToPath]**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**optional** | **bool** | Specify whether the Secret or it's keys must be defined | [optional] +**optional** | **bool** | Specify whether the Secret or its keys must be defined | [optional] **secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 969a8aa77c..0f8cfff2f3 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -4,14 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_privilege_escalation** | **bool** | AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN | [optional] -**capabilities** | [**V1Capabilities**](V1Capabilities.md) | The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. | [optional] +**capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] **privileged** | **bool** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. | [optional] **proc_mount** | **str** | procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. | [optional] **read_only_root_filesystem** | **bool** | Whether this container has a read-only root filesystem. Default is false. | [optional] **run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] +**se_linux_options** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] +**windows_options** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md index 2a7e893ab1..ff836a3f8e 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1SelfSubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md index 886bd7c110..1553893ac5 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] +**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SelfSubjectRulesReview.md b/kubernetes/docs/V1SelfSubjectRulesReview.md index 1d5d313b71..12033877b0 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1SelfSubjectRulesReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | Spec holds information about the request being evaluated. | -**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | Status is filled in by the server and indicates the set of actions a user can perform. | [optional] +**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | | +**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Service.md b/kubernetes/docs/V1Service.md index 98656d87af..9101809f0d 100644 --- a/kubernetes/docs/V1Service.md +++ b/kubernetes/docs/V1Service.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | | [optional] +**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index 514e009bf8..556cb21880 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **automount_service_account_token** | **bool** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] **image_pull_secrets** | [**list[V1LocalObjectReference]**](V1LocalObjectReference.md) | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **secrets** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index 7d7234f392..ebab229387 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1ServiceAccount]**](V1ServiceAccount.md) | List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index a3616f9191..8896200c24 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1Service]**](V1Service.md) | List of services | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index 9a3dc56045..6955d9a735 100644 --- a/kubernetes/docs/V1ServicePort.md +++ b/kubernetes/docs/V1ServicePort.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **node_port** | **int** | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport | [optional] **port** | **int** | The port that will be exposed by this service. | **protocol** | **str** | The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. | [optional] -**target_port** | **object** | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service | [optional] +**target_port** | [**object**](.md) | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceReference.md b/kubernetes/docs/V1ServiceReference.md index 2da0cd9f8e..e22142a360 100644 --- a/kubernetes/docs/V1ServiceReference.md +++ b/kubernetes/docs/V1ServiceReference.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name is the name of the service | [optional] **namespace** | **str** | Namespace is the namespace of the service | [optional] +**port** | **int** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index 87d37a43b6..284717e458 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **publish_not_ready_addresses** | **bool** | publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. | [optional] **selector** | **dict(str, str)** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ | [optional] **session_affinity** | **str** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable kubernetes.client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] -**session_affinity_config** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | sessionAffinityConfig contains the configurations of session affinity. | [optional] +**session_affinity_config** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | | [optional] **type** | **str** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServiceStatus.md b/kubernetes/docs/V1ServiceStatus.md index 7db4237641..c35ba71fcb 100644 --- a/kubernetes/docs/V1ServiceStatus.md +++ b/kubernetes/docs/V1ServiceStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer, if one is present. | [optional] +**load_balancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SessionAffinityConfig.md b/kubernetes/docs/V1SessionAffinityConfig.md index d361baa954..21595886e8 100644 --- a/kubernetes/docs/V1SessionAffinityConfig.md +++ b/kubernetes/docs/V1SessionAffinityConfig.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**kubernetes.client_ip** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | kubernetes.clientIP contains the configurations of Client IP based session affinity. | [optional] +**kubernetes.client_ip** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index 0eaea1ec8f..c08c9a6a22 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] +**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index 628f90fcc0..7203e2af81 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes **pod_management_policy** | **str** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **int** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revision_history_limit** | **int** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **service_name** | **str** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**update_strategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**update_strategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] **volume_claim_templates** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1StatefulSetUpdateStrategy.md index 8747243580..c9432dc617 100644 --- a/kubernetes/docs/V1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1StatefulSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rolling_update** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **str** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md index 31d948de89..2199da2b73 100644 --- a/kubernetes/docs/V1Status.md +++ b/kubernetes/docs/V1Status.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **code** | **int** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] +**details** | [**V1StatusDetails**](V1StatusDetails.md) | | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **message** | **str** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] **reason** | **str** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] **status** | **str** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md index f7be0fd934..7ed4b3a39a 100644 --- a/kubernetes/docs/V1StorageClass.md +++ b/kubernetes/docs/V1StorageClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **allowed_topologies** | [**list[V1TopologySelectorTerm]**](V1TopologySelectorTerm.md) | Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **mount_options** | **list[str]** | Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. | [optional] **parameters** | **dict(str, str)** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] **provisioner** | **str** | Provisioner indicates the type of the provisioner. | diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md index 9031cfb046..ff9fe6df7f 100644 --- a/kubernetes/docs/V1StorageClassList.md +++ b/kubernetes/docs/V1StorageClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1StorageClass]**](V1StorageClass.md) | Items is the list of StorageClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md index 9fc192df2b..6b2c9a147a 100644 --- a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md +++ b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] **read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1ObjectReference**](V1ObjectReference.md) | SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. | [optional] +**secret_ref** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **volume_name** | **str** | VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] **volume_namespace** | **str** | VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. | [optional] diff --git a/kubernetes/docs/V1StorageOSVolumeSource.md b/kubernetes/docs/V1StorageOSVolumeSource.md index 36f8a27828..66a6ce694d 100644 --- a/kubernetes/docs/V1StorageOSVolumeSource.md +++ b/kubernetes/docs/V1StorageOSVolumeSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] **read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. | [optional] +**secret_ref** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **volume_name** | **str** | VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] **volume_namespace** | **str** | VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. | [optional] diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md index 7ae45ec56f..030861fb00 100644 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md index a5eda49117..df9a7f5084 100644 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | **dict(str, list[str])** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] **groups** | **list[str]** | Groups is the groups you're testing for. | [optional] -**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**non_resource_attributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] +**resource_attributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] **uid** | **str** | UID information about the requesting user. | [optional] **user** | **str** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md index 05349a5fde..cd7f3ca682 100644 --- a/kubernetes/docs/V1TCPSocketAction.md +++ b/kubernetes/docs/V1TCPSocketAction.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **str** | Optional: Host name to connect to, defaults to the pod IP. | [optional] -**port** | **object** | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | [**object**](.md) | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md index 5570e326ea..6a18a55e1e 100644 --- a/kubernetes/docs/V1TokenReview.md +++ b/kubernetes/docs/V1TokenReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] +**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | | +**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md index 1da203b650..b468c5822a 100644 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **audiences** | **list[str]** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A kubernetes.client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] **authenticated** | **bool** | Authenticated indicates that the token was associated with a known user. | [optional] **error** | **str** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1UserInfo**](V1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] +**user** | [**V1UserInfo**](V1UserInfo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 9b95caa51b..470464304e 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -3,35 +3,35 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aws_elastic_block_store** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] -**azure_disk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azure_file** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] -**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMap represents a configMap that should populate this volume | [optional] -**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). | [optional] -**downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] -**empty_dir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flex_volume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running | [optional] -**gce_persistent_disk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] -**git_repo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. | [optional] -**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**host_path** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md | [optional] +**aws_elastic_block_store** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] +**azure_disk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] +**azure_file** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | | [optional] +**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | | [optional] +**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | | [optional] +**config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | | [optional] +**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | | [optional] +**downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | | [optional] +**empty_dir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | | [optional] +**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] +**flex_volume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | | [optional] +**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] +**gce_persistent_disk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] +**git_repo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | | [optional] +**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | | [optional] +**host_path** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] +**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | | [optional] **name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] -**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | Items for all in one resources secrets, configmaps, and downward API | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] -**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] -**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. | [optional] -**vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] +**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] +**persistent_volume_claim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | | [optional] +**photon_persistent_disk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] +**portworx_volume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] +**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | | [optional] +**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] +**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | | [optional] +**scale_io** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | | [optional] +**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | | [optional] +**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | | [optional] +**vsphere_volume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeAttachment.md b/kubernetes/docs/V1VolumeAttachment.md index acb753886f..b3c42609c0 100644 --- a/kubernetes/docs/V1VolumeAttachment.md +++ b/kubernetes/docs/V1VolumeAttachment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | | +**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeAttachmentList.md b/kubernetes/docs/V1VolumeAttachmentList.md index 1ed9a97adb..05ca28a44f 100644 --- a/kubernetes/docs/V1VolumeAttachmentList.md +++ b/kubernetes/docs/V1VolumeAttachmentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1VolumeAttachment]**](V1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeAttachmentSource.md b/kubernetes/docs/V1VolumeAttachmentSource.md index 2fa01b0003..58645a4d54 100644 --- a/kubernetes/docs/V1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1VolumeAttachmentSource.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inline_volume_spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistent_volume_name** | **str** | Name of the persistent volume to attach. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeAttachmentSpec.md b/kubernetes/docs/V1VolumeAttachmentSpec.md index ca712d9a91..adac5f7ae3 100644 --- a/kubernetes/docs/V1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1VolumeAttachmentSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **str** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **node_name** | **str** | The node that the volume should be attached to. | -**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeAttachmentStatus.md b/kubernetes/docs/V1VolumeAttachmentStatus.md index 1f223e188c..b6be3e335c 100644 --- a/kubernetes/docs/V1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1VolumeAttachmentStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attach_error** | [**V1VolumeError**](V1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attach_error** | [**V1VolumeError**](V1VolumeError.md) | | [optional] **attached** | **bool** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachment_metadata** | **dict(str, str)** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detach_error** | [**V1VolumeError**](V1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detach_error** | [**V1VolumeError**](V1VolumeError.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index 7a34b37d5f..f79853cea9 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **str** | This must match the Name of a Volume. | **read_only** | **bool** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] **sub_path** | **str** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] -**sub_path_expr** | **str** | Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. | [optional] +**sub_path_expr** | **str** | Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeNodeAffinity.md b/kubernetes/docs/V1VolumeNodeAffinity.md index b46118e7f7..391990fdbe 100644 --- a/kubernetes/docs/V1VolumeNodeAffinity.md +++ b/kubernetes/docs/V1VolumeNodeAffinity.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**required** | [**V1NodeSelector**](V1NodeSelector.md) | Required specifies hard node constraints that must be met. | [optional] +**required** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index def8aaea95..8f2b485360 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_map** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | information about the configMap data to project | [optional] -**downward_api** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | information about the downwardAPI data to project | [optional] -**secret** | [**V1SecretProjection**](V1SecretProjection.md) | information about the secret data to project | [optional] -**service_account_token** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | information about the serviceAccountToken data to project | [optional] +**config_map** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] +**downward_api** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] +**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] +**service_account_token** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md index 33f02c744b..5342285a8d 100644 --- a/kubernetes/docs/V1WatchEvent.md +++ b/kubernetes/docs/V1WatchEvent.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | +**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | **type** | **str** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md index 9d92fe5533..93c6b25107 100644 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ b/kubernetes/docs/V1WeightedPodAffinityTerm.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | +**pod_affinity_term** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | | **weight** | **int** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1WindowsSecurityContextOptions.md b/kubernetes/docs/V1WindowsSecurityContextOptions.md new file mode 100644 index 0000000000..55b2b1e1a5 --- /dev/null +++ b/kubernetes/docs/V1WindowsSecurityContextOptions.md @@ -0,0 +1,11 @@ +# V1WindowsSecurityContextOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gmsa_credential_spec** | **str** | GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. | [optional] +**gmsa_credential_spec_name** | **str** | GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1alpha1AuditSink.md b/kubernetes/docs/V1alpha1AuditSink.md index b6bb889d16..9a3af79dcd 100644 --- a/kubernetes/docs/V1alpha1AuditSink.md +++ b/kubernetes/docs/V1alpha1AuditSink.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1AuditSinkSpec**](V1alpha1AuditSinkSpec.md) | Spec defines the audit configuration spec | [optional] +**spec** | [**V1alpha1AuditSinkSpec**](V1alpha1AuditSinkSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1AuditSinkSpec.md b/kubernetes/docs/V1alpha1AuditSinkSpec.md index 81644f0f17..412b27278a 100644 --- a/kubernetes/docs/V1alpha1AuditSinkSpec.md +++ b/kubernetes/docs/V1alpha1AuditSinkSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**policy** | [**V1alpha1Policy**](V1alpha1Policy.md) | Policy defines the policy for selecting which events should be sent to the webhook required | -**webhook** | [**V1alpha1Webhook**](V1alpha1Webhook.md) | Webhook to send events required | +**policy** | [**V1alpha1Policy**](V1alpha1Policy.md) | | +**webhook** | [**V1alpha1Webhook**](V1alpha1Webhook.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ClusterRole.md b/kubernetes/docs/V1alpha1ClusterRole.md index 16ac077a6b..d95784fbd5 100644 --- a/kubernetes/docs/V1alpha1ClusterRole.md +++ b/kubernetes/docs/V1alpha1ClusterRole.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregation_rule** | [**V1alpha1AggregationRule**](V1alpha1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregation_rule** | [**V1alpha1AggregationRule**](V1alpha1AggregationRule.md) | | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ClusterRoleBinding.md b/kubernetes/docs/V1alpha1ClusterRoleBinding.md index 62ee8a942e..2d0f104f73 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBinding.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | | **subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md index e6e301f9a5..acb6dc4903 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1ClusterRoleBinding]**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md index 1cf6f4e6e1..b4bac52a77 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1ClusterRole]**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md index c9f55467c3..13d373f5b1 100644 --- a/kubernetes/docs/V1alpha1PodPresetList.md +++ b/kubernetes/docs/V1alpha1PodPresetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1PodPreset]**](V1alpha1PodPreset.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md index 3cb473b35b..4307807874 100644 --- a/kubernetes/docs/V1alpha1PodPresetSpec.md +++ b/kubernetes/docs/V1alpha1PodPresetSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **env** | [**list[V1EnvVar]**](V1EnvVar.md) | Env defines the collection of EnvVar to inject into containers. | [optional] **env_from** | [**list[V1EnvFromSource]**](V1EnvFromSource.md) | EnvFrom defines the collection of EnvFromSource to inject into containers. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of resources, in this case pods. Required. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **volume_mounts** | [**list[V1VolumeMount]**](V1VolumeMount.md) | VolumeMounts defines the collection of VolumeMount to inject into containers. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | Volumes defines the collection of Volume to inject into the pod. | [optional] diff --git a/kubernetes/docs/V1alpha1PriorityClass.md b/kubernetes/docs/V1alpha1PriorityClass.md index e0d83400eb..d64f2ae88d 100644 --- a/kubernetes/docs/V1alpha1PriorityClass.md +++ b/kubernetes/docs/V1alpha1PriorityClass.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **description** | **str** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **global_default** | **bool** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **int** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1PriorityClassList.md b/kubernetes/docs/V1alpha1PriorityClassList.md index a86775c3e2..5832bda336 100644 --- a/kubernetes/docs/V1alpha1PriorityClassList.md +++ b/kubernetes/docs/V1alpha1PriorityClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1PriorityClass]**](V1alpha1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1Role.md b/kubernetes/docs/V1alpha1Role.md index 1f334f3223..195a8450e0 100644 --- a/kubernetes/docs/V1alpha1Role.md +++ b/kubernetes/docs/V1alpha1Role.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1alpha1PolicyRule]**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1RoleBinding.md b/kubernetes/docs/V1alpha1RoleBinding.md index 9757c6a905..b8a4714948 100644 --- a/kubernetes/docs/V1alpha1RoleBinding.md +++ b/kubernetes/docs/V1alpha1RoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | | **subjects** | [**list[V1alpha1Subject]**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md index 35c135422a..69c3a1a0df 100644 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ b/kubernetes/docs/V1alpha1RoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1RoleBinding]**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md index 0f5f46c667..335a46d275 100644 --- a/kubernetes/docs/V1alpha1RoleList.md +++ b/kubernetes/docs/V1alpha1RoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1Role]**](V1alpha1Role.md) | Items is a list of Roles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1RuntimeClass.md b/kubernetes/docs/V1alpha1RuntimeClass.md index 0b178765bf..c8b66c263c 100644 --- a/kubernetes/docs/V1alpha1RuntimeClass.md +++ b/kubernetes/docs/V1alpha1RuntimeClass.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1alpha1RuntimeClassSpec**](V1alpha1RuntimeClassSpec.md) | Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1RuntimeClassSpec**](V1alpha1RuntimeClassSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1RuntimeClassList.md b/kubernetes/docs/V1alpha1RuntimeClassList.md index 1fbd26b3f6..5b855780d1 100644 --- a/kubernetes/docs/V1alpha1RuntimeClassList.md +++ b/kubernetes/docs/V1alpha1RuntimeClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1RuntimeClass]**](V1alpha1RuntimeClass.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1ServiceReference.md b/kubernetes/docs/V1alpha1ServiceReference.md index 7e90256bee..bac580f4d1 100644 --- a/kubernetes/docs/V1alpha1ServiceReference.md +++ b/kubernetes/docs/V1alpha1ServiceReference.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **name** | **str** | `name` is the name of the service. Required | **namespace** | **str** | `namespace` is the namespace of the service. Required | **path** | **str** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **int** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1VolumeAttachment.md b/kubernetes/docs/V1alpha1VolumeAttachment.md index 5e47ffb65e..8b21880792 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachment.md +++ b/kubernetes/docs/V1alpha1VolumeAttachment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1alpha1VolumeAttachmentSpec**](V1alpha1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1alpha1VolumeAttachmentStatus**](V1alpha1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VolumeAttachmentSpec**](V1alpha1VolumeAttachmentSpec.md) | | +**status** | [**V1alpha1VolumeAttachmentStatus**](V1alpha1VolumeAttachmentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentList.md b/kubernetes/docs/V1alpha1VolumeAttachmentList.md index de1220e52a..ec131a8796 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentList.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1alpha1VolumeAttachment]**](V1alpha1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md index efa7296b1d..2f0ce31d35 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inline_volume_spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistent_volume_name** | **str** | Name of the persistent volume to attach. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md index d677cab279..19faf42707 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **str** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **node_name** | **str** | The node that the volume should be attached to. | -**source** | [**V1alpha1VolumeAttachmentSource**](V1alpha1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1alpha1VolumeAttachmentSource**](V1alpha1VolumeAttachmentSource.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md index 975423f3e0..0ae284ab40 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attach_error** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attach_error** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | | [optional] **attached** | **bool** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachment_metadata** | **dict(str, str)** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detach_error** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detach_error** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1Webhook.md b/kubernetes/docs/V1alpha1Webhook.md index 8ee945a9cd..2d134ea877 100644 --- a/kubernetes/docs/V1alpha1Webhook.md +++ b/kubernetes/docs/V1alpha1Webhook.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**kubernetes.client_config** | [**V1alpha1WebhookClientConfig**](V1alpha1WebhookClientConfig.md) | ClientConfig holds the connection parameters for the webhook required | -**throttle** | [**V1alpha1WebhookThrottleConfig**](V1alpha1WebhookThrottleConfig.md) | Throttle holds the options for throttling the webhook | [optional] +**kubernetes.client_config** | [**V1alpha1WebhookClientConfig**](V1alpha1WebhookClientConfig.md) | | +**throttle** | [**V1alpha1WebhookThrottleConfig**](V1alpha1WebhookThrottleConfig.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1alpha1WebhookClientConfig.md b/kubernetes/docs/V1alpha1WebhookClientConfig.md index 220b385856..9b7941dbd0 100644 --- a/kubernetes/docs/V1alpha1WebhookClientConfig.md +++ b/kubernetes/docs/V1alpha1WebhookClientConfig.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ca_bundle** | **str** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**V1alpha1ServiceReference**](V1alpha1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**V1alpha1ServiceReference**](V1alpha1ServiceReference.md) | | [optional] **url** | **str** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1APIService.md b/kubernetes/docs/V1beta1APIService.md index 69e4545e9e..5581fd9d4e 100644 --- a/kubernetes/docs/V1beta1APIService.md +++ b/kubernetes/docs/V1beta1APIService.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1APIServiceSpec**](V1beta1APIServiceSpec.md) | Spec contains information for locating and communicating with a server | [optional] -**status** | [**V1beta1APIServiceStatus**](V1beta1APIServiceStatus.md) | Status contains derived information about an API server | [optional] +**spec** | [**V1beta1APIServiceSpec**](V1beta1APIServiceSpec.md) | | [optional] +**status** | [**V1beta1APIServiceStatus**](V1beta1APIServiceStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1APIServiceSpec.md b/kubernetes/docs/V1beta1APIServiceSpec.md index 1c979c7ce6..563f8894cb 100644 --- a/kubernetes/docs/V1beta1APIServiceSpec.md +++ b/kubernetes/docs/V1beta1APIServiceSpec.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **group** | **str** | Group is the API group name this server hosts | [optional] **group_priority_minimum** | **int** | GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by kubernetes.clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s | **insecure_skip_tls_verify** | **bool** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] -**service** | [**ApiregistrationV1beta1ServiceReference**](ApiregistrationV1beta1ServiceReference.md) | Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. | +**service** | [**ApiregistrationV1beta1ServiceReference**](ApiregistrationV1beta1ServiceReference.md) | | **version** | **str** | Version is the API version this server hosts. For example, \"v1\" | [optional] **version_priority** | **int** | VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/V1beta1CSIDriver.md b/kubernetes/docs/V1beta1CSIDriver.md index 6ddcbe4c1e..1f15d01729 100644 --- a/kubernetes/docs/V1beta1CSIDriver.md +++ b/kubernetes/docs/V1beta1CSIDriver.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1CSIDriverSpec**](V1beta1CSIDriverSpec.md) | Specification of the CSI Driver. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CSIDriverSpec**](V1beta1CSIDriverSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CSIDriverList.md b/kubernetes/docs/V1beta1CSIDriverList.md index 2bcf89744f..fbf76c8f0b 100644 --- a/kubernetes/docs/V1beta1CSIDriverList.md +++ b/kubernetes/docs/V1beta1CSIDriverList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1CSIDriver]**](V1beta1CSIDriver.md) | items is the list of CSIDriver | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CSINode.md b/kubernetes/docs/V1beta1CSINode.md index c975f3e969..31b4cddaf8 100644 --- a/kubernetes/docs/V1beta1CSINode.md +++ b/kubernetes/docs/V1beta1CSINode.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata.name must be the Kubernetes node name. | [optional] -**spec** | [**V1beta1CSINodeSpec**](V1beta1CSINodeSpec.md) | spec is the specification of CSINode | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CSINodeSpec**](V1beta1CSINodeSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CSINodeList.md b/kubernetes/docs/V1beta1CSINodeList.md index 7f0cc521fa..0760916c8e 100644 --- a/kubernetes/docs/V1beta1CSINodeList.md +++ b/kubernetes/docs/V1beta1CSINodeList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1CSINode]**](V1beta1CSINode.md) | items is the list of CSINode | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md index ade4a9215a..ade1d84ae1 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequest.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] -**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] +**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | | [optional] +**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md index 246db1f4fa..0763fc69be 100644 --- a/kubernetes/docs/V1beta1ClusterRole.md +++ b/kubernetes/docs/V1beta1ClusterRole.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregation_rule** | [**V1beta1AggregationRule**](V1beta1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregation_rule** | [**V1beta1AggregationRule**](V1beta1AggregationRule.md) | | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md index 30fdea8dcc..65e4a2df8b 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBinding.md +++ b/kubernetes/docs/V1beta1ClusterRoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | | **subjects** | [**list[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md index ea13807edd..37f814a38f 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1beta1ClusterRoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ClusterRoleBinding]**](V1beta1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md index 50c0fe5f70..3dcea59408 100644 --- a/kubernetes/docs/V1beta1ClusterRoleList.md +++ b/kubernetes/docs/V1beta1ClusterRoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ClusterRole]**](V1beta1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ControllerRevision.md b/kubernetes/docs/V1beta1ControllerRevision.md index 2034cc7e2f..5209798057 100644 --- a/kubernetes/docs/V1beta1ControllerRevision.md +++ b/kubernetes/docs/V1beta1ControllerRevision.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **int** | Revision indicates the revision of the state represented by Data. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ControllerRevisionList.md b/kubernetes/docs/V1beta1ControllerRevisionList.md index b90737ad4b..ac3744b11b 100644 --- a/kubernetes/docs/V1beta1ControllerRevisionList.md +++ b/kubernetes/docs/V1beta1ControllerRevisionList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ControllerRevision]**](V1beta1ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CronJob.md b/kubernetes/docs/V1beta1CronJob.md index 99fedb9764..3da20b9bf6 100644 --- a/kubernetes/docs/V1beta1CronJob.md +++ b/kubernetes/docs/V1beta1CronJob.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1CronJobSpec**](V1beta1CronJobSpec.md) | Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1CronJobStatus**](V1beta1CronJobStatus.md) | Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CronJobSpec**](V1beta1CronJobSpec.md) | | [optional] +**status** | [**V1beta1CronJobStatus**](V1beta1CronJobStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CronJobList.md b/kubernetes/docs/V1beta1CronJobList.md index 9c932eae83..2862970d21 100644 --- a/kubernetes/docs/V1beta1CronJobList.md +++ b/kubernetes/docs/V1beta1CronJobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1CronJob]**](V1beta1CronJob.md) | items is the list of CronJobs. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CronJobSpec.md b/kubernetes/docs/V1beta1CronJobSpec.md index 35689357ad..2defb44491 100644 --- a/kubernetes/docs/V1beta1CronJobSpec.md +++ b/kubernetes/docs/V1beta1CronJobSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **concurrency_policy** | **str** | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [optional] **failed_jobs_history_limit** | **int** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**job_template** | [**V1beta1JobTemplateSpec**](V1beta1JobTemplateSpec.md) | Specifies the job that will be created when executing a CronJob. | +**job_template** | [**V1beta1JobTemplateSpec**](V1beta1JobTemplateSpec.md) | | **schedule** | **str** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **starting_deadline_seconds** | **int** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] **successful_jobs_history_limit** | **int** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceConversion.md b/kubernetes/docs/V1beta1CustomResourceConversion.md index 783ba21921..df35eada0f 100644 --- a/kubernetes/docs/V1beta1CustomResourceConversion.md +++ b/kubernetes/docs/V1beta1CustomResourceConversion.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conversion_review_versions** | **list[str]** | ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. | [optional] -**strategy** | **str** | `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. | -**webhook_client_config** | [**ApiextensionsV1beta1WebhookClientConfig**](ApiextensionsV1beta1WebhookClientConfig.md) | `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**strategy** | **str** | `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false. | +**webhook_client_config** | [**ApiextensionsV1beta1WebhookClientConfig**](ApiextensionsV1beta1WebhookClientConfig.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CustomResourceDefinition.md b/kubernetes/docs/V1beta1CustomResourceDefinition.md index 5873962ea1..763bf52538 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinition.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CustomResourceDefinitionSpec**](V1beta1CustomResourceDefinitionSpec.md) | Spec describes how the user wants the resources to appear | -**status** | [**V1beta1CustomResourceDefinitionStatus**](V1beta1CustomResourceDefinitionStatus.md) | Status indicates the actual state of the CustomResourceDefinition | [optional] +**spec** | [**V1beta1CustomResourceDefinitionSpec**](V1beta1CustomResourceDefinitionSpec.md) | | +**status** | [**V1beta1CustomResourceDefinitionStatus**](V1beta1CustomResourceDefinitionStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md index a322c8d80e..d2338f1d0d 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **message** | **str** | Human-readable message indicating details about last transition. | [optional] **reason** | **str** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **str** | Status is the status of the condition. Can be True, False, Unknown. | -**type** | **str** | Type is the type of the condition. | +**type** | **str** | Type is the type of the condition. Types include Established, NamesAccepted and Terminating. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md index d01868df6e..acb62e81e8 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md @@ -4,12 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additional_printer_columns** | [**list[V1beta1CustomResourceColumnDefinition]**](V1beta1CustomResourceColumnDefinition.md) | AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. | [optional] -**conversion** | [**V1beta1CustomResourceConversion**](V1beta1CustomResourceConversion.md) | `conversion` defines conversion settings for the CRD. | [optional] +**conversion** | [**V1beta1CustomResourceConversion**](V1beta1CustomResourceConversion.md) | | [optional] **group** | **str** | Group is the group this resource belongs in | -**names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | Names are the names used to describe this custom resource | +**names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | | +**preserve_unknown_fields** | **bool** | preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1. | [optional] **scope** | **str** | Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced | -**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive. | [optional] -**validation** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive. | [optional] +**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | | [optional] +**validation** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | | [optional] **version** | **str** | Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. | [optional] **versions** | [**list[V1beta1CustomResourceDefinitionVersion]**](V1beta1CustomResourceDefinitionVersion.md) | Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md index f6b242c89e..f911ee3a19 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accepted_names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. | +**accepted_names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | | **conditions** | [**list[V1beta1CustomResourceDefinitionCondition]**](V1beta1CustomResourceDefinitionCondition.md) | Conditions indicate state for particular aspects of a CustomResourceDefinition | **stored_versions** | **list[str]** | StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. | diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md index 05c7290dfb..feeb4f6fb6 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additional_printer_columns** | [**list[V1beta1CustomResourceColumnDefinition]**](V1beta1CustomResourceColumnDefinition.md) | AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null | [optional] **name** | **str** | Name is the version name, e.g. “v1”, “v2beta1”, etc. | -**schema** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**schema** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | | [optional] **served** | **bool** | Served is a flag enabling/disabling this version from being served via REST APIs | **storage** | **bool** | Storage flags the version as storage version. There must be exactly one flagged as storage version. | -**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md index c8f74e7290..6e329bfc30 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**label_selector_path** | **str** | LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. | [optional] +**label_selector_path** | **str** | LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. | [optional] **spec_replicas_path** | **str** | SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. | **status_replicas_path** | **str** | StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. | diff --git a/kubernetes/docs/V1beta1CustomResourceSubresources.md b/kubernetes/docs/V1beta1CustomResourceSubresources.md index 2204d82324..5743ec0413 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresources.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresources.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**scale** | [**V1beta1CustomResourceSubresourceScale**](V1beta1CustomResourceSubresourceScale.md) | Scale denotes the scale subresource for CustomResources | [optional] -**status** | **object** | Status denotes the status subresource for CustomResources | [optional] +**scale** | [**V1beta1CustomResourceSubresourceScale**](V1beta1CustomResourceSubresourceScale.md) | | [optional] +**status** | [**object**](.md) | Status denotes the status subresource for CustomResources | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1CustomResourceValidation.md b/kubernetes/docs/V1beta1CustomResourceValidation.md index d2a8d12835..c3c6d32244 100644 --- a/kubernetes/docs/V1beta1CustomResourceValidation.md +++ b/kubernetes/docs/V1beta1CustomResourceValidation.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**open_apiv3_schema** | [**V1beta1JSONSchemaProps**](V1beta1JSONSchemaProps.md) | OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. | [optional] +**open_apiv3_schema** | [**V1beta1JSONSchemaProps**](V1beta1JSONSchemaProps.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md index 2d4b7c8d84..8c04df7adf 100644 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ b/kubernetes/docs/V1beta1DaemonSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | | [optional] +**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md index 9918ac1833..8cbc295110 100644 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ b/kubernetes/docs/V1beta1DaemonSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1DaemonSet]**](V1beta1DaemonSet.md) | A list of daemon sets. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md index 0160e5ba47..44c33f3fa8 100644 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ b/kubernetes/docs/V1beta1DaemonSetSpec.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revision_history_limit** | **int** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **template_generation** | **int** | DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. | [optional] -**update_strategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**update_strategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md index de6a768309..b031a63712 100644 --- a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rolling_update** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | | [optional] **type** | **str** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Event.md b/kubernetes/docs/V1beta1Event.md index 22ce02a182..aac087b5f3 100644 --- a/kubernetes/docs/V1beta1Event.md +++ b/kubernetes/docs/V1beta1Event.md @@ -8,17 +8,17 @@ Name | Type | Description | Notes **deprecated_count** | **int** | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] **deprecated_first_timestamp** | **datetime** | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] **deprecated_last_timestamp** | **datetime** | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] -**deprecated_source** | [**V1EventSource**](V1EventSource.md) | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] +**deprecated_source** | [**V1EventSource**](V1EventSource.md) | | [optional] **event_time** | **datetime** | Required. Time when this Event was first observed. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **note** | **str** | Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] **reason** | **str** | Why the action was taken. | [optional] -**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. | [optional] +**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] +**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **reporting_controller** | **str** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] **reporting_instance** | **str** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] -**series** | [**V1beta1EventSeries**](V1beta1EventSeries.md) | Data about the Event series this event represents or nil if it's a singleton Event. | [optional] +**series** | [**V1beta1EventSeries**](V1beta1EventSeries.md) | | [optional] **type** | **str** | Type of this event (Normal, Warning), new types could be added in the future. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1EventList.md b/kubernetes/docs/V1beta1EventList.md index 44e90f9920..6878d2eb60 100644 --- a/kubernetes/docs/V1beta1EventList.md +++ b/kubernetes/docs/V1beta1EventList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1Event]**](V1beta1Event.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1EventSeries.md b/kubernetes/docs/V1beta1EventSeries.md index d4b9822ea6..64bca1d9e2 100644 --- a/kubernetes/docs/V1beta1EventSeries.md +++ b/kubernetes/docs/V1beta1EventSeries.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of occurrences in this series up to the last heartbeat time | **last_observed_time** | **datetime** | Time when last Event from the series was seen before last heartbeat. | -**state** | **str** | Information whether this series is ongoing or finished. | +**state** | **str** | Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Eviction.md b/kubernetes/docs/V1beta1Eviction.md index 58d6465761..8298be9808 100644 --- a/kubernetes/docs/V1beta1Eviction.md +++ b/kubernetes/docs/V1beta1Eviction.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | [optional] +**delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md) | | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1JSONSchemaProps.md b/kubernetes/docs/V1beta1JSONSchemaProps.md index 69bf690788..efdb9825d5 100644 --- a/kubernetes/docs/V1beta1JSONSchemaProps.md +++ b/kubernetes/docs/V1beta1JSONSchemaProps.md @@ -5,22 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ref** | **str** | | [optional] **schema** | **str** | | [optional] -**additional_items** | **object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] -**additional_properties** | **object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] +**additional_items** | [**object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] +**additional_properties** | [**object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] **all_of** | [**list[V1beta1JSONSchemaProps]**](V1beta1JSONSchemaProps.md) | | [optional] **any_of** | [**list[V1beta1JSONSchemaProps]**](V1beta1JSONSchemaProps.md) | | [optional] -**default** | **object** | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] +**default** | [**object**](.md) | default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. | [optional] **definitions** | [**dict(str, V1beta1JSONSchemaProps)**](V1beta1JSONSchemaProps.md) | | [optional] **dependencies** | **dict(str, object)** | | [optional] **description** | **str** | | [optional] **enum** | **list[object]** | | [optional] -**example** | **object** | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] +**example** | [**object**](.md) | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] **exclusive_maximum** | **bool** | | [optional] **exclusive_minimum** | **bool** | | [optional] **external_docs** | [**V1beta1ExternalDocumentation**](V1beta1ExternalDocumentation.md) | | [optional] **format** | **str** | | [optional] **id** | **str** | | [optional] -**items** | **object** | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] +**items** | [**object**](.md) | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] **max_items** | **int** | | [optional] **max_length** | **int** | | [optional] **max_properties** | **int** | | [optional] @@ -40,6 +40,9 @@ Name | Type | Description | Notes **title** | **str** | | [optional] **type** | **str** | | [optional] **unique_items** | **bool** | | [optional] +**x_kubernetes_embedded_resource** | **bool** | x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). | [optional] +**x_kubernetes_int_or_string** | **bool** | x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more | [optional] +**x_kubernetes_preserve_unknown_fields** | **bool** | x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1JobTemplateSpec.md b/kubernetes/docs/V1beta1JobTemplateSpec.md index 41976f6084..0ea109e270 100644 --- a/kubernetes/docs/V1beta1JobTemplateSpec.md +++ b/kubernetes/docs/V1beta1JobTemplateSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Lease.md b/kubernetes/docs/V1beta1Lease.md index 51c2e51c28..8f222f6eeb 100644 --- a/kubernetes/docs/V1beta1Lease.md +++ b/kubernetes/docs/V1beta1Lease.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1LeaseSpec**](V1beta1LeaseSpec.md) | Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1LeaseSpec**](V1beta1LeaseSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1LeaseList.md b/kubernetes/docs/V1beta1LeaseList.md index 9711aa56ce..797c2c7892 100644 --- a/kubernetes/docs/V1beta1LeaseList.md +++ b/kubernetes/docs/V1beta1LeaseList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1Lease]**](V1beta1Lease.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md index 3c0250609e..a3cd7cea01 100644 --- a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1MutatingWebhook.md b/kubernetes/docs/V1beta1MutatingWebhook.md new file mode 100644 index 0000000000..73b441e7b4 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingWebhook.md @@ -0,0 +1,20 @@ +# V1beta1MutatingWebhook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admission_review_versions** | **list[str]** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. | [optional] +**kubernetes.client_config** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | | +**failure_policy** | **str** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. | [optional] +**match_policy** | **str** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" | [optional] +**name** | **str** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | +**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**object_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**reinvocation_policy** | **str** | reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". | [optional] +**rules** | [**list[V1beta1RuleWithOperations]**](V1beta1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] +**side_effects** | **str** | SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. | [optional] +**timeout_seconds** | **int** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md index fa28b4c063..3a5a9c749d 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**webhooks** | [**list[V1beta1Webhook]**](V1beta1Webhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**webhooks** | [**list[V1beta1MutatingWebhook]**](V1beta1MutatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md index c375db7382..d384cbf671 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1MutatingWebhookConfiguration]**](V1beta1MutatingWebhookConfiguration.md) | List of MutatingWebhookConfiguration. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicy.md b/kubernetes/docs/V1beta1NetworkPolicy.md index b9acf1863d..1d5b6d6e8b 100644 --- a/kubernetes/docs/V1beta1NetworkPolicy.md +++ b/kubernetes/docs/V1beta1NetworkPolicy.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md index b6eeb18c8f..7cbe1d3467 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ b/kubernetes/docs/V1beta1NetworkPolicyList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1NetworkPolicy]**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md index 49205607be..a4148efe40 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPeer.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip_block** | [**V1beta1IPBlock**](V1beta1IPBlock.md) | IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. | [optional] -**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. | [optional] +**ip_block** | [**V1beta1IPBlock**](V1beta1IPBlock.md) | | [optional] +**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicyPort.md b/kubernetes/docs/V1beta1NetworkPolicyPort.md index 192bc6561d..5a628bb919 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPort.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPort.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | **object** | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] +**port** | [**object**](.md) | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] **protocol** | **str** | Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md index edf9917088..c157c4ff30 100644 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ b/kubernetes/docs/V1beta1NetworkPolicySpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **egress** | [**list[V1beta1NetworkPolicyEgressRule]**](V1beta1NetworkPolicyEgressRule.md) | List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 | [optional] **ingress** | [**list[V1beta1NetworkPolicyIngressRule]**](V1beta1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). | [optional] -**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | +**pod_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **policy_types** | **list[str]** | List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodDisruptionBudget.md b/kubernetes/docs/V1beta1PodDisruptionBudget.md index cbf1bcb079..6530488932 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudget.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudget.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | [optional] -**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | [optional] +**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | | [optional] +**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index ca3d8adbd1..1306345d1b 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **object** | An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] -**min_available** | **object** | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] +**max_unavailable** | [**object**](.md) | An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] +**min_available** | [**object**](.md) | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PriorityClass.md b/kubernetes/docs/V1beta1PriorityClass.md index b15eca3897..419028e3f8 100644 --- a/kubernetes/docs/V1beta1PriorityClass.md +++ b/kubernetes/docs/V1beta1PriorityClass.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **description** | **str** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **global_default** | **bool** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemption_policy** | **str** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **int** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PriorityClassList.md b/kubernetes/docs/V1beta1PriorityClassList.md index 99db273c2e..ee2772b711 100644 --- a/kubernetes/docs/V1beta1PriorityClassList.md +++ b/kubernetes/docs/V1beta1PriorityClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1PriorityClass]**](V1beta1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ReplicaSet.md b/kubernetes/docs/V1beta1ReplicaSet.md index 6abcfcfa00..1164b39524 100644 --- a/kubernetes/docs/V1beta1ReplicaSet.md +++ b/kubernetes/docs/V1beta1ReplicaSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | | [optional] +**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md index 456f56dba9..2c327285de 100644 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ b/kubernetes/docs/V1beta1ReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ReplicaSet]**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md index bff2977b5c..058b007ed4 100644 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta1ReplicaSetSpec.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md index 65ac268920..6dfa2bf623 100644 --- a/kubernetes/docs/V1beta1Role.md +++ b/kubernetes/docs/V1beta1Role.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**list[V1beta1PolicyRule]**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md index 43c18061aa..19e7eb3a88 100644 --- a/kubernetes/docs/V1beta1RoleBinding.md +++ b/kubernetes/docs/V1beta1RoleBinding.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**role_ref** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | | **subjects** | [**list[V1beta1Subject]**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md index 95c2b84545..86839668b6 100644 --- a/kubernetes/docs/V1beta1RoleBindingList.md +++ b/kubernetes/docs/V1beta1RoleBindingList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1RoleBinding]**](V1beta1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md index 0de8621555..c2a661746e 100644 --- a/kubernetes/docs/V1beta1RoleList.md +++ b/kubernetes/docs/V1beta1RoleList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1Role]**](V1beta1Role.md) | Items is a list of Roles | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md index bc6079bd2a..5d5971faff 100644 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **object** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RuntimeClass.md b/kubernetes/docs/V1beta1RuntimeClass.md index c30e91b1ae..a44750c142 100644 --- a/kubernetes/docs/V1beta1RuntimeClass.md +++ b/kubernetes/docs/V1beta1RuntimeClass.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **handler** | **str** | Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1RuntimeClassList.md b/kubernetes/docs/V1beta1RuntimeClassList.md index 1c2759a6be..d15cdc01fe 100644 --- a/kubernetes/docs/V1beta1RuntimeClassList.md +++ b/kubernetes/docs/V1beta1RuntimeClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1RuntimeClass]**](V1beta1RuntimeClass.md) | Items is a list of schema objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md index 22dfcc8a8e..0f2e7e6279 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md index 5d440252c7..8ada5ca73f 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | | [optional] +**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md index a3b7a5c952..afb23ee172 100644 --- a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectRulesReviewSpec**](V1beta1SelfSubjectRulesReviewSpec.md) | Spec holds information about the request being evaluated. | -**status** | [**V1beta1SubjectRulesReviewStatus**](V1beta1SubjectRulesReviewStatus.md) | Status is filled in by the server and indicates the set of actions a user can perform. | [optional] +**spec** | [**V1beta1SelfSubjectRulesReviewSpec**](V1beta1SelfSubjectRulesReviewSpec.md) | | +**status** | [**V1beta1SubjectRulesReviewStatus**](V1beta1SubjectRulesReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StatefulSet.md b/kubernetes/docs/V1beta1StatefulSet.md index 27b5caeacd..cdb52028e4 100644 --- a/kubernetes/docs/V1beta1StatefulSet.md +++ b/kubernetes/docs/V1beta1StatefulSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1StatefulSetSpec**](V1beta1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1beta1StatefulSetStatus**](V1beta1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1beta1StatefulSetSpec**](V1beta1StatefulSetSpec.md) | | [optional] +**status** | [**V1beta1StatefulSetStatus**](V1beta1StatefulSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md index 1a3883c5fa..23865e07a8 100644 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ b/kubernetes/docs/V1beta1StatefulSetSpec.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes **pod_management_policy** | **str** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **int** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revision_history_limit** | **int** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **service_name** | **str** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**update_strategy** | [**V1beta1StatefulSetUpdateStrategy**](V1beta1StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**update_strategy** | [**V1beta1StatefulSetUpdateStrategy**](V1beta1StatefulSetUpdateStrategy.md) | | [optional] **volume_claim_templates** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md index 98653a39f0..147347d822 100644 --- a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta1RollingUpdateStatefulSetStrategy**](V1beta1RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rolling_update** | [**V1beta1RollingUpdateStatefulSetStrategy**](V1beta1RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **str** | Type indicates the type of the StatefulSetUpdateStrategy. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1StorageClass.md b/kubernetes/docs/V1beta1StorageClass.md index 8bd3c7cb18..371b4ab975 100644 --- a/kubernetes/docs/V1beta1StorageClass.md +++ b/kubernetes/docs/V1beta1StorageClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **allowed_topologies** | [**list[V1TopologySelectorTerm]**](V1TopologySelectorTerm.md) | Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **mount_options** | **list[str]** | Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. | [optional] **parameters** | **dict(str, str)** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] **provisioner** | **str** | Provisioner indicates the type of the provisioner. | diff --git a/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md index fc188327f0..0c88c344be 100644 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ b/kubernetes/docs/V1beta1StorageClassList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1StorageClass]**](V1beta1StorageClass.md) | Items is the list of StorageClasses | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1SubjectAccessReview.md b/kubernetes/docs/V1beta1SubjectAccessReview.md index 4434262f32..73984afe20 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SubjectAccessReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md index bef118b91d..af50d1b3bc 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | **dict(str, list[str])** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] **group** | **list[str]** | Groups is the groups you're testing for. | [optional] -**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**non_resource_attributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | | [optional] +**resource_attributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | | [optional] **uid** | **str** | UID information about the requesting user. | [optional] **user** | **str** | User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups | [optional] diff --git a/kubernetes/docs/V1beta1TokenReview.md b/kubernetes/docs/V1beta1TokenReview.md index e55fbb9a18..58d437e0b6 100644 --- a/kubernetes/docs/V1beta1TokenReview.md +++ b/kubernetes/docs/V1beta1TokenReview.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] +**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | | +**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1TokenReviewStatus.md b/kubernetes/docs/V1beta1TokenReviewStatus.md index 2c52cfefa9..c1bcae7846 100644 --- a/kubernetes/docs/V1beta1TokenReviewStatus.md +++ b/kubernetes/docs/V1beta1TokenReviewStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **audiences** | **list[str]** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A kubernetes.client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] **authenticated** | **bool** | Authenticated indicates that the token was associated with a known user. | [optional] **error** | **str** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] +**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1Webhook.md b/kubernetes/docs/V1beta1ValidatingWebhook.md similarity index 65% rename from kubernetes/docs/V1beta1Webhook.md rename to kubernetes/docs/V1beta1ValidatingWebhook.md index c93d8a613b..f7f65f9cc9 100644 --- a/kubernetes/docs/V1beta1Webhook.md +++ b/kubernetes/docs/V1beta1ValidatingWebhook.md @@ -1,13 +1,15 @@ -# V1beta1Webhook +# V1beta1ValidatingWebhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **admission_review_versions** | **list[str]** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. | [optional] -**kubernetes.client_config** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | ClientConfig defines how to communicate with the hook. Required | +**kubernetes.client_config** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | | **failure_policy** | **str** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. | [optional] +**match_policy** | **str** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" | [optional] **name** | **str** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | -**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything. | [optional] +**namespace_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**object_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **rules** | [**list[V1beta1RuleWithOperations]**](V1beta1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] **side_effects** | **str** | SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. | [optional] **timeout_seconds** | **int** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. | [optional] diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md index 5e5c042f98..cd56795e63 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**webhooks** | [**list[V1beta1Webhook]**](V1beta1Webhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**webhooks** | [**list[V1beta1ValidatingWebhook]**](V1beta1ValidatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md index ae85c8fc10..790a1978b5 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1ValidatingWebhookConfiguration]**](V1beta1ValidatingWebhookConfiguration.md) | List of ValidatingWebhookConfiguration. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttachment.md b/kubernetes/docs/V1beta1VolumeAttachment.md index e255715015..52cf05f02c 100644 --- a/kubernetes/docs/V1beta1VolumeAttachment.md +++ b/kubernetes/docs/V1beta1VolumeAttachment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1VolumeAttachmentSpec**](V1beta1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1beta1VolumeAttachmentStatus**](V1beta1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1VolumeAttachmentSpec**](V1beta1VolumeAttachmentSpec.md) | | +**status** | [**V1beta1VolumeAttachmentStatus**](V1beta1VolumeAttachmentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttachmentList.md b/kubernetes/docs/V1beta1VolumeAttachmentList.md index 5fb4bea414..de21ce0897 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentList.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta1VolumeAttachment]**](V1beta1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSource.md b/kubernetes/docs/V1beta1VolumeAttachmentSource.md index b500f77c5b..dfdfd6aa9b 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSource.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inline_volume_spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistent_volume_name** | **str** | Name of the persistent volume to attach. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md index 54435de8c6..c0ae1237ac 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **str** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **node_name** | **str** | The node that the volume should be attached to. | -**source** | [**V1beta1VolumeAttachmentSource**](V1beta1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1beta1VolumeAttachmentSource**](V1beta1VolumeAttachmentSource.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md index 1422bca265..8b6a2c8b6e 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attach_error** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attach_error** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | | [optional] **attached** | **bool** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachment_metadata** | **dict(str, str)** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detach_error** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detach_error** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ControllerRevision.md b/kubernetes/docs/V1beta2ControllerRevision.md index 76b046cedf..d3eed9bdf7 100644 --- a/kubernetes/docs/V1beta2ControllerRevision.md +++ b/kubernetes/docs/V1beta2ControllerRevision.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **int** | Revision indicates the revision of the state represented by Data. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ControllerRevisionList.md b/kubernetes/docs/V1beta2ControllerRevisionList.md index d9d011cce2..73c6187ce8 100644 --- a/kubernetes/docs/V1beta2ControllerRevisionList.md +++ b/kubernetes/docs/V1beta2ControllerRevisionList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta2ControllerRevision]**](V1beta2ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DaemonSet.md b/kubernetes/docs/V1beta2DaemonSet.md index ab511c586c..481118101f 100644 --- a/kubernetes/docs/V1beta2DaemonSet.md +++ b/kubernetes/docs/V1beta2DaemonSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta2DaemonSetSpec**](V1beta2DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta2DaemonSetStatus**](V1beta2DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2DaemonSetSpec**](V1beta2DaemonSetSpec.md) | | [optional] +**status** | [**V1beta2DaemonSetStatus**](V1beta2DaemonSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DaemonSetList.md b/kubernetes/docs/V1beta2DaemonSetList.md index 305ccd6ebf..98df3bc406 100644 --- a/kubernetes/docs/V1beta2DaemonSetList.md +++ b/kubernetes/docs/V1beta2DaemonSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta2DaemonSet]**](V1beta2DaemonSet.md) | A list of daemon sets. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DaemonSetSpec.md b/kubernetes/docs/V1beta2DaemonSetSpec.md index babb8a0926..8332a2fb61 100644 --- a/kubernetes/docs/V1beta2DaemonSetSpec.md +++ b/kubernetes/docs/V1beta2DaemonSetSpec.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revision_history_limit** | **int** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | -**update_strategy** | [**V1beta2DaemonSetUpdateStrategy**](V1beta2DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**update_strategy** | [**V1beta2DaemonSetUpdateStrategy**](V1beta2DaemonSetUpdateStrategy.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md index 4fa9cb8cdb..8e4275f484 100644 --- a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta2RollingUpdateDaemonSet**](V1beta2RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rolling_update** | [**V1beta2RollingUpdateDaemonSet**](V1beta2RollingUpdateDaemonSet.md) | | [optional] **type** | **str** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2Deployment.md b/kubernetes/docs/V1beta2Deployment.md index e9500ea03f..22fdcbe9d2 100644 --- a/kubernetes/docs/V1beta2Deployment.md +++ b/kubernetes/docs/V1beta2Deployment.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**V1beta2DeploymentSpec**](V1beta2DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**V1beta2DeploymentStatus**](V1beta2DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2DeploymentSpec**](V1beta2DeploymentSpec.md) | | [optional] +**status** | [**V1beta2DeploymentStatus**](V1beta2DeploymentStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DeploymentList.md b/kubernetes/docs/V1beta2DeploymentList.md index bbc9028554..e312b0823e 100644 --- a/kubernetes/docs/V1beta2DeploymentList.md +++ b/kubernetes/docs/V1beta2DeploymentList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta2Deployment]**](V1beta2Deployment.md) | Items is the list of Deployments. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DeploymentSpec.md b/kubernetes/docs/V1beta2DeploymentSpec.md index 1362babe19..27210ba33f 100644 --- a/kubernetes/docs/V1beta2DeploymentSpec.md +++ b/kubernetes/docs/V1beta2DeploymentSpec.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes **progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. | -**strategy** | [**V1beta2DeploymentStrategy**](V1beta2DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**strategy** | [**V1beta2DeploymentStrategy**](V1beta2DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2DeploymentStrategy.md b/kubernetes/docs/V1beta2DeploymentStrategy.md index de72db6042..bf38e00dc9 100644 --- a/kubernetes/docs/V1beta2DeploymentStrategy.md +++ b/kubernetes/docs/V1beta2DeploymentStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta2RollingUpdateDeployment**](V1beta2RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rolling_update** | [**V1beta2RollingUpdateDeployment**](V1beta2RollingUpdateDeployment.md) | | [optional] **type** | **str** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ReplicaSet.md b/kubernetes/docs/V1beta2ReplicaSet.md index ef1afe2c2e..0401b58708 100644 --- a/kubernetes/docs/V1beta2ReplicaSet.md +++ b/kubernetes/docs/V1beta2ReplicaSet.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta2ReplicaSetSpec**](V1beta2ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta2ReplicaSetStatus**](V1beta2ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ReplicaSetSpec**](V1beta2ReplicaSetSpec.md) | | [optional] +**status** | [**V1beta2ReplicaSetStatus**](V1beta2ReplicaSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ReplicaSetList.md b/kubernetes/docs/V1beta2ReplicaSetList.md index a0d18d05ac..4ea88aaa8a 100644 --- a/kubernetes/docs/V1beta2ReplicaSetList.md +++ b/kubernetes/docs/V1beta2ReplicaSetList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V1beta2ReplicaSet]**](V1beta2ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2ReplicaSetSpec.md b/kubernetes/docs/V1beta2ReplicaSetSpec.md index 4f8ac363e3..f819d9457c 100644 --- a/kubernetes/docs/V1beta2ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta2ReplicaSetSpec.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **int** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md index 8026c75083..a142303f40 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | **object** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2RollingUpdateDeployment.md b/kubernetes/docs/V1beta2RollingUpdateDeployment.md index b19bdbd788..5b380dc621 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDeployment.md +++ b/kubernetes/docs/V1beta2RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | **object** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**max_unavailable** | **object** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**max_surge** | [**object**](.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] +**max_unavailable** | [**object**](.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2Scale.md b/kubernetes/docs/V1beta2Scale.md index f9c2a7ecd1..a61d1fa8c1 100644 --- a/kubernetes/docs/V1beta2Scale.md +++ b/kubernetes/docs/V1beta2Scale.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. | [optional] -**spec** | [**V1beta2ScaleSpec**](V1beta2ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1beta2ScaleStatus**](V1beta2ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ScaleSpec**](V1beta2ScaleSpec.md) | | [optional] +**status** | [**V1beta2ScaleStatus**](V1beta2ScaleStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2StatefulSet.md b/kubernetes/docs/V1beta2StatefulSet.md index 463da05187..08531c3aad 100644 --- a/kubernetes/docs/V1beta2StatefulSet.md +++ b/kubernetes/docs/V1beta2StatefulSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2StatefulSetSpec**](V1beta2StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1beta2StatefulSetStatus**](V1beta2StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1beta2StatefulSetSpec**](V1beta2StatefulSetSpec.md) | | [optional] +**status** | [**V1beta2StatefulSetStatus**](V1beta2StatefulSetStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2StatefulSetSpec.md b/kubernetes/docs/V1beta2StatefulSetSpec.md index 1703de2f7c..5bf3ff29f2 100644 --- a/kubernetes/docs/V1beta2StatefulSetSpec.md +++ b/kubernetes/docs/V1beta2StatefulSetSpec.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes **pod_management_policy** | **str** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **int** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revision_history_limit** | **int** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **service_name** | **str** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**update_strategy** | [**V1beta2StatefulSetUpdateStrategy**](V1beta2StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**update_strategy** | [**V1beta2StatefulSetUpdateStrategy**](V1beta2StatefulSetUpdateStrategy.md) | | [optional] **volume_claim_templates** | [**list[V1PersistentVolumeClaim]**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md index 665f889dc6..82652ab907 100644 --- a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rolling_update** | [**V1beta2RollingUpdateStatefulSetStrategy**](V1beta2RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rolling_update** | [**V1beta2RollingUpdateStatefulSetStrategy**](V1beta2RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **str** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CronJob.md b/kubernetes/docs/V2alpha1CronJob.md index 8e254ec24d..083ba410cc 100644 --- a/kubernetes/docs/V2alpha1CronJob.md +++ b/kubernetes/docs/V2alpha1CronJob.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1CronJobSpec**](V2alpha1CronJobSpec.md) | Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V2alpha1CronJobStatus**](V2alpha1CronJobStatus.md) | Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2alpha1CronJobSpec**](V2alpha1CronJobSpec.md) | | [optional] +**status** | [**V2alpha1CronJobStatus**](V2alpha1CronJobStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md index e2ac8d15dd..16c10b58a2 100644 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ b/kubernetes/docs/V2alpha1CronJobList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V2alpha1CronJob]**](V2alpha1CronJob.md) | items is the list of CronJobs. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index 8bc1146f0a..88194283ad 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **concurrency_policy** | **str** | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [optional] **failed_jobs_history_limit** | **int** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**job_template** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | Specifies the job that will be created when executing a CronJob. | +**job_template** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | | **schedule** | **str** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **starting_deadline_seconds** | **int** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] **successful_jobs_history_limit** | **int** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] diff --git a/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md index 3e151682e9..c39431ba50 100644 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ b/kubernetes/docs/V2alpha1JobTemplateSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1ExternalMetricSource.md b/kubernetes/docs/V2beta1ExternalMetricSource.md index 2338d0729d..86ea313bfb 100644 --- a/kubernetes/docs/V2beta1ExternalMetricSource.md +++ b/kubernetes/docs/V2beta1ExternalMetricSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metric_name** | **str** | metricName is the name of the metric in question. | -**metric_selector** | [**V1LabelSelector**](V1LabelSelector.md) | metricSelector is used to identify a specific time series within a given metric. | [optional] +**metric_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **target_average_value** | **str** | targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. | [optional] **target_value** | **str** | targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. | [optional] diff --git a/kubernetes/docs/V2beta1ExternalMetricStatus.md b/kubernetes/docs/V2beta1ExternalMetricStatus.md index 627e89c9f7..92df7d34ff 100644 --- a/kubernetes/docs/V2beta1ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta1ExternalMetricStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **current_average_value** | **str** | currentAverageValue is the current value of metric averaged over autoscaled pods. | [optional] **current_value** | **str** | currentValue is the current value of the metric (as a quantity) | **metric_name** | **str** | metricName is the name of a metric used for autoscaling in metric system. | -**metric_selector** | [**V1LabelSelector**](V1LabelSelector.md) | metricSelector is used to identify a specific time series within a given metric. | [optional] +**metric_selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md index dd08bf1d3b..5f973a408d 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2beta1HorizontalPodAutoscalerSpec**](V2beta1HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2beta1HorizontalPodAutoscalerStatus**](V2beta1HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2beta1HorizontalPodAutoscalerSpec**](V2beta1HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V2beta1HorizontalPodAutoscalerStatus**](V2beta1HorizontalPodAutoscalerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md index ced0032a61..aa4e84004c 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V2beta1HorizontalPodAutoscaler]**](V2beta1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md index e02e4c7644..5f87eb8ae5 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **max_replicas** | **int** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | **metrics** | [**list[V2beta1MetricSpec]**](V2beta1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] **min_replicas** | **int** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scale_target_ref** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | +**scale_target_ref** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1MetricSpec.md b/kubernetes/docs/V2beta1MetricSpec.md index 14d4f14428..b2fe842e9b 100644 --- a/kubernetes/docs/V2beta1MetricSpec.md +++ b/kubernetes/docs/V2beta1MetricSpec.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta1ExternalMetricSource**](V2beta1ExternalMetricSource.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta1ObjectMetricSource**](V2beta1ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta1PodsMetricSource**](V2beta1PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta1ResourceMetricSource**](V2beta1ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta1ExternalMetricSource**](V2beta1ExternalMetricSource.md) | | [optional] +**object** | [**V2beta1ObjectMetricSource**](V2beta1ObjectMetricSource.md) | | [optional] +**pods** | [**V2beta1PodsMetricSource**](V2beta1PodsMetricSource.md) | | [optional] +**resource** | [**V2beta1ResourceMetricSource**](V2beta1ResourceMetricSource.md) | | [optional] **type** | **str** | type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1MetricStatus.md b/kubernetes/docs/V2beta1MetricStatus.md index 9eea4eb2c2..f0658edfda 100644 --- a/kubernetes/docs/V2beta1MetricStatus.md +++ b/kubernetes/docs/V2beta1MetricStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta1ExternalMetricStatus**](V2beta1ExternalMetricStatus.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta1ObjectMetricStatus**](V2beta1ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta1PodsMetricStatus**](V2beta1PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta1ResourceMetricStatus**](V2beta1ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta1ExternalMetricStatus**](V2beta1ExternalMetricStatus.md) | | [optional] +**object** | [**V2beta1ObjectMetricStatus**](V2beta1ObjectMetricStatus.md) | | [optional] +**pods** | [**V2beta1PodsMetricStatus**](V2beta1PodsMetricStatus.md) | | [optional] +**resource** | [**V2beta1ResourceMetricStatus**](V2beta1ResourceMetricStatus.md) | | [optional] **type** | **str** | type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1ObjectMetricSource.md b/kubernetes/docs/V2beta1ObjectMetricSource.md index 84cd368c7d..3700925d99 100644 --- a/kubernetes/docs/V2beta1ObjectMetricSource.md +++ b/kubernetes/docs/V2beta1ObjectMetricSource.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **average_value** | **str** | averageValue is the target value of the average of the metric across all relevant pods (as a quantity) | [optional] **metric_name** | **str** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | target is the described Kubernetes object. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | **target_value** | **str** | targetValue is the target value of the metric (as a quantity). | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1ObjectMetricStatus.md b/kubernetes/docs/V2beta1ObjectMetricStatus.md index 06c73513ed..34f72a55f2 100644 --- a/kubernetes/docs/V2beta1ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta1ObjectMetricStatus.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes **average_value** | **str** | averageValue is the current value of the average of the metric across all relevant pods (as a quantity) | [optional] **current_value** | **str** | currentValue is the current value of the metric (as a quantity). | **metric_name** | **str** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | target is the described Kubernetes object. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1PodsMetricSource.md b/kubernetes/docs/V2beta1PodsMetricSource.md index 5fdae0ef59..4972c25241 100644 --- a/kubernetes/docs/V2beta1PodsMetricSource.md +++ b/kubernetes/docs/V2beta1PodsMetricSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metric_name** | **str** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **target_average_value** | **str** | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta1PodsMetricStatus.md b/kubernetes/docs/V2beta1PodsMetricStatus.md index e5ba8715c2..ccf23ad7a7 100644 --- a/kubernetes/docs/V2beta1PodsMetricStatus.md +++ b/kubernetes/docs/V2beta1PodsMetricStatus.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_average_value** | **str** | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | **metric_name** | **str** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ExternalMetricSource.md b/kubernetes/docs/V2beta2ExternalMetricSource.md index fb65d44273..2583efc360 100644 --- a/kubernetes/docs/V2beta2ExternalMetricSource.md +++ b/kubernetes/docs/V2beta2ExternalMetricSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ExternalMetricStatus.md b/kubernetes/docs/V2beta2ExternalMetricStatus.md index bac3c6a5f1..9a02b67cfe 100644 --- a/kubernetes/docs/V2beta2ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta2ExternalMetricStatus.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md index 7b70753fde..125f861891 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2beta2HorizontalPodAutoscalerSpec**](V2beta2HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2beta2HorizontalPodAutoscalerStatus**](V2beta2HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2beta2HorizontalPodAutoscalerSpec**](V2beta2HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V2beta2HorizontalPodAutoscalerStatus**](V2beta2HorizontalPodAutoscalerStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md index aca7d82bd0..e0661cd164 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**list[V2beta2HorizontalPodAutoscaler]**](V2beta2HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md index 1e4bafa331..9ae9c06057 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **max_replicas** | **int** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | **metrics** | [**list[V2beta2MetricSpec]**](V2beta2MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. | [optional] **min_replicas** | **int** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scale_target_ref** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | +**scale_target_ref** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2MetricIdentifier.md b/kubernetes/docs/V2beta2MetricIdentifier.md index d8f733845e..6fb1752033 100644 --- a/kubernetes/docs/V2beta2MetricIdentifier.md +++ b/kubernetes/docs/V2beta2MetricIdentifier.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | name is the name of the given metric | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2MetricSpec.md b/kubernetes/docs/V2beta2MetricSpec.md index 7bef6eb527..6f2c36c78c 100644 --- a/kubernetes/docs/V2beta2MetricSpec.md +++ b/kubernetes/docs/V2beta2MetricSpec.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta2ExternalMetricSource**](V2beta2ExternalMetricSource.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta2ObjectMetricSource**](V2beta2ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta2PodsMetricSource**](V2beta2PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta2ResourceMetricSource**](V2beta2ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta2ExternalMetricSource**](V2beta2ExternalMetricSource.md) | | [optional] +**object** | [**V2beta2ObjectMetricSource**](V2beta2ObjectMetricSource.md) | | [optional] +**pods** | [**V2beta2PodsMetricSource**](V2beta2PodsMetricSource.md) | | [optional] +**resource** | [**V2beta2ResourceMetricSource**](V2beta2ResourceMetricSource.md) | | [optional] **type** | **str** | type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2MetricStatus.md b/kubernetes/docs/V2beta2MetricStatus.md index 0f2e27d261..1cace1d8a7 100644 --- a/kubernetes/docs/V2beta2MetricStatus.md +++ b/kubernetes/docs/V2beta2MetricStatus.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta2ExternalMetricStatus**](V2beta2ExternalMetricStatus.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta2ObjectMetricStatus**](V2beta2ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta2PodsMetricStatus**](V2beta2PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta2ResourceMetricStatus**](V2beta2ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta2ExternalMetricStatus**](V2beta2ExternalMetricStatus.md) | | [optional] +**object** | [**V2beta2ObjectMetricStatus**](V2beta2ObjectMetricStatus.md) | | [optional] +**pods** | [**V2beta2PodsMetricStatus**](V2beta2PodsMetricStatus.md) | | [optional] +**resource** | [**V2beta2ResourceMetricStatus**](V2beta2ResourceMetricStatus.md) | | [optional] **type** | **str** | type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ObjectMetricSource.md b/kubernetes/docs/V2beta2ObjectMetricSource.md index 5d664bd5ce..db8b55f798 100644 --- a/kubernetes/docs/V2beta2ObjectMetricSource.md +++ b/kubernetes/docs/V2beta2ObjectMetricSource.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **described_object** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ObjectMetricStatus.md b/kubernetes/docs/V2beta2ObjectMetricStatus.md index 7b8600d1b0..d68872070a 100644 --- a/kubernetes/docs/V2beta2ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta2ObjectMetricStatus.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | **described_object** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2PodsMetricSource.md b/kubernetes/docs/V2beta2PodsMetricSource.md index e6827135a6..18e60c12bb 100644 --- a/kubernetes/docs/V2beta2PodsMetricSource.md +++ b/kubernetes/docs/V2beta2PodsMetricSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2PodsMetricStatus.md b/kubernetes/docs/V2beta2PodsMetricStatus.md index 18cef3cb48..a3dfc16e41 100644 --- a/kubernetes/docs/V2beta2PodsMetricStatus.md +++ b/kubernetes/docs/V2beta2PodsMetricStatus.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ResourceMetricSource.md b/kubernetes/docs/V2beta2ResourceMetricSource.md index abc94ba2bc..96c5962949 100644 --- a/kubernetes/docs/V2beta2ResourceMetricSource.md +++ b/kubernetes/docs/V2beta2ResourceMetricSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | name is the name of the resource in question. | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2beta2ResourceMetricStatus.md b/kubernetes/docs/V2beta2ResourceMetricStatus.md index 4e97e40cea..fc5b32ab87 100644 --- a/kubernetes/docs/V2beta2ResourceMetricStatus.md +++ b/kubernetes/docs/V2beta2ResourceMetricStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | **name** | **str** | Name is the name of the resource in question. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index 046d03255d..4d3ec90a2f 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -1,6 +1,6 @@ # kubernetes.client.VersionApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,9 @@ Method | HTTP request | Description get the code version -### Example +### Example + +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time @@ -31,7 +33,7 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.VersionApi(kubernetes.client.ApiClient(configuration)) -try: +try: api_response = api_instance.get_code() pprint(api_response) except ApiException as e: @@ -51,7 +53,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/swagger.json.unprocessed b/kubernetes/swagger.json.unprocessed index 8bb3c45415..3d5d27ff1c 100644 --- a/kubernetes/swagger.json.unprocessed +++ b/kubernetes/swagger.json.unprocessed @@ -1,5 +1,66 @@ { "definitions": { + "io.k8s.api.admissionregistration.v1beta1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": "string" + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig" + ], + "type": "object" + }, "io.k8s.api.admissionregistration.v1beta1.MutatingWebhookConfiguration": { "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", "properties": { @@ -18,7 +79,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.Webhook" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.MutatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -121,6 +182,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -129,6 +195,63 @@ ], "type": "object" }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig" + ], + "type": "object" + }, "io.k8s.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration": { "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", "properties": { @@ -147,7 +270,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.Webhook" + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ValidatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -198,55 +321,6 @@ } ] }, - "io.k8s.api.admissionregistration.v1beta1.Webhook": { - "description": "Webhook describes an admission webhook and the resources and operations it applies to.", - "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "type": "string" - }, - "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "type": "string" - }, - "namespaceSelector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "rules": { - "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "name", - "clientConfig" - ], - "type": "object" - }, "io.k8s.api.admissionregistration.v1beta1.WebhookClientConfig": { "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", "properties": { @@ -257,7 +331,7 @@ }, "service": { "$ref": "#/definitions/io.k8s.api.admissionregistration.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -2916,6 +2990,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -2951,7 +3030,7 @@ }, "service": { "$ref": "#/definitions/io.k8s.api.auditregistration.v1alpha1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -6045,6 +6124,10 @@ "io.k8s.api.core.v1.CSIPersistentVolumeSource": { "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "properties": { + "controllerExpandSecretRef": { + "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", + "description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, "controllerPublishSecretRef": { "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference", "description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." @@ -6433,7 +6516,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's key must be defined", + "description": "Specify whether the ConfigMap or its key must be defined", "type": "boolean" } }, @@ -6523,7 +6606,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -6549,7 +6632,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -7282,7 +7365,7 @@ "description": "Time of the last occurrence observed" }, "state": { - "description": "State of this Series: Ongoing or Finished", + "description": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -9211,6 +9294,10 @@ "$ref": "#/definitions/io.k8s.api.core.v1.Sysctl" }, "type": "array" + }, + "windowsOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -9306,6 +9393,10 @@ "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", "type": "object" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "priority": { "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", "format": "int32", @@ -9327,7 +9418,7 @@ "type": "string" }, "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.", + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.", "type": "string" }, "schedulerName": { @@ -10301,7 +10392,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the Secret or it's key must be defined", + "description": "Specify whether the Secret or its key must be defined", "type": "boolean" } }, @@ -10396,7 +10487,7 @@ "type": "array" }, "optional": { - "description": "Specify whether the Secret or it's keys must be defined", + "description": "Specify whether the Secret or its keys must be defined", "type": "boolean" }, "secretName": { @@ -10446,6 +10537,10 @@ "seLinuxOptions": { "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions", "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence." + }, + "windowsOptions": { + "$ref": "#/definitions/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -11112,7 +11207,7 @@ "type": "string" }, "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14.", + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15.", "type": "string" } }, @@ -11198,6 +11293,20 @@ ], "type": "object" }, + "io.k8s.api.core.v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", + "type": "string" + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", + "type": "string" + } + }, + "type": "object" + }, "io.k8s.api.events.v1beta1.Event": { "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.", "properties": { @@ -11330,7 +11439,7 @@ "description": "Time when last Event from the series was seen before last heartbeat." }, "state": { - "description": "Information whether this series is ongoing or finished.", + "description": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -12352,7 +12461,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.AllowedCSIDriver" }, @@ -12457,6 +12566,10 @@ "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -12721,6 +12834,26 @@ ], "type": "object" }, + "io.k8s.api.extensions.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", + "properties": { + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", + "type": "string" + } + }, + "required": [ + "allowedRuntimeClassNames" + ], + "type": "object" + }, "io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions": { "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead.", "properties": { @@ -13669,7 +13802,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/io.k8s.api.policy.v1beta1.AllowedCSIDriver" }, @@ -13774,6 +13907,10 @@ "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/io.k8s.api.policy.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -13838,6 +13975,26 @@ ], "type": "object" }, + "io.k8s.api.policy.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", + "properties": { + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", + "type": "string" + } + }, + "required": [ + "allowedRuntimeClassNames" + ], + "type": "object" + }, "io.k8s.api.policy.v1beta1.SELinuxStrategyOptions": { "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", "properties": { @@ -15071,6 +15228,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -15147,6 +15308,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -15223,6 +15388,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -15550,6 +15719,10 @@ "io.k8s.api.storage.v1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -15696,6 +15869,10 @@ "io.k8s.api.storage.v1alpha1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -16133,6 +16310,10 @@ "io.k8s.api.storage.v1beta1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -16252,7 +16433,7 @@ "type": "array" }, "strategy": { - "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.", + "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false.", "type": "string" }, "webhookClientConfig": { @@ -16320,7 +16501,7 @@ "type": "string" }, "type": { - "description": "Type is the type of the condition.", + "description": "Type is the type of the condition. Types include Established, NamesAccepted and Terminating.", "type": "string" } }, @@ -16426,6 +16607,10 @@ "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames", "description": "Names are the names used to describe this custom resource" }, + "preserveUnknownFields": { + "description": "preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1.", + "type": "boolean" + }, "scope": { "description": "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced", "type": "string" @@ -16528,7 +16713,7 @@ "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", "properties": { "labelSelectorPath": { - "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", + "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", "type": "string" }, "specReplicasPath": { @@ -16617,7 +16802,8 @@ "type": "array" }, "default": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON" + "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." }, "definitions": { "additionalProperties": { @@ -16738,6 +16924,18 @@ }, "uniqueItems": { "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": "boolean" } }, "type": "object" @@ -16765,6 +16963,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -16783,7 +16986,7 @@ }, "service": { "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -17367,6 +17570,11 @@ "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", "type": "string" }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.\n\nThis field is alpha and can be changed or removed without notice.", + "format": "int64", + "type": "integer" + }, "resourceVersion": { "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency", "type": "string" @@ -18127,6 +18335,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -18293,6 +18506,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -18300,7 +18518,7 @@ }, "info": { "title": "Kubernetes", - "version": "v1.14.4" + "version": "v1.15.6" }, "paths": { "/api/": { @@ -18408,6 +18626,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18559,6 +18784,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18656,6 +18888,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18753,6 +18992,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18850,6 +19096,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18916,6 +19169,13 @@ "description": "list or watch objects of kind Namespace", "operationId": "listCoreV1Namespace", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19176,6 +19436,20 @@ "description": "delete collection of ConfigMap", "operationId": "deleteCoreV1CollectionNamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19183,6 +19457,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19190,6 +19471,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19204,6 +19492,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19262,6 +19564,13 @@ "description": "list or watch objects of kind ConfigMap", "operationId": "listCoreV1NamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19729,6 +20038,20 @@ "description": "delete collection of Endpoints", "operationId": "deleteCoreV1CollectionNamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19736,6 +20059,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19743,6 +20073,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19757,6 +20094,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19815,6 +20166,13 @@ "description": "list or watch objects of kind Endpoints", "operationId": "listCoreV1NamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20282,6 +20640,20 @@ "description": "delete collection of Event", "operationId": "deleteCoreV1CollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20289,6 +20661,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20296,6 +20675,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20310,6 +20696,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -20368,6 +20768,13 @@ "description": "list or watch objects of kind Event", "operationId": "listCoreV1NamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20835,6 +21242,20 @@ "description": "delete collection of LimitRange", "operationId": "deleteCoreV1CollectionNamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20842,6 +21263,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20849,6 +21277,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20863,6 +21298,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -20921,6 +21370,13 @@ "description": "list or watch objects of kind LimitRange", "operationId": "listCoreV1NamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21388,6 +21844,20 @@ "description": "delete collection of PersistentVolumeClaim", "operationId": "deleteCoreV1CollectionNamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21395,6 +21865,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -21402,6 +21879,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -21416,6 +21900,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -21474,6 +21972,13 @@ "description": "list or watch objects of kind PersistentVolumeClaim", "operationId": "listCoreV1NamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22136,6 +22641,20 @@ "description": "delete collection of Pod", "operationId": "deleteCoreV1CollectionNamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22143,6 +22662,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -22150,6 +22676,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -22164,6 +22697,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -22222,6 +22769,13 @@ "description": "list or watch objects of kind Pod", "operationId": "listCoreV1NamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24058,6 +24612,20 @@ "description": "delete collection of PodTemplate", "operationId": "deleteCoreV1CollectionNamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24065,6 +24633,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24072,6 +24647,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24086,6 +24668,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24144,6 +24740,13 @@ "description": "list or watch objects of kind PodTemplate", "operationId": "listCoreV1NamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24611,6 +25214,20 @@ "description": "delete collection of ReplicationController", "operationId": "deleteCoreV1CollectionNamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24618,6 +25235,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24625,6 +25249,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24639,6 +25270,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24697,6 +25342,13 @@ "description": "list or watch objects of kind ReplicationController", "operationId": "listCoreV1NamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25554,6 +26206,20 @@ "description": "delete collection of ResourceQuota", "operationId": "deleteCoreV1CollectionNamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25561,6 +26227,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -25568,6 +26241,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -25582,6 +26262,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -25640,6 +26334,13 @@ "description": "list or watch objects of kind ResourceQuota", "operationId": "listCoreV1NamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26302,6 +27003,20 @@ "description": "delete collection of Secret", "operationId": "deleteCoreV1CollectionNamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26309,6 +27024,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -26316,6 +27038,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26330,6 +27059,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -26388,6 +27131,13 @@ "description": "list or watch objects of kind Secret", "operationId": "listCoreV1NamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26855,6 +27605,20 @@ "description": "delete collection of ServiceAccount", "operationId": "deleteCoreV1CollectionNamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26862,6 +27626,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -26869,6 +27640,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26883,6 +27661,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -26941,6 +27733,13 @@ "description": "list or watch objects of kind ServiceAccount", "operationId": "listCoreV1NamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -27408,6 +28207,13 @@ "description": "list or watch objects of kind Service", "operationId": "listCoreV1NamespacedService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29146,6 +29952,20 @@ "description": "delete collection of Node", "operationId": "deleteCoreV1CollectionNode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29153,6 +29973,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -29160,6 +29987,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -29174,6 +30008,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -29232,6 +30080,13 @@ "description": "list or watch objects of kind Node", "operationId": "listCoreV1Node", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30409,6 +31264,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30475,6 +31337,20 @@ "description": "delete collection of PersistentVolume", "operationId": "deleteCoreV1CollectionPersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30482,6 +31358,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -30489,6 +31372,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -30503,6 +31393,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -30561,6 +31465,13 @@ "description": "list or watch objects of kind PersistentVolume", "operationId": "listCoreV1PersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31230,6 +32141,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31327,6 +32245,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31424,6 +32349,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31521,6 +32453,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31618,6 +32557,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31715,6 +32661,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31812,6 +32765,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31909,6 +32869,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32006,6 +32973,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32103,6 +33077,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32200,6 +33181,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32297,6 +33285,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32394,6 +33389,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32499,6 +33501,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32612,6 +33621,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32717,6 +33733,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32830,6 +33853,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32935,6 +33965,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33048,6 +34085,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33154,118 +34198,132 @@ }, "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the LimitRange", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the LimitRange", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchCoreV1NamespacedPersistentVolumeClaimList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "core_v1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchCoreV1NamespacedPersistentVolumeClaimList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33371,6 +34429,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33484,6 +34549,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33589,6 +34661,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33702,6 +34781,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33807,6 +34893,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33920,6 +35013,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34025,6 +35125,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34138,6 +35245,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34243,6 +35357,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34356,6 +35477,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34461,6 +35589,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34574,6 +35709,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34679,6 +35821,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34792,6 +35941,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34897,6 +36053,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35010,6 +36173,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35115,6 +36285,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35212,6 +36389,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35317,6 +36501,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35414,6 +36605,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35511,6 +36709,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35616,6 +36821,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35713,6 +36925,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35810,6 +37029,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35907,6 +37133,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36004,6 +37237,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36101,6 +37341,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36198,6 +37445,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36363,6 +37617,20 @@ "description": "delete collection of MutatingWebhookConfiguration", "operationId": "deleteAdmissionregistrationV1beta1CollectionMutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36370,6 +37638,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -36377,6 +37652,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -36391,6 +37673,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -36449,6 +37745,13 @@ "description": "list or watch objects of kind MutatingWebhookConfiguration", "operationId": "listAdmissionregistrationV1beta1MutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36900,6 +38203,20 @@ "description": "delete collection of ValidatingWebhookConfiguration", "operationId": "deleteAdmissionregistrationV1beta1CollectionValidatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36907,6 +38224,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -36914,6 +38238,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -36928,6 +38259,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -36986,6 +38331,13 @@ "description": "list or watch objects of kind ValidatingWebhookConfiguration", "operationId": "listAdmissionregistrationV1beta1ValidatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37468,6 +38820,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37565,6 +38924,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37670,6 +39036,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37767,6 +39140,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37907,6 +39287,20 @@ "description": "delete collection of CustomResourceDefinition", "operationId": "deleteApiextensionsV1beta1CollectionCustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37914,6 +39308,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -37921,6 +39322,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -37935,6 +39343,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -37993,6 +39415,13 @@ "description": "list or watch objects of kind CustomResourceDefinition", "operationId": "listApiextensionsV1beta1CustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38662,6 +40091,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38759,6 +40195,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38899,6 +40342,20 @@ "description": "delete collection of APIService", "operationId": "deleteApiregistrationV1CollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38906,6 +40363,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -38913,6 +40377,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -38927,6 +40398,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -38985,6 +40470,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listApiregistrationV1APIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39654,6 +41146,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39751,6 +41250,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39858,6 +41364,20 @@ "description": "delete collection of APIService", "operationId": "deleteApiregistrationV1beta1CollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39865,6 +41385,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -39872,6 +41399,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -39886,6 +41420,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -39944,6 +41492,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listApiregistrationV1beta1APIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40613,6 +42168,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40710,6 +42272,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40881,6 +42450,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40978,6 +42554,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41075,6 +42658,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41141,6 +42731,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteAppsV1CollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41148,6 +42752,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -41155,6 +42766,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -41169,6 +42787,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -41227,6 +42859,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listAppsV1NamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41694,6 +43333,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteAppsV1CollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41701,6 +43354,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -41708,6 +43368,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -41722,6 +43389,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -41780,6 +43461,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listAppsV1NamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42442,6 +44130,20 @@ "description": "delete collection of Deployment", "operationId": "deleteAppsV1CollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42449,6 +44151,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -42456,6 +44165,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -42470,6 +44186,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -42528,6 +44258,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listAppsV1NamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43385,6 +45122,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteAppsV1CollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43392,6 +45143,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -43399,6 +45157,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -43413,6 +45178,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -43471,6 +45250,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listAppsV1NamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44328,6 +46114,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteAppsV1CollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44335,6 +46135,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -44342,6 +46149,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -44356,6 +46170,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -44414,6 +46242,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listAppsV1NamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45302,6 +47137,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45399,6 +47241,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45496,6 +47345,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45593,6 +47449,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45690,6 +47553,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45787,6 +47657,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45892,6 +47769,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46005,6 +47889,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46110,6 +48001,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46223,6 +48121,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46328,6 +48233,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46441,6 +48353,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46546,6 +48465,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46659,6 +48585,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46764,6 +48697,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46877,6 +48817,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46974,6 +48921,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47104,6 +49058,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47201,6 +49162,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47267,6 +49235,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteAppsV1beta1CollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47274,6 +49256,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -47281,6 +49270,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -47295,6 +49291,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -47353,6 +49363,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listAppsV1beta1NamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47820,6 +49837,20 @@ "description": "delete collection of Deployment", "operationId": "deleteAppsV1beta1CollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47827,6 +49858,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -47834,6 +49872,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -47848,6 +49893,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -47906,6 +49965,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listAppsV1beta1NamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48861,6 +50927,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteAppsV1beta1CollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48868,6 +50948,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -48875,6 +50962,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -48889,6 +50983,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -48947,6 +51055,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listAppsV1beta1NamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49835,6 +51950,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49932,6 +52054,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50029,6 +52158,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50126,6 +52262,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50231,6 +52374,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50344,6 +52494,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50449,6 +52606,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50562,6 +52726,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50667,6 +52838,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50780,6 +52958,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50910,6 +53095,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51007,6 +53199,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51104,6 +53303,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51170,6 +53376,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteAppsV1beta2CollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51177,6 +53397,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -51184,6 +53411,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -51198,6 +53432,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -51256,6 +53504,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listAppsV1beta2NamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51723,6 +53978,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteAppsV1beta2CollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51730,6 +53999,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -51737,6 +54013,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -51751,6 +54034,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -51809,6 +54106,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listAppsV1beta2NamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52471,6 +54775,20 @@ "description": "delete collection of Deployment", "operationId": "deleteAppsV1beta2CollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52478,6 +54796,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -52485,6 +54810,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -52499,6 +54831,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -52557,6 +54903,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listAppsV1beta2NamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53414,6 +55767,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteAppsV1beta2CollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53421,6 +55788,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -53428,6 +55802,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -53442,6 +55823,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -53500,6 +55895,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listAppsV1beta2NamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54357,6 +56759,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteAppsV1beta2CollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54364,6 +56780,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -54371,6 +56794,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -54385,6 +56815,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -54443,6 +56887,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listAppsV1beta2NamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55331,6 +57782,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55428,6 +57886,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55525,6 +57990,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55622,6 +58094,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55719,6 +58198,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55816,6 +58302,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55921,6 +58414,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56034,6 +58534,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56139,6 +58646,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56252,6 +58766,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56357,6 +58878,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56470,6 +58998,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56575,6 +59110,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56688,6 +59230,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56793,6 +59342,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56906,6 +59462,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57003,6 +59566,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57135,6 +59705,20 @@ "description": "delete collection of AuditSink", "operationId": "deleteAuditregistrationV1alpha1CollectionAuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57142,6 +59726,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -57149,6 +59740,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -57163,6 +59761,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -57221,6 +59833,13 @@ "description": "list or watch objects of kind AuditSink", "operationId": "listAuditregistrationV1alpha1AuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57703,6 +60322,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57800,6 +60426,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59005,6 +61638,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59071,6 +61711,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59078,6 +61732,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -59085,6 +61746,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -59099,6 +61767,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -59157,6 +61839,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59850,6 +62539,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59947,6 +62643,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60052,6 +62755,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60198,6 +62908,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60264,6 +62981,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteAutoscalingV2beta1CollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60271,6 +63002,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -60278,6 +63016,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -60292,6 +63037,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -60350,6 +63109,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61043,6 +63809,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61140,6 +63913,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61245,6 +64025,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61391,6 +64178,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61457,6 +64251,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteAutoscalingV2beta2CollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61464,6 +64272,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -61471,6 +64286,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -61485,6 +64307,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -61543,6 +64379,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62236,6 +65079,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62333,6 +65183,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62438,6 +65295,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62617,6 +65481,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62683,6 +65554,20 @@ "description": "delete collection of Job", "operationId": "deleteBatchV1CollectionNamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62690,6 +65575,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -62697,6 +65589,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -62711,6 +65610,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -62769,6 +65682,13 @@ "description": "list or watch objects of kind Job", "operationId": "listBatchV1NamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63462,6 +66382,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63559,6 +66486,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63664,6 +66598,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63810,6 +66751,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63876,6 +66824,20 @@ "description": "delete collection of CronJob", "operationId": "deleteBatchV1beta1CollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63883,6 +66845,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -63890,6 +66859,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -63904,6 +66880,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -63962,6 +66952,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listBatchV1beta1NamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64655,6 +67652,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64752,6 +67756,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64857,6 +67868,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65003,6 +68021,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65069,6 +68094,20 @@ "description": "delete collection of CronJob", "operationId": "deleteBatchV2alpha1CollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65076,6 +68115,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -65083,6 +68129,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -65097,6 +68150,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -65155,6 +68222,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listBatchV2alpha1NamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65848,6 +68922,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65945,6 +69026,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66050,6 +69138,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66198,6 +69293,20 @@ "description": "delete collection of CertificateSigningRequest", "operationId": "deleteCertificatesV1beta1CollectionCertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66205,6 +69314,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -66212,6 +69328,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -66226,6 +69349,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -66284,6 +69421,13 @@ "description": "list or watch objects of kind CertificateSigningRequest", "operationId": "listCertificatesV1beta1CertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67037,6 +70181,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67134,6 +70285,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67305,6 +70463,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67371,6 +70536,20 @@ "description": "delete collection of Lease", "operationId": "deleteCoordinationV1CollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67378,6 +70557,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -67385,6 +70571,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -67399,6 +70592,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -67457,6 +70664,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listCoordinationV1NamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67955,6 +71169,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68052,6 +71273,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68157,6 +71385,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68303,6 +71538,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68369,6 +71611,20 @@ "description": "delete collection of Lease", "operationId": "deleteCoordinationV1beta1CollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68376,6 +71632,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -68383,6 +71646,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -68397,6 +71667,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -68455,6 +71739,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listCoordinationV1beta1NamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68953,6 +72244,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69050,6 +72348,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69155,6 +72460,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69334,6 +72646,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69400,6 +72719,20 @@ "description": "delete collection of Event", "operationId": "deleteEventsV1beta1CollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69407,6 +72740,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -69414,6 +72754,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -69428,6 +72775,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -69486,6 +72847,13 @@ "description": "list or watch objects of kind Event", "operationId": "listEventsV1beta1NamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69984,6 +73352,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70081,6 +73456,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70186,6 +73568,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70365,6 +73754,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70462,6 +73858,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70559,6 +73962,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70625,6 +74035,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteExtensionsV1beta1CollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70632,6 +74056,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -70639,6 +74070,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -70653,6 +74091,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -70711,6 +74163,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listExtensionsV1beta1NamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71373,6 +74832,20 @@ "description": "delete collection of Deployment", "operationId": "deleteExtensionsV1beta1CollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71380,6 +74853,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -71387,6 +74867,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -71401,6 +74888,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -71459,6 +74960,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listExtensionsV1beta1NamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72414,6 +75922,20 @@ "description": "delete collection of Ingress", "operationId": "deleteExtensionsV1beta1CollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72421,6 +75943,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -72428,6 +75957,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -72442,6 +75978,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -72500,6 +76050,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listExtensionsV1beta1NamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73162,6 +76719,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteExtensionsV1beta1CollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73169,6 +76740,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -73176,6 +76754,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -73190,6 +76775,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -73248,6 +76847,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listExtensionsV1beta1NamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73715,6 +77321,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteExtensionsV1beta1CollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73722,6 +77342,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -73729,6 +77356,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -73743,6 +77377,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -73801,6 +77449,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listExtensionsV1beta1NamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74884,6 +78539,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74950,6 +78612,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteExtensionsV1beta1CollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74957,6 +78633,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -74964,6 +78647,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -74978,6 +78668,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -75036,6 +78740,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listExtensionsV1beta1PodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75518,6 +79229,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75615,6 +79333,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75712,6 +79437,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75809,6 +79541,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75906,6 +79645,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76011,6 +79757,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76124,6 +79877,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76229,6 +79989,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76342,6 +80109,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76447,6 +80221,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76560,6 +80341,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76665,6 +80453,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76778,6 +80573,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76883,6 +80685,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76996,6 +80805,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77093,6 +80909,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77190,6 +81013,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77295,6 +81125,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77427,6 +81264,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77434,6 +81285,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -77441,6 +81299,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -77455,6 +81320,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -77513,6 +81392,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listNetworkingV1NamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78011,6 +81897,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78108,6 +82001,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78213,6 +82113,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78326,6 +82233,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78456,6 +82370,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78522,6 +82443,20 @@ "description": "delete collection of Ingress", "operationId": "deleteNetworkingV1beta1CollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78529,6 +82464,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -78536,6 +82478,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -78550,6 +82499,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -78608,6 +82571,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listNetworkingV1beta1NamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79302,102 +83272,116 @@ }, "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchNetworkingV1beta1NamespacedIngressList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1beta1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchNetworkingV1beta1NamespacedIngressList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79503,6 +83487,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79651,6 +83642,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteNodeV1alpha1CollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79658,6 +83663,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -79665,6 +83677,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -79679,6 +83698,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -79737,6 +83770,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listNodeV1alpha1RuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80219,6 +84259,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80316,6 +84363,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80423,6 +84477,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteNodeV1beta1CollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80430,6 +84498,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -80437,6 +84512,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -80451,6 +84533,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -80509,6 +84605,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listNodeV1beta1RuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80991,6 +85094,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81088,6 +85198,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81228,6 +85345,20 @@ "description": "delete collection of PodDisruptionBudget", "operationId": "deletePolicyV1beta1CollectionNamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81235,6 +85366,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -81242,6 +85380,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -81256,6 +85401,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -81314,6 +85473,13 @@ "description": "list or watch objects of kind PodDisruptionBudget", "operationId": "listPolicyV1beta1NamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82007,6 +86173,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82073,6 +86246,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deletePolicyV1beta1CollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82080,6 +86267,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -82087,6 +86281,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -82101,6 +86302,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -82159,6 +86374,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listPolicyV1beta1PodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82641,6 +86863,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82746,6 +86975,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82859,6 +87095,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82956,6 +87199,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83053,6 +87303,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83193,6 +87450,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83200,6 +87471,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -83207,6 +87485,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -83221,6 +87506,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -83279,6 +87578,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listRbacAuthorizationV1ClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83714,6 +88020,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83721,6 +88041,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -83728,6 +88055,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -83742,6 +88076,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -83800,6 +88148,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listRbacAuthorizationV1ClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84235,6 +88590,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84242,6 +88611,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84249,6 +88625,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84263,6 +88646,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84321,6 +88718,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84772,6 +89176,20 @@ "description": "delete collection of Role", "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84779,6 +89197,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84786,6 +89211,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84800,6 +89232,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84858,6 +89304,13 @@ "description": "list or watch objects of kind Role", "operationId": "listRbacAuthorizationV1NamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85340,6 +89793,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85437,6 +89897,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85534,6 +90001,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85631,6 +90105,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85736,6 +90217,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85833,6 +90321,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85938,6 +90433,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86043,6 +90545,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86156,6 +90665,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86261,6 +90777,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86374,6 +90897,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86471,6 +91001,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86570,6 +91107,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86577,6 +91128,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -86584,6 +91142,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -86598,6 +91163,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -86656,6 +91235,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listRbacAuthorizationV1alpha1ClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87091,6 +91677,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87098,6 +91698,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -87105,6 +91712,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -87119,6 +91733,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87177,6 +91805,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listRbacAuthorizationV1alpha1ClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87612,6 +92247,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87619,6 +92268,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -87626,6 +92282,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -87640,6 +92303,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87698,6 +92375,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listRbacAuthorizationV1alpha1NamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88149,6 +92833,20 @@ "description": "delete collection of Role", "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88156,6 +92854,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -88163,6 +92868,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -88177,6 +92889,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -88235,6 +92961,13 @@ "description": "list or watch objects of kind Role", "operationId": "listRbacAuthorizationV1alpha1NamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88717,6 +93450,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88814,6 +93554,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88911,6 +93658,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89008,6 +93762,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89113,6 +93874,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89210,6 +93978,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89315,6 +94090,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89420,6 +94202,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89533,6 +94322,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89638,6 +94434,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89751,6 +94554,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89848,6 +94658,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89947,6 +94764,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteRbacAuthorizationV1beta1CollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89954,6 +94785,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -89961,6 +94799,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -89975,6 +94820,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90033,6 +94892,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listRbacAuthorizationV1beta1ClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90468,6 +95334,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteRbacAuthorizationV1beta1CollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90475,6 +95355,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -90482,6 +95369,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -90496,6 +95390,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90554,6 +95462,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listRbacAuthorizationV1beta1ClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90989,6 +95904,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteRbacAuthorizationV1beta1CollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90996,6 +95925,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -91003,6 +95939,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -91017,6 +95960,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -91075,6 +96032,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listRbacAuthorizationV1beta1NamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91526,6 +96490,20 @@ "description": "delete collection of Role", "operationId": "deleteRbacAuthorizationV1beta1CollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91533,6 +96511,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -91540,6 +96525,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -91554,6 +96546,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -91612,6 +96618,13 @@ "description": "list or watch objects of kind Role", "operationId": "listRbacAuthorizationV1beta1NamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92094,6 +97107,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92191,6 +97211,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92288,6 +97315,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92385,6 +97419,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92490,6 +97531,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92587,6 +97635,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92692,6 +97747,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92797,6 +97859,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92910,6 +97979,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93015,6 +98091,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93128,6 +98211,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93225,6 +98315,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93357,6 +98454,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteSchedulingV1CollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93364,6 +98475,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -93371,6 +98489,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -93385,6 +98510,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -93443,6 +98582,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listSchedulingV1PriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93925,6 +99071,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94022,6 +99175,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94129,6 +99289,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteSchedulingV1alpha1CollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94136,6 +99310,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -94143,6 +99324,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -94157,6 +99345,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -94215,6 +99417,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listSchedulingV1alpha1PriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94697,6 +99906,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94794,6 +100010,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94901,6 +100124,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteSchedulingV1beta1CollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94908,6 +100145,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -94915,6 +100159,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -94929,6 +100180,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -94987,6 +100252,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listSchedulingV1beta1PriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -95461,7 +100733,111 @@ "tags": [ "scheduling_v1beta1" ], - "x-kubernetes-action": "watchlist", + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchSchedulingV1beta1PriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1beta1" + ], + "x-kubernetes-action": "watch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "PriorityClass", @@ -95470,102 +100846,12 @@ }, "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PriorityClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchSchedulingV1beta1PriorityClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1beta1" - } - }, - "parameters": [ { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -95706,6 +100992,20 @@ "description": "delete collection of PodPreset", "operationId": "deleteSettingsV1alpha1CollectionNamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -95713,6 +101013,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -95720,6 +101027,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -95734,6 +101048,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -95792,6 +101120,13 @@ "description": "list or watch objects of kind PodPreset", "operationId": "listSettingsV1alpha1NamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96290,6 +101625,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96387,6 +101729,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96492,6 +101841,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96605,6 +101961,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96737,6 +102100,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteStorageV1CollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -96744,6 +102121,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -96751,6 +102135,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -96765,6 +102156,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -96823,6 +102228,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageV1StorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -97274,6 +102686,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteStorageV1CollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -97281,6 +102707,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -97288,6 +102721,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -97302,6 +102742,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -97360,6 +102814,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listStorageV1VolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98029,6 +103490,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98126,6 +103594,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98231,6 +103706,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98328,6 +103810,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98435,6 +103924,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteStorageV1alpha1CollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -98442,6 +103945,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -98449,6 +103959,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -98463,6 +103980,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -98521,6 +104052,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listStorageV1alpha1VolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99003,6 +104541,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99100,6 +104645,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99207,6 +104759,20 @@ "description": "delete collection of CSIDriver", "operationId": "deleteStorageV1beta1CollectionCSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99214,6 +104780,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -99221,6 +104794,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -99235,6 +104815,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -99293,6 +104887,13 @@ "description": "list or watch objects of kind CSIDriver", "operationId": "listStorageV1beta1CSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99744,6 +105345,20 @@ "description": "delete collection of CSINode", "operationId": "deleteStorageV1beta1CollectionCSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -99751,6 +105366,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -99758,6 +105380,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -99772,6 +105401,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -99830,6 +105473,13 @@ "description": "list or watch objects of kind CSINode", "operationId": "listStorageV1beta1CSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -100281,6 +105931,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteStorageV1beta1CollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -100288,6 +105952,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -100295,6 +105966,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -100309,6 +105987,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -100367,6 +106059,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageV1beta1StorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -100818,6 +106517,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteStorageV1beta1CollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -100825,6 +106538,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -100832,6 +106552,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -100846,6 +106573,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -100904,6 +106645,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listStorageV1beta1VolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101386,6 +107134,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101483,6 +107238,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101588,6 +107350,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101685,6 +107454,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101790,6 +107566,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101887,6 +107670,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -101992,6 +107782,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -102089,6 +107886,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", diff --git a/kubernetes/test/test_admissionregistration_api.py b/kubernetes/test/test_admissionregistration_api.py index c55e259fe2..3869de40d0 100644 --- a/kubernetes/test/test_admissionregistration_api.py +++ b/kubernetes/test/test_admissionregistration_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.admissionregistration_api import AdmissionregistrationApi class TestAdmissionregistrationApi(unittest.TestCase): - """ AdmissionregistrationApi unit test stubs """ + """AdmissionregistrationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.admissionregistration_api.AdmissionregistrationApi() + self.api = kubernetes.client.api.admissionregistration_api.AdmissionregistrationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_admissionregistration_v1beta1_api.py b/kubernetes/test/test_admissionregistration_v1beta1_api.py index 6366611b5d..50a9ed1450 100644 --- a/kubernetes/test/test_admissionregistration_v1beta1_api.py +++ b/kubernetes/test/test_admissionregistration_v1beta1_api.py @@ -3,151 +3,118 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api class TestAdmissionregistrationV1beta1Api(unittest.TestCase): - """ AdmissionregistrationV1beta1Api unit test stubs """ + """AdmissionregistrationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.admissionregistration_v1beta1_api.AdmissionregistrationV1beta1Api() + self.api = kubernetes.client.api.admissionregistration_v1beta1_api.AdmissionregistrationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_mutating_webhook_configuration(self): - """ - Test case for create_mutating_webhook_configuration + """Test case for create_mutating_webhook_configuration - """ pass def test_create_validating_webhook_configuration(self): - """ - Test case for create_validating_webhook_configuration + """Test case for create_validating_webhook_configuration - """ pass def test_delete_collection_mutating_webhook_configuration(self): - """ - Test case for delete_collection_mutating_webhook_configuration + """Test case for delete_collection_mutating_webhook_configuration - """ pass def test_delete_collection_validating_webhook_configuration(self): - """ - Test case for delete_collection_validating_webhook_configuration + """Test case for delete_collection_validating_webhook_configuration - """ pass def test_delete_mutating_webhook_configuration(self): - """ - Test case for delete_mutating_webhook_configuration + """Test case for delete_mutating_webhook_configuration - """ pass def test_delete_validating_webhook_configuration(self): - """ - Test case for delete_validating_webhook_configuration + """Test case for delete_validating_webhook_configuration - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_mutating_webhook_configuration(self): - """ - Test case for list_mutating_webhook_configuration + """Test case for list_mutating_webhook_configuration - """ pass def test_list_validating_webhook_configuration(self): - """ - Test case for list_validating_webhook_configuration + """Test case for list_validating_webhook_configuration - """ pass def test_patch_mutating_webhook_configuration(self): - """ - Test case for patch_mutating_webhook_configuration + """Test case for patch_mutating_webhook_configuration - """ pass def test_patch_validating_webhook_configuration(self): - """ - Test case for patch_validating_webhook_configuration + """Test case for patch_validating_webhook_configuration - """ pass def test_read_mutating_webhook_configuration(self): - """ - Test case for read_mutating_webhook_configuration + """Test case for read_mutating_webhook_configuration - """ pass def test_read_validating_webhook_configuration(self): - """ - Test case for read_validating_webhook_configuration + """Test case for read_validating_webhook_configuration - """ pass def test_replace_mutating_webhook_configuration(self): - """ - Test case for replace_mutating_webhook_configuration + """Test case for replace_mutating_webhook_configuration - """ pass def test_replace_validating_webhook_configuration(self): - """ - Test case for replace_validating_webhook_configuration + """Test case for replace_validating_webhook_configuration - """ pass diff --git a/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py b/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py index 942c96cf55..4b849d5819 100644 --- a/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py +++ b/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference class TestAdmissionregistrationV1beta1ServiceReference(unittest.TestCase): - """ AdmissionregistrationV1beta1ServiceReference unit test stubs """ + """AdmissionregistrationV1beta1ServiceReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAdmissionregistrationV1beta1ServiceReference(self): - """ - Test AdmissionregistrationV1beta1ServiceReference - """ + """Test AdmissionregistrationV1beta1ServiceReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.admissionregistration_v1beta1_service_reference.AdmissionregistrationV1beta1ServiceReference() + # model = kubernetes.client.models.admissionregistration_v1beta1_service_reference.AdmissionregistrationV1beta1ServiceReference() # noqa: E501 pass diff --git a/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py b/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py index a258c38f11..a08431523e 100644 --- a/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py +++ b/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig class TestAdmissionregistrationV1beta1WebhookClientConfig(unittest.TestCase): - """ AdmissionregistrationV1beta1WebhookClientConfig unit test stubs """ + """AdmissionregistrationV1beta1WebhookClientConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAdmissionregistrationV1beta1WebhookClientConfig(self): - """ - Test AdmissionregistrationV1beta1WebhookClientConfig - """ + """Test AdmissionregistrationV1beta1WebhookClientConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config.AdmissionregistrationV1beta1WebhookClientConfig() + # model = kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config.AdmissionregistrationV1beta1WebhookClientConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_apiextensions_api.py b/kubernetes/test/test_apiextensions_api.py index c44eee4a3c..d71a8d7f28 100644 --- a/kubernetes/test/test_apiextensions_api.py +++ b/kubernetes/test/test_apiextensions_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apiextensions_api import ApiextensionsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apiextensions_api import ApiextensionsApi class TestApiextensionsApi(unittest.TestCase): - """ ApiextensionsApi unit test stubs """ + """ApiextensionsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apiextensions_api.ApiextensionsApi() + self.api = kubernetes.client.api.apiextensions_api.ApiextensionsApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_apiextensions_v1beta1_api.py b/kubernetes/test/test_apiextensions_v1beta1_api.py index e3ebb7adba..af7943ba98 100644 --- a/kubernetes/test/test_apiextensions_v1beta1_api.py +++ b/kubernetes/test/test_apiextensions_v1beta1_api.py @@ -3,119 +3,94 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apiextensions_v1beta1_api import ApiextensionsV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apiextensions_v1beta1_api import ApiextensionsV1beta1Api class TestApiextensionsV1beta1Api(unittest.TestCase): - """ ApiextensionsV1beta1Api unit test stubs """ + """ApiextensionsV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apiextensions_v1beta1_api.ApiextensionsV1beta1Api() + self.api = kubernetes.client.api.apiextensions_v1beta1_api.ApiextensionsV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_custom_resource_definition(self): - """ - Test case for create_custom_resource_definition + """Test case for create_custom_resource_definition - """ pass def test_delete_collection_custom_resource_definition(self): - """ - Test case for delete_collection_custom_resource_definition + """Test case for delete_collection_custom_resource_definition - """ pass def test_delete_custom_resource_definition(self): - """ - Test case for delete_custom_resource_definition + """Test case for delete_custom_resource_definition - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_custom_resource_definition(self): - """ - Test case for list_custom_resource_definition + """Test case for list_custom_resource_definition - """ pass def test_patch_custom_resource_definition(self): - """ - Test case for patch_custom_resource_definition + """Test case for patch_custom_resource_definition - """ pass def test_patch_custom_resource_definition_status(self): - """ - Test case for patch_custom_resource_definition_status + """Test case for patch_custom_resource_definition_status - """ pass def test_read_custom_resource_definition(self): - """ - Test case for read_custom_resource_definition + """Test case for read_custom_resource_definition - """ pass def test_read_custom_resource_definition_status(self): - """ - Test case for read_custom_resource_definition_status + """Test case for read_custom_resource_definition_status - """ pass def test_replace_custom_resource_definition(self): - """ - Test case for replace_custom_resource_definition + """Test case for replace_custom_resource_definition - """ pass def test_replace_custom_resource_definition_status(self): - """ - Test case for replace_custom_resource_definition_status + """Test case for replace_custom_resource_definition_status - """ pass diff --git a/kubernetes/test/test_apiextensions_v1beta1_service_reference.py b/kubernetes/test/test_apiextensions_v1beta1_service_reference.py index eab0251635..e7d6162536 100644 --- a/kubernetes/test/test_apiextensions_v1beta1_service_reference.py +++ b/kubernetes/test/test_apiextensions_v1beta1_service_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference class TestApiextensionsV1beta1ServiceReference(unittest.TestCase): - """ ApiextensionsV1beta1ServiceReference unit test stubs """ + """ApiextensionsV1beta1ServiceReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testApiextensionsV1beta1ServiceReference(self): - """ - Test ApiextensionsV1beta1ServiceReference - """ + """Test ApiextensionsV1beta1ServiceReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apiextensions_v1beta1_service_reference.ApiextensionsV1beta1ServiceReference() + # model = kubernetes.client.models.apiextensions_v1beta1_service_reference.ApiextensionsV1beta1ServiceReference() # noqa: E501 pass diff --git a/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py b/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py index 6153ffd423..f8ff1e90cc 100644 --- a/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py +++ b/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig class TestApiextensionsV1beta1WebhookClientConfig(unittest.TestCase): - """ ApiextensionsV1beta1WebhookClientConfig unit test stubs """ + """ApiextensionsV1beta1WebhookClientConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testApiextensionsV1beta1WebhookClientConfig(self): - """ - Test ApiextensionsV1beta1WebhookClientConfig - """ + """Test ApiextensionsV1beta1WebhookClientConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apiextensions_v1beta1_webhook_client_config.ApiextensionsV1beta1WebhookClientConfig() + # model = kubernetes.client.models.apiextensions_v1beta1_webhook_client_config.ApiextensionsV1beta1WebhookClientConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_apiregistration_api.py b/kubernetes/test/test_apiregistration_api.py index b5a6df59d3..e9e2ef95cb 100644 --- a/kubernetes/test/test_apiregistration_api.py +++ b/kubernetes/test/test_apiregistration_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apiregistration_api import ApiregistrationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apiregistration_api import ApiregistrationApi class TestApiregistrationApi(unittest.TestCase): - """ ApiregistrationApi unit test stubs """ + """ApiregistrationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apiregistration_api.ApiregistrationApi() + self.api = kubernetes.client.api.apiregistration_api.ApiregistrationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_apiregistration_v1_api.py b/kubernetes/test/test_apiregistration_v1_api.py index 51587e7cbc..64309cac2c 100644 --- a/kubernetes/test/test_apiregistration_v1_api.py +++ b/kubernetes/test/test_apiregistration_v1_api.py @@ -3,119 +3,94 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apiregistration_v1_api import ApiregistrationV1Api class TestApiregistrationV1Api(unittest.TestCase): - """ ApiregistrationV1Api unit test stubs """ + """ApiregistrationV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apiregistration_v1_api.ApiregistrationV1Api() + self.api = kubernetes.client.api.apiregistration_v1_api.ApiregistrationV1Api() # noqa: E501 def tearDown(self): pass def test_create_api_service(self): - """ - Test case for create_api_service + """Test case for create_api_service - """ pass def test_delete_api_service(self): - """ - Test case for delete_api_service + """Test case for delete_api_service - """ pass def test_delete_collection_api_service(self): - """ - Test case for delete_collection_api_service + """Test case for delete_collection_api_service - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_api_service(self): - """ - Test case for list_api_service + """Test case for list_api_service - """ pass def test_patch_api_service(self): - """ - Test case for patch_api_service + """Test case for patch_api_service - """ pass def test_patch_api_service_status(self): - """ - Test case for patch_api_service_status + """Test case for patch_api_service_status - """ pass def test_read_api_service(self): - """ - Test case for read_api_service + """Test case for read_api_service - """ pass def test_read_api_service_status(self): - """ - Test case for read_api_service_status + """Test case for read_api_service_status - """ pass def test_replace_api_service(self): - """ - Test case for replace_api_service + """Test case for replace_api_service - """ pass def test_replace_api_service_status(self): - """ - Test case for replace_api_service_status + """Test case for replace_api_service_status - """ pass diff --git a/kubernetes/test/test_apiregistration_v1beta1_api.py b/kubernetes/test/test_apiregistration_v1beta1_api.py index 2f8518d4fa..85d03c429e 100644 --- a/kubernetes/test/test_apiregistration_v1beta1_api.py +++ b/kubernetes/test/test_apiregistration_v1beta1_api.py @@ -3,119 +3,94 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apiregistration_v1beta1_api import ApiregistrationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apiregistration_v1beta1_api import ApiregistrationV1beta1Api class TestApiregistrationV1beta1Api(unittest.TestCase): - """ ApiregistrationV1beta1Api unit test stubs """ + """ApiregistrationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apiregistration_v1beta1_api.ApiregistrationV1beta1Api() + self.api = kubernetes.client.api.apiregistration_v1beta1_api.ApiregistrationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_api_service(self): - """ - Test case for create_api_service + """Test case for create_api_service - """ pass def test_delete_api_service(self): - """ - Test case for delete_api_service + """Test case for delete_api_service - """ pass def test_delete_collection_api_service(self): - """ - Test case for delete_collection_api_service + """Test case for delete_collection_api_service - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_api_service(self): - """ - Test case for list_api_service + """Test case for list_api_service - """ pass def test_patch_api_service(self): - """ - Test case for patch_api_service + """Test case for patch_api_service - """ pass def test_patch_api_service_status(self): - """ - Test case for patch_api_service_status + """Test case for patch_api_service_status - """ pass def test_read_api_service(self): - """ - Test case for read_api_service + """Test case for read_api_service - """ pass def test_read_api_service_status(self): - """ - Test case for read_api_service_status + """Test case for read_api_service_status - """ pass def test_replace_api_service(self): - """ - Test case for replace_api_service + """Test case for replace_api_service - """ pass def test_replace_api_service_status(self): - """ - Test case for replace_api_service_status + """Test case for replace_api_service_status - """ pass diff --git a/kubernetes/test/test_apiregistration_v1beta1_service_reference.py b/kubernetes/test/test_apiregistration_v1beta1_service_reference.py index 57a20e0950..06e4e67844 100644 --- a/kubernetes/test/test_apiregistration_v1beta1_service_reference.py +++ b/kubernetes/test/test_apiregistration_v1beta1_service_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference class TestApiregistrationV1beta1ServiceReference(unittest.TestCase): - """ ApiregistrationV1beta1ServiceReference unit test stubs """ + """ApiregistrationV1beta1ServiceReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testApiregistrationV1beta1ServiceReference(self): - """ - Test ApiregistrationV1beta1ServiceReference - """ + """Test ApiregistrationV1beta1ServiceReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apiregistration_v1beta1_service_reference.ApiregistrationV1beta1ServiceReference() + # model = kubernetes.client.models.apiregistration_v1beta1_service_reference.ApiregistrationV1beta1ServiceReference() # noqa: E501 pass diff --git a/kubernetes/test/test_apis_api.py b/kubernetes/test/test_apis_api.py index 48b17d9dcf..73a46292e0 100644 --- a/kubernetes/test/test_apis_api.py +++ b/kubernetes/test/test_apis_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apis_api import ApisApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apis_api import ApisApi class TestApisApi(unittest.TestCase): - """ ApisApi unit test stubs """ + """ApisApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apis_api.ApisApi() + self.api = kubernetes.client.api.apis_api.ApisApi() # noqa: E501 def tearDown(self): pass def test_get_api_versions(self): - """ - Test case for get_api_versions + """Test case for get_api_versions - """ pass diff --git a/kubernetes/test/test_apps_api.py b/kubernetes/test/test_apps_api.py index 50beb7896e..8c2f6e0ed4 100644 --- a/kubernetes/test/test_apps_api.py +++ b/kubernetes/test/test_apps_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apps_api import AppsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apps_api import AppsApi class TestAppsApi(unittest.TestCase): - """ AppsApi unit test stubs """ + """AppsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apps_api.AppsApi() + self.api = kubernetes.client.api.apps_api.AppsApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_apps_v1_api.py b/kubernetes/test/test_apps_v1_api.py index ffa42ab257..9ba30f4d50 100644 --- a/kubernetes/test/test_apps_v1_api.py +++ b/kubernetes/test/test_apps_v1_api.py @@ -3,527 +3,400 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apps_v1_api import AppsV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apps_v1_api import AppsV1Api class TestAppsV1Api(unittest.TestCase): - """ AppsV1Api unit test stubs """ + """AppsV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apps_v1_api.AppsV1Api() + self.api = kubernetes.client.api.apps_v1_api.AppsV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_controller_revision(self): - """ - Test case for create_namespaced_controller_revision + """Test case for create_namespaced_controller_revision - """ pass def test_create_namespaced_daemon_set(self): - """ - Test case for create_namespaced_daemon_set + """Test case for create_namespaced_daemon_set - """ pass def test_create_namespaced_deployment(self): - """ - Test case for create_namespaced_deployment + """Test case for create_namespaced_deployment - """ pass def test_create_namespaced_replica_set(self): - """ - Test case for create_namespaced_replica_set + """Test case for create_namespaced_replica_set - """ pass def test_create_namespaced_stateful_set(self): - """ - Test case for create_namespaced_stateful_set + """Test case for create_namespaced_stateful_set - """ pass def test_delete_collection_namespaced_controller_revision(self): - """ - Test case for delete_collection_namespaced_controller_revision + """Test case for delete_collection_namespaced_controller_revision - """ pass def test_delete_collection_namespaced_daemon_set(self): - """ - Test case for delete_collection_namespaced_daemon_set + """Test case for delete_collection_namespaced_daemon_set - """ pass def test_delete_collection_namespaced_deployment(self): - """ - Test case for delete_collection_namespaced_deployment + """Test case for delete_collection_namespaced_deployment - """ pass def test_delete_collection_namespaced_replica_set(self): - """ - Test case for delete_collection_namespaced_replica_set + """Test case for delete_collection_namespaced_replica_set - """ pass def test_delete_collection_namespaced_stateful_set(self): - """ - Test case for delete_collection_namespaced_stateful_set + """Test case for delete_collection_namespaced_stateful_set - """ pass def test_delete_namespaced_controller_revision(self): - """ - Test case for delete_namespaced_controller_revision + """Test case for delete_namespaced_controller_revision - """ pass def test_delete_namespaced_daemon_set(self): - """ - Test case for delete_namespaced_daemon_set + """Test case for delete_namespaced_daemon_set - """ pass def test_delete_namespaced_deployment(self): - """ - Test case for delete_namespaced_deployment + """Test case for delete_namespaced_deployment - """ pass def test_delete_namespaced_replica_set(self): - """ - Test case for delete_namespaced_replica_set + """Test case for delete_namespaced_replica_set - """ pass def test_delete_namespaced_stateful_set(self): - """ - Test case for delete_namespaced_stateful_set + """Test case for delete_namespaced_stateful_set - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_controller_revision_for_all_namespaces(self): - """ - Test case for list_controller_revision_for_all_namespaces + """Test case for list_controller_revision_for_all_namespaces - """ pass def test_list_daemon_set_for_all_namespaces(self): - """ - Test case for list_daemon_set_for_all_namespaces + """Test case for list_daemon_set_for_all_namespaces - """ pass def test_list_deployment_for_all_namespaces(self): - """ - Test case for list_deployment_for_all_namespaces + """Test case for list_deployment_for_all_namespaces - """ pass def test_list_namespaced_controller_revision(self): - """ - Test case for list_namespaced_controller_revision + """Test case for list_namespaced_controller_revision - """ pass def test_list_namespaced_daemon_set(self): - """ - Test case for list_namespaced_daemon_set + """Test case for list_namespaced_daemon_set - """ pass def test_list_namespaced_deployment(self): - """ - Test case for list_namespaced_deployment + """Test case for list_namespaced_deployment - """ pass def test_list_namespaced_replica_set(self): - """ - Test case for list_namespaced_replica_set + """Test case for list_namespaced_replica_set - """ pass def test_list_namespaced_stateful_set(self): - """ - Test case for list_namespaced_stateful_set + """Test case for list_namespaced_stateful_set - """ pass def test_list_replica_set_for_all_namespaces(self): - """ - Test case for list_replica_set_for_all_namespaces + """Test case for list_replica_set_for_all_namespaces - """ pass def test_list_stateful_set_for_all_namespaces(self): - """ - Test case for list_stateful_set_for_all_namespaces + """Test case for list_stateful_set_for_all_namespaces - """ pass def test_patch_namespaced_controller_revision(self): - """ - Test case for patch_namespaced_controller_revision + """Test case for patch_namespaced_controller_revision - """ pass def test_patch_namespaced_daemon_set(self): - """ - Test case for patch_namespaced_daemon_set + """Test case for patch_namespaced_daemon_set - """ pass def test_patch_namespaced_daemon_set_status(self): - """ - Test case for patch_namespaced_daemon_set_status + """Test case for patch_namespaced_daemon_set_status - """ pass def test_patch_namespaced_deployment(self): - """ - Test case for patch_namespaced_deployment + """Test case for patch_namespaced_deployment - """ pass def test_patch_namespaced_deployment_scale(self): - """ - Test case for patch_namespaced_deployment_scale + """Test case for patch_namespaced_deployment_scale - """ pass def test_patch_namespaced_deployment_status(self): - """ - Test case for patch_namespaced_deployment_status + """Test case for patch_namespaced_deployment_status - """ pass def test_patch_namespaced_replica_set(self): - """ - Test case for patch_namespaced_replica_set + """Test case for patch_namespaced_replica_set - """ pass def test_patch_namespaced_replica_set_scale(self): - """ - Test case for patch_namespaced_replica_set_scale + """Test case for patch_namespaced_replica_set_scale - """ pass def test_patch_namespaced_replica_set_status(self): - """ - Test case for patch_namespaced_replica_set_status + """Test case for patch_namespaced_replica_set_status - """ pass def test_patch_namespaced_stateful_set(self): - """ - Test case for patch_namespaced_stateful_set + """Test case for patch_namespaced_stateful_set - """ pass def test_patch_namespaced_stateful_set_scale(self): - """ - Test case for patch_namespaced_stateful_set_scale + """Test case for patch_namespaced_stateful_set_scale - """ pass def test_patch_namespaced_stateful_set_status(self): - """ - Test case for patch_namespaced_stateful_set_status + """Test case for patch_namespaced_stateful_set_status - """ pass def test_read_namespaced_controller_revision(self): - """ - Test case for read_namespaced_controller_revision + """Test case for read_namespaced_controller_revision - """ pass def test_read_namespaced_daemon_set(self): - """ - Test case for read_namespaced_daemon_set + """Test case for read_namespaced_daemon_set - """ pass def test_read_namespaced_daemon_set_status(self): - """ - Test case for read_namespaced_daemon_set_status + """Test case for read_namespaced_daemon_set_status - """ pass def test_read_namespaced_deployment(self): - """ - Test case for read_namespaced_deployment + """Test case for read_namespaced_deployment - """ pass def test_read_namespaced_deployment_scale(self): - """ - Test case for read_namespaced_deployment_scale + """Test case for read_namespaced_deployment_scale - """ pass def test_read_namespaced_deployment_status(self): - """ - Test case for read_namespaced_deployment_status + """Test case for read_namespaced_deployment_status - """ pass def test_read_namespaced_replica_set(self): - """ - Test case for read_namespaced_replica_set + """Test case for read_namespaced_replica_set - """ pass def test_read_namespaced_replica_set_scale(self): - """ - Test case for read_namespaced_replica_set_scale + """Test case for read_namespaced_replica_set_scale - """ pass def test_read_namespaced_replica_set_status(self): - """ - Test case for read_namespaced_replica_set_status + """Test case for read_namespaced_replica_set_status - """ pass def test_read_namespaced_stateful_set(self): - """ - Test case for read_namespaced_stateful_set + """Test case for read_namespaced_stateful_set - """ pass def test_read_namespaced_stateful_set_scale(self): - """ - Test case for read_namespaced_stateful_set_scale + """Test case for read_namespaced_stateful_set_scale - """ pass def test_read_namespaced_stateful_set_status(self): - """ - Test case for read_namespaced_stateful_set_status + """Test case for read_namespaced_stateful_set_status - """ pass def test_replace_namespaced_controller_revision(self): - """ - Test case for replace_namespaced_controller_revision + """Test case for replace_namespaced_controller_revision - """ pass def test_replace_namespaced_daemon_set(self): - """ - Test case for replace_namespaced_daemon_set + """Test case for replace_namespaced_daemon_set - """ pass def test_replace_namespaced_daemon_set_status(self): - """ - Test case for replace_namespaced_daemon_set_status + """Test case for replace_namespaced_daemon_set_status - """ pass def test_replace_namespaced_deployment(self): - """ - Test case for replace_namespaced_deployment + """Test case for replace_namespaced_deployment - """ pass def test_replace_namespaced_deployment_scale(self): - """ - Test case for replace_namespaced_deployment_scale + """Test case for replace_namespaced_deployment_scale - """ pass def test_replace_namespaced_deployment_status(self): - """ - Test case for replace_namespaced_deployment_status + """Test case for replace_namespaced_deployment_status - """ pass def test_replace_namespaced_replica_set(self): - """ - Test case for replace_namespaced_replica_set + """Test case for replace_namespaced_replica_set - """ pass def test_replace_namespaced_replica_set_scale(self): - """ - Test case for replace_namespaced_replica_set_scale + """Test case for replace_namespaced_replica_set_scale - """ pass def test_replace_namespaced_replica_set_status(self): - """ - Test case for replace_namespaced_replica_set_status + """Test case for replace_namespaced_replica_set_status - """ pass def test_replace_namespaced_stateful_set(self): - """ - Test case for replace_namespaced_stateful_set + """Test case for replace_namespaced_stateful_set - """ pass def test_replace_namespaced_stateful_set_scale(self): - """ - Test case for replace_namespaced_stateful_set_scale + """Test case for replace_namespaced_stateful_set_scale - """ pass def test_replace_namespaced_stateful_set_status(self): - """ - Test case for replace_namespaced_stateful_set_status + """Test case for replace_namespaced_stateful_set_status - """ pass diff --git a/kubernetes/test/test_apps_v1beta1_api.py b/kubernetes/test/test_apps_v1beta1_api.py index 6445a55ba2..6b454bfdde 100644 --- a/kubernetes/test/test_apps_v1beta1_api.py +++ b/kubernetes/test/test_apps_v1beta1_api.py @@ -3,335 +3,256 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apps_v1beta1_api import AppsV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apps_v1beta1_api import AppsV1beta1Api class TestAppsV1beta1Api(unittest.TestCase): - """ AppsV1beta1Api unit test stubs """ + """AppsV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apps_v1beta1_api.AppsV1beta1Api() + self.api = kubernetes.client.api.apps_v1beta1_api.AppsV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_controller_revision(self): - """ - Test case for create_namespaced_controller_revision + """Test case for create_namespaced_controller_revision - """ pass def test_create_namespaced_deployment(self): - """ - Test case for create_namespaced_deployment + """Test case for create_namespaced_deployment - """ pass def test_create_namespaced_deployment_rollback(self): - """ - Test case for create_namespaced_deployment_rollback + """Test case for create_namespaced_deployment_rollback - """ pass def test_create_namespaced_stateful_set(self): - """ - Test case for create_namespaced_stateful_set + """Test case for create_namespaced_stateful_set - """ pass def test_delete_collection_namespaced_controller_revision(self): - """ - Test case for delete_collection_namespaced_controller_revision + """Test case for delete_collection_namespaced_controller_revision - """ pass def test_delete_collection_namespaced_deployment(self): - """ - Test case for delete_collection_namespaced_deployment + """Test case for delete_collection_namespaced_deployment - """ pass def test_delete_collection_namespaced_stateful_set(self): - """ - Test case for delete_collection_namespaced_stateful_set + """Test case for delete_collection_namespaced_stateful_set - """ pass def test_delete_namespaced_controller_revision(self): - """ - Test case for delete_namespaced_controller_revision + """Test case for delete_namespaced_controller_revision - """ pass def test_delete_namespaced_deployment(self): - """ - Test case for delete_namespaced_deployment + """Test case for delete_namespaced_deployment - """ pass def test_delete_namespaced_stateful_set(self): - """ - Test case for delete_namespaced_stateful_set + """Test case for delete_namespaced_stateful_set - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_controller_revision_for_all_namespaces(self): - """ - Test case for list_controller_revision_for_all_namespaces + """Test case for list_controller_revision_for_all_namespaces - """ pass def test_list_deployment_for_all_namespaces(self): - """ - Test case for list_deployment_for_all_namespaces + """Test case for list_deployment_for_all_namespaces - """ pass def test_list_namespaced_controller_revision(self): - """ - Test case for list_namespaced_controller_revision + """Test case for list_namespaced_controller_revision - """ pass def test_list_namespaced_deployment(self): - """ - Test case for list_namespaced_deployment + """Test case for list_namespaced_deployment - """ pass def test_list_namespaced_stateful_set(self): - """ - Test case for list_namespaced_stateful_set + """Test case for list_namespaced_stateful_set - """ pass def test_list_stateful_set_for_all_namespaces(self): - """ - Test case for list_stateful_set_for_all_namespaces + """Test case for list_stateful_set_for_all_namespaces - """ pass def test_patch_namespaced_controller_revision(self): - """ - Test case for patch_namespaced_controller_revision + """Test case for patch_namespaced_controller_revision - """ pass def test_patch_namespaced_deployment(self): - """ - Test case for patch_namespaced_deployment + """Test case for patch_namespaced_deployment - """ pass def test_patch_namespaced_deployment_scale(self): - """ - Test case for patch_namespaced_deployment_scale + """Test case for patch_namespaced_deployment_scale - """ pass def test_patch_namespaced_deployment_status(self): - """ - Test case for patch_namespaced_deployment_status + """Test case for patch_namespaced_deployment_status - """ pass def test_patch_namespaced_stateful_set(self): - """ - Test case for patch_namespaced_stateful_set + """Test case for patch_namespaced_stateful_set - """ pass def test_patch_namespaced_stateful_set_scale(self): - """ - Test case for patch_namespaced_stateful_set_scale + """Test case for patch_namespaced_stateful_set_scale - """ pass def test_patch_namespaced_stateful_set_status(self): - """ - Test case for patch_namespaced_stateful_set_status + """Test case for patch_namespaced_stateful_set_status - """ pass def test_read_namespaced_controller_revision(self): - """ - Test case for read_namespaced_controller_revision + """Test case for read_namespaced_controller_revision - """ pass def test_read_namespaced_deployment(self): - """ - Test case for read_namespaced_deployment + """Test case for read_namespaced_deployment - """ pass def test_read_namespaced_deployment_scale(self): - """ - Test case for read_namespaced_deployment_scale + """Test case for read_namespaced_deployment_scale - """ pass def test_read_namespaced_deployment_status(self): - """ - Test case for read_namespaced_deployment_status + """Test case for read_namespaced_deployment_status - """ pass def test_read_namespaced_stateful_set(self): - """ - Test case for read_namespaced_stateful_set + """Test case for read_namespaced_stateful_set - """ pass def test_read_namespaced_stateful_set_scale(self): - """ - Test case for read_namespaced_stateful_set_scale + """Test case for read_namespaced_stateful_set_scale - """ pass def test_read_namespaced_stateful_set_status(self): - """ - Test case for read_namespaced_stateful_set_status + """Test case for read_namespaced_stateful_set_status - """ pass def test_replace_namespaced_controller_revision(self): - """ - Test case for replace_namespaced_controller_revision + """Test case for replace_namespaced_controller_revision - """ pass def test_replace_namespaced_deployment(self): - """ - Test case for replace_namespaced_deployment + """Test case for replace_namespaced_deployment - """ pass def test_replace_namespaced_deployment_scale(self): - """ - Test case for replace_namespaced_deployment_scale + """Test case for replace_namespaced_deployment_scale - """ pass def test_replace_namespaced_deployment_status(self): - """ - Test case for replace_namespaced_deployment_status + """Test case for replace_namespaced_deployment_status - """ pass def test_replace_namespaced_stateful_set(self): - """ - Test case for replace_namespaced_stateful_set + """Test case for replace_namespaced_stateful_set - """ pass def test_replace_namespaced_stateful_set_scale(self): - """ - Test case for replace_namespaced_stateful_set_scale + """Test case for replace_namespaced_stateful_set_scale - """ pass def test_replace_namespaced_stateful_set_status(self): - """ - Test case for replace_namespaced_stateful_set_status + """Test case for replace_namespaced_stateful_set_status - """ pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment.py b/kubernetes/test/test_apps_v1beta1_deployment.py index 7618898cbe..14d2f72f5a 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment.py +++ b/kubernetes/test/test_apps_v1beta1_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment class TestAppsV1beta1Deployment(unittest.TestCase): - """ AppsV1beta1Deployment unit test stubs """ + """AppsV1beta1Deployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1Deployment(self): - """ - Test AppsV1beta1Deployment - """ + """Test AppsV1beta1Deployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment.AppsV1beta1Deployment() + # model = kubernetes.client.models.apps_v1beta1_deployment.AppsV1beta1Deployment() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_condition.py b/kubernetes/test/test_apps_v1beta1_deployment_condition.py index 9a5cc248c3..0aa96f87b8 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_condition.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition class TestAppsV1beta1DeploymentCondition(unittest.TestCase): - """ AppsV1beta1DeploymentCondition unit test stubs """ + """AppsV1beta1DeploymentCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentCondition(self): - """ - Test AppsV1beta1DeploymentCondition - """ + """Test AppsV1beta1DeploymentCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_condition.AppsV1beta1DeploymentCondition() + # model = kubernetes.client.models.apps_v1beta1_deployment_condition.AppsV1beta1DeploymentCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_list.py b/kubernetes/test/test_apps_v1beta1_deployment_list.py index 695a824932..c12daafcda 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_list.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList class TestAppsV1beta1DeploymentList(unittest.TestCase): - """ AppsV1beta1DeploymentList unit test stubs """ + """AppsV1beta1DeploymentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentList(self): - """ - Test AppsV1beta1DeploymentList - """ + """Test AppsV1beta1DeploymentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_list.AppsV1beta1DeploymentList() + # model = kubernetes.client.models.apps_v1beta1_deployment_list.AppsV1beta1DeploymentList() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py index 02052c3555..a223dc9759 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback class TestAppsV1beta1DeploymentRollback(unittest.TestCase): - """ AppsV1beta1DeploymentRollback unit test stubs """ + """AppsV1beta1DeploymentRollback unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentRollback(self): - """ - Test AppsV1beta1DeploymentRollback - """ + """Test AppsV1beta1DeploymentRollback""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_rollback.AppsV1beta1DeploymentRollback() + # model = kubernetes.client.models.apps_v1beta1_deployment_rollback.AppsV1beta1DeploymentRollback() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_spec.py b/kubernetes/test/test_apps_v1beta1_deployment_spec.py index e4495e0c32..d5b63496e0 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_spec.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec class TestAppsV1beta1DeploymentSpec(unittest.TestCase): - """ AppsV1beta1DeploymentSpec unit test stubs """ + """AppsV1beta1DeploymentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentSpec(self): - """ - Test AppsV1beta1DeploymentSpec - """ + """Test AppsV1beta1DeploymentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_spec.AppsV1beta1DeploymentSpec() + # model = kubernetes.client.models.apps_v1beta1_deployment_spec.AppsV1beta1DeploymentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_status.py b/kubernetes/test/test_apps_v1beta1_deployment_status.py index c4ca2e89de..1c25ccf42b 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_status.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus class TestAppsV1beta1DeploymentStatus(unittest.TestCase): - """ AppsV1beta1DeploymentStatus unit test stubs """ + """AppsV1beta1DeploymentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentStatus(self): - """ - Test AppsV1beta1DeploymentStatus - """ + """Test AppsV1beta1DeploymentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_status.AppsV1beta1DeploymentStatus() + # model = kubernetes.client.models.apps_v1beta1_deployment_status.AppsV1beta1DeploymentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py index b831f83d2a..4ba15df91e 100644 --- a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py +++ b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy class TestAppsV1beta1DeploymentStrategy(unittest.TestCase): - """ AppsV1beta1DeploymentStrategy unit test stubs """ + """AppsV1beta1DeploymentStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1DeploymentStrategy(self): - """ - Test AppsV1beta1DeploymentStrategy - """ + """Test AppsV1beta1DeploymentStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_deployment_strategy.AppsV1beta1DeploymentStrategy() + # model = kubernetes.client.models.apps_v1beta1_deployment_strategy.AppsV1beta1DeploymentStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_rollback_config.py b/kubernetes/test/test_apps_v1beta1_rollback_config.py index 6f9390a2a0..3c4b5e17a9 100644 --- a/kubernetes/test/test_apps_v1beta1_rollback_config.py +++ b/kubernetes/test/test_apps_v1beta1_rollback_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig class TestAppsV1beta1RollbackConfig(unittest.TestCase): - """ AppsV1beta1RollbackConfig unit test stubs """ + """AppsV1beta1RollbackConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1RollbackConfig(self): - """ - Test AppsV1beta1RollbackConfig - """ + """Test AppsV1beta1RollbackConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_rollback_config.AppsV1beta1RollbackConfig() + # model = kubernetes.client.models.apps_v1beta1_rollback_config.AppsV1beta1RollbackConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py index aedecd026d..3c717d3641 100644 --- a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py +++ b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment class TestAppsV1beta1RollingUpdateDeployment(unittest.TestCase): - """ AppsV1beta1RollingUpdateDeployment unit test stubs """ + """AppsV1beta1RollingUpdateDeployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1RollingUpdateDeployment(self): - """ - Test AppsV1beta1RollingUpdateDeployment - """ + """Test AppsV1beta1RollingUpdateDeployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_rolling_update_deployment.AppsV1beta1RollingUpdateDeployment() + # model = kubernetes.client.models.apps_v1beta1_rolling_update_deployment.AppsV1beta1RollingUpdateDeployment() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_scale.py b/kubernetes/test/test_apps_v1beta1_scale.py index cbd4ded2dd..f3d7f6c17a 100644 --- a/kubernetes/test/test_apps_v1beta1_scale.py +++ b/kubernetes/test/test_apps_v1beta1_scale.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale class TestAppsV1beta1Scale(unittest.TestCase): - """ AppsV1beta1Scale unit test stubs """ + """AppsV1beta1Scale unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1Scale(self): - """ - Test AppsV1beta1Scale - """ + """Test AppsV1beta1Scale""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_scale.AppsV1beta1Scale() + # model = kubernetes.client.models.apps_v1beta1_scale.AppsV1beta1Scale() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_scale_spec.py b/kubernetes/test/test_apps_v1beta1_scale_spec.py index b036b6b00c..68151c3d5d 100644 --- a/kubernetes/test/test_apps_v1beta1_scale_spec.py +++ b/kubernetes/test/test_apps_v1beta1_scale_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec class TestAppsV1beta1ScaleSpec(unittest.TestCase): - """ AppsV1beta1ScaleSpec unit test stubs """ + """AppsV1beta1ScaleSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1ScaleSpec(self): - """ - Test AppsV1beta1ScaleSpec - """ + """Test AppsV1beta1ScaleSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_scale_spec.AppsV1beta1ScaleSpec() + # model = kubernetes.client.models.apps_v1beta1_scale_spec.AppsV1beta1ScaleSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta1_scale_status.py b/kubernetes/test/test_apps_v1beta1_scale_status.py index 8fe7bd3bcd..95e252da63 100644 --- a/kubernetes/test/test_apps_v1beta1_scale_status.py +++ b/kubernetes/test/test_apps_v1beta1_scale_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus class TestAppsV1beta1ScaleStatus(unittest.TestCase): - """ AppsV1beta1ScaleStatus unit test stubs """ + """AppsV1beta1ScaleStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testAppsV1beta1ScaleStatus(self): - """ - Test AppsV1beta1ScaleStatus - """ + """Test AppsV1beta1ScaleStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.apps_v1beta1_scale_status.AppsV1beta1ScaleStatus() + # model = kubernetes.client.models.apps_v1beta1_scale_status.AppsV1beta1ScaleStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_apps_v1beta2_api.py b/kubernetes/test/test_apps_v1beta2_api.py index dc44307cfd..3d25c21b1b 100644 --- a/kubernetes/test/test_apps_v1beta2_api.py +++ b/kubernetes/test/test_apps_v1beta2_api.py @@ -3,527 +3,400 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.apps_v1beta2_api import AppsV1beta2Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.apps_v1beta2_api import AppsV1beta2Api class TestAppsV1beta2Api(unittest.TestCase): - """ AppsV1beta2Api unit test stubs """ + """AppsV1beta2Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.apps_v1beta2_api.AppsV1beta2Api() + self.api = kubernetes.client.api.apps_v1beta2_api.AppsV1beta2Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_controller_revision(self): - """ - Test case for create_namespaced_controller_revision + """Test case for create_namespaced_controller_revision - """ pass def test_create_namespaced_daemon_set(self): - """ - Test case for create_namespaced_daemon_set + """Test case for create_namespaced_daemon_set - """ pass def test_create_namespaced_deployment(self): - """ - Test case for create_namespaced_deployment + """Test case for create_namespaced_deployment - """ pass def test_create_namespaced_replica_set(self): - """ - Test case for create_namespaced_replica_set + """Test case for create_namespaced_replica_set - """ pass def test_create_namespaced_stateful_set(self): - """ - Test case for create_namespaced_stateful_set + """Test case for create_namespaced_stateful_set - """ pass def test_delete_collection_namespaced_controller_revision(self): - """ - Test case for delete_collection_namespaced_controller_revision + """Test case for delete_collection_namespaced_controller_revision - """ pass def test_delete_collection_namespaced_daemon_set(self): - """ - Test case for delete_collection_namespaced_daemon_set + """Test case for delete_collection_namespaced_daemon_set - """ pass def test_delete_collection_namespaced_deployment(self): - """ - Test case for delete_collection_namespaced_deployment + """Test case for delete_collection_namespaced_deployment - """ pass def test_delete_collection_namespaced_replica_set(self): - """ - Test case for delete_collection_namespaced_replica_set + """Test case for delete_collection_namespaced_replica_set - """ pass def test_delete_collection_namespaced_stateful_set(self): - """ - Test case for delete_collection_namespaced_stateful_set + """Test case for delete_collection_namespaced_stateful_set - """ pass def test_delete_namespaced_controller_revision(self): - """ - Test case for delete_namespaced_controller_revision + """Test case for delete_namespaced_controller_revision - """ pass def test_delete_namespaced_daemon_set(self): - """ - Test case for delete_namespaced_daemon_set + """Test case for delete_namespaced_daemon_set - """ pass def test_delete_namespaced_deployment(self): - """ - Test case for delete_namespaced_deployment + """Test case for delete_namespaced_deployment - """ pass def test_delete_namespaced_replica_set(self): - """ - Test case for delete_namespaced_replica_set + """Test case for delete_namespaced_replica_set - """ pass def test_delete_namespaced_stateful_set(self): - """ - Test case for delete_namespaced_stateful_set + """Test case for delete_namespaced_stateful_set - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_controller_revision_for_all_namespaces(self): - """ - Test case for list_controller_revision_for_all_namespaces + """Test case for list_controller_revision_for_all_namespaces - """ pass def test_list_daemon_set_for_all_namespaces(self): - """ - Test case for list_daemon_set_for_all_namespaces + """Test case for list_daemon_set_for_all_namespaces - """ pass def test_list_deployment_for_all_namespaces(self): - """ - Test case for list_deployment_for_all_namespaces + """Test case for list_deployment_for_all_namespaces - """ pass def test_list_namespaced_controller_revision(self): - """ - Test case for list_namespaced_controller_revision + """Test case for list_namespaced_controller_revision - """ pass def test_list_namespaced_daemon_set(self): - """ - Test case for list_namespaced_daemon_set + """Test case for list_namespaced_daemon_set - """ pass def test_list_namespaced_deployment(self): - """ - Test case for list_namespaced_deployment + """Test case for list_namespaced_deployment - """ pass def test_list_namespaced_replica_set(self): - """ - Test case for list_namespaced_replica_set + """Test case for list_namespaced_replica_set - """ pass def test_list_namespaced_stateful_set(self): - """ - Test case for list_namespaced_stateful_set + """Test case for list_namespaced_stateful_set - """ pass def test_list_replica_set_for_all_namespaces(self): - """ - Test case for list_replica_set_for_all_namespaces + """Test case for list_replica_set_for_all_namespaces - """ pass def test_list_stateful_set_for_all_namespaces(self): - """ - Test case for list_stateful_set_for_all_namespaces + """Test case for list_stateful_set_for_all_namespaces - """ pass def test_patch_namespaced_controller_revision(self): - """ - Test case for patch_namespaced_controller_revision + """Test case for patch_namespaced_controller_revision - """ pass def test_patch_namespaced_daemon_set(self): - """ - Test case for patch_namespaced_daemon_set + """Test case for patch_namespaced_daemon_set - """ pass def test_patch_namespaced_daemon_set_status(self): - """ - Test case for patch_namespaced_daemon_set_status + """Test case for patch_namespaced_daemon_set_status - """ pass def test_patch_namespaced_deployment(self): - """ - Test case for patch_namespaced_deployment + """Test case for patch_namespaced_deployment - """ pass def test_patch_namespaced_deployment_scale(self): - """ - Test case for patch_namespaced_deployment_scale + """Test case for patch_namespaced_deployment_scale - """ pass def test_patch_namespaced_deployment_status(self): - """ - Test case for patch_namespaced_deployment_status + """Test case for patch_namespaced_deployment_status - """ pass def test_patch_namespaced_replica_set(self): - """ - Test case for patch_namespaced_replica_set + """Test case for patch_namespaced_replica_set - """ pass def test_patch_namespaced_replica_set_scale(self): - """ - Test case for patch_namespaced_replica_set_scale + """Test case for patch_namespaced_replica_set_scale - """ pass def test_patch_namespaced_replica_set_status(self): - """ - Test case for patch_namespaced_replica_set_status + """Test case for patch_namespaced_replica_set_status - """ pass def test_patch_namespaced_stateful_set(self): - """ - Test case for patch_namespaced_stateful_set + """Test case for patch_namespaced_stateful_set - """ pass def test_patch_namespaced_stateful_set_scale(self): - """ - Test case for patch_namespaced_stateful_set_scale + """Test case for patch_namespaced_stateful_set_scale - """ pass def test_patch_namespaced_stateful_set_status(self): - """ - Test case for patch_namespaced_stateful_set_status + """Test case for patch_namespaced_stateful_set_status - """ pass def test_read_namespaced_controller_revision(self): - """ - Test case for read_namespaced_controller_revision + """Test case for read_namespaced_controller_revision - """ pass def test_read_namespaced_daemon_set(self): - """ - Test case for read_namespaced_daemon_set + """Test case for read_namespaced_daemon_set - """ pass def test_read_namespaced_daemon_set_status(self): - """ - Test case for read_namespaced_daemon_set_status + """Test case for read_namespaced_daemon_set_status - """ pass def test_read_namespaced_deployment(self): - """ - Test case for read_namespaced_deployment + """Test case for read_namespaced_deployment - """ pass def test_read_namespaced_deployment_scale(self): - """ - Test case for read_namespaced_deployment_scale + """Test case for read_namespaced_deployment_scale - """ pass def test_read_namespaced_deployment_status(self): - """ - Test case for read_namespaced_deployment_status + """Test case for read_namespaced_deployment_status - """ pass def test_read_namespaced_replica_set(self): - """ - Test case for read_namespaced_replica_set + """Test case for read_namespaced_replica_set - """ pass def test_read_namespaced_replica_set_scale(self): - """ - Test case for read_namespaced_replica_set_scale + """Test case for read_namespaced_replica_set_scale - """ pass def test_read_namespaced_replica_set_status(self): - """ - Test case for read_namespaced_replica_set_status + """Test case for read_namespaced_replica_set_status - """ pass def test_read_namespaced_stateful_set(self): - """ - Test case for read_namespaced_stateful_set + """Test case for read_namespaced_stateful_set - """ pass def test_read_namespaced_stateful_set_scale(self): - """ - Test case for read_namespaced_stateful_set_scale + """Test case for read_namespaced_stateful_set_scale - """ pass def test_read_namespaced_stateful_set_status(self): - """ - Test case for read_namespaced_stateful_set_status + """Test case for read_namespaced_stateful_set_status - """ pass def test_replace_namespaced_controller_revision(self): - """ - Test case for replace_namespaced_controller_revision + """Test case for replace_namespaced_controller_revision - """ pass def test_replace_namespaced_daemon_set(self): - """ - Test case for replace_namespaced_daemon_set + """Test case for replace_namespaced_daemon_set - """ pass def test_replace_namespaced_daemon_set_status(self): - """ - Test case for replace_namespaced_daemon_set_status + """Test case for replace_namespaced_daemon_set_status - """ pass def test_replace_namespaced_deployment(self): - """ - Test case for replace_namespaced_deployment + """Test case for replace_namespaced_deployment - """ pass def test_replace_namespaced_deployment_scale(self): - """ - Test case for replace_namespaced_deployment_scale + """Test case for replace_namespaced_deployment_scale - """ pass def test_replace_namespaced_deployment_status(self): - """ - Test case for replace_namespaced_deployment_status + """Test case for replace_namespaced_deployment_status - """ pass def test_replace_namespaced_replica_set(self): - """ - Test case for replace_namespaced_replica_set + """Test case for replace_namespaced_replica_set - """ pass def test_replace_namespaced_replica_set_scale(self): - """ - Test case for replace_namespaced_replica_set_scale + """Test case for replace_namespaced_replica_set_scale - """ pass def test_replace_namespaced_replica_set_status(self): - """ - Test case for replace_namespaced_replica_set_status + """Test case for replace_namespaced_replica_set_status - """ pass def test_replace_namespaced_stateful_set(self): - """ - Test case for replace_namespaced_stateful_set + """Test case for replace_namespaced_stateful_set - """ pass def test_replace_namespaced_stateful_set_scale(self): - """ - Test case for replace_namespaced_stateful_set_scale + """Test case for replace_namespaced_stateful_set_scale - """ pass def test_replace_namespaced_stateful_set_status(self): - """ - Test case for replace_namespaced_stateful_set_status + """Test case for replace_namespaced_stateful_set_status - """ pass diff --git a/kubernetes/test/test_auditregistration_api.py b/kubernetes/test/test_auditregistration_api.py index 432d0de81a..fcc5b6436f 100644 --- a/kubernetes/test/test_auditregistration_api.py +++ b/kubernetes/test/test_auditregistration_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.auditregistration_api import AuditregistrationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.auditregistration_api import AuditregistrationApi class TestAuditregistrationApi(unittest.TestCase): - """ AuditregistrationApi unit test stubs """ + """AuditregistrationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.auditregistration_api.AuditregistrationApi() + self.api = kubernetes.client.api.auditregistration_api.AuditregistrationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_auditregistration_v1alpha1_api.py b/kubernetes/test/test_auditregistration_v1alpha1_api.py index ec10995200..98a3ff8203 100644 --- a/kubernetes/test/test_auditregistration_v1alpha1_api.py +++ b/kubernetes/test/test_auditregistration_v1alpha1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api class TestAuditregistrationV1alpha1Api(unittest.TestCase): - """ AuditregistrationV1alpha1Api unit test stubs """ + """AuditregistrationV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.auditregistration_v1alpha1_api.AuditregistrationV1alpha1Api() + self.api = kubernetes.client.api.auditregistration_v1alpha1_api.AuditregistrationV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_audit_sink(self): - """ - Test case for create_audit_sink + """Test case for create_audit_sink - """ pass def test_delete_audit_sink(self): - """ - Test case for delete_audit_sink + """Test case for delete_audit_sink - """ pass def test_delete_collection_audit_sink(self): - """ - Test case for delete_collection_audit_sink + """Test case for delete_collection_audit_sink - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_audit_sink(self): - """ - Test case for list_audit_sink + """Test case for list_audit_sink - """ pass def test_patch_audit_sink(self): - """ - Test case for patch_audit_sink + """Test case for patch_audit_sink - """ pass def test_read_audit_sink(self): - """ - Test case for read_audit_sink + """Test case for read_audit_sink - """ pass def test_replace_audit_sink(self): - """ - Test case for replace_audit_sink + """Test case for replace_audit_sink - """ pass diff --git a/kubernetes/test/test_authentication_api.py b/kubernetes/test/test_authentication_api.py index b1ff0e0b8f..3d067142b7 100644 --- a/kubernetes/test/test_authentication_api.py +++ b/kubernetes/test/test_authentication_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authentication_api import AuthenticationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authentication_api import AuthenticationApi class TestAuthenticationApi(unittest.TestCase): - """ AuthenticationApi unit test stubs """ + """AuthenticationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authentication_api.AuthenticationApi() + self.api = kubernetes.client.api.authentication_api.AuthenticationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_authentication_v1_api.py b/kubernetes/test/test_authentication_v1_api.py index 1ade6853da..329bd3fe4d 100644 --- a/kubernetes/test/test_authentication_v1_api.py +++ b/kubernetes/test/test_authentication_v1_api.py @@ -3,47 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authentication_v1_api import AuthenticationV1Api class TestAuthenticationV1Api(unittest.TestCase): - """ AuthenticationV1Api unit test stubs """ + """AuthenticationV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authentication_v1_api.AuthenticationV1Api() + self.api = kubernetes.client.api.authentication_v1_api.AuthenticationV1Api() # noqa: E501 def tearDown(self): pass def test_create_token_review(self): - """ - Test case for create_token_review + """Test case for create_token_review - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass diff --git a/kubernetes/test/test_authentication_v1beta1_api.py b/kubernetes/test/test_authentication_v1beta1_api.py index 5ab4922ca6..0856bc15a8 100644 --- a/kubernetes/test/test_authentication_v1beta1_api.py +++ b/kubernetes/test/test_authentication_v1beta1_api.py @@ -3,47 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authentication_v1beta1_api import AuthenticationV1beta1Api class TestAuthenticationV1beta1Api(unittest.TestCase): - """ AuthenticationV1beta1Api unit test stubs """ + """AuthenticationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authentication_v1beta1_api.AuthenticationV1beta1Api() + self.api = kubernetes.client.api.authentication_v1beta1_api.AuthenticationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_token_review(self): - """ - Test case for create_token_review + """Test case for create_token_review - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass diff --git a/kubernetes/test/test_authorization_api.py b/kubernetes/test/test_authorization_api.py index 386a2c24d3..57130263a2 100644 --- a/kubernetes/test/test_authorization_api.py +++ b/kubernetes/test/test_authorization_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authorization_api import AuthorizationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_api import AuthorizationApi class TestAuthorizationApi(unittest.TestCase): - """ AuthorizationApi unit test stubs """ + """AuthorizationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authorization_api.AuthorizationApi() + self.api = kubernetes.client.api.authorization_api.AuthorizationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_authorization_v1_api.py b/kubernetes/test/test_authorization_v1_api.py index ffaa8c4bc8..f75db46742 100644 --- a/kubernetes/test/test_authorization_v1_api.py +++ b/kubernetes/test/test_authorization_v1_api.py @@ -3,71 +3,58 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_v1_api import AuthorizationV1Api class TestAuthorizationV1Api(unittest.TestCase): - """ AuthorizationV1Api unit test stubs """ + """AuthorizationV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authorization_v1_api.AuthorizationV1Api() + self.api = kubernetes.client.api.authorization_v1_api.AuthorizationV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_local_subject_access_review(self): - """ - Test case for create_namespaced_local_subject_access_review + """Test case for create_namespaced_local_subject_access_review - """ pass def test_create_self_subject_access_review(self): - """ - Test case for create_self_subject_access_review + """Test case for create_self_subject_access_review - """ pass def test_create_self_subject_rules_review(self): - """ - Test case for create_self_subject_rules_review + """Test case for create_self_subject_rules_review - """ pass def test_create_subject_access_review(self): - """ - Test case for create_subject_access_review + """Test case for create_subject_access_review - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass diff --git a/kubernetes/test/test_authorization_v1beta1_api.py b/kubernetes/test/test_authorization_v1beta1_api.py index e59781e823..06129aa954 100644 --- a/kubernetes/test/test_authorization_v1beta1_api.py +++ b/kubernetes/test/test_authorization_v1beta1_api.py @@ -3,71 +3,58 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.authorization_v1beta1_api import AuthorizationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.authorization_v1beta1_api import AuthorizationV1beta1Api class TestAuthorizationV1beta1Api(unittest.TestCase): - """ AuthorizationV1beta1Api unit test stubs """ + """AuthorizationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.authorization_v1beta1_api.AuthorizationV1beta1Api() + self.api = kubernetes.client.api.authorization_v1beta1_api.AuthorizationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_local_subject_access_review(self): - """ - Test case for create_namespaced_local_subject_access_review + """Test case for create_namespaced_local_subject_access_review - """ pass def test_create_self_subject_access_review(self): - """ - Test case for create_self_subject_access_review + """Test case for create_self_subject_access_review - """ pass def test_create_self_subject_rules_review(self): - """ - Test case for create_self_subject_rules_review + """Test case for create_self_subject_rules_review - """ pass def test_create_subject_access_review(self): - """ - Test case for create_subject_access_review + """Test case for create_subject_access_review - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass diff --git a/kubernetes/test/test_autoscaling_api.py b/kubernetes/test/test_autoscaling_api.py index 818d3e074a..22c3f7009b 100644 --- a/kubernetes/test/test_autoscaling_api.py +++ b/kubernetes/test/test_autoscaling_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.autoscaling_api import AutoscalingApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.autoscaling_api import AutoscalingApi class TestAutoscalingApi(unittest.TestCase): - """ AutoscalingApi unit test stubs """ + """AutoscalingApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.autoscaling_api.AutoscalingApi() + self.api = kubernetes.client.api.autoscaling_api.AutoscalingApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_autoscaling_v1_api.py b/kubernetes/test/test_autoscaling_v1_api.py index 4d1b085c58..cc6c71f5ce 100644 --- a/kubernetes/test/test_autoscaling_v1_api.py +++ b/kubernetes/test/test_autoscaling_v1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.autoscaling_v1_api import AutoscalingV1Api class TestAutoscalingV1Api(unittest.TestCase): - """ AutoscalingV1Api unit test stubs """ + """AutoscalingV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.autoscaling_v1_api.AutoscalingV1Api() + self.api = kubernetes.client.api.autoscaling_v1_api.AutoscalingV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for create_namespaced_horizontal_pod_autoscaler + """Test case for create_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_collection_namespaced_horizontal_pod_autoscaler + """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_namespaced_horizontal_pod_autoscaler + """Test case for delete_namespaced_horizontal_pod_autoscaler - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """ - Test case for list_horizontal_pod_autoscaler_for_all_namespaces + """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - """ pass def test_list_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for list_namespaced_horizontal_pod_autoscaler + """Test case for list_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler + """Test case for patch_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler_status + """Test case for patch_namespaced_horizontal_pod_autoscaler_status - """ pass def test_read_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler + """Test case for read_namespaced_horizontal_pod_autoscaler - """ pass def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler_status + """Test case for read_namespaced_horizontal_pod_autoscaler_status - """ pass def test_replace_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler + """Test case for replace_namespaced_horizontal_pod_autoscaler - """ pass def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler_status + """Test case for replace_namespaced_horizontal_pod_autoscaler_status - """ pass diff --git a/kubernetes/test/test_autoscaling_v2beta1_api.py b/kubernetes/test/test_autoscaling_v2beta1_api.py index 3e1a00455b..0aee940133 100644 --- a/kubernetes/test/test_autoscaling_v2beta1_api.py +++ b/kubernetes/test/test_autoscaling_v2beta1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.autoscaling_v2beta1_api import AutoscalingV2beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.autoscaling_v2beta1_api import AutoscalingV2beta1Api class TestAutoscalingV2beta1Api(unittest.TestCase): - """ AutoscalingV2beta1Api unit test stubs """ + """AutoscalingV2beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.autoscaling_v2beta1_api.AutoscalingV2beta1Api() + self.api = kubernetes.client.api.autoscaling_v2beta1_api.AutoscalingV2beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for create_namespaced_horizontal_pod_autoscaler + """Test case for create_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_collection_namespaced_horizontal_pod_autoscaler + """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_namespaced_horizontal_pod_autoscaler + """Test case for delete_namespaced_horizontal_pod_autoscaler - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """ - Test case for list_horizontal_pod_autoscaler_for_all_namespaces + """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - """ pass def test_list_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for list_namespaced_horizontal_pod_autoscaler + """Test case for list_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler + """Test case for patch_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler_status + """Test case for patch_namespaced_horizontal_pod_autoscaler_status - """ pass def test_read_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler + """Test case for read_namespaced_horizontal_pod_autoscaler - """ pass def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler_status + """Test case for read_namespaced_horizontal_pod_autoscaler_status - """ pass def test_replace_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler + """Test case for replace_namespaced_horizontal_pod_autoscaler - """ pass def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler_status + """Test case for replace_namespaced_horizontal_pod_autoscaler_status - """ pass diff --git a/kubernetes/test/test_autoscaling_v2beta2_api.py b/kubernetes/test/test_autoscaling_v2beta2_api.py index 92cefc50fe..5f0c666fb0 100644 --- a/kubernetes/test/test_autoscaling_v2beta2_api.py +++ b/kubernetes/test/test_autoscaling_v2beta2_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.autoscaling_v2beta2_api import AutoscalingV2beta2Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.autoscaling_v2beta2_api import AutoscalingV2beta2Api class TestAutoscalingV2beta2Api(unittest.TestCase): - """ AutoscalingV2beta2Api unit test stubs """ + """AutoscalingV2beta2Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.autoscaling_v2beta2_api.AutoscalingV2beta2Api() + self.api = kubernetes.client.api.autoscaling_v2beta2_api.AutoscalingV2beta2Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for create_namespaced_horizontal_pod_autoscaler + """Test case for create_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_collection_namespaced_horizontal_pod_autoscaler + """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - """ pass def test_delete_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for delete_namespaced_horizontal_pod_autoscaler + """Test case for delete_namespaced_horizontal_pod_autoscaler - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """ - Test case for list_horizontal_pod_autoscaler_for_all_namespaces + """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - """ pass def test_list_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for list_namespaced_horizontal_pod_autoscaler + """Test case for list_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler + """Test case for patch_namespaced_horizontal_pod_autoscaler - """ pass def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for patch_namespaced_horizontal_pod_autoscaler_status + """Test case for patch_namespaced_horizontal_pod_autoscaler_status - """ pass def test_read_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler + """Test case for read_namespaced_horizontal_pod_autoscaler - """ pass def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for read_namespaced_horizontal_pod_autoscaler_status + """Test case for read_namespaced_horizontal_pod_autoscaler_status - """ pass def test_replace_namespaced_horizontal_pod_autoscaler(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler + """Test case for replace_namespaced_horizontal_pod_autoscaler - """ pass def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """ - Test case for replace_namespaced_horizontal_pod_autoscaler_status + """Test case for replace_namespaced_horizontal_pod_autoscaler_status - """ pass diff --git a/kubernetes/test/test_batch_api.py b/kubernetes/test/test_batch_api.py index 8b66337510..a3c25592a0 100644 --- a/kubernetes/test/test_batch_api.py +++ b/kubernetes/test/test_batch_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.batch_api import BatchApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.batch_api import BatchApi class TestBatchApi(unittest.TestCase): - """ BatchApi unit test stubs """ + """BatchApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.batch_api.BatchApi() + self.api = kubernetes.client.api.batch_api.BatchApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_batch_v1_api.py b/kubernetes/test/test_batch_v1_api.py index 89702e93f7..c6651a9f58 100644 --- a/kubernetes/test/test_batch_v1_api.py +++ b/kubernetes/test/test_batch_v1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.batch_v1_api import BatchV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.batch_v1_api import BatchV1Api class TestBatchV1Api(unittest.TestCase): - """ BatchV1Api unit test stubs """ + """BatchV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.batch_v1_api.BatchV1Api() + self.api = kubernetes.client.api.batch_v1_api.BatchV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_job(self): - """ - Test case for create_namespaced_job + """Test case for create_namespaced_job - """ pass def test_delete_collection_namespaced_job(self): - """ - Test case for delete_collection_namespaced_job + """Test case for delete_collection_namespaced_job - """ pass def test_delete_namespaced_job(self): - """ - Test case for delete_namespaced_job + """Test case for delete_namespaced_job - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_job_for_all_namespaces(self): - """ - Test case for list_job_for_all_namespaces + """Test case for list_job_for_all_namespaces - """ pass def test_list_namespaced_job(self): - """ - Test case for list_namespaced_job + """Test case for list_namespaced_job - """ pass def test_patch_namespaced_job(self): - """ - Test case for patch_namespaced_job + """Test case for patch_namespaced_job - """ pass def test_patch_namespaced_job_status(self): - """ - Test case for patch_namespaced_job_status + """Test case for patch_namespaced_job_status - """ pass def test_read_namespaced_job(self): - """ - Test case for read_namespaced_job + """Test case for read_namespaced_job - """ pass def test_read_namespaced_job_status(self): - """ - Test case for read_namespaced_job_status + """Test case for read_namespaced_job_status - """ pass def test_replace_namespaced_job(self): - """ - Test case for replace_namespaced_job + """Test case for replace_namespaced_job - """ pass def test_replace_namespaced_job_status(self): - """ - Test case for replace_namespaced_job_status + """Test case for replace_namespaced_job_status - """ pass diff --git a/kubernetes/test/test_batch_v1beta1_api.py b/kubernetes/test/test_batch_v1beta1_api.py index 23c427299b..0822ce2a2c 100644 --- a/kubernetes/test/test_batch_v1beta1_api.py +++ b/kubernetes/test/test_batch_v1beta1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.batch_v1beta1_api import BatchV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.batch_v1beta1_api import BatchV1beta1Api class TestBatchV1beta1Api(unittest.TestCase): - """ BatchV1beta1Api unit test stubs """ + """BatchV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.batch_v1beta1_api.BatchV1beta1Api() + self.api = kubernetes.client.api.batch_v1beta1_api.BatchV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_cron_job(self): - """ - Test case for create_namespaced_cron_job + """Test case for create_namespaced_cron_job - """ pass def test_delete_collection_namespaced_cron_job(self): - """ - Test case for delete_collection_namespaced_cron_job + """Test case for delete_collection_namespaced_cron_job - """ pass def test_delete_namespaced_cron_job(self): - """ - Test case for delete_namespaced_cron_job + """Test case for delete_namespaced_cron_job - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_cron_job_for_all_namespaces(self): - """ - Test case for list_cron_job_for_all_namespaces + """Test case for list_cron_job_for_all_namespaces - """ pass def test_list_namespaced_cron_job(self): - """ - Test case for list_namespaced_cron_job + """Test case for list_namespaced_cron_job - """ pass def test_patch_namespaced_cron_job(self): - """ - Test case for patch_namespaced_cron_job + """Test case for patch_namespaced_cron_job - """ pass def test_patch_namespaced_cron_job_status(self): - """ - Test case for patch_namespaced_cron_job_status + """Test case for patch_namespaced_cron_job_status - """ pass def test_read_namespaced_cron_job(self): - """ - Test case for read_namespaced_cron_job + """Test case for read_namespaced_cron_job - """ pass def test_read_namespaced_cron_job_status(self): - """ - Test case for read_namespaced_cron_job_status + """Test case for read_namespaced_cron_job_status - """ pass def test_replace_namespaced_cron_job(self): - """ - Test case for replace_namespaced_cron_job + """Test case for replace_namespaced_cron_job - """ pass def test_replace_namespaced_cron_job_status(self): - """ - Test case for replace_namespaced_cron_job_status + """Test case for replace_namespaced_cron_job_status - """ pass diff --git a/kubernetes/test/test_batch_v2alpha1_api.py b/kubernetes/test/test_batch_v2alpha1_api.py index 37123f4876..cc9f93ea3a 100644 --- a/kubernetes/test/test_batch_v2alpha1_api.py +++ b/kubernetes/test/test_batch_v2alpha1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.batch_v2alpha1_api import BatchV2alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.batch_v2alpha1_api import BatchV2alpha1Api class TestBatchV2alpha1Api(unittest.TestCase): - """ BatchV2alpha1Api unit test stubs """ + """BatchV2alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.batch_v2alpha1_api.BatchV2alpha1Api() + self.api = kubernetes.client.api.batch_v2alpha1_api.BatchV2alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_cron_job(self): - """ - Test case for create_namespaced_cron_job + """Test case for create_namespaced_cron_job - """ pass def test_delete_collection_namespaced_cron_job(self): - """ - Test case for delete_collection_namespaced_cron_job + """Test case for delete_collection_namespaced_cron_job - """ pass def test_delete_namespaced_cron_job(self): - """ - Test case for delete_namespaced_cron_job + """Test case for delete_namespaced_cron_job - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_cron_job_for_all_namespaces(self): - """ - Test case for list_cron_job_for_all_namespaces + """Test case for list_cron_job_for_all_namespaces - """ pass def test_list_namespaced_cron_job(self): - """ - Test case for list_namespaced_cron_job + """Test case for list_namespaced_cron_job - """ pass def test_patch_namespaced_cron_job(self): - """ - Test case for patch_namespaced_cron_job + """Test case for patch_namespaced_cron_job - """ pass def test_patch_namespaced_cron_job_status(self): - """ - Test case for patch_namespaced_cron_job_status + """Test case for patch_namespaced_cron_job_status - """ pass def test_read_namespaced_cron_job(self): - """ - Test case for read_namespaced_cron_job + """Test case for read_namespaced_cron_job - """ pass def test_read_namespaced_cron_job_status(self): - """ - Test case for read_namespaced_cron_job_status + """Test case for read_namespaced_cron_job_status - """ pass def test_replace_namespaced_cron_job(self): - """ - Test case for replace_namespaced_cron_job + """Test case for replace_namespaced_cron_job - """ pass def test_replace_namespaced_cron_job_status(self): - """ - Test case for replace_namespaced_cron_job_status + """Test case for replace_namespaced_cron_job_status - """ pass diff --git a/kubernetes/test/test_certificates_api.py b/kubernetes/test/test_certificates_api.py index 9e0a75c4f9..02ec55faf0 100644 --- a/kubernetes/test/test_certificates_api.py +++ b/kubernetes/test/test_certificates_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.certificates_api import CertificatesApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.certificates_api import CertificatesApi class TestCertificatesApi(unittest.TestCase): - """ CertificatesApi unit test stubs """ + """CertificatesApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.certificates_api.CertificatesApi() + self.api = kubernetes.client.api.certificates_api.CertificatesApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_certificates_v1beta1_api.py b/kubernetes/test/test_certificates_v1beta1_api.py index 710b952990..8cad64cf5d 100644 --- a/kubernetes/test/test_certificates_v1beta1_api.py +++ b/kubernetes/test/test_certificates_v1beta1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.certificates_v1beta1_api import CertificatesV1beta1Api class TestCertificatesV1beta1Api(unittest.TestCase): - """ CertificatesV1beta1Api unit test stubs """ + """CertificatesV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.certificates_v1beta1_api.CertificatesV1beta1Api() + self.api = kubernetes.client.api.certificates_v1beta1_api.CertificatesV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_certificate_signing_request(self): - """ - Test case for create_certificate_signing_request + """Test case for create_certificate_signing_request - """ pass def test_delete_certificate_signing_request(self): - """ - Test case for delete_certificate_signing_request + """Test case for delete_certificate_signing_request - """ pass def test_delete_collection_certificate_signing_request(self): - """ - Test case for delete_collection_certificate_signing_request + """Test case for delete_collection_certificate_signing_request - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_certificate_signing_request(self): - """ - Test case for list_certificate_signing_request + """Test case for list_certificate_signing_request - """ pass def test_patch_certificate_signing_request(self): - """ - Test case for patch_certificate_signing_request + """Test case for patch_certificate_signing_request - """ pass def test_patch_certificate_signing_request_status(self): - """ - Test case for patch_certificate_signing_request_status + """Test case for patch_certificate_signing_request_status - """ pass def test_read_certificate_signing_request(self): - """ - Test case for read_certificate_signing_request + """Test case for read_certificate_signing_request - """ pass def test_read_certificate_signing_request_status(self): - """ - Test case for read_certificate_signing_request_status + """Test case for read_certificate_signing_request_status - """ pass def test_replace_certificate_signing_request(self): - """ - Test case for replace_certificate_signing_request + """Test case for replace_certificate_signing_request - """ pass def test_replace_certificate_signing_request_approval(self): - """ - Test case for replace_certificate_signing_request_approval + """Test case for replace_certificate_signing_request_approval - """ pass def test_replace_certificate_signing_request_status(self): - """ - Test case for replace_certificate_signing_request_status + """Test case for replace_certificate_signing_request_status - """ pass diff --git a/kubernetes/test/test_coordination_api.py b/kubernetes/test/test_coordination_api.py index e824994349..2f27417419 100644 --- a/kubernetes/test/test_coordination_api.py +++ b/kubernetes/test/test_coordination_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.coordination_api import CoordinationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.coordination_api import CoordinationApi class TestCoordinationApi(unittest.TestCase): - """ CoordinationApi unit test stubs """ + """CoordinationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.coordination_api.CoordinationApi() + self.api = kubernetes.client.api.coordination_api.CoordinationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_coordination_v1_api.py b/kubernetes/test/test_coordination_v1_api.py index 1d563d17b0..5a49604430 100644 --- a/kubernetes/test/test_coordination_v1_api.py +++ b/kubernetes/test/test_coordination_v1_api.py @@ -3,103 +3,82 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.coordination_v1_api import CoordinationV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.coordination_v1_api import CoordinationV1Api class TestCoordinationV1Api(unittest.TestCase): - """ CoordinationV1Api unit test stubs """ + """CoordinationV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.coordination_v1_api.CoordinationV1Api() + self.api = kubernetes.client.api.coordination_v1_api.CoordinationV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_lease(self): - """ - Test case for create_namespaced_lease + """Test case for create_namespaced_lease - """ pass def test_delete_collection_namespaced_lease(self): - """ - Test case for delete_collection_namespaced_lease + """Test case for delete_collection_namespaced_lease - """ pass def test_delete_namespaced_lease(self): - """ - Test case for delete_namespaced_lease + """Test case for delete_namespaced_lease - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_lease_for_all_namespaces(self): - """ - Test case for list_lease_for_all_namespaces + """Test case for list_lease_for_all_namespaces - """ pass def test_list_namespaced_lease(self): - """ - Test case for list_namespaced_lease + """Test case for list_namespaced_lease - """ pass def test_patch_namespaced_lease(self): - """ - Test case for patch_namespaced_lease + """Test case for patch_namespaced_lease - """ pass def test_read_namespaced_lease(self): - """ - Test case for read_namespaced_lease + """Test case for read_namespaced_lease - """ pass def test_replace_namespaced_lease(self): - """ - Test case for replace_namespaced_lease + """Test case for replace_namespaced_lease - """ pass diff --git a/kubernetes/test/test_coordination_v1beta1_api.py b/kubernetes/test/test_coordination_v1beta1_api.py index 8aec5a14b8..f42f914078 100644 --- a/kubernetes/test/test_coordination_v1beta1_api.py +++ b/kubernetes/test/test_coordination_v1beta1_api.py @@ -3,103 +3,82 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.coordination_v1beta1_api import CoordinationV1beta1Api class TestCoordinationV1beta1Api(unittest.TestCase): - """ CoordinationV1beta1Api unit test stubs """ + """CoordinationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.coordination_v1beta1_api.CoordinationV1beta1Api() + self.api = kubernetes.client.api.coordination_v1beta1_api.CoordinationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_lease(self): - """ - Test case for create_namespaced_lease + """Test case for create_namespaced_lease - """ pass def test_delete_collection_namespaced_lease(self): - """ - Test case for delete_collection_namespaced_lease + """Test case for delete_collection_namespaced_lease - """ pass def test_delete_namespaced_lease(self): - """ - Test case for delete_namespaced_lease + """Test case for delete_namespaced_lease - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_lease_for_all_namespaces(self): - """ - Test case for list_lease_for_all_namespaces + """Test case for list_lease_for_all_namespaces - """ pass def test_list_namespaced_lease(self): - """ - Test case for list_namespaced_lease + """Test case for list_namespaced_lease - """ pass def test_patch_namespaced_lease(self): - """ - Test case for patch_namespaced_lease + """Test case for patch_namespaced_lease - """ pass def test_read_namespaced_lease(self): - """ - Test case for read_namespaced_lease + """Test case for read_namespaced_lease - """ pass def test_replace_namespaced_lease(self): - """ - Test case for replace_namespaced_lease + """Test case for replace_namespaced_lease - """ pass diff --git a/kubernetes/test/test_core_api.py b/kubernetes/test/test_core_api.py index a0f95edd51..dbfcf22241 100644 --- a/kubernetes/test/test_core_api.py +++ b/kubernetes/test/test_core_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.core_api import CoreApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.core_api import CoreApi class TestCoreApi(unittest.TestCase): - """ CoreApi unit test stubs """ + """CoreApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.core_api.CoreApi() + self.api = kubernetes.client.api.core_api.CoreApi() # noqa: E501 def tearDown(self): pass def test_get_api_versions(self): - """ - Test case for get_api_versions + """Test case for get_api_versions - """ pass diff --git a/kubernetes/test/test_core_v1_api.py b/kubernetes/test/test_core_v1_api.py index 044a3dea84..f88a26c470 100644 --- a/kubernetes/test/test_core_v1_api.py +++ b/kubernetes/test/test_core_v1_api.py @@ -3,1615 +3,1216 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.core_v1_api import CoreV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.core_v1_api import CoreV1Api class TestCoreV1Api(unittest.TestCase): - """ CoreV1Api unit test stubs """ + """CoreV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.core_v1_api.CoreV1Api() + self.api = kubernetes.client.api.core_v1_api.CoreV1Api() # noqa: E501 def tearDown(self): pass def test_connect_delete_namespaced_pod_proxy(self): - """ - Test case for connect_delete_namespaced_pod_proxy + """Test case for connect_delete_namespaced_pod_proxy - """ pass def test_connect_delete_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_delete_namespaced_pod_proxy_with_path + """Test case for connect_delete_namespaced_pod_proxy_with_path - """ pass def test_connect_delete_namespaced_service_proxy(self): - """ - Test case for connect_delete_namespaced_service_proxy + """Test case for connect_delete_namespaced_service_proxy - """ pass def test_connect_delete_namespaced_service_proxy_with_path(self): - """ - Test case for connect_delete_namespaced_service_proxy_with_path + """Test case for connect_delete_namespaced_service_proxy_with_path - """ pass def test_connect_delete_node_proxy(self): - """ - Test case for connect_delete_node_proxy + """Test case for connect_delete_node_proxy - """ pass def test_connect_delete_node_proxy_with_path(self): - """ - Test case for connect_delete_node_proxy_with_path + """Test case for connect_delete_node_proxy_with_path - """ pass def test_connect_get_namespaced_pod_attach(self): - """ - Test case for connect_get_namespaced_pod_attach + """Test case for connect_get_namespaced_pod_attach - """ pass def test_connect_get_namespaced_pod_exec(self): - """ - Test case for connect_get_namespaced_pod_exec + """Test case for connect_get_namespaced_pod_exec - """ pass def test_connect_get_namespaced_pod_portforward(self): - """ - Test case for connect_get_namespaced_pod_portforward + """Test case for connect_get_namespaced_pod_portforward - """ pass def test_connect_get_namespaced_pod_proxy(self): - """ - Test case for connect_get_namespaced_pod_proxy + """Test case for connect_get_namespaced_pod_proxy - """ pass def test_connect_get_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_get_namespaced_pod_proxy_with_path + """Test case for connect_get_namespaced_pod_proxy_with_path - """ pass def test_connect_get_namespaced_service_proxy(self): - """ - Test case for connect_get_namespaced_service_proxy + """Test case for connect_get_namespaced_service_proxy - """ pass def test_connect_get_namespaced_service_proxy_with_path(self): - """ - Test case for connect_get_namespaced_service_proxy_with_path + """Test case for connect_get_namespaced_service_proxy_with_path - """ pass def test_connect_get_node_proxy(self): - """ - Test case for connect_get_node_proxy + """Test case for connect_get_node_proxy - """ pass def test_connect_get_node_proxy_with_path(self): - """ - Test case for connect_get_node_proxy_with_path + """Test case for connect_get_node_proxy_with_path - """ pass def test_connect_head_namespaced_pod_proxy(self): - """ - Test case for connect_head_namespaced_pod_proxy + """Test case for connect_head_namespaced_pod_proxy - """ pass def test_connect_head_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_head_namespaced_pod_proxy_with_path + """Test case for connect_head_namespaced_pod_proxy_with_path - """ pass def test_connect_head_namespaced_service_proxy(self): - """ - Test case for connect_head_namespaced_service_proxy + """Test case for connect_head_namespaced_service_proxy - """ pass def test_connect_head_namespaced_service_proxy_with_path(self): - """ - Test case for connect_head_namespaced_service_proxy_with_path + """Test case for connect_head_namespaced_service_proxy_with_path - """ pass def test_connect_head_node_proxy(self): - """ - Test case for connect_head_node_proxy + """Test case for connect_head_node_proxy - """ pass def test_connect_head_node_proxy_with_path(self): - """ - Test case for connect_head_node_proxy_with_path + """Test case for connect_head_node_proxy_with_path - """ pass def test_connect_options_namespaced_pod_proxy(self): - """ - Test case for connect_options_namespaced_pod_proxy + """Test case for connect_options_namespaced_pod_proxy - """ pass def test_connect_options_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_options_namespaced_pod_proxy_with_path + """Test case for connect_options_namespaced_pod_proxy_with_path - """ pass def test_connect_options_namespaced_service_proxy(self): - """ - Test case for connect_options_namespaced_service_proxy + """Test case for connect_options_namespaced_service_proxy - """ pass def test_connect_options_namespaced_service_proxy_with_path(self): - """ - Test case for connect_options_namespaced_service_proxy_with_path + """Test case for connect_options_namespaced_service_proxy_with_path - """ pass def test_connect_options_node_proxy(self): - """ - Test case for connect_options_node_proxy + """Test case for connect_options_node_proxy - """ pass def test_connect_options_node_proxy_with_path(self): - """ - Test case for connect_options_node_proxy_with_path + """Test case for connect_options_node_proxy_with_path - """ pass def test_connect_patch_namespaced_pod_proxy(self): - """ - Test case for connect_patch_namespaced_pod_proxy + """Test case for connect_patch_namespaced_pod_proxy - """ pass def test_connect_patch_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_patch_namespaced_pod_proxy_with_path + """Test case for connect_patch_namespaced_pod_proxy_with_path - """ pass def test_connect_patch_namespaced_service_proxy(self): - """ - Test case for connect_patch_namespaced_service_proxy + """Test case for connect_patch_namespaced_service_proxy - """ pass def test_connect_patch_namespaced_service_proxy_with_path(self): - """ - Test case for connect_patch_namespaced_service_proxy_with_path + """Test case for connect_patch_namespaced_service_proxy_with_path - """ pass def test_connect_patch_node_proxy(self): - """ - Test case for connect_patch_node_proxy + """Test case for connect_patch_node_proxy - """ pass def test_connect_patch_node_proxy_with_path(self): - """ - Test case for connect_patch_node_proxy_with_path + """Test case for connect_patch_node_proxy_with_path - """ pass def test_connect_post_namespaced_pod_attach(self): - """ - Test case for connect_post_namespaced_pod_attach + """Test case for connect_post_namespaced_pod_attach - """ pass def test_connect_post_namespaced_pod_exec(self): - """ - Test case for connect_post_namespaced_pod_exec + """Test case for connect_post_namespaced_pod_exec - """ pass def test_connect_post_namespaced_pod_portforward(self): - """ - Test case for connect_post_namespaced_pod_portforward + """Test case for connect_post_namespaced_pod_portforward - """ pass def test_connect_post_namespaced_pod_proxy(self): - """ - Test case for connect_post_namespaced_pod_proxy + """Test case for connect_post_namespaced_pod_proxy - """ pass def test_connect_post_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_post_namespaced_pod_proxy_with_path + """Test case for connect_post_namespaced_pod_proxy_with_path - """ pass def test_connect_post_namespaced_service_proxy(self): - """ - Test case for connect_post_namespaced_service_proxy + """Test case for connect_post_namespaced_service_proxy - """ pass def test_connect_post_namespaced_service_proxy_with_path(self): - """ - Test case for connect_post_namespaced_service_proxy_with_path + """Test case for connect_post_namespaced_service_proxy_with_path - """ pass def test_connect_post_node_proxy(self): - """ - Test case for connect_post_node_proxy + """Test case for connect_post_node_proxy - """ pass def test_connect_post_node_proxy_with_path(self): - """ - Test case for connect_post_node_proxy_with_path + """Test case for connect_post_node_proxy_with_path - """ pass def test_connect_put_namespaced_pod_proxy(self): - """ - Test case for connect_put_namespaced_pod_proxy + """Test case for connect_put_namespaced_pod_proxy - """ pass def test_connect_put_namespaced_pod_proxy_with_path(self): - """ - Test case for connect_put_namespaced_pod_proxy_with_path + """Test case for connect_put_namespaced_pod_proxy_with_path - """ pass def test_connect_put_namespaced_service_proxy(self): - """ - Test case for connect_put_namespaced_service_proxy + """Test case for connect_put_namespaced_service_proxy - """ pass def test_connect_put_namespaced_service_proxy_with_path(self): - """ - Test case for connect_put_namespaced_service_proxy_with_path + """Test case for connect_put_namespaced_service_proxy_with_path - """ pass def test_connect_put_node_proxy(self): - """ - Test case for connect_put_node_proxy + """Test case for connect_put_node_proxy - """ pass def test_connect_put_node_proxy_with_path(self): - """ - Test case for connect_put_node_proxy_with_path + """Test case for connect_put_node_proxy_with_path - """ pass def test_create_namespace(self): - """ - Test case for create_namespace + """Test case for create_namespace - """ pass def test_create_namespaced_binding(self): - """ - Test case for create_namespaced_binding + """Test case for create_namespaced_binding - """ pass def test_create_namespaced_config_map(self): - """ - Test case for create_namespaced_config_map + """Test case for create_namespaced_config_map - """ pass def test_create_namespaced_endpoints(self): - """ - Test case for create_namespaced_endpoints + """Test case for create_namespaced_endpoints - """ pass def test_create_namespaced_event(self): - """ - Test case for create_namespaced_event + """Test case for create_namespaced_event - """ pass def test_create_namespaced_limit_range(self): - """ - Test case for create_namespaced_limit_range + """Test case for create_namespaced_limit_range - """ pass def test_create_namespaced_persistent_volume_claim(self): - """ - Test case for create_namespaced_persistent_volume_claim + """Test case for create_namespaced_persistent_volume_claim - """ pass def test_create_namespaced_pod(self): - """ - Test case for create_namespaced_pod + """Test case for create_namespaced_pod - """ pass def test_create_namespaced_pod_binding(self): - """ - Test case for create_namespaced_pod_binding + """Test case for create_namespaced_pod_binding - """ pass def test_create_namespaced_pod_eviction(self): - """ - Test case for create_namespaced_pod_eviction + """Test case for create_namespaced_pod_eviction - """ pass def test_create_namespaced_pod_template(self): - """ - Test case for create_namespaced_pod_template + """Test case for create_namespaced_pod_template - """ pass def test_create_namespaced_replication_controller(self): - """ - Test case for create_namespaced_replication_controller + """Test case for create_namespaced_replication_controller - """ pass def test_create_namespaced_resource_quota(self): - """ - Test case for create_namespaced_resource_quota + """Test case for create_namespaced_resource_quota - """ pass def test_create_namespaced_secret(self): - """ - Test case for create_namespaced_secret + """Test case for create_namespaced_secret - """ pass def test_create_namespaced_service(self): - """ - Test case for create_namespaced_service + """Test case for create_namespaced_service - """ pass def test_create_namespaced_service_account(self): - """ - Test case for create_namespaced_service_account + """Test case for create_namespaced_service_account - """ pass def test_create_node(self): - """ - Test case for create_node + """Test case for create_node - """ pass def test_create_persistent_volume(self): - """ - Test case for create_persistent_volume + """Test case for create_persistent_volume - """ pass def test_delete_collection_namespaced_config_map(self): - """ - Test case for delete_collection_namespaced_config_map + """Test case for delete_collection_namespaced_config_map - """ pass def test_delete_collection_namespaced_endpoints(self): - """ - Test case for delete_collection_namespaced_endpoints + """Test case for delete_collection_namespaced_endpoints - """ pass def test_delete_collection_namespaced_event(self): - """ - Test case for delete_collection_namespaced_event + """Test case for delete_collection_namespaced_event - """ pass def test_delete_collection_namespaced_limit_range(self): - """ - Test case for delete_collection_namespaced_limit_range + """Test case for delete_collection_namespaced_limit_range - """ pass def test_delete_collection_namespaced_persistent_volume_claim(self): - """ - Test case for delete_collection_namespaced_persistent_volume_claim + """Test case for delete_collection_namespaced_persistent_volume_claim - """ pass def test_delete_collection_namespaced_pod(self): - """ - Test case for delete_collection_namespaced_pod + """Test case for delete_collection_namespaced_pod - """ pass def test_delete_collection_namespaced_pod_template(self): - """ - Test case for delete_collection_namespaced_pod_template + """Test case for delete_collection_namespaced_pod_template - """ pass def test_delete_collection_namespaced_replication_controller(self): - """ - Test case for delete_collection_namespaced_replication_controller + """Test case for delete_collection_namespaced_replication_controller - """ pass def test_delete_collection_namespaced_resource_quota(self): - """ - Test case for delete_collection_namespaced_resource_quota + """Test case for delete_collection_namespaced_resource_quota - """ pass def test_delete_collection_namespaced_secret(self): - """ - Test case for delete_collection_namespaced_secret + """Test case for delete_collection_namespaced_secret - """ pass def test_delete_collection_namespaced_service_account(self): - """ - Test case for delete_collection_namespaced_service_account + """Test case for delete_collection_namespaced_service_account - """ pass def test_delete_collection_node(self): - """ - Test case for delete_collection_node + """Test case for delete_collection_node - """ pass def test_delete_collection_persistent_volume(self): - """ - Test case for delete_collection_persistent_volume + """Test case for delete_collection_persistent_volume - """ pass def test_delete_namespace(self): - """ - Test case for delete_namespace + """Test case for delete_namespace - """ pass def test_delete_namespaced_config_map(self): - """ - Test case for delete_namespaced_config_map + """Test case for delete_namespaced_config_map - """ pass def test_delete_namespaced_endpoints(self): - """ - Test case for delete_namespaced_endpoints + """Test case for delete_namespaced_endpoints - """ pass def test_delete_namespaced_event(self): - """ - Test case for delete_namespaced_event + """Test case for delete_namespaced_event - """ pass def test_delete_namespaced_limit_range(self): - """ - Test case for delete_namespaced_limit_range + """Test case for delete_namespaced_limit_range - """ pass def test_delete_namespaced_persistent_volume_claim(self): - """ - Test case for delete_namespaced_persistent_volume_claim + """Test case for delete_namespaced_persistent_volume_claim - """ pass def test_delete_namespaced_pod(self): - """ - Test case for delete_namespaced_pod + """Test case for delete_namespaced_pod - """ pass def test_delete_namespaced_pod_template(self): - """ - Test case for delete_namespaced_pod_template + """Test case for delete_namespaced_pod_template - """ pass def test_delete_namespaced_replication_controller(self): - """ - Test case for delete_namespaced_replication_controller + """Test case for delete_namespaced_replication_controller - """ pass def test_delete_namespaced_resource_quota(self): - """ - Test case for delete_namespaced_resource_quota + """Test case for delete_namespaced_resource_quota - """ pass def test_delete_namespaced_secret(self): - """ - Test case for delete_namespaced_secret + """Test case for delete_namespaced_secret - """ pass def test_delete_namespaced_service(self): - """ - Test case for delete_namespaced_service + """Test case for delete_namespaced_service - """ pass def test_delete_namespaced_service_account(self): - """ - Test case for delete_namespaced_service_account + """Test case for delete_namespaced_service_account - """ pass def test_delete_node(self): - """ - Test case for delete_node + """Test case for delete_node - """ pass def test_delete_persistent_volume(self): - """ - Test case for delete_persistent_volume + """Test case for delete_persistent_volume - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_component_status(self): - """ - Test case for list_component_status + """Test case for list_component_status - """ pass def test_list_config_map_for_all_namespaces(self): - """ - Test case for list_config_map_for_all_namespaces + """Test case for list_config_map_for_all_namespaces - """ pass def test_list_endpoints_for_all_namespaces(self): - """ - Test case for list_endpoints_for_all_namespaces + """Test case for list_endpoints_for_all_namespaces - """ pass def test_list_event_for_all_namespaces(self): - """ - Test case for list_event_for_all_namespaces + """Test case for list_event_for_all_namespaces - """ pass def test_list_limit_range_for_all_namespaces(self): - """ - Test case for list_limit_range_for_all_namespaces + """Test case for list_limit_range_for_all_namespaces - """ pass def test_list_namespace(self): - """ - Test case for list_namespace + """Test case for list_namespace - """ pass def test_list_namespaced_config_map(self): - """ - Test case for list_namespaced_config_map + """Test case for list_namespaced_config_map - """ pass def test_list_namespaced_endpoints(self): - """ - Test case for list_namespaced_endpoints + """Test case for list_namespaced_endpoints - """ pass def test_list_namespaced_event(self): - """ - Test case for list_namespaced_event + """Test case for list_namespaced_event - """ pass def test_list_namespaced_limit_range(self): - """ - Test case for list_namespaced_limit_range + """Test case for list_namespaced_limit_range - """ pass def test_list_namespaced_persistent_volume_claim(self): - """ - Test case for list_namespaced_persistent_volume_claim + """Test case for list_namespaced_persistent_volume_claim - """ pass def test_list_namespaced_pod(self): - """ - Test case for list_namespaced_pod + """Test case for list_namespaced_pod - """ pass def test_list_namespaced_pod_template(self): - """ - Test case for list_namespaced_pod_template + """Test case for list_namespaced_pod_template - """ pass def test_list_namespaced_replication_controller(self): - """ - Test case for list_namespaced_replication_controller + """Test case for list_namespaced_replication_controller - """ pass def test_list_namespaced_resource_quota(self): - """ - Test case for list_namespaced_resource_quota + """Test case for list_namespaced_resource_quota - """ pass def test_list_namespaced_secret(self): - """ - Test case for list_namespaced_secret + """Test case for list_namespaced_secret - """ pass def test_list_namespaced_service(self): - """ - Test case for list_namespaced_service + """Test case for list_namespaced_service - """ pass def test_list_namespaced_service_account(self): - """ - Test case for list_namespaced_service_account + """Test case for list_namespaced_service_account - """ pass def test_list_node(self): - """ - Test case for list_node + """Test case for list_node - """ pass def test_list_persistent_volume(self): - """ - Test case for list_persistent_volume + """Test case for list_persistent_volume - """ pass def test_list_persistent_volume_claim_for_all_namespaces(self): - """ - Test case for list_persistent_volume_claim_for_all_namespaces + """Test case for list_persistent_volume_claim_for_all_namespaces - """ pass def test_list_pod_for_all_namespaces(self): - """ - Test case for list_pod_for_all_namespaces + """Test case for list_pod_for_all_namespaces - """ pass def test_list_pod_template_for_all_namespaces(self): - """ - Test case for list_pod_template_for_all_namespaces + """Test case for list_pod_template_for_all_namespaces - """ pass def test_list_replication_controller_for_all_namespaces(self): - """ - Test case for list_replication_controller_for_all_namespaces + """Test case for list_replication_controller_for_all_namespaces - """ pass def test_list_resource_quota_for_all_namespaces(self): - """ - Test case for list_resource_quota_for_all_namespaces + """Test case for list_resource_quota_for_all_namespaces - """ pass def test_list_secret_for_all_namespaces(self): - """ - Test case for list_secret_for_all_namespaces + """Test case for list_secret_for_all_namespaces - """ pass def test_list_service_account_for_all_namespaces(self): - """ - Test case for list_service_account_for_all_namespaces + """Test case for list_service_account_for_all_namespaces - """ pass def test_list_service_for_all_namespaces(self): - """ - Test case for list_service_for_all_namespaces + """Test case for list_service_for_all_namespaces - """ pass def test_patch_namespace(self): - """ - Test case for patch_namespace + """Test case for patch_namespace - """ pass def test_patch_namespace_status(self): - """ - Test case for patch_namespace_status + """Test case for patch_namespace_status - """ pass def test_patch_namespaced_config_map(self): - """ - Test case for patch_namespaced_config_map + """Test case for patch_namespaced_config_map - """ pass def test_patch_namespaced_endpoints(self): - """ - Test case for patch_namespaced_endpoints + """Test case for patch_namespaced_endpoints - """ pass def test_patch_namespaced_event(self): - """ - Test case for patch_namespaced_event + """Test case for patch_namespaced_event - """ pass def test_patch_namespaced_limit_range(self): - """ - Test case for patch_namespaced_limit_range + """Test case for patch_namespaced_limit_range - """ pass def test_patch_namespaced_persistent_volume_claim(self): - """ - Test case for patch_namespaced_persistent_volume_claim + """Test case for patch_namespaced_persistent_volume_claim - """ pass def test_patch_namespaced_persistent_volume_claim_status(self): - """ - Test case for patch_namespaced_persistent_volume_claim_status + """Test case for patch_namespaced_persistent_volume_claim_status - """ pass def test_patch_namespaced_pod(self): - """ - Test case for patch_namespaced_pod + """Test case for patch_namespaced_pod - """ pass def test_patch_namespaced_pod_status(self): - """ - Test case for patch_namespaced_pod_status + """Test case for patch_namespaced_pod_status - """ pass def test_patch_namespaced_pod_template(self): - """ - Test case for patch_namespaced_pod_template + """Test case for patch_namespaced_pod_template - """ pass def test_patch_namespaced_replication_controller(self): - """ - Test case for patch_namespaced_replication_controller + """Test case for patch_namespaced_replication_controller - """ pass def test_patch_namespaced_replication_controller_scale(self): - """ - Test case for patch_namespaced_replication_controller_scale + """Test case for patch_namespaced_replication_controller_scale - """ pass def test_patch_namespaced_replication_controller_status(self): - """ - Test case for patch_namespaced_replication_controller_status + """Test case for patch_namespaced_replication_controller_status - """ pass def test_patch_namespaced_resource_quota(self): - """ - Test case for patch_namespaced_resource_quota + """Test case for patch_namespaced_resource_quota - """ pass def test_patch_namespaced_resource_quota_status(self): - """ - Test case for patch_namespaced_resource_quota_status + """Test case for patch_namespaced_resource_quota_status - """ pass def test_patch_namespaced_secret(self): - """ - Test case for patch_namespaced_secret + """Test case for patch_namespaced_secret - """ pass def test_patch_namespaced_service(self): - """ - Test case for patch_namespaced_service + """Test case for patch_namespaced_service - """ pass def test_patch_namespaced_service_account(self): - """ - Test case for patch_namespaced_service_account + """Test case for patch_namespaced_service_account - """ pass def test_patch_namespaced_service_status(self): - """ - Test case for patch_namespaced_service_status + """Test case for patch_namespaced_service_status - """ pass def test_patch_node(self): - """ - Test case for patch_node + """Test case for patch_node - """ pass def test_patch_node_status(self): - """ - Test case for patch_node_status + """Test case for patch_node_status - """ pass def test_patch_persistent_volume(self): - """ - Test case for patch_persistent_volume + """Test case for patch_persistent_volume - """ pass def test_patch_persistent_volume_status(self): - """ - Test case for patch_persistent_volume_status + """Test case for patch_persistent_volume_status - """ pass def test_read_component_status(self): - """ - Test case for read_component_status + """Test case for read_component_status - """ pass def test_read_namespace(self): - """ - Test case for read_namespace + """Test case for read_namespace - """ pass def test_read_namespace_status(self): - """ - Test case for read_namespace_status + """Test case for read_namespace_status - """ pass def test_read_namespaced_config_map(self): - """ - Test case for read_namespaced_config_map + """Test case for read_namespaced_config_map - """ pass def test_read_namespaced_endpoints(self): - """ - Test case for read_namespaced_endpoints + """Test case for read_namespaced_endpoints - """ pass def test_read_namespaced_event(self): - """ - Test case for read_namespaced_event + """Test case for read_namespaced_event - """ pass def test_read_namespaced_limit_range(self): - """ - Test case for read_namespaced_limit_range + """Test case for read_namespaced_limit_range - """ pass def test_read_namespaced_persistent_volume_claim(self): - """ - Test case for read_namespaced_persistent_volume_claim + """Test case for read_namespaced_persistent_volume_claim - """ pass def test_read_namespaced_persistent_volume_claim_status(self): - """ - Test case for read_namespaced_persistent_volume_claim_status + """Test case for read_namespaced_persistent_volume_claim_status - """ pass def test_read_namespaced_pod(self): - """ - Test case for read_namespaced_pod + """Test case for read_namespaced_pod - """ pass def test_read_namespaced_pod_log(self): - """ - Test case for read_namespaced_pod_log + """Test case for read_namespaced_pod_log - """ pass def test_read_namespaced_pod_status(self): - """ - Test case for read_namespaced_pod_status + """Test case for read_namespaced_pod_status - """ pass def test_read_namespaced_pod_template(self): - """ - Test case for read_namespaced_pod_template + """Test case for read_namespaced_pod_template - """ pass def test_read_namespaced_replication_controller(self): - """ - Test case for read_namespaced_replication_controller + """Test case for read_namespaced_replication_controller - """ pass def test_read_namespaced_replication_controller_scale(self): - """ - Test case for read_namespaced_replication_controller_scale + """Test case for read_namespaced_replication_controller_scale - """ pass def test_read_namespaced_replication_controller_status(self): - """ - Test case for read_namespaced_replication_controller_status + """Test case for read_namespaced_replication_controller_status - """ pass def test_read_namespaced_resource_quota(self): - """ - Test case for read_namespaced_resource_quota + """Test case for read_namespaced_resource_quota - """ pass def test_read_namespaced_resource_quota_status(self): - """ - Test case for read_namespaced_resource_quota_status + """Test case for read_namespaced_resource_quota_status - """ pass def test_read_namespaced_secret(self): - """ - Test case for read_namespaced_secret + """Test case for read_namespaced_secret - """ pass def test_read_namespaced_service(self): - """ - Test case for read_namespaced_service + """Test case for read_namespaced_service - """ pass def test_read_namespaced_service_account(self): - """ - Test case for read_namespaced_service_account + """Test case for read_namespaced_service_account - """ pass def test_read_namespaced_service_status(self): - """ - Test case for read_namespaced_service_status + """Test case for read_namespaced_service_status - """ pass def test_read_node(self): - """ - Test case for read_node + """Test case for read_node - """ pass def test_read_node_status(self): - """ - Test case for read_node_status + """Test case for read_node_status - """ pass def test_read_persistent_volume(self): - """ - Test case for read_persistent_volume + """Test case for read_persistent_volume - """ pass def test_read_persistent_volume_status(self): - """ - Test case for read_persistent_volume_status + """Test case for read_persistent_volume_status - """ pass def test_replace_namespace(self): - """ - Test case for replace_namespace + """Test case for replace_namespace - """ pass def test_replace_namespace_finalize(self): - """ - Test case for replace_namespace_finalize + """Test case for replace_namespace_finalize - """ pass def test_replace_namespace_status(self): - """ - Test case for replace_namespace_status + """Test case for replace_namespace_status - """ pass def test_replace_namespaced_config_map(self): - """ - Test case for replace_namespaced_config_map + """Test case for replace_namespaced_config_map - """ pass def test_replace_namespaced_endpoints(self): - """ - Test case for replace_namespaced_endpoints + """Test case for replace_namespaced_endpoints - """ pass def test_replace_namespaced_event(self): - """ - Test case for replace_namespaced_event + """Test case for replace_namespaced_event - """ pass def test_replace_namespaced_limit_range(self): - """ - Test case for replace_namespaced_limit_range + """Test case for replace_namespaced_limit_range - """ pass def test_replace_namespaced_persistent_volume_claim(self): - """ - Test case for replace_namespaced_persistent_volume_claim + """Test case for replace_namespaced_persistent_volume_claim - """ pass def test_replace_namespaced_persistent_volume_claim_status(self): - """ - Test case for replace_namespaced_persistent_volume_claim_status + """Test case for replace_namespaced_persistent_volume_claim_status - """ pass def test_replace_namespaced_pod(self): - """ - Test case for replace_namespaced_pod + """Test case for replace_namespaced_pod - """ pass def test_replace_namespaced_pod_status(self): - """ - Test case for replace_namespaced_pod_status + """Test case for replace_namespaced_pod_status - """ pass def test_replace_namespaced_pod_template(self): - """ - Test case for replace_namespaced_pod_template + """Test case for replace_namespaced_pod_template - """ pass def test_replace_namespaced_replication_controller(self): - """ - Test case for replace_namespaced_replication_controller + """Test case for replace_namespaced_replication_controller - """ pass def test_replace_namespaced_replication_controller_scale(self): - """ - Test case for replace_namespaced_replication_controller_scale + """Test case for replace_namespaced_replication_controller_scale - """ pass def test_replace_namespaced_replication_controller_status(self): - """ - Test case for replace_namespaced_replication_controller_status + """Test case for replace_namespaced_replication_controller_status - """ pass def test_replace_namespaced_resource_quota(self): - """ - Test case for replace_namespaced_resource_quota + """Test case for replace_namespaced_resource_quota - """ pass def test_replace_namespaced_resource_quota_status(self): - """ - Test case for replace_namespaced_resource_quota_status + """Test case for replace_namespaced_resource_quota_status - """ pass def test_replace_namespaced_secret(self): - """ - Test case for replace_namespaced_secret + """Test case for replace_namespaced_secret - """ pass def test_replace_namespaced_service(self): - """ - Test case for replace_namespaced_service + """Test case for replace_namespaced_service - """ pass def test_replace_namespaced_service_account(self): - """ - Test case for replace_namespaced_service_account + """Test case for replace_namespaced_service_account - """ pass def test_replace_namespaced_service_status(self): - """ - Test case for replace_namespaced_service_status + """Test case for replace_namespaced_service_status - """ pass def test_replace_node(self): - """ - Test case for replace_node + """Test case for replace_node - """ pass def test_replace_node_status(self): - """ - Test case for replace_node_status + """Test case for replace_node_status - """ pass def test_replace_persistent_volume(self): - """ - Test case for replace_persistent_volume + """Test case for replace_persistent_volume - """ pass def test_replace_persistent_volume_status(self): - """ - Test case for replace_persistent_volume_status + """Test case for replace_persistent_volume_status - """ pass diff --git a/kubernetes/test/test_custom_objects_api.py b/kubernetes/test/test_custom_objects_api.py index 61220b7ac0..11523d0b66 100644 --- a/kubernetes/test/test_custom_objects_api.py +++ b/kubernetes/test/test_custom_objects_api.py @@ -3,223 +3,172 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.custom_objects_api import CustomObjectsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.custom_objects_api import CustomObjectsApi class TestCustomObjectsApi(unittest.TestCase): - """ CustomObjectsApi unit test stubs """ + """CustomObjectsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.custom_objects_api.CustomObjectsApi() + self.api = kubernetes.client.api.custom_objects_api.CustomObjectsApi() # noqa: E501 def tearDown(self): pass def test_create_cluster_custom_object(self): - """ - Test case for create_cluster_custom_object + """Test case for create_cluster_custom_object - """ pass def test_create_namespaced_custom_object(self): - """ - Test case for create_namespaced_custom_object + """Test case for create_namespaced_custom_object - """ pass def test_delete_cluster_custom_object(self): - """ - Test case for delete_cluster_custom_object + """Test case for delete_cluster_custom_object - """ pass def test_delete_namespaced_custom_object(self): - """ - Test case for delete_namespaced_custom_object + """Test case for delete_namespaced_custom_object - """ pass def test_get_cluster_custom_object(self): - """ - Test case for get_cluster_custom_object + """Test case for get_cluster_custom_object - """ pass def test_get_cluster_custom_object_scale(self): - """ - Test case for get_cluster_custom_object_scale + """Test case for get_cluster_custom_object_scale - """ pass def test_get_cluster_custom_object_status(self): - """ - Test case for get_cluster_custom_object_status + """Test case for get_cluster_custom_object_status - """ pass def test_get_namespaced_custom_object(self): - """ - Test case for get_namespaced_custom_object + """Test case for get_namespaced_custom_object - """ pass def test_get_namespaced_custom_object_scale(self): - """ - Test case for get_namespaced_custom_object_scale + """Test case for get_namespaced_custom_object_scale - """ pass def test_get_namespaced_custom_object_status(self): - """ - Test case for get_namespaced_custom_object_status + """Test case for get_namespaced_custom_object_status - """ pass def test_list_cluster_custom_object(self): - """ - Test case for list_cluster_custom_object + """Test case for list_cluster_custom_object - """ pass def test_list_namespaced_custom_object(self): - """ - Test case for list_namespaced_custom_object + """Test case for list_namespaced_custom_object - """ pass def test_patch_cluster_custom_object(self): - """ - Test case for patch_cluster_custom_object + """Test case for patch_cluster_custom_object - """ pass def test_patch_cluster_custom_object_scale(self): - """ - Test case for patch_cluster_custom_object_scale + """Test case for patch_cluster_custom_object_scale - """ pass def test_patch_cluster_custom_object_status(self): - """ - Test case for patch_cluster_custom_object_status + """Test case for patch_cluster_custom_object_status - """ pass def test_patch_namespaced_custom_object(self): - """ - Test case for patch_namespaced_custom_object + """Test case for patch_namespaced_custom_object - """ pass def test_patch_namespaced_custom_object_scale(self): - """ - Test case for patch_namespaced_custom_object_scale + """Test case for patch_namespaced_custom_object_scale - """ pass def test_patch_namespaced_custom_object_status(self): - """ - Test case for patch_namespaced_custom_object_status + """Test case for patch_namespaced_custom_object_status - """ pass def test_replace_cluster_custom_object(self): - """ - Test case for replace_cluster_custom_object + """Test case for replace_cluster_custom_object - """ pass def test_replace_cluster_custom_object_scale(self): - """ - Test case for replace_cluster_custom_object_scale + """Test case for replace_cluster_custom_object_scale - """ pass def test_replace_cluster_custom_object_status(self): - """ - Test case for replace_cluster_custom_object_status + """Test case for replace_cluster_custom_object_status - """ pass def test_replace_namespaced_custom_object(self): - """ - Test case for replace_namespaced_custom_object + """Test case for replace_namespaced_custom_object - """ pass def test_replace_namespaced_custom_object_scale(self): - """ - Test case for replace_namespaced_custom_object_scale + """Test case for replace_namespaced_custom_object_scale - """ pass def test_replace_namespaced_custom_object_status(self): - """ - Test case for replace_namespaced_custom_object_status + """Test case for replace_namespaced_custom_object_status - """ pass diff --git a/kubernetes/test/test_events_api.py b/kubernetes/test/test_events_api.py index cad77c2065..ebc1cbe933 100644 --- a/kubernetes/test/test_events_api.py +++ b/kubernetes/test/test_events_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.events_api import EventsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.events_api import EventsApi class TestEventsApi(unittest.TestCase): - """ EventsApi unit test stubs """ + """EventsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.events_api.EventsApi() + self.api = kubernetes.client.api.events_api.EventsApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_events_v1beta1_api.py b/kubernetes/test/test_events_v1beta1_api.py index 6ca3291e34..3d3c9ee412 100644 --- a/kubernetes/test/test_events_v1beta1_api.py +++ b/kubernetes/test/test_events_v1beta1_api.py @@ -3,103 +3,82 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.events_v1beta1_api import EventsV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.events_v1beta1_api import EventsV1beta1Api class TestEventsV1beta1Api(unittest.TestCase): - """ EventsV1beta1Api unit test stubs """ + """EventsV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.events_v1beta1_api.EventsV1beta1Api() + self.api = kubernetes.client.api.events_v1beta1_api.EventsV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_event(self): - """ - Test case for create_namespaced_event + """Test case for create_namespaced_event - """ pass def test_delete_collection_namespaced_event(self): - """ - Test case for delete_collection_namespaced_event + """Test case for delete_collection_namespaced_event - """ pass def test_delete_namespaced_event(self): - """ - Test case for delete_namespaced_event + """Test case for delete_namespaced_event - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_event_for_all_namespaces(self): - """ - Test case for list_event_for_all_namespaces + """Test case for list_event_for_all_namespaces - """ pass def test_list_namespaced_event(self): - """ - Test case for list_namespaced_event + """Test case for list_namespaced_event - """ pass def test_patch_namespaced_event(self): - """ - Test case for patch_namespaced_event + """Test case for patch_namespaced_event - """ pass def test_read_namespaced_event(self): - """ - Test case for read_namespaced_event + """Test case for read_namespaced_event - """ pass def test_replace_namespaced_event(self): - """ - Test case for replace_namespaced_event + """Test case for replace_namespaced_event - """ pass diff --git a/kubernetes/test/test_extensions_api.py b/kubernetes/test/test_extensions_api.py index efe788263c..ba2ab20103 100644 --- a/kubernetes/test/test_extensions_api.py +++ b/kubernetes/test/test_extensions_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.extensions_api import ExtensionsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.extensions_api import ExtensionsApi class TestExtensionsApi(unittest.TestCase): - """ ExtensionsApi unit test stubs """ + """ExtensionsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.extensions_api.ExtensionsApi() + self.api = kubernetes.client.api.extensions_api.ExtensionsApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py b/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py index a53fa1fb97..e31677dc0e 100644 --- a/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py +++ b/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver class TestExtensionsV1beta1AllowedCSIDriver(unittest.TestCase): - """ ExtensionsV1beta1AllowedCSIDriver unit test stubs """ + """ExtensionsV1beta1AllowedCSIDriver unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1AllowedCSIDriver(self): - """ - Test ExtensionsV1beta1AllowedCSIDriver - """ + """Test ExtensionsV1beta1AllowedCSIDriver""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_allowed_csi_driver.ExtensionsV1beta1AllowedCSIDriver() + # model = kubernetes.client.models.extensions_v1beta1_allowed_csi_driver.ExtensionsV1beta1AllowedCSIDriver() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py b/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py index 15177989c9..3634aefaa5 100644 --- a/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py +++ b/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume class TestExtensionsV1beta1AllowedFlexVolume(unittest.TestCase): - """ ExtensionsV1beta1AllowedFlexVolume unit test stubs """ + """ExtensionsV1beta1AllowedFlexVolume unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1AllowedFlexVolume(self): - """ - Test ExtensionsV1beta1AllowedFlexVolume - """ + """Test ExtensionsV1beta1AllowedFlexVolume""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_allowed_flex_volume.ExtensionsV1beta1AllowedFlexVolume() + # model = kubernetes.client.models.extensions_v1beta1_allowed_flex_volume.ExtensionsV1beta1AllowedFlexVolume() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py b/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py index d27a83f053..53974b6d60 100644 --- a/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py +++ b/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath class TestExtensionsV1beta1AllowedHostPath(unittest.TestCase): - """ ExtensionsV1beta1AllowedHostPath unit test stubs """ + """ExtensionsV1beta1AllowedHostPath unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1AllowedHostPath(self): - """ - Test ExtensionsV1beta1AllowedHostPath - """ + """Test ExtensionsV1beta1AllowedHostPath""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_allowed_host_path.ExtensionsV1beta1AllowedHostPath() + # model = kubernetes.client.models.extensions_v1beta1_allowed_host_path.ExtensionsV1beta1AllowedHostPath() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_api.py b/kubernetes/test/test_extensions_v1beta1_api.py index 5ca1e5930a..ec9c4a2276 100644 --- a/kubernetes/test/test_extensions_v1beta1_api.py +++ b/kubernetes/test/test_extensions_v1beta1_api.py @@ -3,591 +3,448 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.extensions_v1beta1_api import ExtensionsV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.extensions_v1beta1_api import ExtensionsV1beta1Api class TestExtensionsV1beta1Api(unittest.TestCase): - """ ExtensionsV1beta1Api unit test stubs """ + """ExtensionsV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.extensions_v1beta1_api.ExtensionsV1beta1Api() + self.api = kubernetes.client.api.extensions_v1beta1_api.ExtensionsV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_daemon_set(self): - """ - Test case for create_namespaced_daemon_set + """Test case for create_namespaced_daemon_set - """ pass def test_create_namespaced_deployment(self): - """ - Test case for create_namespaced_deployment + """Test case for create_namespaced_deployment - """ pass def test_create_namespaced_deployment_rollback(self): - """ - Test case for create_namespaced_deployment_rollback + """Test case for create_namespaced_deployment_rollback - """ pass def test_create_namespaced_ingress(self): - """ - Test case for create_namespaced_ingress + """Test case for create_namespaced_ingress - """ pass def test_create_namespaced_network_policy(self): - """ - Test case for create_namespaced_network_policy + """Test case for create_namespaced_network_policy - """ pass def test_create_namespaced_replica_set(self): - """ - Test case for create_namespaced_replica_set + """Test case for create_namespaced_replica_set - """ pass def test_create_pod_security_policy(self): - """ - Test case for create_pod_security_policy + """Test case for create_pod_security_policy - """ pass def test_delete_collection_namespaced_daemon_set(self): - """ - Test case for delete_collection_namespaced_daemon_set + """Test case for delete_collection_namespaced_daemon_set - """ pass def test_delete_collection_namespaced_deployment(self): - """ - Test case for delete_collection_namespaced_deployment + """Test case for delete_collection_namespaced_deployment - """ pass def test_delete_collection_namespaced_ingress(self): - """ - Test case for delete_collection_namespaced_ingress + """Test case for delete_collection_namespaced_ingress - """ pass def test_delete_collection_namespaced_network_policy(self): - """ - Test case for delete_collection_namespaced_network_policy + """Test case for delete_collection_namespaced_network_policy - """ pass def test_delete_collection_namespaced_replica_set(self): - """ - Test case for delete_collection_namespaced_replica_set + """Test case for delete_collection_namespaced_replica_set - """ pass def test_delete_collection_pod_security_policy(self): - """ - Test case for delete_collection_pod_security_policy + """Test case for delete_collection_pod_security_policy - """ pass def test_delete_namespaced_daemon_set(self): - """ - Test case for delete_namespaced_daemon_set + """Test case for delete_namespaced_daemon_set - """ pass def test_delete_namespaced_deployment(self): - """ - Test case for delete_namespaced_deployment + """Test case for delete_namespaced_deployment - """ pass def test_delete_namespaced_ingress(self): - """ - Test case for delete_namespaced_ingress + """Test case for delete_namespaced_ingress - """ pass def test_delete_namespaced_network_policy(self): - """ - Test case for delete_namespaced_network_policy + """Test case for delete_namespaced_network_policy - """ pass def test_delete_namespaced_replica_set(self): - """ - Test case for delete_namespaced_replica_set + """Test case for delete_namespaced_replica_set - """ pass def test_delete_pod_security_policy(self): - """ - Test case for delete_pod_security_policy + """Test case for delete_pod_security_policy - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_daemon_set_for_all_namespaces(self): - """ - Test case for list_daemon_set_for_all_namespaces + """Test case for list_daemon_set_for_all_namespaces - """ pass def test_list_deployment_for_all_namespaces(self): - """ - Test case for list_deployment_for_all_namespaces + """Test case for list_deployment_for_all_namespaces - """ pass def test_list_ingress_for_all_namespaces(self): - """ - Test case for list_ingress_for_all_namespaces + """Test case for list_ingress_for_all_namespaces - """ pass def test_list_namespaced_daemon_set(self): - """ - Test case for list_namespaced_daemon_set + """Test case for list_namespaced_daemon_set - """ pass def test_list_namespaced_deployment(self): - """ - Test case for list_namespaced_deployment + """Test case for list_namespaced_deployment - """ pass def test_list_namespaced_ingress(self): - """ - Test case for list_namespaced_ingress + """Test case for list_namespaced_ingress - """ pass def test_list_namespaced_network_policy(self): - """ - Test case for list_namespaced_network_policy + """Test case for list_namespaced_network_policy - """ pass def test_list_namespaced_replica_set(self): - """ - Test case for list_namespaced_replica_set + """Test case for list_namespaced_replica_set - """ pass def test_list_network_policy_for_all_namespaces(self): - """ - Test case for list_network_policy_for_all_namespaces + """Test case for list_network_policy_for_all_namespaces - """ pass def test_list_pod_security_policy(self): - """ - Test case for list_pod_security_policy + """Test case for list_pod_security_policy - """ pass def test_list_replica_set_for_all_namespaces(self): - """ - Test case for list_replica_set_for_all_namespaces + """Test case for list_replica_set_for_all_namespaces - """ pass def test_patch_namespaced_daemon_set(self): - """ - Test case for patch_namespaced_daemon_set + """Test case for patch_namespaced_daemon_set - """ pass def test_patch_namespaced_daemon_set_status(self): - """ - Test case for patch_namespaced_daemon_set_status + """Test case for patch_namespaced_daemon_set_status - """ pass def test_patch_namespaced_deployment(self): - """ - Test case for patch_namespaced_deployment + """Test case for patch_namespaced_deployment - """ pass def test_patch_namespaced_deployment_scale(self): - """ - Test case for patch_namespaced_deployment_scale + """Test case for patch_namespaced_deployment_scale - """ pass def test_patch_namespaced_deployment_status(self): - """ - Test case for patch_namespaced_deployment_status + """Test case for patch_namespaced_deployment_status - """ pass def test_patch_namespaced_ingress(self): - """ - Test case for patch_namespaced_ingress + """Test case for patch_namespaced_ingress - """ pass def test_patch_namespaced_ingress_status(self): - """ - Test case for patch_namespaced_ingress_status + """Test case for patch_namespaced_ingress_status - """ pass def test_patch_namespaced_network_policy(self): - """ - Test case for patch_namespaced_network_policy + """Test case for patch_namespaced_network_policy - """ pass def test_patch_namespaced_replica_set(self): - """ - Test case for patch_namespaced_replica_set + """Test case for patch_namespaced_replica_set - """ pass def test_patch_namespaced_replica_set_scale(self): - """ - Test case for patch_namespaced_replica_set_scale + """Test case for patch_namespaced_replica_set_scale - """ pass def test_patch_namespaced_replica_set_status(self): - """ - Test case for patch_namespaced_replica_set_status + """Test case for patch_namespaced_replica_set_status - """ pass def test_patch_namespaced_replication_controller_dummy_scale(self): - """ - Test case for patch_namespaced_replication_controller_dummy_scale + """Test case for patch_namespaced_replication_controller_dummy_scale - """ pass def test_patch_pod_security_policy(self): - """ - Test case for patch_pod_security_policy + """Test case for patch_pod_security_policy - """ pass def test_read_namespaced_daemon_set(self): - """ - Test case for read_namespaced_daemon_set + """Test case for read_namespaced_daemon_set - """ pass def test_read_namespaced_daemon_set_status(self): - """ - Test case for read_namespaced_daemon_set_status + """Test case for read_namespaced_daemon_set_status - """ pass def test_read_namespaced_deployment(self): - """ - Test case for read_namespaced_deployment + """Test case for read_namespaced_deployment - """ pass def test_read_namespaced_deployment_scale(self): - """ - Test case for read_namespaced_deployment_scale + """Test case for read_namespaced_deployment_scale - """ pass def test_read_namespaced_deployment_status(self): - """ - Test case for read_namespaced_deployment_status + """Test case for read_namespaced_deployment_status - """ pass def test_read_namespaced_ingress(self): - """ - Test case for read_namespaced_ingress + """Test case for read_namespaced_ingress - """ pass def test_read_namespaced_ingress_status(self): - """ - Test case for read_namespaced_ingress_status + """Test case for read_namespaced_ingress_status - """ pass def test_read_namespaced_network_policy(self): - """ - Test case for read_namespaced_network_policy + """Test case for read_namespaced_network_policy - """ pass def test_read_namespaced_replica_set(self): - """ - Test case for read_namespaced_replica_set + """Test case for read_namespaced_replica_set - """ pass def test_read_namespaced_replica_set_scale(self): - """ - Test case for read_namespaced_replica_set_scale + """Test case for read_namespaced_replica_set_scale - """ pass def test_read_namespaced_replica_set_status(self): - """ - Test case for read_namespaced_replica_set_status + """Test case for read_namespaced_replica_set_status - """ pass def test_read_namespaced_replication_controller_dummy_scale(self): - """ - Test case for read_namespaced_replication_controller_dummy_scale + """Test case for read_namespaced_replication_controller_dummy_scale - """ pass def test_read_pod_security_policy(self): - """ - Test case for read_pod_security_policy + """Test case for read_pod_security_policy - """ pass def test_replace_namespaced_daemon_set(self): - """ - Test case for replace_namespaced_daemon_set + """Test case for replace_namespaced_daemon_set - """ pass def test_replace_namespaced_daemon_set_status(self): - """ - Test case for replace_namespaced_daemon_set_status + """Test case for replace_namespaced_daemon_set_status - """ pass def test_replace_namespaced_deployment(self): - """ - Test case for replace_namespaced_deployment + """Test case for replace_namespaced_deployment - """ pass def test_replace_namespaced_deployment_scale(self): - """ - Test case for replace_namespaced_deployment_scale + """Test case for replace_namespaced_deployment_scale - """ pass def test_replace_namespaced_deployment_status(self): - """ - Test case for replace_namespaced_deployment_status + """Test case for replace_namespaced_deployment_status - """ pass def test_replace_namespaced_ingress(self): - """ - Test case for replace_namespaced_ingress + """Test case for replace_namespaced_ingress - """ pass def test_replace_namespaced_ingress_status(self): - """ - Test case for replace_namespaced_ingress_status + """Test case for replace_namespaced_ingress_status - """ pass def test_replace_namespaced_network_policy(self): - """ - Test case for replace_namespaced_network_policy + """Test case for replace_namespaced_network_policy - """ pass def test_replace_namespaced_replica_set(self): - """ - Test case for replace_namespaced_replica_set + """Test case for replace_namespaced_replica_set - """ pass def test_replace_namespaced_replica_set_scale(self): - """ - Test case for replace_namespaced_replica_set_scale + """Test case for replace_namespaced_replica_set_scale - """ pass def test_replace_namespaced_replica_set_status(self): - """ - Test case for replace_namespaced_replica_set_status + """Test case for replace_namespaced_replica_set_status - """ pass def test_replace_namespaced_replication_controller_dummy_scale(self): - """ - Test case for replace_namespaced_replication_controller_dummy_scale + """Test case for replace_namespaced_replication_controller_dummy_scale - """ pass def test_replace_pod_security_policy(self): - """ - Test case for replace_pod_security_policy + """Test case for replace_pod_security_policy - """ pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment.py b/kubernetes/test/test_extensions_v1beta1_deployment.py index 3b2f526ce4..13669a3b68 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment class TestExtensionsV1beta1Deployment(unittest.TestCase): - """ ExtensionsV1beta1Deployment unit test stubs """ + """ExtensionsV1beta1Deployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1Deployment(self): - """ - Test ExtensionsV1beta1Deployment - """ + """Test ExtensionsV1beta1Deployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() + # model = kubernetes.client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py index fb14a80633..858f2ff04c 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition class TestExtensionsV1beta1DeploymentCondition(unittest.TestCase): - """ ExtensionsV1beta1DeploymentCondition unit test stubs """ + """ExtensionsV1beta1DeploymentCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentCondition(self): - """ - Test ExtensionsV1beta1DeploymentCondition - """ + """Test ExtensionsV1beta1DeploymentCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_condition.ExtensionsV1beta1DeploymentCondition() + # model = kubernetes.client.models.extensions_v1beta1_deployment_condition.ExtensionsV1beta1DeploymentCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_list.py b/kubernetes/test/test_extensions_v1beta1_deployment_list.py index f1837594bb..3cc8c005f5 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_list.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList class TestExtensionsV1beta1DeploymentList(unittest.TestCase): - """ ExtensionsV1beta1DeploymentList unit test stubs """ + """ExtensionsV1beta1DeploymentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentList(self): - """ - Test ExtensionsV1beta1DeploymentList - """ + """Test ExtensionsV1beta1DeploymentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_list.ExtensionsV1beta1DeploymentList() + # model = kubernetes.client.models.extensions_v1beta1_deployment_list.ExtensionsV1beta1DeploymentList() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py index f218872765..3f4b87d581 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback class TestExtensionsV1beta1DeploymentRollback(unittest.TestCase): - """ ExtensionsV1beta1DeploymentRollback unit test stubs """ + """ExtensionsV1beta1DeploymentRollback unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentRollback(self): - """ - Test ExtensionsV1beta1DeploymentRollback - """ + """Test ExtensionsV1beta1DeploymentRollback""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_rollback.ExtensionsV1beta1DeploymentRollback() + # model = kubernetes.client.models.extensions_v1beta1_deployment_rollback.ExtensionsV1beta1DeploymentRollback() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py index 2131a90460..5898aa0a8f 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec class TestExtensionsV1beta1DeploymentSpec(unittest.TestCase): - """ ExtensionsV1beta1DeploymentSpec unit test stubs """ + """ExtensionsV1beta1DeploymentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentSpec(self): - """ - Test ExtensionsV1beta1DeploymentSpec - """ + """Test ExtensionsV1beta1DeploymentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_spec.ExtensionsV1beta1DeploymentSpec() + # model = kubernetes.client.models.extensions_v1beta1_deployment_spec.ExtensionsV1beta1DeploymentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_status.py b/kubernetes/test/test_extensions_v1beta1_deployment_status.py index 079a7008c5..76e37b4d6a 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_status.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus class TestExtensionsV1beta1DeploymentStatus(unittest.TestCase): - """ ExtensionsV1beta1DeploymentStatus unit test stubs """ + """ExtensionsV1beta1DeploymentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentStatus(self): - """ - Test ExtensionsV1beta1DeploymentStatus - """ + """Test ExtensionsV1beta1DeploymentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_status.ExtensionsV1beta1DeploymentStatus() + # model = kubernetes.client.models.extensions_v1beta1_deployment_status.ExtensionsV1beta1DeploymentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py index 8da7da69cb..0e42203616 100644 --- a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py +++ b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy class TestExtensionsV1beta1DeploymentStrategy(unittest.TestCase): - """ ExtensionsV1beta1DeploymentStrategy unit test stubs """ + """ExtensionsV1beta1DeploymentStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1DeploymentStrategy(self): - """ - Test ExtensionsV1beta1DeploymentStrategy - """ + """Test ExtensionsV1beta1DeploymentStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_deployment_strategy.ExtensionsV1beta1DeploymentStrategy() + # model = kubernetes.client.models.extensions_v1beta1_deployment_strategy.ExtensionsV1beta1DeploymentStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py index df0fdd6dce..77c2058a36 100644 --- a/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions class TestExtensionsV1beta1FSGroupStrategyOptions(unittest.TestCase): - """ ExtensionsV1beta1FSGroupStrategyOptions unit test stubs """ + """ExtensionsV1beta1FSGroupStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1FSGroupStrategyOptions(self): - """ - Test ExtensionsV1beta1FSGroupStrategyOptions - """ + """Test ExtensionsV1beta1FSGroupStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options.ExtensionsV1beta1FSGroupStrategyOptions() + # model = kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options.ExtensionsV1beta1FSGroupStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_host_port_range.py b/kubernetes/test/test_extensions_v1beta1_host_port_range.py index deca58c921..e7aaa10ae9 100644 --- a/kubernetes/test/test_extensions_v1beta1_host_port_range.py +++ b/kubernetes/test/test_extensions_v1beta1_host_port_range.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange class TestExtensionsV1beta1HostPortRange(unittest.TestCase): - """ ExtensionsV1beta1HostPortRange unit test stubs """ + """ExtensionsV1beta1HostPortRange unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1HostPortRange(self): - """ - Test ExtensionsV1beta1HostPortRange - """ + """Test ExtensionsV1beta1HostPortRange""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_host_port_range.ExtensionsV1beta1HostPortRange() + # model = kubernetes.client.models.extensions_v1beta1_host_port_range.ExtensionsV1beta1HostPortRange() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py b/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py index dde2efe545..091855cf47 100644 --- a/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py +++ b/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath class TestExtensionsV1beta1HTTPIngressPath(unittest.TestCase): - """ ExtensionsV1beta1HTTPIngressPath unit test stubs """ + """ExtensionsV1beta1HTTPIngressPath unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1HTTPIngressPath(self): - """ - Test ExtensionsV1beta1HTTPIngressPath - """ + """Test ExtensionsV1beta1HTTPIngressPath""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_http_ingress_path.ExtensionsV1beta1HTTPIngressPath() + # model = kubernetes.client.models.extensions_v1beta1_http_ingress_path.ExtensionsV1beta1HTTPIngressPath() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py index d09df9640d..16f2446a2b 100644 --- a/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue class TestExtensionsV1beta1HTTPIngressRuleValue(unittest.TestCase): - """ ExtensionsV1beta1HTTPIngressRuleValue unit test stubs """ + """ExtensionsV1beta1HTTPIngressRuleValue unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1HTTPIngressRuleValue(self): - """ - Test ExtensionsV1beta1HTTPIngressRuleValue - """ + """Test ExtensionsV1beta1HTTPIngressRuleValue""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value.ExtensionsV1beta1HTTPIngressRuleValue() + # model = kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value.ExtensionsV1beta1HTTPIngressRuleValue() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_id_range.py b/kubernetes/test/test_extensions_v1beta1_id_range.py index 3c4fc30254..2258014b21 100644 --- a/kubernetes/test/test_extensions_v1beta1_id_range.py +++ b/kubernetes/test/test_extensions_v1beta1_id_range.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange class TestExtensionsV1beta1IDRange(unittest.TestCase): - """ ExtensionsV1beta1IDRange unit test stubs """ + """ExtensionsV1beta1IDRange unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IDRange(self): - """ - Test ExtensionsV1beta1IDRange - """ + """Test ExtensionsV1beta1IDRange""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_id_range.ExtensionsV1beta1IDRange() + # model = kubernetes.client.models.extensions_v1beta1_id_range.ExtensionsV1beta1IDRange() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress.py b/kubernetes/test/test_extensions_v1beta1_ingress.py index 7ce325147f..11afa00504 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress class TestExtensionsV1beta1Ingress(unittest.TestCase): - """ ExtensionsV1beta1Ingress unit test stubs """ + """ExtensionsV1beta1Ingress unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1Ingress(self): - """ - Test ExtensionsV1beta1Ingress - """ + """Test ExtensionsV1beta1Ingress""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress.ExtensionsV1beta1Ingress() + # model = kubernetes.client.models.extensions_v1beta1_ingress.ExtensionsV1beta1Ingress() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_backend.py b/kubernetes/test/test_extensions_v1beta1_ingress_backend.py index a7d8397613..8bde455576 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_backend.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_backend.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend class TestExtensionsV1beta1IngressBackend(unittest.TestCase): - """ ExtensionsV1beta1IngressBackend unit test stubs """ + """ExtensionsV1beta1IngressBackend unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressBackend(self): - """ - Test ExtensionsV1beta1IngressBackend - """ + """Test ExtensionsV1beta1IngressBackend""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_backend.ExtensionsV1beta1IngressBackend() + # model = kubernetes.client.models.extensions_v1beta1_ingress_backend.ExtensionsV1beta1IngressBackend() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_list.py b/kubernetes/test/test_extensions_v1beta1_ingress_list.py index 2922c4da4e..9c520db15c 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_list.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList class TestExtensionsV1beta1IngressList(unittest.TestCase): - """ ExtensionsV1beta1IngressList unit test stubs """ + """ExtensionsV1beta1IngressList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressList(self): - """ - Test ExtensionsV1beta1IngressList - """ + """Test ExtensionsV1beta1IngressList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_list.ExtensionsV1beta1IngressList() + # model = kubernetes.client.models.extensions_v1beta1_ingress_list.ExtensionsV1beta1IngressList() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_rule.py b/kubernetes/test/test_extensions_v1beta1_ingress_rule.py index 9f0140b6f7..3c5935c300 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_rule.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule class TestExtensionsV1beta1IngressRule(unittest.TestCase): - """ ExtensionsV1beta1IngressRule unit test stubs """ + """ExtensionsV1beta1IngressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressRule(self): - """ - Test ExtensionsV1beta1IngressRule - """ + """Test ExtensionsV1beta1IngressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_rule.ExtensionsV1beta1IngressRule() + # model = kubernetes.client.models.extensions_v1beta1_ingress_rule.ExtensionsV1beta1IngressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_spec.py b/kubernetes/test/test_extensions_v1beta1_ingress_spec.py index c31a683250..9d659b49c0 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_spec.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec class TestExtensionsV1beta1IngressSpec(unittest.TestCase): - """ ExtensionsV1beta1IngressSpec unit test stubs """ + """ExtensionsV1beta1IngressSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressSpec(self): - """ - Test ExtensionsV1beta1IngressSpec - """ + """Test ExtensionsV1beta1IngressSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_spec.ExtensionsV1beta1IngressSpec() + # model = kubernetes.client.models.extensions_v1beta1_ingress_spec.ExtensionsV1beta1IngressSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_status.py b/kubernetes/test/test_extensions_v1beta1_ingress_status.py index d61b75501d..5a0d458c11 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_status.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus class TestExtensionsV1beta1IngressStatus(unittest.TestCase): - """ ExtensionsV1beta1IngressStatus unit test stubs """ + """ExtensionsV1beta1IngressStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressStatus(self): - """ - Test ExtensionsV1beta1IngressStatus - """ + """Test ExtensionsV1beta1IngressStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_status.ExtensionsV1beta1IngressStatus() + # model = kubernetes.client.models.extensions_v1beta1_ingress_status.ExtensionsV1beta1IngressStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_tls.py b/kubernetes/test/test_extensions_v1beta1_ingress_tls.py index 0aded9cccc..25ab34c97e 100644 --- a/kubernetes/test/test_extensions_v1beta1_ingress_tls.py +++ b/kubernetes/test/test_extensions_v1beta1_ingress_tls.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS class TestExtensionsV1beta1IngressTLS(unittest.TestCase): - """ ExtensionsV1beta1IngressTLS unit test stubs """ + """ExtensionsV1beta1IngressTLS unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1IngressTLS(self): - """ - Test ExtensionsV1beta1IngressTLS - """ + """Test ExtensionsV1beta1IngressTLS""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_ingress_tls.ExtensionsV1beta1IngressTLS() + # model = kubernetes.client.models.extensions_v1beta1_ingress_tls.ExtensionsV1beta1IngressTLS() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py index b7b2a95996..5bd09db8b4 100644 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py +++ b/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy class TestExtensionsV1beta1PodSecurityPolicy(unittest.TestCase): - """ ExtensionsV1beta1PodSecurityPolicy unit test stubs """ + """ExtensionsV1beta1PodSecurityPolicy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1PodSecurityPolicy(self): - """ - Test ExtensionsV1beta1PodSecurityPolicy - """ + """Test ExtensionsV1beta1PodSecurityPolicy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_pod_security_policy.ExtensionsV1beta1PodSecurityPolicy() + # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy.ExtensionsV1beta1PodSecurityPolicy() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py index 409644bbe5..72f13cef7c 100644 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py +++ b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList class TestExtensionsV1beta1PodSecurityPolicyList(unittest.TestCase): - """ ExtensionsV1beta1PodSecurityPolicyList unit test stubs """ + """ExtensionsV1beta1PodSecurityPolicyList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1PodSecurityPolicyList(self): - """ - Test ExtensionsV1beta1PodSecurityPolicyList - """ + """Test ExtensionsV1beta1PodSecurityPolicyList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_list.ExtensionsV1beta1PodSecurityPolicyList() + # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_list.ExtensionsV1beta1PodSecurityPolicyList() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py index 426a5307b3..107b194fef 100644 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec class TestExtensionsV1beta1PodSecurityPolicySpec(unittest.TestCase): - """ ExtensionsV1beta1PodSecurityPolicySpec unit test stubs """ + """ExtensionsV1beta1PodSecurityPolicySpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1PodSecurityPolicySpec(self): - """ - Test ExtensionsV1beta1PodSecurityPolicySpec - """ + """Test ExtensionsV1beta1PodSecurityPolicySpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec.ExtensionsV1beta1PodSecurityPolicySpec() + # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec.ExtensionsV1beta1PodSecurityPolicySpec() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_rollback_config.py b/kubernetes/test/test_extensions_v1beta1_rollback_config.py index d0ed936cd5..1f304f922c 100644 --- a/kubernetes/test/test_extensions_v1beta1_rollback_config.py +++ b/kubernetes/test/test_extensions_v1beta1_rollback_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig class TestExtensionsV1beta1RollbackConfig(unittest.TestCase): - """ ExtensionsV1beta1RollbackConfig unit test stubs """ + """ExtensionsV1beta1RollbackConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1RollbackConfig(self): - """ - Test ExtensionsV1beta1RollbackConfig - """ + """Test ExtensionsV1beta1RollbackConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig() + # model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py index 7c27dd2dd6..bbfbd55c0a 100644 --- a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py +++ b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment class TestExtensionsV1beta1RollingUpdateDeployment(unittest.TestCase): - """ ExtensionsV1beta1RollingUpdateDeployment unit test stubs """ + """ExtensionsV1beta1RollingUpdateDeployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1RollingUpdateDeployment(self): - """ - Test ExtensionsV1beta1RollingUpdateDeployment - """ + """Test ExtensionsV1beta1RollingUpdateDeployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_rolling_update_deployment.ExtensionsV1beta1RollingUpdateDeployment() + # model = kubernetes.client.models.extensions_v1beta1_rolling_update_deployment.ExtensionsV1beta1RollingUpdateDeployment() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py index b5a6d90522..faa772c6d9 100644 --- a/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions class TestExtensionsV1beta1RunAsGroupStrategyOptions(unittest.TestCase): - """ ExtensionsV1beta1RunAsGroupStrategyOptions unit test stubs """ + """ExtensionsV1beta1RunAsGroupStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1RunAsGroupStrategyOptions(self): - """ - Test ExtensionsV1beta1RunAsGroupStrategyOptions - """ + """Test ExtensionsV1beta1RunAsGroupStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options.ExtensionsV1beta1RunAsGroupStrategyOptions() + # model = kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options.ExtensionsV1beta1RunAsGroupStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py index f1cd86bf45..d9ae67e153 100644 --- a/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions class TestExtensionsV1beta1RunAsUserStrategyOptions(unittest.TestCase): - """ ExtensionsV1beta1RunAsUserStrategyOptions unit test stubs """ + """ExtensionsV1beta1RunAsUserStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1RunAsUserStrategyOptions(self): - """ - Test ExtensionsV1beta1RunAsUserStrategyOptions - """ + """Test ExtensionsV1beta1RunAsUserStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options.ExtensionsV1beta1RunAsUserStrategyOptions() + # model = kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options.ExtensionsV1beta1RunAsUserStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py new file mode 100644 index 0000000000..e6edd33f2f --- /dev/null +++ b/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options import ExtensionsV1beta1RuntimeClassStrategyOptions # noqa: E501 +from kubernetes.client.rest import ApiException + + +class TestExtensionsV1beta1RuntimeClassStrategyOptions(unittest.TestCase): + """ExtensionsV1beta1RuntimeClassStrategyOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExtensionsV1beta1RuntimeClassStrategyOptions(self): + """Test ExtensionsV1beta1RuntimeClassStrategyOptions""" + # FIXME: construct object with mandatory attributes with example values + # model = kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options.ExtensionsV1beta1RuntimeClassStrategyOptions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale.py b/kubernetes/test/test_extensions_v1beta1_scale.py index 157c8c6d7c..458e10c846 100644 --- a/kubernetes/test/test_extensions_v1beta1_scale.py +++ b/kubernetes/test/test_extensions_v1beta1_scale.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale class TestExtensionsV1beta1Scale(unittest.TestCase): - """ ExtensionsV1beta1Scale unit test stubs """ + """ExtensionsV1beta1Scale unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1Scale(self): - """ - Test ExtensionsV1beta1Scale - """ + """Test ExtensionsV1beta1Scale""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_scale.ExtensionsV1beta1Scale() + # model = kubernetes.client.models.extensions_v1beta1_scale.ExtensionsV1beta1Scale() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_scale_spec.py b/kubernetes/test/test_extensions_v1beta1_scale_spec.py index 1c2d4be972..15e4330871 100644 --- a/kubernetes/test/test_extensions_v1beta1_scale_spec.py +++ b/kubernetes/test/test_extensions_v1beta1_scale_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec class TestExtensionsV1beta1ScaleSpec(unittest.TestCase): - """ ExtensionsV1beta1ScaleSpec unit test stubs """ + """ExtensionsV1beta1ScaleSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1ScaleSpec(self): - """ - Test ExtensionsV1beta1ScaleSpec - """ + """Test ExtensionsV1beta1ScaleSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_scale_spec.ExtensionsV1beta1ScaleSpec() + # model = kubernetes.client.models.extensions_v1beta1_scale_spec.ExtensionsV1beta1ScaleSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_scale_status.py b/kubernetes/test/test_extensions_v1beta1_scale_status.py index 51cf2041ee..f313299596 100644 --- a/kubernetes/test/test_extensions_v1beta1_scale_status.py +++ b/kubernetes/test/test_extensions_v1beta1_scale_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus class TestExtensionsV1beta1ScaleStatus(unittest.TestCase): - """ ExtensionsV1beta1ScaleStatus unit test stubs """ + """ExtensionsV1beta1ScaleStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1ScaleStatus(self): - """ - Test ExtensionsV1beta1ScaleStatus - """ + """Test ExtensionsV1beta1ScaleStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_scale_status.ExtensionsV1beta1ScaleStatus() + # model = kubernetes.client.models.extensions_v1beta1_scale_status.ExtensionsV1beta1ScaleStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py index aea3c20408..ff413228ca 100644 --- a/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions class TestExtensionsV1beta1SELinuxStrategyOptions(unittest.TestCase): - """ ExtensionsV1beta1SELinuxStrategyOptions unit test stubs """ + """ExtensionsV1beta1SELinuxStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1SELinuxStrategyOptions(self): - """ - Test ExtensionsV1beta1SELinuxStrategyOptions - """ + """Test ExtensionsV1beta1SELinuxStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options.ExtensionsV1beta1SELinuxStrategyOptions() + # model = kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options.ExtensionsV1beta1SELinuxStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py index acc304c2b2..bd277428cc 100644 --- a/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions class TestExtensionsV1beta1SupplementalGroupsStrategyOptions(unittest.TestCase): - """ ExtensionsV1beta1SupplementalGroupsStrategyOptions unit test stubs """ + """ExtensionsV1beta1SupplementalGroupsStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testExtensionsV1beta1SupplementalGroupsStrategyOptions(self): - """ - Test ExtensionsV1beta1SupplementalGroupsStrategyOptions - """ + """Test ExtensionsV1beta1SupplementalGroupsStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options.ExtensionsV1beta1SupplementalGroupsStrategyOptions() + # model = kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options.ExtensionsV1beta1SupplementalGroupsStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_logs_api.py b/kubernetes/test/test_logs_api.py index e85c6930e0..fd0cca07c2 100644 --- a/kubernetes/test/test_logs_api.py +++ b/kubernetes/test/test_logs_api.py @@ -3,47 +3,40 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.logs_api import LogsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.logs_api import LogsApi class TestLogsApi(unittest.TestCase): - """ LogsApi unit test stubs """ + """LogsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.logs_api.LogsApi() + self.api = kubernetes.client.api.logs_api.LogsApi() # noqa: E501 def tearDown(self): pass def test_log_file_handler(self): - """ - Test case for log_file_handler + """Test case for log_file_handler - """ pass def test_log_file_list_handler(self): - """ - Test case for log_file_list_handler + """Test case for log_file_list_handler - """ pass diff --git a/kubernetes/test/test_networking_api.py b/kubernetes/test/test_networking_api.py index a9be2abe06..29b59ee72c 100644 --- a/kubernetes/test/test_networking_api.py +++ b/kubernetes/test/test_networking_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.networking_api import NetworkingApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.networking_api import NetworkingApi class TestNetworkingApi(unittest.TestCase): - """ NetworkingApi unit test stubs """ + """NetworkingApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.networking_api.NetworkingApi() + self.api = kubernetes.client.api.networking_api.NetworkingApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_networking_v1_api.py b/kubernetes/test/test_networking_v1_api.py index ed6ae2ea24..3b19629c21 100644 --- a/kubernetes/test/test_networking_v1_api.py +++ b/kubernetes/test/test_networking_v1_api.py @@ -3,103 +3,82 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.networking_v1_api import NetworkingV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.networking_v1_api import NetworkingV1Api class TestNetworkingV1Api(unittest.TestCase): - """ NetworkingV1Api unit test stubs """ + """NetworkingV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.networking_v1_api.NetworkingV1Api() + self.api = kubernetes.client.api.networking_v1_api.NetworkingV1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_network_policy(self): - """ - Test case for create_namespaced_network_policy + """Test case for create_namespaced_network_policy - """ pass def test_delete_collection_namespaced_network_policy(self): - """ - Test case for delete_collection_namespaced_network_policy + """Test case for delete_collection_namespaced_network_policy - """ pass def test_delete_namespaced_network_policy(self): - """ - Test case for delete_namespaced_network_policy + """Test case for delete_namespaced_network_policy - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_namespaced_network_policy(self): - """ - Test case for list_namespaced_network_policy + """Test case for list_namespaced_network_policy - """ pass def test_list_network_policy_for_all_namespaces(self): - """ - Test case for list_network_policy_for_all_namespaces + """Test case for list_network_policy_for_all_namespaces - """ pass def test_patch_namespaced_network_policy(self): - """ - Test case for patch_namespaced_network_policy + """Test case for patch_namespaced_network_policy - """ pass def test_read_namespaced_network_policy(self): - """ - Test case for read_namespaced_network_policy + """Test case for read_namespaced_network_policy - """ pass def test_replace_namespaced_network_policy(self): - """ - Test case for replace_namespaced_network_policy + """Test case for replace_namespaced_network_policy - """ pass diff --git a/kubernetes/test/test_networking_v1beta1_api.py b/kubernetes/test/test_networking_v1beta1_api.py index 99502762d0..1e93bdc3f6 100644 --- a/kubernetes/test/test_networking_v1beta1_api.py +++ b/kubernetes/test/test_networking_v1beta1_api.py @@ -3,127 +3,100 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.networking_v1beta1_api import NetworkingV1beta1Api class TestNetworkingV1beta1Api(unittest.TestCase): - """ NetworkingV1beta1Api unit test stubs """ + """NetworkingV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.networking_v1beta1_api.NetworkingV1beta1Api() + self.api = kubernetes.client.api.networking_v1beta1_api.NetworkingV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_ingress(self): - """ - Test case for create_namespaced_ingress + """Test case for create_namespaced_ingress - """ pass def test_delete_collection_namespaced_ingress(self): - """ - Test case for delete_collection_namespaced_ingress + """Test case for delete_collection_namespaced_ingress - """ pass def test_delete_namespaced_ingress(self): - """ - Test case for delete_namespaced_ingress + """Test case for delete_namespaced_ingress - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_ingress_for_all_namespaces(self): - """ - Test case for list_ingress_for_all_namespaces + """Test case for list_ingress_for_all_namespaces - """ pass def test_list_namespaced_ingress(self): - """ - Test case for list_namespaced_ingress + """Test case for list_namespaced_ingress - """ pass def test_patch_namespaced_ingress(self): - """ - Test case for patch_namespaced_ingress + """Test case for patch_namespaced_ingress - """ pass def test_patch_namespaced_ingress_status(self): - """ - Test case for patch_namespaced_ingress_status + """Test case for patch_namespaced_ingress_status - """ pass def test_read_namespaced_ingress(self): - """ - Test case for read_namespaced_ingress + """Test case for read_namespaced_ingress - """ pass def test_read_namespaced_ingress_status(self): - """ - Test case for read_namespaced_ingress_status + """Test case for read_namespaced_ingress_status - """ pass def test_replace_namespaced_ingress(self): - """ - Test case for replace_namespaced_ingress + """Test case for replace_namespaced_ingress - """ pass def test_replace_namespaced_ingress_status(self): - """ - Test case for replace_namespaced_ingress_status + """Test case for replace_namespaced_ingress_status - """ pass diff --git a/kubernetes/test/test_networking_v1beta1_http_ingress_path.py b/kubernetes/test/test_networking_v1beta1_http_ingress_path.py index 8ab6c6152d..113872fe02 100644 --- a/kubernetes/test/test_networking_v1beta1_http_ingress_path.py +++ b/kubernetes/test/test_networking_v1beta1_http_ingress_path.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath class TestNetworkingV1beta1HTTPIngressPath(unittest.TestCase): - """ NetworkingV1beta1HTTPIngressPath unit test stubs """ + """NetworkingV1beta1HTTPIngressPath unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1HTTPIngressPath(self): - """ - Test NetworkingV1beta1HTTPIngressPath - """ + """Test NetworkingV1beta1HTTPIngressPath""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_http_ingress_path.NetworkingV1beta1HTTPIngressPath() + # model = kubernetes.client.models.networking_v1beta1_http_ingress_path.NetworkingV1beta1HTTPIngressPath() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py index 9e84f23e77..129f28b6ad 100644 --- a/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue class TestNetworkingV1beta1HTTPIngressRuleValue(unittest.TestCase): - """ NetworkingV1beta1HTTPIngressRuleValue unit test stubs """ + """NetworkingV1beta1HTTPIngressRuleValue unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1HTTPIngressRuleValue(self): - """ - Test NetworkingV1beta1HTTPIngressRuleValue - """ + """Test NetworkingV1beta1HTTPIngressRuleValue""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_http_ingress_rule_value.NetworkingV1beta1HTTPIngressRuleValue() + # model = kubernetes.client.models.networking_v1beta1_http_ingress_rule_value.NetworkingV1beta1HTTPIngressRuleValue() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress.py b/kubernetes/test/test_networking_v1beta1_ingress.py index 1ddf4dce7a..939994310e 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress.py +++ b/kubernetes/test/test_networking_v1beta1_ingress.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress import NetworkingV1beta1Ingress # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress import NetworkingV1beta1Ingress class TestNetworkingV1beta1Ingress(unittest.TestCase): - """ NetworkingV1beta1Ingress unit test stubs """ + """NetworkingV1beta1Ingress unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1Ingress(self): - """ - Test NetworkingV1beta1Ingress - """ + """Test NetworkingV1beta1Ingress""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress.NetworkingV1beta1Ingress() + # model = kubernetes.client.models.networking_v1beta1_ingress.NetworkingV1beta1Ingress() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_backend.py b/kubernetes/test/test_networking_v1beta1_ingress_backend.py index 5769f5883c..7a2a34b67b 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_backend.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_backend.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend class TestNetworkingV1beta1IngressBackend(unittest.TestCase): - """ NetworkingV1beta1IngressBackend unit test stubs """ + """NetworkingV1beta1IngressBackend unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressBackend(self): - """ - Test NetworkingV1beta1IngressBackend - """ + """Test NetworkingV1beta1IngressBackend""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_backend.NetworkingV1beta1IngressBackend() + # model = kubernetes.client.models.networking_v1beta1_ingress_backend.NetworkingV1beta1IngressBackend() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_list.py b/kubernetes/test/test_networking_v1beta1_ingress_list.py index 86869545d2..54ee520172 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_list.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList class TestNetworkingV1beta1IngressList(unittest.TestCase): - """ NetworkingV1beta1IngressList unit test stubs """ + """NetworkingV1beta1IngressList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressList(self): - """ - Test NetworkingV1beta1IngressList - """ + """Test NetworkingV1beta1IngressList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_list.NetworkingV1beta1IngressList() + # model = kubernetes.client.models.networking_v1beta1_ingress_list.NetworkingV1beta1IngressList() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_rule.py b/kubernetes/test/test_networking_v1beta1_ingress_rule.py index 7fe8519e8f..378994d207 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_rule.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule class TestNetworkingV1beta1IngressRule(unittest.TestCase): - """ NetworkingV1beta1IngressRule unit test stubs """ + """NetworkingV1beta1IngressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressRule(self): - """ - Test NetworkingV1beta1IngressRule - """ + """Test NetworkingV1beta1IngressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_rule.NetworkingV1beta1IngressRule() + # model = kubernetes.client.models.networking_v1beta1_ingress_rule.NetworkingV1beta1IngressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_spec.py b/kubernetes/test/test_networking_v1beta1_ingress_spec.py index 1ef5488e32..6cad3a1d1f 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_spec.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec class TestNetworkingV1beta1IngressSpec(unittest.TestCase): - """ NetworkingV1beta1IngressSpec unit test stubs """ + """NetworkingV1beta1IngressSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressSpec(self): - """ - Test NetworkingV1beta1IngressSpec - """ + """Test NetworkingV1beta1IngressSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_spec.NetworkingV1beta1IngressSpec() + # model = kubernetes.client.models.networking_v1beta1_ingress_spec.NetworkingV1beta1IngressSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_status.py b/kubernetes/test/test_networking_v1beta1_ingress_status.py index b0e3e067ab..2f85ae7839 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_status.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus class TestNetworkingV1beta1IngressStatus(unittest.TestCase): - """ NetworkingV1beta1IngressStatus unit test stubs """ + """NetworkingV1beta1IngressStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressStatus(self): - """ - Test NetworkingV1beta1IngressStatus - """ + """Test NetworkingV1beta1IngressStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_status.NetworkingV1beta1IngressStatus() + # model = kubernetes.client.models.networking_v1beta1_ingress_status.NetworkingV1beta1IngressStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_networking_v1beta1_ingress_tls.py b/kubernetes/test/test_networking_v1beta1_ingress_tls.py index 59854a0226..c91a3c6bc2 100644 --- a/kubernetes/test/test_networking_v1beta1_ingress_tls.py +++ b/kubernetes/test/test_networking_v1beta1_ingress_tls.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS class TestNetworkingV1beta1IngressTLS(unittest.TestCase): - """ NetworkingV1beta1IngressTLS unit test stubs """ + """NetworkingV1beta1IngressTLS unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testNetworkingV1beta1IngressTLS(self): - """ - Test NetworkingV1beta1IngressTLS - """ + """Test NetworkingV1beta1IngressTLS""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.networking_v1beta1_ingress_tls.NetworkingV1beta1IngressTLS() + # model = kubernetes.client.models.networking_v1beta1_ingress_tls.NetworkingV1beta1IngressTLS() # noqa: E501 pass diff --git a/kubernetes/test/test_node_api.py b/kubernetes/test/test_node_api.py index fd6ad17f1b..400f631956 100644 --- a/kubernetes/test/test_node_api.py +++ b/kubernetes/test/test_node_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.node_api import NodeApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.node_api import NodeApi class TestNodeApi(unittest.TestCase): - """ NodeApi unit test stubs """ + """NodeApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.node_api.NodeApi() + self.api = kubernetes.client.api.node_api.NodeApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_node_v1alpha1_api.py b/kubernetes/test/test_node_v1alpha1_api.py index 60b6020e77..1a90c775af 100644 --- a/kubernetes/test/test_node_v1alpha1_api.py +++ b/kubernetes/test/test_node_v1alpha1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.node_v1alpha1_api import NodeV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.node_v1alpha1_api import NodeV1alpha1Api class TestNodeV1alpha1Api(unittest.TestCase): - """ NodeV1alpha1Api unit test stubs """ + """NodeV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.node_v1alpha1_api.NodeV1alpha1Api() + self.api = kubernetes.client.api.node_v1alpha1_api.NodeV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_runtime_class(self): - """ - Test case for create_runtime_class + """Test case for create_runtime_class - """ pass def test_delete_collection_runtime_class(self): - """ - Test case for delete_collection_runtime_class + """Test case for delete_collection_runtime_class - """ pass def test_delete_runtime_class(self): - """ - Test case for delete_runtime_class + """Test case for delete_runtime_class - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_runtime_class(self): - """ - Test case for list_runtime_class + """Test case for list_runtime_class - """ pass def test_patch_runtime_class(self): - """ - Test case for patch_runtime_class + """Test case for patch_runtime_class - """ pass def test_read_runtime_class(self): - """ - Test case for read_runtime_class + """Test case for read_runtime_class - """ pass def test_replace_runtime_class(self): - """ - Test case for replace_runtime_class + """Test case for replace_runtime_class - """ pass diff --git a/kubernetes/test/test_node_v1beta1_api.py b/kubernetes/test/test_node_v1beta1_api.py index fc33f4c547..4cc020b9fc 100644 --- a/kubernetes/test/test_node_v1beta1_api.py +++ b/kubernetes/test/test_node_v1beta1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.node_v1beta1_api import NodeV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.node_v1beta1_api import NodeV1beta1Api class TestNodeV1beta1Api(unittest.TestCase): - """ NodeV1beta1Api unit test stubs """ + """NodeV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.node_v1beta1_api.NodeV1beta1Api() + self.api = kubernetes.client.api.node_v1beta1_api.NodeV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_runtime_class(self): - """ - Test case for create_runtime_class + """Test case for create_runtime_class - """ pass def test_delete_collection_runtime_class(self): - """ - Test case for delete_collection_runtime_class + """Test case for delete_collection_runtime_class - """ pass def test_delete_runtime_class(self): - """ - Test case for delete_runtime_class + """Test case for delete_runtime_class - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_runtime_class(self): - """ - Test case for list_runtime_class + """Test case for list_runtime_class - """ pass def test_patch_runtime_class(self): - """ - Test case for patch_runtime_class + """Test case for patch_runtime_class - """ pass def test_read_runtime_class(self): - """ - Test case for read_runtime_class + """Test case for read_runtime_class - """ pass def test_replace_runtime_class(self): - """ - Test case for replace_runtime_class + """Test case for replace_runtime_class - """ pass diff --git a/kubernetes/test/test_policy_api.py b/kubernetes/test/test_policy_api.py index f06280560f..2ecd9930d5 100644 --- a/kubernetes/test/test_policy_api.py +++ b/kubernetes/test/test_policy_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.policy_api import PolicyApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.policy_api import PolicyApi class TestPolicyApi(unittest.TestCase): - """ PolicyApi unit test stubs """ + """PolicyApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.policy_api.PolicyApi() + self.api = kubernetes.client.api.policy_api.PolicyApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py b/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py index 207b8c6d3c..a4a4293fa2 100644 --- a/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py +++ b/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver class TestPolicyV1beta1AllowedCSIDriver(unittest.TestCase): - """ PolicyV1beta1AllowedCSIDriver unit test stubs """ + """PolicyV1beta1AllowedCSIDriver unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1AllowedCSIDriver(self): - """ - Test PolicyV1beta1AllowedCSIDriver - """ + """Test PolicyV1beta1AllowedCSIDriver""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_allowed_csi_driver.PolicyV1beta1AllowedCSIDriver() + # model = kubernetes.client.models.policy_v1beta1_allowed_csi_driver.PolicyV1beta1AllowedCSIDriver() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py b/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py index 2d4c17d59b..1b740f798c 100644 --- a/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py +++ b/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume class TestPolicyV1beta1AllowedFlexVolume(unittest.TestCase): - """ PolicyV1beta1AllowedFlexVolume unit test stubs """ + """PolicyV1beta1AllowedFlexVolume unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1AllowedFlexVolume(self): - """ - Test PolicyV1beta1AllowedFlexVolume - """ + """Test PolicyV1beta1AllowedFlexVolume""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_allowed_flex_volume.PolicyV1beta1AllowedFlexVolume() + # model = kubernetes.client.models.policy_v1beta1_allowed_flex_volume.PolicyV1beta1AllowedFlexVolume() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_allowed_host_path.py b/kubernetes/test/test_policy_v1beta1_allowed_host_path.py index 3a65819185..aba253c881 100644 --- a/kubernetes/test/test_policy_v1beta1_allowed_host_path.py +++ b/kubernetes/test/test_policy_v1beta1_allowed_host_path.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath class TestPolicyV1beta1AllowedHostPath(unittest.TestCase): - """ PolicyV1beta1AllowedHostPath unit test stubs """ + """PolicyV1beta1AllowedHostPath unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1AllowedHostPath(self): - """ - Test PolicyV1beta1AllowedHostPath - """ + """Test PolicyV1beta1AllowedHostPath""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_allowed_host_path.PolicyV1beta1AllowedHostPath() + # model = kubernetes.client.models.policy_v1beta1_allowed_host_path.PolicyV1beta1AllowedHostPath() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_api.py b/kubernetes/test/test_policy_v1beta1_api.py index 63a578544d..f71e35702c 100644 --- a/kubernetes/test/test_policy_v1beta1_api.py +++ b/kubernetes/test/test_policy_v1beta1_api.py @@ -3,183 +3,142 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.policy_v1beta1_api import PolicyV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.policy_v1beta1_api import PolicyV1beta1Api class TestPolicyV1beta1Api(unittest.TestCase): - """ PolicyV1beta1Api unit test stubs """ + """PolicyV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.policy_v1beta1_api.PolicyV1beta1Api() + self.api = kubernetes.client.api.policy_v1beta1_api.PolicyV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_pod_disruption_budget(self): - """ - Test case for create_namespaced_pod_disruption_budget + """Test case for create_namespaced_pod_disruption_budget - """ pass def test_create_pod_security_policy(self): - """ - Test case for create_pod_security_policy + """Test case for create_pod_security_policy - """ pass def test_delete_collection_namespaced_pod_disruption_budget(self): - """ - Test case for delete_collection_namespaced_pod_disruption_budget + """Test case for delete_collection_namespaced_pod_disruption_budget - """ pass def test_delete_collection_pod_security_policy(self): - """ - Test case for delete_collection_pod_security_policy + """Test case for delete_collection_pod_security_policy - """ pass def test_delete_namespaced_pod_disruption_budget(self): - """ - Test case for delete_namespaced_pod_disruption_budget + """Test case for delete_namespaced_pod_disruption_budget - """ pass def test_delete_pod_security_policy(self): - """ - Test case for delete_pod_security_policy + """Test case for delete_pod_security_policy - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_namespaced_pod_disruption_budget(self): - """ - Test case for list_namespaced_pod_disruption_budget + """Test case for list_namespaced_pod_disruption_budget - """ pass def test_list_pod_disruption_budget_for_all_namespaces(self): - """ - Test case for list_pod_disruption_budget_for_all_namespaces + """Test case for list_pod_disruption_budget_for_all_namespaces - """ pass def test_list_pod_security_policy(self): - """ - Test case for list_pod_security_policy + """Test case for list_pod_security_policy - """ pass def test_patch_namespaced_pod_disruption_budget(self): - """ - Test case for patch_namespaced_pod_disruption_budget + """Test case for patch_namespaced_pod_disruption_budget - """ pass def test_patch_namespaced_pod_disruption_budget_status(self): - """ - Test case for patch_namespaced_pod_disruption_budget_status + """Test case for patch_namespaced_pod_disruption_budget_status - """ pass def test_patch_pod_security_policy(self): - """ - Test case for patch_pod_security_policy + """Test case for patch_pod_security_policy - """ pass def test_read_namespaced_pod_disruption_budget(self): - """ - Test case for read_namespaced_pod_disruption_budget + """Test case for read_namespaced_pod_disruption_budget - """ pass def test_read_namespaced_pod_disruption_budget_status(self): - """ - Test case for read_namespaced_pod_disruption_budget_status + """Test case for read_namespaced_pod_disruption_budget_status - """ pass def test_read_pod_security_policy(self): - """ - Test case for read_pod_security_policy + """Test case for read_pod_security_policy - """ pass def test_replace_namespaced_pod_disruption_budget(self): - """ - Test case for replace_namespaced_pod_disruption_budget + """Test case for replace_namespaced_pod_disruption_budget - """ pass def test_replace_namespaced_pod_disruption_budget_status(self): - """ - Test case for replace_namespaced_pod_disruption_budget_status + """Test case for replace_namespaced_pod_disruption_budget_status - """ pass def test_replace_pod_security_policy(self): - """ - Test case for replace_pod_security_policy + """Test case for replace_pod_security_policy - """ pass diff --git a/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py index bf5a95ec14..0eb0fcae9c 100644 --- a/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions class TestPolicyV1beta1FSGroupStrategyOptions(unittest.TestCase): - """ PolicyV1beta1FSGroupStrategyOptions unit test stubs """ + """PolicyV1beta1FSGroupStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1FSGroupStrategyOptions(self): - """ - Test PolicyV1beta1FSGroupStrategyOptions - """ + """Test PolicyV1beta1FSGroupStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_fs_group_strategy_options.PolicyV1beta1FSGroupStrategyOptions() + # model = kubernetes.client.models.policy_v1beta1_fs_group_strategy_options.PolicyV1beta1FSGroupStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_host_port_range.py b/kubernetes/test/test_policy_v1beta1_host_port_range.py index 7e596e16ee..782bfe63d0 100644 --- a/kubernetes/test/test_policy_v1beta1_host_port_range.py +++ b/kubernetes/test/test_policy_v1beta1_host_port_range.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange class TestPolicyV1beta1HostPortRange(unittest.TestCase): - """ PolicyV1beta1HostPortRange unit test stubs """ + """PolicyV1beta1HostPortRange unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1HostPortRange(self): - """ - Test PolicyV1beta1HostPortRange - """ + """Test PolicyV1beta1HostPortRange""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_host_port_range.PolicyV1beta1HostPortRange() + # model = kubernetes.client.models.policy_v1beta1_host_port_range.PolicyV1beta1HostPortRange() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_id_range.py b/kubernetes/test/test_policy_v1beta1_id_range.py index 45c3dc8f37..783051c06b 100644 --- a/kubernetes/test/test_policy_v1beta1_id_range.py +++ b/kubernetes/test/test_policy_v1beta1_id_range.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_id_range import PolicyV1beta1IDRange # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_id_range import PolicyV1beta1IDRange class TestPolicyV1beta1IDRange(unittest.TestCase): - """ PolicyV1beta1IDRange unit test stubs """ + """PolicyV1beta1IDRange unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1IDRange(self): - """ - Test PolicyV1beta1IDRange - """ + """Test PolicyV1beta1IDRange""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_id_range.PolicyV1beta1IDRange() + # model = kubernetes.client.models.policy_v1beta1_id_range.PolicyV1beta1IDRange() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy.py index c95b831eac..b3e0ea1933 100644 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy.py +++ b/kubernetes/test/test_policy_v1beta1_pod_security_policy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy class TestPolicyV1beta1PodSecurityPolicy(unittest.TestCase): - """ PolicyV1beta1PodSecurityPolicy unit test stubs """ + """PolicyV1beta1PodSecurityPolicy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1PodSecurityPolicy(self): - """ - Test PolicyV1beta1PodSecurityPolicy - """ + """Test PolicyV1beta1PodSecurityPolicy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_pod_security_policy.PolicyV1beta1PodSecurityPolicy() + # model = kubernetes.client.models.policy_v1beta1_pod_security_policy.PolicyV1beta1PodSecurityPolicy() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py index 5daade8e74..3b9a056b88 100644 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py +++ b/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList class TestPolicyV1beta1PodSecurityPolicyList(unittest.TestCase): - """ PolicyV1beta1PodSecurityPolicyList unit test stubs """ + """PolicyV1beta1PodSecurityPolicyList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1PodSecurityPolicyList(self): - """ - Test PolicyV1beta1PodSecurityPolicyList - """ + """Test PolicyV1beta1PodSecurityPolicyList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_pod_security_policy_list.PolicyV1beta1PodSecurityPolicyList() + # model = kubernetes.client.models.policy_v1beta1_pod_security_policy_list.PolicyV1beta1PodSecurityPolicyList() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py index 64fc28ab05..ff9e442596 100644 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec class TestPolicyV1beta1PodSecurityPolicySpec(unittest.TestCase): - """ PolicyV1beta1PodSecurityPolicySpec unit test stubs """ + """PolicyV1beta1PodSecurityPolicySpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1PodSecurityPolicySpec(self): - """ - Test PolicyV1beta1PodSecurityPolicySpec - """ + """Test PolicyV1beta1PodSecurityPolicySpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_pod_security_policy_spec.PolicyV1beta1PodSecurityPolicySpec() + # model = kubernetes.client.models.policy_v1beta1_pod_security_policy_spec.PolicyV1beta1PodSecurityPolicySpec() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py b/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py index 7a6f4b72ae..46b40bbc50 100644 --- a/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions class TestPolicyV1beta1RunAsGroupStrategyOptions(unittest.TestCase): - """ PolicyV1beta1RunAsGroupStrategyOptions unit test stubs """ + """PolicyV1beta1RunAsGroupStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1RunAsGroupStrategyOptions(self): - """ - Test PolicyV1beta1RunAsGroupStrategyOptions - """ + """Test PolicyV1beta1RunAsGroupStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options.PolicyV1beta1RunAsGroupStrategyOptions() + # model = kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options.PolicyV1beta1RunAsGroupStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py index 4469d909e5..d70ca067a5 100644 --- a/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions class TestPolicyV1beta1RunAsUserStrategyOptions(unittest.TestCase): - """ PolicyV1beta1RunAsUserStrategyOptions unit test stubs """ + """PolicyV1beta1RunAsUserStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1RunAsUserStrategyOptions(self): - """ - Test PolicyV1beta1RunAsUserStrategyOptions - """ + """Test PolicyV1beta1RunAsUserStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options.PolicyV1beta1RunAsUserStrategyOptions() + # model = kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options.PolicyV1beta1RunAsUserStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py b/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py new file mode 100644 index 0000000000..a06bb8024b --- /dev/null +++ b/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import kubernetes.client +from kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options import PolicyV1beta1RuntimeClassStrategyOptions # noqa: E501 +from kubernetes.client.rest import ApiException + + +class TestPolicyV1beta1RuntimeClassStrategyOptions(unittest.TestCase): + """PolicyV1beta1RuntimeClassStrategyOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPolicyV1beta1RuntimeClassStrategyOptions(self): + """Test PolicyV1beta1RuntimeClassStrategyOptions""" + # FIXME: construct object with mandatory attributes with example values + # model = kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options.PolicyV1beta1RuntimeClassStrategyOptions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py index 6dc31e90ae..93b1df3336 100644 --- a/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions class TestPolicyV1beta1SELinuxStrategyOptions(unittest.TestCase): - """ PolicyV1beta1SELinuxStrategyOptions unit test stubs """ + """PolicyV1beta1SELinuxStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1SELinuxStrategyOptions(self): - """ - Test PolicyV1beta1SELinuxStrategyOptions - """ + """Test PolicyV1beta1SELinuxStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_se_linux_strategy_options.PolicyV1beta1SELinuxStrategyOptions() + # model = kubernetes.client.models.policy_v1beta1_se_linux_strategy_options.PolicyV1beta1SELinuxStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py index 1be922b48e..b8061274e7 100644 --- a/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions class TestPolicyV1beta1SupplementalGroupsStrategyOptions(unittest.TestCase): - """ PolicyV1beta1SupplementalGroupsStrategyOptions unit test stubs """ + """PolicyV1beta1SupplementalGroupsStrategyOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testPolicyV1beta1SupplementalGroupsStrategyOptions(self): - """ - Test PolicyV1beta1SupplementalGroupsStrategyOptions - """ + """Test PolicyV1beta1SupplementalGroupsStrategyOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options.PolicyV1beta1SupplementalGroupsStrategyOptions() + # model = kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options.PolicyV1beta1SupplementalGroupsStrategyOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_quantity.py b/kubernetes/test/test_quantity.py deleted file mode 100644 index 35bef5661d..0000000000 --- a/kubernetes/test/test_quantity.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 -# Copyright 2019 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import - -import unittest -from kubernetes.utils import parse_quantity -from decimal import Decimal - - -class TestQuantity(unittest.TestCase): - def test_parse(self): - self.assertIsInstance(parse_quantity(2.2), Decimal) - # input, expected output - tests = [ - (0, 0), - (2, 2), - (2, Decimal("2")), - (2., 2), - (Decimal("2.2"), Decimal("2.2")), - (2., Decimal(2)), - (Decimal("2."), 2), - ("123", 123), - ("2", 2), - ("2n", Decimal("2") * Decimal(1000)**-3), - ("2u", Decimal("0.000002")), - ("2m", Decimal("0.002")), - ("0m", Decimal("0")), - ("0M", Decimal("0")), - ("223k", 223000), - ("002M", 2 * 1000**2), - ("2M", 2 * 1000**2), - ("4123G", 4123 * 1000**3), - ("2T", 2 * 1000**4), - ("2P", 2 * 1000**5), - ("2E", 2 * 1000**6), - - ("223Ki", 223 * 1024), - ("002Mi", 2 * 1024**2), - ("2Mi", 2 * 1024**2), - ("2Gi", 2 * 1024**3), - ("4123Gi", 4123 * 1024**3), - ("2Ti", 2 * 1024**4), - ("2Pi", 2 * 1024**5), - ("2Ei", 2 * 1024**6), - - ("2.34n", Decimal("2.34") * Decimal(1000)**-3), - ("2.34u", Decimal("2.34") * Decimal(1000)**-2), - ("2.34m", Decimal("2.34") * Decimal(1000)**-1), - ("2.34Ki", Decimal("2.34") * 1024), - ("2.34", Decimal("2.34")), - (".34", Decimal("0.34")), - ("34.", 34), - (".34M", Decimal("0.34") * 1000**2), - - ("2e2K", Decimal("2e2") * 1000), - ("2e2Ki", Decimal("2e2") * 1024), - ("2e-2Ki", Decimal("2e-2") * 1024), - ("2.34E1", Decimal("2.34E1")), - (".34e-2", Decimal("0.34e-2")), - ] - - for inp, out in tests: - self.assertEqual(parse_quantity(inp), out) - if isinstance(inp, (int, float, Decimal)): - self.assertEqual(parse_quantity(-1 * inp), -out) - else: - self.assertEqual(parse_quantity("-" + inp), -out) - self.assertEqual(parse_quantity("+" + inp), out) - - def test_parse_invalid(self): - self.assertRaises(ValueError, parse_quantity, []) - self.assertRaises(ValueError, parse_quantity, "") - self.assertRaises(ValueError, parse_quantity, "-") - self.assertRaises(ValueError, parse_quantity, "i") - self.assertRaises(ValueError, parse_quantity, "2i") - self.assertRaises(ValueError, parse_quantity, "2mm") - self.assertRaises(ValueError, parse_quantity, "2mmKi") - self.assertRaises(ValueError, parse_quantity, "2KKi") - self.assertRaises(ValueError, parse_quantity, "2e") - self.assertRaises(ValueError, parse_quantity, "2.2i") - self.assertRaises(ValueError, parse_quantity, "bla") - self.assertRaises(ValueError, parse_quantity, "Ki") - self.assertRaises(ValueError, parse_quantity, "M") - self.assertRaises(ValueError, parse_quantity, "2ki") - self.assertRaises(ValueError, parse_quantity, "2Ki ") - self.assertRaises(ValueError, parse_quantity, "20Ki ") - self.assertRaises(ValueError, parse_quantity, "20B") - self.assertRaises(ValueError, parse_quantity, "20Bi") - self.assertRaises(ValueError, parse_quantity, "20.2Bi") - self.assertRaises(ValueError, parse_quantity, "2MiKi") - self.assertRaises(ValueError, parse_quantity, "2MK") - self.assertRaises(ValueError, parse_quantity, "2MKi") - self.assertRaises(ValueError, parse_quantity, "234df") - self.assertRaises(ValueError, parse_quantity, "df234") - self.assertRaises(ValueError, parse_quantity, tuple()) - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_api.py b/kubernetes/test/test_rbac_authorization_api.py index 4571909781..c45a0132e7 100644 --- a/kubernetes/test/test_rbac_authorization_api.py +++ b/kubernetes/test/test_rbac_authorization_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_api import RbacAuthorizationApi class TestRbacAuthorizationApi(unittest.TestCase): - """ RbacAuthorizationApi unit test stubs """ + """RbacAuthorizationApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_api.RbacAuthorizationApi() + self.api = kubernetes.client.api.rbac_authorization_api.RbacAuthorizationApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_rbac_authorization_v1_api.py b/kubernetes/test/test_rbac_authorization_v1_api.py index 2324d34a07..ab009f2d5e 100644 --- a/kubernetes/test/test_rbac_authorization_v1_api.py +++ b/kubernetes/test/test_rbac_authorization_v1_api.py @@ -3,279 +3,214 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_v1_api import RbacAuthorizationV1Api class TestRbacAuthorizationV1Api(unittest.TestCase): - """ RbacAuthorizationV1Api unit test stubs """ + """RbacAuthorizationV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_v1_api.RbacAuthorizationV1Api() + self.api = kubernetes.client.api.rbac_authorization_v1_api.RbacAuthorizationV1Api() # noqa: E501 def tearDown(self): pass def test_create_cluster_role(self): - """ - Test case for create_cluster_role + """Test case for create_cluster_role - """ pass def test_create_cluster_role_binding(self): - """ - Test case for create_cluster_role_binding + """Test case for create_cluster_role_binding - """ pass def test_create_namespaced_role(self): - """ - Test case for create_namespaced_role + """Test case for create_namespaced_role - """ pass def test_create_namespaced_role_binding(self): - """ - Test case for create_namespaced_role_binding + """Test case for create_namespaced_role_binding - """ pass def test_delete_cluster_role(self): - """ - Test case for delete_cluster_role + """Test case for delete_cluster_role - """ pass def test_delete_cluster_role_binding(self): - """ - Test case for delete_cluster_role_binding + """Test case for delete_cluster_role_binding - """ pass def test_delete_collection_cluster_role(self): - """ - Test case for delete_collection_cluster_role + """Test case for delete_collection_cluster_role - """ pass def test_delete_collection_cluster_role_binding(self): - """ - Test case for delete_collection_cluster_role_binding + """Test case for delete_collection_cluster_role_binding - """ pass def test_delete_collection_namespaced_role(self): - """ - Test case for delete_collection_namespaced_role + """Test case for delete_collection_namespaced_role - """ pass def test_delete_collection_namespaced_role_binding(self): - """ - Test case for delete_collection_namespaced_role_binding + """Test case for delete_collection_namespaced_role_binding - """ pass def test_delete_namespaced_role(self): - """ - Test case for delete_namespaced_role + """Test case for delete_namespaced_role - """ pass def test_delete_namespaced_role_binding(self): - """ - Test case for delete_namespaced_role_binding + """Test case for delete_namespaced_role_binding - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_cluster_role(self): - """ - Test case for list_cluster_role + """Test case for list_cluster_role - """ pass def test_list_cluster_role_binding(self): - """ - Test case for list_cluster_role_binding + """Test case for list_cluster_role_binding - """ pass def test_list_namespaced_role(self): - """ - Test case for list_namespaced_role + """Test case for list_namespaced_role - """ pass def test_list_namespaced_role_binding(self): - """ - Test case for list_namespaced_role_binding + """Test case for list_namespaced_role_binding - """ pass def test_list_role_binding_for_all_namespaces(self): - """ - Test case for list_role_binding_for_all_namespaces + """Test case for list_role_binding_for_all_namespaces - """ pass def test_list_role_for_all_namespaces(self): - """ - Test case for list_role_for_all_namespaces + """Test case for list_role_for_all_namespaces - """ pass def test_patch_cluster_role(self): - """ - Test case for patch_cluster_role + """Test case for patch_cluster_role - """ pass def test_patch_cluster_role_binding(self): - """ - Test case for patch_cluster_role_binding + """Test case for patch_cluster_role_binding - """ pass def test_patch_namespaced_role(self): - """ - Test case for patch_namespaced_role + """Test case for patch_namespaced_role - """ pass def test_patch_namespaced_role_binding(self): - """ - Test case for patch_namespaced_role_binding + """Test case for patch_namespaced_role_binding - """ pass def test_read_cluster_role(self): - """ - Test case for read_cluster_role + """Test case for read_cluster_role - """ pass def test_read_cluster_role_binding(self): - """ - Test case for read_cluster_role_binding + """Test case for read_cluster_role_binding - """ pass def test_read_namespaced_role(self): - """ - Test case for read_namespaced_role + """Test case for read_namespaced_role - """ pass def test_read_namespaced_role_binding(self): - """ - Test case for read_namespaced_role_binding + """Test case for read_namespaced_role_binding - """ pass def test_replace_cluster_role(self): - """ - Test case for replace_cluster_role + """Test case for replace_cluster_role - """ pass def test_replace_cluster_role_binding(self): - """ - Test case for replace_cluster_role_binding + """Test case for replace_cluster_role_binding - """ pass def test_replace_namespaced_role(self): - """ - Test case for replace_namespaced_role + """Test case for replace_namespaced_role - """ pass def test_replace_namespaced_role_binding(self): - """ - Test case for replace_namespaced_role_binding + """Test case for replace_namespaced_role_binding - """ pass diff --git a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py index 5804ffba80..6a74ebfe8d 100644 --- a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py +++ b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py @@ -3,279 +3,214 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api class TestRbacAuthorizationV1alpha1Api(unittest.TestCase): - """ RbacAuthorizationV1alpha1Api unit test stubs """ + """RbacAuthorizationV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_v1alpha1_api.RbacAuthorizationV1alpha1Api() + self.api = kubernetes.client.api.rbac_authorization_v1alpha1_api.RbacAuthorizationV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_cluster_role(self): - """ - Test case for create_cluster_role + """Test case for create_cluster_role - """ pass def test_create_cluster_role_binding(self): - """ - Test case for create_cluster_role_binding + """Test case for create_cluster_role_binding - """ pass def test_create_namespaced_role(self): - """ - Test case for create_namespaced_role + """Test case for create_namespaced_role - """ pass def test_create_namespaced_role_binding(self): - """ - Test case for create_namespaced_role_binding + """Test case for create_namespaced_role_binding - """ pass def test_delete_cluster_role(self): - """ - Test case for delete_cluster_role + """Test case for delete_cluster_role - """ pass def test_delete_cluster_role_binding(self): - """ - Test case for delete_cluster_role_binding + """Test case for delete_cluster_role_binding - """ pass def test_delete_collection_cluster_role(self): - """ - Test case for delete_collection_cluster_role + """Test case for delete_collection_cluster_role - """ pass def test_delete_collection_cluster_role_binding(self): - """ - Test case for delete_collection_cluster_role_binding + """Test case for delete_collection_cluster_role_binding - """ pass def test_delete_collection_namespaced_role(self): - """ - Test case for delete_collection_namespaced_role + """Test case for delete_collection_namespaced_role - """ pass def test_delete_collection_namespaced_role_binding(self): - """ - Test case for delete_collection_namespaced_role_binding + """Test case for delete_collection_namespaced_role_binding - """ pass def test_delete_namespaced_role(self): - """ - Test case for delete_namespaced_role + """Test case for delete_namespaced_role - """ pass def test_delete_namespaced_role_binding(self): - """ - Test case for delete_namespaced_role_binding + """Test case for delete_namespaced_role_binding - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_cluster_role(self): - """ - Test case for list_cluster_role + """Test case for list_cluster_role - """ pass def test_list_cluster_role_binding(self): - """ - Test case for list_cluster_role_binding + """Test case for list_cluster_role_binding - """ pass def test_list_namespaced_role(self): - """ - Test case for list_namespaced_role + """Test case for list_namespaced_role - """ pass def test_list_namespaced_role_binding(self): - """ - Test case for list_namespaced_role_binding + """Test case for list_namespaced_role_binding - """ pass def test_list_role_binding_for_all_namespaces(self): - """ - Test case for list_role_binding_for_all_namespaces + """Test case for list_role_binding_for_all_namespaces - """ pass def test_list_role_for_all_namespaces(self): - """ - Test case for list_role_for_all_namespaces + """Test case for list_role_for_all_namespaces - """ pass def test_patch_cluster_role(self): - """ - Test case for patch_cluster_role + """Test case for patch_cluster_role - """ pass def test_patch_cluster_role_binding(self): - """ - Test case for patch_cluster_role_binding + """Test case for patch_cluster_role_binding - """ pass def test_patch_namespaced_role(self): - """ - Test case for patch_namespaced_role + """Test case for patch_namespaced_role - """ pass def test_patch_namespaced_role_binding(self): - """ - Test case for patch_namespaced_role_binding + """Test case for patch_namespaced_role_binding - """ pass def test_read_cluster_role(self): - """ - Test case for read_cluster_role + """Test case for read_cluster_role - """ pass def test_read_cluster_role_binding(self): - """ - Test case for read_cluster_role_binding + """Test case for read_cluster_role_binding - """ pass def test_read_namespaced_role(self): - """ - Test case for read_namespaced_role + """Test case for read_namespaced_role - """ pass def test_read_namespaced_role_binding(self): - """ - Test case for read_namespaced_role_binding + """Test case for read_namespaced_role_binding - """ pass def test_replace_cluster_role(self): - """ - Test case for replace_cluster_role + """Test case for replace_cluster_role - """ pass def test_replace_cluster_role_binding(self): - """ - Test case for replace_cluster_role_binding + """Test case for replace_cluster_role_binding - """ pass def test_replace_namespaced_role(self): - """ - Test case for replace_namespaced_role + """Test case for replace_namespaced_role - """ pass def test_replace_namespaced_role_binding(self): - """ - Test case for replace_namespaced_role_binding + """Test case for replace_namespaced_role_binding - """ pass diff --git a/kubernetes/test/test_rbac_authorization_v1beta1_api.py b/kubernetes/test/test_rbac_authorization_v1beta1_api.py index c04198a432..c53c52d635 100644 --- a/kubernetes/test/test_rbac_authorization_v1beta1_api.py +++ b/kubernetes/test/test_rbac_authorization_v1beta1_api.py @@ -3,279 +3,214 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api class TestRbacAuthorizationV1beta1Api(unittest.TestCase): - """ RbacAuthorizationV1beta1Api unit test stubs """ + """RbacAuthorizationV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.rbac_authorization_v1beta1_api.RbacAuthorizationV1beta1Api() + self.api = kubernetes.client.api.rbac_authorization_v1beta1_api.RbacAuthorizationV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_cluster_role(self): - """ - Test case for create_cluster_role + """Test case for create_cluster_role - """ pass def test_create_cluster_role_binding(self): - """ - Test case for create_cluster_role_binding + """Test case for create_cluster_role_binding - """ pass def test_create_namespaced_role(self): - """ - Test case for create_namespaced_role + """Test case for create_namespaced_role - """ pass def test_create_namespaced_role_binding(self): - """ - Test case for create_namespaced_role_binding + """Test case for create_namespaced_role_binding - """ pass def test_delete_cluster_role(self): - """ - Test case for delete_cluster_role + """Test case for delete_cluster_role - """ pass def test_delete_cluster_role_binding(self): - """ - Test case for delete_cluster_role_binding + """Test case for delete_cluster_role_binding - """ pass def test_delete_collection_cluster_role(self): - """ - Test case for delete_collection_cluster_role + """Test case for delete_collection_cluster_role - """ pass def test_delete_collection_cluster_role_binding(self): - """ - Test case for delete_collection_cluster_role_binding + """Test case for delete_collection_cluster_role_binding - """ pass def test_delete_collection_namespaced_role(self): - """ - Test case for delete_collection_namespaced_role + """Test case for delete_collection_namespaced_role - """ pass def test_delete_collection_namespaced_role_binding(self): - """ - Test case for delete_collection_namespaced_role_binding + """Test case for delete_collection_namespaced_role_binding - """ pass def test_delete_namespaced_role(self): - """ - Test case for delete_namespaced_role + """Test case for delete_namespaced_role - """ pass def test_delete_namespaced_role_binding(self): - """ - Test case for delete_namespaced_role_binding + """Test case for delete_namespaced_role_binding - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_cluster_role(self): - """ - Test case for list_cluster_role + """Test case for list_cluster_role - """ pass def test_list_cluster_role_binding(self): - """ - Test case for list_cluster_role_binding + """Test case for list_cluster_role_binding - """ pass def test_list_namespaced_role(self): - """ - Test case for list_namespaced_role + """Test case for list_namespaced_role - """ pass def test_list_namespaced_role_binding(self): - """ - Test case for list_namespaced_role_binding + """Test case for list_namespaced_role_binding - """ pass def test_list_role_binding_for_all_namespaces(self): - """ - Test case for list_role_binding_for_all_namespaces + """Test case for list_role_binding_for_all_namespaces - """ pass def test_list_role_for_all_namespaces(self): - """ - Test case for list_role_for_all_namespaces + """Test case for list_role_for_all_namespaces - """ pass def test_patch_cluster_role(self): - """ - Test case for patch_cluster_role + """Test case for patch_cluster_role - """ pass def test_patch_cluster_role_binding(self): - """ - Test case for patch_cluster_role_binding + """Test case for patch_cluster_role_binding - """ pass def test_patch_namespaced_role(self): - """ - Test case for patch_namespaced_role + """Test case for patch_namespaced_role - """ pass def test_patch_namespaced_role_binding(self): - """ - Test case for patch_namespaced_role_binding + """Test case for patch_namespaced_role_binding - """ pass def test_read_cluster_role(self): - """ - Test case for read_cluster_role + """Test case for read_cluster_role - """ pass def test_read_cluster_role_binding(self): - """ - Test case for read_cluster_role_binding + """Test case for read_cluster_role_binding - """ pass def test_read_namespaced_role(self): - """ - Test case for read_namespaced_role + """Test case for read_namespaced_role - """ pass def test_read_namespaced_role_binding(self): - """ - Test case for read_namespaced_role_binding + """Test case for read_namespaced_role_binding - """ pass def test_replace_cluster_role(self): - """ - Test case for replace_cluster_role + """Test case for replace_cluster_role - """ pass def test_replace_cluster_role_binding(self): - """ - Test case for replace_cluster_role_binding + """Test case for replace_cluster_role_binding - """ pass def test_replace_namespaced_role(self): - """ - Test case for replace_namespaced_role + """Test case for replace_namespaced_role - """ pass def test_replace_namespaced_role_binding(self): - """ - Test case for replace_namespaced_role_binding + """Test case for replace_namespaced_role_binding - """ pass diff --git a/kubernetes/test/test_runtime_raw_extension.py b/kubernetes/test/test_runtime_raw_extension.py index be4cafa461..ee67e7a373 100644 --- a/kubernetes/test/test_runtime_raw_extension.py +++ b/kubernetes/test/test_runtime_raw_extension.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.runtime_raw_extension import RuntimeRawExtension # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.runtime_raw_extension import RuntimeRawExtension class TestRuntimeRawExtension(unittest.TestCase): - """ RuntimeRawExtension unit test stubs """ + """RuntimeRawExtension unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testRuntimeRawExtension(self): - """ - Test RuntimeRawExtension - """ + """Test RuntimeRawExtension""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.runtime_raw_extension.RuntimeRawExtension() + # model = kubernetes.client.models.runtime_raw_extension.RuntimeRawExtension() # noqa: E501 pass diff --git a/kubernetes/test/test_scheduling_api.py b/kubernetes/test/test_scheduling_api.py index fa1dd9f24a..fbf9f5feaf 100644 --- a/kubernetes/test/test_scheduling_api.py +++ b/kubernetes/test/test_scheduling_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.scheduling_api import SchedulingApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.scheduling_api import SchedulingApi class TestSchedulingApi(unittest.TestCase): - """ SchedulingApi unit test stubs """ + """SchedulingApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.scheduling_api.SchedulingApi() + self.api = kubernetes.client.api.scheduling_api.SchedulingApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_scheduling_v1_api.py b/kubernetes/test/test_scheduling_v1_api.py index 2ca24eeb5f..316c397d11 100644 --- a/kubernetes/test/test_scheduling_v1_api.py +++ b/kubernetes/test/test_scheduling_v1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.scheduling_v1_api import SchedulingV1Api class TestSchedulingV1Api(unittest.TestCase): - """ SchedulingV1Api unit test stubs """ + """SchedulingV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.scheduling_v1_api.SchedulingV1Api() + self.api = kubernetes.client.api.scheduling_v1_api.SchedulingV1Api() # noqa: E501 def tearDown(self): pass def test_create_priority_class(self): - """ - Test case for create_priority_class + """Test case for create_priority_class - """ pass def test_delete_collection_priority_class(self): - """ - Test case for delete_collection_priority_class + """Test case for delete_collection_priority_class - """ pass def test_delete_priority_class(self): - """ - Test case for delete_priority_class + """Test case for delete_priority_class - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_priority_class(self): - """ - Test case for list_priority_class + """Test case for list_priority_class - """ pass def test_patch_priority_class(self): - """ - Test case for patch_priority_class + """Test case for patch_priority_class - """ pass def test_read_priority_class(self): - """ - Test case for read_priority_class + """Test case for read_priority_class - """ pass def test_replace_priority_class(self): - """ - Test case for replace_priority_class + """Test case for replace_priority_class - """ pass diff --git a/kubernetes/test/test_scheduling_v1alpha1_api.py b/kubernetes/test/test_scheduling_v1alpha1_api.py index 5253c52160..32a7bda397 100644 --- a/kubernetes/test/test_scheduling_v1alpha1_api.py +++ b/kubernetes/test/test_scheduling_v1alpha1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.scheduling_v1alpha1_api import SchedulingV1alpha1Api class TestSchedulingV1alpha1Api(unittest.TestCase): - """ SchedulingV1alpha1Api unit test stubs """ + """SchedulingV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.scheduling_v1alpha1_api.SchedulingV1alpha1Api() + self.api = kubernetes.client.api.scheduling_v1alpha1_api.SchedulingV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_priority_class(self): - """ - Test case for create_priority_class + """Test case for create_priority_class - """ pass def test_delete_collection_priority_class(self): - """ - Test case for delete_collection_priority_class + """Test case for delete_collection_priority_class - """ pass def test_delete_priority_class(self): - """ - Test case for delete_priority_class + """Test case for delete_priority_class - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_priority_class(self): - """ - Test case for list_priority_class + """Test case for list_priority_class - """ pass def test_patch_priority_class(self): - """ - Test case for patch_priority_class + """Test case for patch_priority_class - """ pass def test_read_priority_class(self): - """ - Test case for read_priority_class + """Test case for read_priority_class - """ pass def test_replace_priority_class(self): - """ - Test case for replace_priority_class + """Test case for replace_priority_class - """ pass diff --git a/kubernetes/test/test_scheduling_v1beta1_api.py b/kubernetes/test/test_scheduling_v1beta1_api.py index b5fa3882b2..3c0b87859c 100644 --- a/kubernetes/test/test_scheduling_v1beta1_api.py +++ b/kubernetes/test/test_scheduling_v1beta1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.scheduling_v1beta1_api import SchedulingV1beta1Api class TestSchedulingV1beta1Api(unittest.TestCase): - """ SchedulingV1beta1Api unit test stubs """ + """SchedulingV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.scheduling_v1beta1_api.SchedulingV1beta1Api() + self.api = kubernetes.client.api.scheduling_v1beta1_api.SchedulingV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_priority_class(self): - """ - Test case for create_priority_class + """Test case for create_priority_class - """ pass def test_delete_collection_priority_class(self): - """ - Test case for delete_collection_priority_class + """Test case for delete_collection_priority_class - """ pass def test_delete_priority_class(self): - """ - Test case for delete_priority_class + """Test case for delete_priority_class - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_priority_class(self): - """ - Test case for list_priority_class + """Test case for list_priority_class - """ pass def test_patch_priority_class(self): - """ - Test case for patch_priority_class + """Test case for patch_priority_class - """ pass def test_read_priority_class(self): - """ - Test case for read_priority_class + """Test case for read_priority_class - """ pass def test_replace_priority_class(self): - """ - Test case for replace_priority_class + """Test case for replace_priority_class - """ pass diff --git a/kubernetes/test/test_settings_api.py b/kubernetes/test/test_settings_api.py index dc8e10fcd7..8266c63929 100644 --- a/kubernetes/test/test_settings_api.py +++ b/kubernetes/test/test_settings_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.settings_api import SettingsApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.settings_api import SettingsApi class TestSettingsApi(unittest.TestCase): - """ SettingsApi unit test stubs """ + """SettingsApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.settings_api.SettingsApi() + self.api = kubernetes.client.api.settings_api.SettingsApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_settings_v1alpha1_api.py b/kubernetes/test/test_settings_v1alpha1_api.py index cb452e120b..e14a84a3bd 100644 --- a/kubernetes/test/test_settings_v1alpha1_api.py +++ b/kubernetes/test/test_settings_v1alpha1_api.py @@ -3,103 +3,82 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.settings_v1alpha1_api import SettingsV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.settings_v1alpha1_api import SettingsV1alpha1Api class TestSettingsV1alpha1Api(unittest.TestCase): - """ SettingsV1alpha1Api unit test stubs """ + """SettingsV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.settings_v1alpha1_api.SettingsV1alpha1Api() + self.api = kubernetes.client.api.settings_v1alpha1_api.SettingsV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_namespaced_pod_preset(self): - """ - Test case for create_namespaced_pod_preset + """Test case for create_namespaced_pod_preset - """ pass def test_delete_collection_namespaced_pod_preset(self): - """ - Test case for delete_collection_namespaced_pod_preset + """Test case for delete_collection_namespaced_pod_preset - """ pass def test_delete_namespaced_pod_preset(self): - """ - Test case for delete_namespaced_pod_preset + """Test case for delete_namespaced_pod_preset - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_namespaced_pod_preset(self): - """ - Test case for list_namespaced_pod_preset + """Test case for list_namespaced_pod_preset - """ pass def test_list_pod_preset_for_all_namespaces(self): - """ - Test case for list_pod_preset_for_all_namespaces + """Test case for list_pod_preset_for_all_namespaces - """ pass def test_patch_namespaced_pod_preset(self): - """ - Test case for patch_namespaced_pod_preset + """Test case for patch_namespaced_pod_preset - """ pass def test_read_namespaced_pod_preset(self): - """ - Test case for read_namespaced_pod_preset + """Test case for read_namespaced_pod_preset - """ pass def test_replace_namespaced_pod_preset(self): - """ - Test case for replace_namespaced_pod_preset + """Test case for replace_namespaced_pod_preset - """ pass diff --git a/kubernetes/test/test_storage_api.py b/kubernetes/test/test_storage_api.py index 897cb6dfb1..c3af6b7aea 100644 --- a/kubernetes/test/test_storage_api.py +++ b/kubernetes/test/test_storage_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.storage_api import StorageApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.storage_api import StorageApi class TestStorageApi(unittest.TestCase): - """ StorageApi unit test stubs """ + """StorageApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.storage_api.StorageApi() + self.api = kubernetes.client.api.storage_api.StorageApi() # noqa: E501 def tearDown(self): pass def test_get_api_group(self): - """ - Test case for get_api_group + """Test case for get_api_group - """ pass diff --git a/kubernetes/test/test_storage_v1_api.py b/kubernetes/test/test_storage_v1_api.py index 03b3f920e4..95a6f4ddda 100644 --- a/kubernetes/test/test_storage_v1_api.py +++ b/kubernetes/test/test_storage_v1_api.py @@ -3,175 +3,136 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.storage_v1_api import StorageV1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.storage_v1_api import StorageV1Api class TestStorageV1Api(unittest.TestCase): - """ StorageV1Api unit test stubs """ + """StorageV1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.storage_v1_api.StorageV1Api() + self.api = kubernetes.client.api.storage_v1_api.StorageV1Api() # noqa: E501 def tearDown(self): pass def test_create_storage_class(self): - """ - Test case for create_storage_class + """Test case for create_storage_class - """ pass def test_create_volume_attachment(self): - """ - Test case for create_volume_attachment + """Test case for create_volume_attachment - """ pass def test_delete_collection_storage_class(self): - """ - Test case for delete_collection_storage_class + """Test case for delete_collection_storage_class - """ pass def test_delete_collection_volume_attachment(self): - """ - Test case for delete_collection_volume_attachment + """Test case for delete_collection_volume_attachment - """ pass def test_delete_storage_class(self): - """ - Test case for delete_storage_class + """Test case for delete_storage_class - """ pass def test_delete_volume_attachment(self): - """ - Test case for delete_volume_attachment + """Test case for delete_volume_attachment - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_storage_class(self): - """ - Test case for list_storage_class + """Test case for list_storage_class - """ pass def test_list_volume_attachment(self): - """ - Test case for list_volume_attachment + """Test case for list_volume_attachment - """ pass def test_patch_storage_class(self): - """ - Test case for patch_storage_class + """Test case for patch_storage_class - """ pass def test_patch_volume_attachment(self): - """ - Test case for patch_volume_attachment + """Test case for patch_volume_attachment - """ pass def test_patch_volume_attachment_status(self): - """ - Test case for patch_volume_attachment_status + """Test case for patch_volume_attachment_status - """ pass def test_read_storage_class(self): - """ - Test case for read_storage_class + """Test case for read_storage_class - """ pass def test_read_volume_attachment(self): - """ - Test case for read_volume_attachment + """Test case for read_volume_attachment - """ pass def test_read_volume_attachment_status(self): - """ - Test case for read_volume_attachment_status + """Test case for read_volume_attachment_status - """ pass def test_replace_storage_class(self): - """ - Test case for replace_storage_class + """Test case for replace_storage_class - """ pass def test_replace_volume_attachment(self): - """ - Test case for replace_volume_attachment + """Test case for replace_volume_attachment - """ pass def test_replace_volume_attachment_status(self): - """ - Test case for replace_volume_attachment_status + """Test case for replace_volume_attachment_status - """ pass diff --git a/kubernetes/test/test_storage_v1alpha1_api.py b/kubernetes/test/test_storage_v1alpha1_api.py index 622f458786..20a8706a47 100644 --- a/kubernetes/test/test_storage_v1alpha1_api.py +++ b/kubernetes/test/test_storage_v1alpha1_api.py @@ -3,95 +3,76 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.storage_v1alpha1_api import StorageV1alpha1Api class TestStorageV1alpha1Api(unittest.TestCase): - """ StorageV1alpha1Api unit test stubs """ + """StorageV1alpha1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.storage_v1alpha1_api.StorageV1alpha1Api() + self.api = kubernetes.client.api.storage_v1alpha1_api.StorageV1alpha1Api() # noqa: E501 def tearDown(self): pass def test_create_volume_attachment(self): - """ - Test case for create_volume_attachment + """Test case for create_volume_attachment - """ pass def test_delete_collection_volume_attachment(self): - """ - Test case for delete_collection_volume_attachment + """Test case for delete_collection_volume_attachment - """ pass def test_delete_volume_attachment(self): - """ - Test case for delete_volume_attachment + """Test case for delete_volume_attachment - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_volume_attachment(self): - """ - Test case for list_volume_attachment + """Test case for list_volume_attachment - """ pass def test_patch_volume_attachment(self): - """ - Test case for patch_volume_attachment + """Test case for patch_volume_attachment - """ pass def test_read_volume_attachment(self): - """ - Test case for read_volume_attachment + """Test case for read_volume_attachment - """ pass def test_replace_volume_attachment(self): - """ - Test case for replace_volume_attachment + """Test case for replace_volume_attachment - """ pass diff --git a/kubernetes/test/test_storage_v1beta1_api.py b/kubernetes/test/test_storage_v1beta1_api.py index caec5a56ba..46a0eaf76c 100644 --- a/kubernetes/test/test_storage_v1beta1_api.py +++ b/kubernetes/test/test_storage_v1beta1_api.py @@ -3,263 +3,202 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.storage_v1beta1_api import StorageV1beta1Api class TestStorageV1beta1Api(unittest.TestCase): - """ StorageV1beta1Api unit test stubs """ + """StorageV1beta1Api unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.storage_v1beta1_api.StorageV1beta1Api() + self.api = kubernetes.client.api.storage_v1beta1_api.StorageV1beta1Api() # noqa: E501 def tearDown(self): pass def test_create_csi_driver(self): - """ - Test case for create_csi_driver + """Test case for create_csi_driver - """ pass def test_create_csi_node(self): - """ - Test case for create_csi_node + """Test case for create_csi_node - """ pass def test_create_storage_class(self): - """ - Test case for create_storage_class + """Test case for create_storage_class - """ pass def test_create_volume_attachment(self): - """ - Test case for create_volume_attachment + """Test case for create_volume_attachment - """ pass def test_delete_collection_csi_driver(self): - """ - Test case for delete_collection_csi_driver + """Test case for delete_collection_csi_driver - """ pass def test_delete_collection_csi_node(self): - """ - Test case for delete_collection_csi_node + """Test case for delete_collection_csi_node - """ pass def test_delete_collection_storage_class(self): - """ - Test case for delete_collection_storage_class + """Test case for delete_collection_storage_class - """ pass def test_delete_collection_volume_attachment(self): - """ - Test case for delete_collection_volume_attachment + """Test case for delete_collection_volume_attachment - """ pass def test_delete_csi_driver(self): - """ - Test case for delete_csi_driver + """Test case for delete_csi_driver - """ pass def test_delete_csi_node(self): - """ - Test case for delete_csi_node + """Test case for delete_csi_node - """ pass def test_delete_storage_class(self): - """ - Test case for delete_storage_class + """Test case for delete_storage_class - """ pass def test_delete_volume_attachment(self): - """ - Test case for delete_volume_attachment + """Test case for delete_volume_attachment - """ pass def test_get_api_resources(self): - """ - Test case for get_api_resources + """Test case for get_api_resources - """ pass def test_list_csi_driver(self): - """ - Test case for list_csi_driver + """Test case for list_csi_driver - """ pass def test_list_csi_node(self): - """ - Test case for list_csi_node + """Test case for list_csi_node - """ pass def test_list_storage_class(self): - """ - Test case for list_storage_class + """Test case for list_storage_class - """ pass def test_list_volume_attachment(self): - """ - Test case for list_volume_attachment + """Test case for list_volume_attachment - """ pass def test_patch_csi_driver(self): - """ - Test case for patch_csi_driver + """Test case for patch_csi_driver - """ pass def test_patch_csi_node(self): - """ - Test case for patch_csi_node + """Test case for patch_csi_node - """ pass def test_patch_storage_class(self): - """ - Test case for patch_storage_class + """Test case for patch_storage_class - """ pass def test_patch_volume_attachment(self): - """ - Test case for patch_volume_attachment + """Test case for patch_volume_attachment - """ pass def test_read_csi_driver(self): - """ - Test case for read_csi_driver + """Test case for read_csi_driver - """ pass def test_read_csi_node(self): - """ - Test case for read_csi_node + """Test case for read_csi_node - """ pass def test_read_storage_class(self): - """ - Test case for read_storage_class + """Test case for read_storage_class - """ pass def test_read_volume_attachment(self): - """ - Test case for read_volume_attachment + """Test case for read_volume_attachment - """ pass def test_replace_csi_driver(self): - """ - Test case for replace_csi_driver + """Test case for replace_csi_driver - """ pass def test_replace_csi_node(self): - """ - Test case for replace_csi_node + """Test case for replace_csi_node - """ pass def test_replace_storage_class(self): - """ - Test case for replace_storage_class + """Test case for replace_storage_class - """ pass def test_replace_volume_attachment(self): - """ - Test case for replace_volume_attachment + """Test case for replace_volume_attachment - """ pass diff --git a/kubernetes/test/test_v1_affinity.py b/kubernetes/test/test_v1_affinity.py index 45d2b03245..fd28abd140 100644 --- a/kubernetes/test/test_v1_affinity.py +++ b/kubernetes/test/test_v1_affinity.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_affinity import V1Affinity # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_affinity import V1Affinity class TestV1Affinity(unittest.TestCase): - """ V1Affinity unit test stubs """ + """V1Affinity unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Affinity(self): - """ - Test V1Affinity - """ + """Test V1Affinity""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_affinity.V1Affinity() + # model = kubernetes.client.models.v1_affinity.V1Affinity() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_aggregation_rule.py b/kubernetes/test/test_v1_aggregation_rule.py index 8c0973e225..17ea2b4f08 100644 --- a/kubernetes/test/test_v1_aggregation_rule.py +++ b/kubernetes/test/test_v1_aggregation_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule class TestV1AggregationRule(unittest.TestCase): - """ V1AggregationRule unit test stubs """ + """V1AggregationRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AggregationRule(self): - """ - Test V1AggregationRule - """ + """Test V1AggregationRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_aggregation_rule.V1AggregationRule() + # model = kubernetes.client.models.v1_aggregation_rule.V1AggregationRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_group.py b/kubernetes/test/test_v1_api_group.py index c641e13e13..e0bb56a605 100644 --- a/kubernetes/test/test_v1_api_group.py +++ b/kubernetes/test/test_v1_api_group.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_group import V1APIGroup # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_group import V1APIGroup class TestV1APIGroup(unittest.TestCase): - """ V1APIGroup unit test stubs """ + """V1APIGroup unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIGroup(self): - """ - Test V1APIGroup - """ + """Test V1APIGroup""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_group.V1APIGroup() + # model = kubernetes.client.models.v1_api_group.V1APIGroup() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_group_list.py b/kubernetes/test/test_v1_api_group_list.py index 87c623cb3e..5859f292ae 100644 --- a/kubernetes/test/test_v1_api_group_list.py +++ b/kubernetes/test/test_v1_api_group_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_group_list import V1APIGroupList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_group_list import V1APIGroupList class TestV1APIGroupList(unittest.TestCase): - """ V1APIGroupList unit test stubs """ + """V1APIGroupList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIGroupList(self): - """ - Test V1APIGroupList - """ + """Test V1APIGroupList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_group_list.V1APIGroupList() + # model = kubernetes.client.models.v1_api_group_list.V1APIGroupList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_resource.py b/kubernetes/test/test_v1_api_resource.py index e96531c616..c344e33296 100644 --- a/kubernetes/test/test_v1_api_resource.py +++ b/kubernetes/test/test_v1_api_resource.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_resource import V1APIResource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_resource import V1APIResource class TestV1APIResource(unittest.TestCase): - """ V1APIResource unit test stubs """ + """V1APIResource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIResource(self): - """ - Test V1APIResource - """ + """Test V1APIResource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_resource.V1APIResource() + # model = kubernetes.client.models.v1_api_resource.V1APIResource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_resource_list.py b/kubernetes/test/test_v1_api_resource_list.py index 89d415dd7f..a4d1376310 100644 --- a/kubernetes/test/test_v1_api_resource_list.py +++ b/kubernetes/test/test_v1_api_resource_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_resource_list import V1APIResourceList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList class TestV1APIResourceList(unittest.TestCase): - """ V1APIResourceList unit test stubs """ + """V1APIResourceList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIResourceList(self): - """ - Test V1APIResourceList - """ + """Test V1APIResourceList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_resource_list.V1APIResourceList() + # model = kubernetes.client.models.v1_api_resource_list.V1APIResourceList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_service.py b/kubernetes/test/test_v1_api_service.py index be04e1fb17..6b3a1beba2 100644 --- a/kubernetes/test/test_v1_api_service.py +++ b/kubernetes/test/test_v1_api_service.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_service import V1APIService # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_service import V1APIService class TestV1APIService(unittest.TestCase): - """ V1APIService unit test stubs """ + """V1APIService unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIService(self): - """ - Test V1APIService - """ + """Test V1APIService""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_service.V1APIService() + # model = kubernetes.client.models.v1_api_service.V1APIService() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_service_condition.py b/kubernetes/test/test_v1_api_service_condition.py index f60c7d1295..2ddc07d60f 100644 --- a/kubernetes/test/test_v1_api_service_condition.py +++ b/kubernetes/test/test_v1_api_service_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition class TestV1APIServiceCondition(unittest.TestCase): - """ V1APIServiceCondition unit test stubs """ + """V1APIServiceCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIServiceCondition(self): - """ - Test V1APIServiceCondition - """ + """Test V1APIServiceCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_service_condition.V1APIServiceCondition() + # model = kubernetes.client.models.v1_api_service_condition.V1APIServiceCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_service_list.py b/kubernetes/test/test_v1_api_service_list.py index e114178a3e..083849697a 100644 --- a/kubernetes/test/test_v1_api_service_list.py +++ b/kubernetes/test/test_v1_api_service_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_service_list import V1APIServiceList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_service_list import V1APIServiceList class TestV1APIServiceList(unittest.TestCase): - """ V1APIServiceList unit test stubs """ + """V1APIServiceList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIServiceList(self): - """ - Test V1APIServiceList - """ + """Test V1APIServiceList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_service_list.V1APIServiceList() + # model = kubernetes.client.models.v1_api_service_list.V1APIServiceList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_service_spec.py b/kubernetes/test/test_v1_api_service_spec.py index 9a9a51b1f2..95e2222a71 100644 --- a/kubernetes/test/test_v1_api_service_spec.py +++ b/kubernetes/test/test_v1_api_service_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec class TestV1APIServiceSpec(unittest.TestCase): - """ V1APIServiceSpec unit test stubs """ + """V1APIServiceSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIServiceSpec(self): - """ - Test V1APIServiceSpec - """ + """Test V1APIServiceSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_service_spec.V1APIServiceSpec() + # model = kubernetes.client.models.v1_api_service_spec.V1APIServiceSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_service_status.py b/kubernetes/test/test_v1_api_service_status.py index a59da0b120..1b4d097b65 100644 --- a/kubernetes/test/test_v1_api_service_status.py +++ b/kubernetes/test/test_v1_api_service_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus class TestV1APIServiceStatus(unittest.TestCase): - """ V1APIServiceStatus unit test stubs """ + """V1APIServiceStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIServiceStatus(self): - """ - Test V1APIServiceStatus - """ + """Test V1APIServiceStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_service_status.V1APIServiceStatus() + # model = kubernetes.client.models.v1_api_service_status.V1APIServiceStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_api_versions.py b/kubernetes/test/test_v1_api_versions.py index 162b89e06d..ea1482f812 100644 --- a/kubernetes/test/test_v1_api_versions.py +++ b/kubernetes/test/test_v1_api_versions.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_api_versions import V1APIVersions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_api_versions import V1APIVersions class TestV1APIVersions(unittest.TestCase): - """ V1APIVersions unit test stubs """ + """V1APIVersions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1APIVersions(self): - """ - Test V1APIVersions - """ + """Test V1APIVersions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_api_versions.V1APIVersions() + # model = kubernetes.client.models.v1_api_versions.V1APIVersions() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_attached_volume.py b/kubernetes/test/test_v1_attached_volume.py index 514f61b7bc..8d450747a8 100644 --- a/kubernetes/test/test_v1_attached_volume.py +++ b/kubernetes/test/test_v1_attached_volume.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_attached_volume import V1AttachedVolume # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_attached_volume import V1AttachedVolume class TestV1AttachedVolume(unittest.TestCase): - """ V1AttachedVolume unit test stubs """ + """V1AttachedVolume unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AttachedVolume(self): - """ - Test V1AttachedVolume - """ + """Test V1AttachedVolume""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_attached_volume.V1AttachedVolume() + # model = kubernetes.client.models.v1_attached_volume.V1AttachedVolume() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py index 605ba84005..c7d7e62f3b 100644 --- a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource class TestV1AWSElasticBlockStoreVolumeSource(unittest.TestCase): - """ V1AWSElasticBlockStoreVolumeSource unit test stubs """ + """V1AWSElasticBlockStoreVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AWSElasticBlockStoreVolumeSource(self): - """ - Test V1AWSElasticBlockStoreVolumeSource - """ + """Test V1AWSElasticBlockStoreVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_aws_elastic_block_store_volume_source.V1AWSElasticBlockStoreVolumeSource() + # model = kubernetes.client.models.v1_aws_elastic_block_store_volume_source.V1AWSElasticBlockStoreVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_azure_disk_volume_source.py b/kubernetes/test/test_v1_azure_disk_volume_source.py index 11288b7582..6fd5a2219b 100644 --- a/kubernetes/test/test_v1_azure_disk_volume_source.py +++ b/kubernetes/test/test_v1_azure_disk_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource class TestV1AzureDiskVolumeSource(unittest.TestCase): - """ V1AzureDiskVolumeSource unit test stubs """ + """V1AzureDiskVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AzureDiskVolumeSource(self): - """ - Test V1AzureDiskVolumeSource - """ + """Test V1AzureDiskVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_azure_disk_volume_source.V1AzureDiskVolumeSource() + # model = kubernetes.client.models.v1_azure_disk_volume_source.V1AzureDiskVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_azure_file_persistent_volume_source.py b/kubernetes/test/test_v1_azure_file_persistent_volume_source.py index 96514f4529..5537beafa0 100644 --- a/kubernetes/test/test_v1_azure_file_persistent_volume_source.py +++ b/kubernetes/test/test_v1_azure_file_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource class TestV1AzureFilePersistentVolumeSource(unittest.TestCase): - """ V1AzureFilePersistentVolumeSource unit test stubs """ + """V1AzureFilePersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AzureFilePersistentVolumeSource(self): - """ - Test V1AzureFilePersistentVolumeSource - """ + """Test V1AzureFilePersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_azure_file_persistent_volume_source.V1AzureFilePersistentVolumeSource() + # model = kubernetes.client.models.v1_azure_file_persistent_volume_source.V1AzureFilePersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_azure_file_volume_source.py b/kubernetes/test/test_v1_azure_file_volume_source.py index c215c65392..b245643c19 100644 --- a/kubernetes/test/test_v1_azure_file_volume_source.py +++ b/kubernetes/test/test_v1_azure_file_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource class TestV1AzureFileVolumeSource(unittest.TestCase): - """ V1AzureFileVolumeSource unit test stubs """ + """V1AzureFileVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1AzureFileVolumeSource(self): - """ - Test V1AzureFileVolumeSource - """ + """Test V1AzureFileVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_azure_file_volume_source.V1AzureFileVolumeSource() + # model = kubernetes.client.models.v1_azure_file_volume_source.V1AzureFileVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_binding.py b/kubernetes/test/test_v1_binding.py index 94324d7cf0..510a24dc7e 100644 --- a/kubernetes/test/test_v1_binding.py +++ b/kubernetes/test/test_v1_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_binding import V1Binding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_binding import V1Binding class TestV1Binding(unittest.TestCase): - """ V1Binding unit test stubs """ + """V1Binding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Binding(self): - """ - Test V1Binding - """ + """Test V1Binding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_binding.V1Binding() + # model = kubernetes.client.models.v1_binding.V1Binding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_capabilities.py b/kubernetes/test/test_v1_capabilities.py index c0c050cee2..b6f6884b90 100644 --- a/kubernetes/test/test_v1_capabilities.py +++ b/kubernetes/test/test_v1_capabilities.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_capabilities import V1Capabilities # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_capabilities import V1Capabilities class TestV1Capabilities(unittest.TestCase): - """ V1Capabilities unit test stubs """ + """V1Capabilities unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Capabilities(self): - """ - Test V1Capabilities - """ + """Test V1Capabilities""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_capabilities.V1Capabilities() + # model = kubernetes.client.models.v1_capabilities.V1Capabilities() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py b/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py index fe2ff52358..2d3a37f91d 100644 --- a/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py +++ b/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource class TestV1CephFSPersistentVolumeSource(unittest.TestCase): - """ V1CephFSPersistentVolumeSource unit test stubs """ + """V1CephFSPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CephFSPersistentVolumeSource(self): - """ - Test V1CephFSPersistentVolumeSource - """ + """Test V1CephFSPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_ceph_fs_persistent_volume_source.V1CephFSPersistentVolumeSource() + # model = kubernetes.client.models.v1_ceph_fs_persistent_volume_source.V1CephFSPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_ceph_fs_volume_source.py b/kubernetes/test/test_v1_ceph_fs_volume_source.py index 4c84919fcb..b3322975b1 100644 --- a/kubernetes/test/test_v1_ceph_fs_volume_source.py +++ b/kubernetes/test/test_v1_ceph_fs_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource class TestV1CephFSVolumeSource(unittest.TestCase): - """ V1CephFSVolumeSource unit test stubs """ + """V1CephFSVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CephFSVolumeSource(self): - """ - Test V1CephFSVolumeSource - """ + """Test V1CephFSVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_ceph_fs_volume_source.V1CephFSVolumeSource() + # model = kubernetes.client.models.v1_ceph_fs_volume_source.V1CephFSVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cinder_persistent_volume_source.py b/kubernetes/test/test_v1_cinder_persistent_volume_source.py index e2cf97bbe0..451eb2b066 100644 --- a/kubernetes/test/test_v1_cinder_persistent_volume_source.py +++ b/kubernetes/test/test_v1_cinder_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource class TestV1CinderPersistentVolumeSource(unittest.TestCase): - """ V1CinderPersistentVolumeSource unit test stubs """ + """V1CinderPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CinderPersistentVolumeSource(self): - """ - Test V1CinderPersistentVolumeSource - """ + """Test V1CinderPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cinder_persistent_volume_source.V1CinderPersistentVolumeSource() + # model = kubernetes.client.models.v1_cinder_persistent_volume_source.V1CinderPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cinder_volume_source.py b/kubernetes/test/test_v1_cinder_volume_source.py index 8753050184..72db7a7554 100644 --- a/kubernetes/test/test_v1_cinder_volume_source.py +++ b/kubernetes/test/test_v1_cinder_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource class TestV1CinderVolumeSource(unittest.TestCase): - """ V1CinderVolumeSource unit test stubs """ + """V1CinderVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CinderVolumeSource(self): - """ - Test V1CinderVolumeSource - """ + """Test V1CinderVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cinder_volume_source.V1CinderVolumeSource() + # model = kubernetes.client.models.v1_cinder_volume_source.V1CinderVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_client_ip_config.py b/kubernetes/test/test_v1_client_ip_config.py index 8e5e86efdf..4cd1af1b3f 100644 --- a/kubernetes/test/test_v1_client_ip_config.py +++ b/kubernetes/test/test_v1_client_ip_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig class TestV1ClientIPConfig(unittest.TestCase): - """ V1ClientIPConfig unit test stubs """ + """V1ClientIPConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ClientIPConfig(self): - """ - Test V1ClientIPConfig - """ + """Test V1ClientIPConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_client_ip_config.V1ClientIPConfig() + # model = kubernetes.client.models.v1_client_ip_config.V1ClientIPConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cluster_role.py b/kubernetes/test/test_v1_cluster_role.py index 4cf5b1eb48..cdde5ad7b2 100644 --- a/kubernetes/test/test_v1_cluster_role.py +++ b/kubernetes/test/test_v1_cluster_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cluster_role import V1ClusterRole # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cluster_role import V1ClusterRole class TestV1ClusterRole(unittest.TestCase): - """ V1ClusterRole unit test stubs """ + """V1ClusterRole unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ClusterRole(self): - """ - Test V1ClusterRole - """ + """Test V1ClusterRole""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cluster_role.V1ClusterRole() + # model = kubernetes.client.models.v1_cluster_role.V1ClusterRole() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cluster_role_binding.py b/kubernetes/test/test_v1_cluster_role_binding.py index a6cc48fe1e..6b7cec4a7b 100644 --- a/kubernetes/test/test_v1_cluster_role_binding.py +++ b/kubernetes/test/test_v1_cluster_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding class TestV1ClusterRoleBinding(unittest.TestCase): - """ V1ClusterRoleBinding unit test stubs """ + """V1ClusterRoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ClusterRoleBinding(self): - """ - Test V1ClusterRoleBinding - """ + """Test V1ClusterRoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cluster_role_binding.V1ClusterRoleBinding() + # model = kubernetes.client.models.v1_cluster_role_binding.V1ClusterRoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cluster_role_binding_list.py b/kubernetes/test/test_v1_cluster_role_binding_list.py index fe2c3f82f6..100565e62e 100644 --- a/kubernetes/test/test_v1_cluster_role_binding_list.py +++ b/kubernetes/test/test_v1_cluster_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList class TestV1ClusterRoleBindingList(unittest.TestCase): - """ V1ClusterRoleBindingList unit test stubs """ + """V1ClusterRoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ClusterRoleBindingList(self): - """ - Test V1ClusterRoleBindingList - """ + """Test V1ClusterRoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cluster_role_binding_list.V1ClusterRoleBindingList() + # model = kubernetes.client.models.v1_cluster_role_binding_list.V1ClusterRoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cluster_role_list.py b/kubernetes/test/test_v1_cluster_role_list.py index 7bf052d57e..33a9925f7b 100644 --- a/kubernetes/test/test_v1_cluster_role_list.py +++ b/kubernetes/test/test_v1_cluster_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList class TestV1ClusterRoleList(unittest.TestCase): - """ V1ClusterRoleList unit test stubs """ + """V1ClusterRoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ClusterRoleList(self): - """ - Test V1ClusterRoleList - """ + """Test V1ClusterRoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cluster_role_list.V1ClusterRoleList() + # model = kubernetes.client.models.v1_cluster_role_list.V1ClusterRoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_component_condition.py b/kubernetes/test/test_v1_component_condition.py index fb2f4383e6..c7f7f034c7 100644 --- a/kubernetes/test/test_v1_component_condition.py +++ b/kubernetes/test/test_v1_component_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_component_condition import V1ComponentCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_component_condition import V1ComponentCondition class TestV1ComponentCondition(unittest.TestCase): - """ V1ComponentCondition unit test stubs """ + """V1ComponentCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ComponentCondition(self): - """ - Test V1ComponentCondition - """ + """Test V1ComponentCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_component_condition.V1ComponentCondition() + # model = kubernetes.client.models.v1_component_condition.V1ComponentCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_component_status.py b/kubernetes/test/test_v1_component_status.py index 7a116818e6..e1bdef8e42 100644 --- a/kubernetes/test/test_v1_component_status.py +++ b/kubernetes/test/test_v1_component_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_component_status import V1ComponentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_component_status import V1ComponentStatus class TestV1ComponentStatus(unittest.TestCase): - """ V1ComponentStatus unit test stubs """ + """V1ComponentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ComponentStatus(self): - """ - Test V1ComponentStatus - """ + """Test V1ComponentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_component_status.V1ComponentStatus() + # model = kubernetes.client.models.v1_component_status.V1ComponentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_component_status_list.py b/kubernetes/test/test_v1_component_status_list.py index 861f3788ad..a65469d903 100644 --- a/kubernetes/test/test_v1_component_status_list.py +++ b/kubernetes/test/test_v1_component_status_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList class TestV1ComponentStatusList(unittest.TestCase): - """ V1ComponentStatusList unit test stubs """ + """V1ComponentStatusList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ComponentStatusList(self): - """ - Test V1ComponentStatusList - """ + """Test V1ComponentStatusList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_component_status_list.V1ComponentStatusList() + # model = kubernetes.client.models.v1_component_status_list.V1ComponentStatusList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map.py b/kubernetes/test/test_v1_config_map.py index 8153e99ffa..78fd246381 100644 --- a/kubernetes/test/test_v1_config_map.py +++ b/kubernetes/test/test_v1_config_map.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map import V1ConfigMap # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map import V1ConfigMap class TestV1ConfigMap(unittest.TestCase): - """ V1ConfigMap unit test stubs """ + """V1ConfigMap unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMap(self): - """ - Test V1ConfigMap - """ + """Test V1ConfigMap""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map.V1ConfigMap() + # model = kubernetes.client.models.v1_config_map.V1ConfigMap() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_env_source.py b/kubernetes/test/test_v1_config_map_env_source.py index 9b21702a73..47f6adac13 100644 --- a/kubernetes/test/test_v1_config_map_env_source.py +++ b/kubernetes/test/test_v1_config_map_env_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource class TestV1ConfigMapEnvSource(unittest.TestCase): - """ V1ConfigMapEnvSource unit test stubs """ + """V1ConfigMapEnvSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapEnvSource(self): - """ - Test V1ConfigMapEnvSource - """ + """Test V1ConfigMapEnvSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_env_source.V1ConfigMapEnvSource() + # model = kubernetes.client.models.v1_config_map_env_source.V1ConfigMapEnvSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_key_selector.py b/kubernetes/test/test_v1_config_map_key_selector.py index 83e8e32c55..9132ce14a7 100644 --- a/kubernetes/test/test_v1_config_map_key_selector.py +++ b/kubernetes/test/test_v1_config_map_key_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector class TestV1ConfigMapKeySelector(unittest.TestCase): - """ V1ConfigMapKeySelector unit test stubs """ + """V1ConfigMapKeySelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapKeySelector(self): - """ - Test V1ConfigMapKeySelector - """ + """Test V1ConfigMapKeySelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_key_selector.V1ConfigMapKeySelector() + # model = kubernetes.client.models.v1_config_map_key_selector.V1ConfigMapKeySelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_list.py b/kubernetes/test/test_v1_config_map_list.py index b871febbc0..7cc1df3085 100644 --- a/kubernetes/test/test_v1_config_map_list.py +++ b/kubernetes/test/test_v1_config_map_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_list import V1ConfigMapList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_list import V1ConfigMapList class TestV1ConfigMapList(unittest.TestCase): - """ V1ConfigMapList unit test stubs """ + """V1ConfigMapList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapList(self): - """ - Test V1ConfigMapList - """ + """Test V1ConfigMapList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_list.V1ConfigMapList() + # model = kubernetes.client.models.v1_config_map_list.V1ConfigMapList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_node_config_source.py b/kubernetes/test/test_v1_config_map_node_config_source.py index 06441cae2e..4d3df0e4c5 100644 --- a/kubernetes/test/test_v1_config_map_node_config_source.py +++ b/kubernetes/test/test_v1_config_map_node_config_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource class TestV1ConfigMapNodeConfigSource(unittest.TestCase): - """ V1ConfigMapNodeConfigSource unit test stubs """ + """V1ConfigMapNodeConfigSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapNodeConfigSource(self): - """ - Test V1ConfigMapNodeConfigSource - """ + """Test V1ConfigMapNodeConfigSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_node_config_source.V1ConfigMapNodeConfigSource() + # model = kubernetes.client.models.v1_config_map_node_config_source.V1ConfigMapNodeConfigSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_projection.py b/kubernetes/test/test_v1_config_map_projection.py index 218ecd76cb..16af68688e 100644 --- a/kubernetes/test/test_v1_config_map_projection.py +++ b/kubernetes/test/test_v1_config_map_projection.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection class TestV1ConfigMapProjection(unittest.TestCase): - """ V1ConfigMapProjection unit test stubs """ + """V1ConfigMapProjection unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapProjection(self): - """ - Test V1ConfigMapProjection - """ + """Test V1ConfigMapProjection""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_projection.V1ConfigMapProjection() + # model = kubernetes.client.models.v1_config_map_projection.V1ConfigMapProjection() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_config_map_volume_source.py b/kubernetes/test/test_v1_config_map_volume_source.py index 108d0b36a9..4b13b502d0 100644 --- a/kubernetes/test/test_v1_config_map_volume_source.py +++ b/kubernetes/test/test_v1_config_map_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource class TestV1ConfigMapVolumeSource(unittest.TestCase): - """ V1ConfigMapVolumeSource unit test stubs """ + """V1ConfigMapVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ConfigMapVolumeSource(self): - """ - Test V1ConfigMapVolumeSource - """ + """Test V1ConfigMapVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_config_map_volume_source.V1ConfigMapVolumeSource() + # model = kubernetes.client.models.v1_config_map_volume_source.V1ConfigMapVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container.py b/kubernetes/test/test_v1_container.py index c2fad73b3c..959c659a29 100644 --- a/kubernetes/test/test_v1_container.py +++ b/kubernetes/test/test_v1_container.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container import V1Container # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container import V1Container class TestV1Container(unittest.TestCase): - """ V1Container unit test stubs """ + """V1Container unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Container(self): - """ - Test V1Container - """ + """Test V1Container""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container.V1Container() + # model = kubernetes.client.models.v1_container.V1Container() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_image.py b/kubernetes/test/test_v1_container_image.py index 3ede2965d4..35afcfd081 100644 --- a/kubernetes/test/test_v1_container_image.py +++ b/kubernetes/test/test_v1_container_image.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_image import V1ContainerImage # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_image import V1ContainerImage class TestV1ContainerImage(unittest.TestCase): - """ V1ContainerImage unit test stubs """ + """V1ContainerImage unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerImage(self): - """ - Test V1ContainerImage - """ + """Test V1ContainerImage""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_image.V1ContainerImage() + # model = kubernetes.client.models.v1_container_image.V1ContainerImage() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_port.py b/kubernetes/test/test_v1_container_port.py index e0a182a8a9..cda0c3727d 100644 --- a/kubernetes/test/test_v1_container_port.py +++ b/kubernetes/test/test_v1_container_port.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_port import V1ContainerPort # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_port import V1ContainerPort class TestV1ContainerPort(unittest.TestCase): - """ V1ContainerPort unit test stubs """ + """V1ContainerPort unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerPort(self): - """ - Test V1ContainerPort - """ + """Test V1ContainerPort""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_port.V1ContainerPort() + # model = kubernetes.client.models.v1_container_port.V1ContainerPort() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_state.py b/kubernetes/test/test_v1_container_state.py index 33990544dd..d0861eb7c8 100644 --- a/kubernetes/test/test_v1_container_state.py +++ b/kubernetes/test/test_v1_container_state.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_state import V1ContainerState # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_state import V1ContainerState class TestV1ContainerState(unittest.TestCase): - """ V1ContainerState unit test stubs """ + """V1ContainerState unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerState(self): - """ - Test V1ContainerState - """ + """Test V1ContainerState""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_state.V1ContainerState() + # model = kubernetes.client.models.v1_container_state.V1ContainerState() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_state_running.py b/kubernetes/test/test_v1_container_state_running.py index 6c66603ee5..e0b191352d 100644 --- a/kubernetes/test/test_v1_container_state_running.py +++ b/kubernetes/test/test_v1_container_state_running.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning class TestV1ContainerStateRunning(unittest.TestCase): - """ V1ContainerStateRunning unit test stubs """ + """V1ContainerStateRunning unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerStateRunning(self): - """ - Test V1ContainerStateRunning - """ + """Test V1ContainerStateRunning""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_state_running.V1ContainerStateRunning() + # model = kubernetes.client.models.v1_container_state_running.V1ContainerStateRunning() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_state_terminated.py b/kubernetes/test/test_v1_container_state_terminated.py index daf044c2f5..4ead8396d8 100644 --- a/kubernetes/test/test_v1_container_state_terminated.py +++ b/kubernetes/test/test_v1_container_state_terminated.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated class TestV1ContainerStateTerminated(unittest.TestCase): - """ V1ContainerStateTerminated unit test stubs """ + """V1ContainerStateTerminated unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerStateTerminated(self): - """ - Test V1ContainerStateTerminated - """ + """Test V1ContainerStateTerminated""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_state_terminated.V1ContainerStateTerminated() + # model = kubernetes.client.models.v1_container_state_terminated.V1ContainerStateTerminated() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_state_waiting.py b/kubernetes/test/test_v1_container_state_waiting.py index 0960a66be2..c3e206c595 100644 --- a/kubernetes/test/test_v1_container_state_waiting.py +++ b/kubernetes/test/test_v1_container_state_waiting.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting class TestV1ContainerStateWaiting(unittest.TestCase): - """ V1ContainerStateWaiting unit test stubs """ + """V1ContainerStateWaiting unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerStateWaiting(self): - """ - Test V1ContainerStateWaiting - """ + """Test V1ContainerStateWaiting""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_state_waiting.V1ContainerStateWaiting() + # model = kubernetes.client.models.v1_container_state_waiting.V1ContainerStateWaiting() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_container_status.py b/kubernetes/test/test_v1_container_status.py index 5ab668a186..c3e9f644af 100644 --- a/kubernetes/test/test_v1_container_status.py +++ b/kubernetes/test/test_v1_container_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_container_status import V1ContainerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_container_status import V1ContainerStatus class TestV1ContainerStatus(unittest.TestCase): - """ V1ContainerStatus unit test stubs """ + """V1ContainerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ContainerStatus(self): - """ - Test V1ContainerStatus - """ + """Test V1ContainerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_container_status.V1ContainerStatus() + # model = kubernetes.client.models.v1_container_status.V1ContainerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_controller_revision.py b/kubernetes/test/test_v1_controller_revision.py index 55df98494a..4dd58ec5bc 100644 --- a/kubernetes/test/test_v1_controller_revision.py +++ b/kubernetes/test/test_v1_controller_revision.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_controller_revision import V1ControllerRevision # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_controller_revision import V1ControllerRevision class TestV1ControllerRevision(unittest.TestCase): - """ V1ControllerRevision unit test stubs """ + """V1ControllerRevision unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ControllerRevision(self): - """ - Test V1ControllerRevision - """ + """Test V1ControllerRevision""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_controller_revision.V1ControllerRevision() + # model = kubernetes.client.models.v1_controller_revision.V1ControllerRevision() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_controller_revision_list.py b/kubernetes/test/test_v1_controller_revision_list.py index eea0abdf1e..8bd70bccd5 100644 --- a/kubernetes/test/test_v1_controller_revision_list.py +++ b/kubernetes/test/test_v1_controller_revision_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList class TestV1ControllerRevisionList(unittest.TestCase): - """ V1ControllerRevisionList unit test stubs """ + """V1ControllerRevisionList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ControllerRevisionList(self): - """ - Test V1ControllerRevisionList - """ + """Test V1ControllerRevisionList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_controller_revision_list.V1ControllerRevisionList() + # model = kubernetes.client.models.v1_controller_revision_list.V1ControllerRevisionList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_cross_version_object_reference.py b/kubernetes/test/test_v1_cross_version_object_reference.py index f90ad97b3d..5598e9a1d7 100644 --- a/kubernetes/test/test_v1_cross_version_object_reference.py +++ b/kubernetes/test/test_v1_cross_version_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference class TestV1CrossVersionObjectReference(unittest.TestCase): - """ V1CrossVersionObjectReference unit test stubs """ + """V1CrossVersionObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CrossVersionObjectReference(self): - """ - Test V1CrossVersionObjectReference - """ + """Test V1CrossVersionObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_cross_version_object_reference.V1CrossVersionObjectReference() + # model = kubernetes.client.models.v1_cross_version_object_reference.V1CrossVersionObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_csi_persistent_volume_source.py b/kubernetes/test/test_v1_csi_persistent_volume_source.py index c22d12d36c..31925d31af 100644 --- a/kubernetes/test/test_v1_csi_persistent_volume_source.py +++ b/kubernetes/test/test_v1_csi_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource class TestV1CSIPersistentVolumeSource(unittest.TestCase): - """ V1CSIPersistentVolumeSource unit test stubs """ + """V1CSIPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CSIPersistentVolumeSource(self): - """ - Test V1CSIPersistentVolumeSource - """ + """Test V1CSIPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_csi_persistent_volume_source.V1CSIPersistentVolumeSource() + # model = kubernetes.client.models.v1_csi_persistent_volume_source.V1CSIPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_csi_volume_source.py b/kubernetes/test/test_v1_csi_volume_source.py index 391a88f5c9..d149ba8459 100644 --- a/kubernetes/test/test_v1_csi_volume_source.py +++ b/kubernetes/test/test_v1_csi_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource class TestV1CSIVolumeSource(unittest.TestCase): - """ V1CSIVolumeSource unit test stubs """ + """V1CSIVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1CSIVolumeSource(self): - """ - Test V1CSIVolumeSource - """ + """Test V1CSIVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_csi_volume_source.V1CSIVolumeSource() + # model = kubernetes.client.models.v1_csi_volume_source.V1CSIVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_endpoint.py b/kubernetes/test/test_v1_daemon_endpoint.py index 445731560d..f8e218f697 100644 --- a/kubernetes/test/test_v1_daemon_endpoint.py +++ b/kubernetes/test/test_v1_daemon_endpoint.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint class TestV1DaemonEndpoint(unittest.TestCase): - """ V1DaemonEndpoint unit test stubs """ + """V1DaemonEndpoint unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonEndpoint(self): - """ - Test V1DaemonEndpoint - """ + """Test V1DaemonEndpoint""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_endpoint.V1DaemonEndpoint() + # model = kubernetes.client.models.v1_daemon_endpoint.V1DaemonEndpoint() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set.py b/kubernetes/test/test_v1_daemon_set.py index 161372c572..4e507cc21f 100644 --- a/kubernetes/test/test_v1_daemon_set.py +++ b/kubernetes/test/test_v1_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set import V1DaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set import V1DaemonSet class TestV1DaemonSet(unittest.TestCase): - """ V1DaemonSet unit test stubs """ + """V1DaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSet(self): - """ - Test V1DaemonSet - """ + """Test V1DaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set.V1DaemonSet() + # model = kubernetes.client.models.v1_daemon_set.V1DaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set_condition.py b/kubernetes/test/test_v1_daemon_set_condition.py index 129d278833..5d638a7e89 100644 --- a/kubernetes/test/test_v1_daemon_set_condition.py +++ b/kubernetes/test/test_v1_daemon_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition class TestV1DaemonSetCondition(unittest.TestCase): - """ V1DaemonSetCondition unit test stubs """ + """V1DaemonSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSetCondition(self): - """ - Test V1DaemonSetCondition - """ + """Test V1DaemonSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set_condition.V1DaemonSetCondition() + # model = kubernetes.client.models.v1_daemon_set_condition.V1DaemonSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set_list.py b/kubernetes/test/test_v1_daemon_set_list.py index 7896f18f9b..59b0a3662a 100644 --- a/kubernetes/test/test_v1_daemon_set_list.py +++ b/kubernetes/test/test_v1_daemon_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList class TestV1DaemonSetList(unittest.TestCase): - """ V1DaemonSetList unit test stubs """ + """V1DaemonSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSetList(self): - """ - Test V1DaemonSetList - """ + """Test V1DaemonSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set_list.V1DaemonSetList() + # model = kubernetes.client.models.v1_daemon_set_list.V1DaemonSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set_spec.py b/kubernetes/test/test_v1_daemon_set_spec.py index 327c21f6cc..3e9a39e5ff 100644 --- a/kubernetes/test/test_v1_daemon_set_spec.py +++ b/kubernetes/test/test_v1_daemon_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec class TestV1DaemonSetSpec(unittest.TestCase): - """ V1DaemonSetSpec unit test stubs """ + """V1DaemonSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSetSpec(self): - """ - Test V1DaemonSetSpec - """ + """Test V1DaemonSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set_spec.V1DaemonSetSpec() + # model = kubernetes.client.models.v1_daemon_set_spec.V1DaemonSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set_status.py b/kubernetes/test/test_v1_daemon_set_status.py index b274580db3..b16b654c3b 100644 --- a/kubernetes/test/test_v1_daemon_set_status.py +++ b/kubernetes/test/test_v1_daemon_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus class TestV1DaemonSetStatus(unittest.TestCase): - """ V1DaemonSetStatus unit test stubs """ + """V1DaemonSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSetStatus(self): - """ - Test V1DaemonSetStatus - """ + """Test V1DaemonSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set_status.V1DaemonSetStatus() + # model = kubernetes.client.models.v1_daemon_set_status.V1DaemonSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_daemon_set_update_strategy.py b/kubernetes/test/test_v1_daemon_set_update_strategy.py index 54313dd80f..33850c5e34 100644 --- a/kubernetes/test/test_v1_daemon_set_update_strategy.py +++ b/kubernetes/test/test_v1_daemon_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy class TestV1DaemonSetUpdateStrategy(unittest.TestCase): - """ V1DaemonSetUpdateStrategy unit test stubs """ + """V1DaemonSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DaemonSetUpdateStrategy(self): - """ - Test V1DaemonSetUpdateStrategy - """ + """Test V1DaemonSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_daemon_set_update_strategy.V1DaemonSetUpdateStrategy() + # model = kubernetes.client.models.v1_daemon_set_update_strategy.V1DaemonSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_delete_options.py b/kubernetes/test/test_v1_delete_options.py index 5ed094d869..8be8f843f5 100644 --- a/kubernetes/test/test_v1_delete_options.py +++ b/kubernetes/test/test_v1_delete_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_delete_options import V1DeleteOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_delete_options import V1DeleteOptions class TestV1DeleteOptions(unittest.TestCase): - """ V1DeleteOptions unit test stubs """ + """V1DeleteOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeleteOptions(self): - """ - Test V1DeleteOptions - """ + """Test V1DeleteOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_delete_options.V1DeleteOptions() + # model = kubernetes.client.models.v1_delete_options.V1DeleteOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment.py b/kubernetes/test/test_v1_deployment.py index 4325286ef8..f4db76d412 100644 --- a/kubernetes/test/test_v1_deployment.py +++ b/kubernetes/test/test_v1_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment import V1Deployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment import V1Deployment class TestV1Deployment(unittest.TestCase): - """ V1Deployment unit test stubs """ + """V1Deployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Deployment(self): - """ - Test V1Deployment - """ + """Test V1Deployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment.V1Deployment() + # model = kubernetes.client.models.v1_deployment.V1Deployment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment_condition.py b/kubernetes/test/test_v1_deployment_condition.py index e153ddd3c6..270dd23158 100644 --- a/kubernetes/test/test_v1_deployment_condition.py +++ b/kubernetes/test/test_v1_deployment_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition class TestV1DeploymentCondition(unittest.TestCase): - """ V1DeploymentCondition unit test stubs """ + """V1DeploymentCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeploymentCondition(self): - """ - Test V1DeploymentCondition - """ + """Test V1DeploymentCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment_condition.V1DeploymentCondition() + # model = kubernetes.client.models.v1_deployment_condition.V1DeploymentCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment_list.py b/kubernetes/test/test_v1_deployment_list.py index 5b52070401..bc50bc2a53 100644 --- a/kubernetes/test/test_v1_deployment_list.py +++ b/kubernetes/test/test_v1_deployment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment_list import V1DeploymentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment_list import V1DeploymentList class TestV1DeploymentList(unittest.TestCase): - """ V1DeploymentList unit test stubs """ + """V1DeploymentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeploymentList(self): - """ - Test V1DeploymentList - """ + """Test V1DeploymentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment_list.V1DeploymentList() + # model = kubernetes.client.models.v1_deployment_list.V1DeploymentList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment_spec.py b/kubernetes/test/test_v1_deployment_spec.py index d42750a5f9..6f94b7641b 100644 --- a/kubernetes/test/test_v1_deployment_spec.py +++ b/kubernetes/test/test_v1_deployment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec class TestV1DeploymentSpec(unittest.TestCase): - """ V1DeploymentSpec unit test stubs """ + """V1DeploymentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeploymentSpec(self): - """ - Test V1DeploymentSpec - """ + """Test V1DeploymentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment_spec.V1DeploymentSpec() + # model = kubernetes.client.models.v1_deployment_spec.V1DeploymentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment_status.py b/kubernetes/test/test_v1_deployment_status.py index b6caff6b36..4e03aa5882 100644 --- a/kubernetes/test/test_v1_deployment_status.py +++ b/kubernetes/test/test_v1_deployment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus class TestV1DeploymentStatus(unittest.TestCase): - """ V1DeploymentStatus unit test stubs """ + """V1DeploymentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeploymentStatus(self): - """ - Test V1DeploymentStatus - """ + """Test V1DeploymentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment_status.V1DeploymentStatus() + # model = kubernetes.client.models.v1_deployment_status.V1DeploymentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_deployment_strategy.py b/kubernetes/test/test_v1_deployment_strategy.py index 963c2dada8..117ea6f21a 100644 --- a/kubernetes/test/test_v1_deployment_strategy.py +++ b/kubernetes/test/test_v1_deployment_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy class TestV1DeploymentStrategy(unittest.TestCase): - """ V1DeploymentStrategy unit test stubs """ + """V1DeploymentStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DeploymentStrategy(self): - """ - Test V1DeploymentStrategy - """ + """Test V1DeploymentStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_deployment_strategy.V1DeploymentStrategy() + # model = kubernetes.client.models.v1_deployment_strategy.V1DeploymentStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_downward_api_projection.py b/kubernetes/test/test_v1_downward_api_projection.py index 4d984fa841..0a38142eeb 100644 --- a/kubernetes/test/test_v1_downward_api_projection.py +++ b/kubernetes/test/test_v1_downward_api_projection.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection class TestV1DownwardAPIProjection(unittest.TestCase): - """ V1DownwardAPIProjection unit test stubs """ + """V1DownwardAPIProjection unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DownwardAPIProjection(self): - """ - Test V1DownwardAPIProjection - """ + """Test V1DownwardAPIProjection""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_downward_api_projection.V1DownwardAPIProjection() + # model = kubernetes.client.models.v1_downward_api_projection.V1DownwardAPIProjection() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_downward_api_volume_file.py b/kubernetes/test/test_v1_downward_api_volume_file.py index 19d35f390c..038bce3645 100644 --- a/kubernetes/test/test_v1_downward_api_volume_file.py +++ b/kubernetes/test/test_v1_downward_api_volume_file.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile class TestV1DownwardAPIVolumeFile(unittest.TestCase): - """ V1DownwardAPIVolumeFile unit test stubs """ + """V1DownwardAPIVolumeFile unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DownwardAPIVolumeFile(self): - """ - Test V1DownwardAPIVolumeFile - """ + """Test V1DownwardAPIVolumeFile""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_downward_api_volume_file.V1DownwardAPIVolumeFile() + # model = kubernetes.client.models.v1_downward_api_volume_file.V1DownwardAPIVolumeFile() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_downward_api_volume_source.py b/kubernetes/test/test_v1_downward_api_volume_source.py index 88ab5d4e70..af5ef952c5 100644 --- a/kubernetes/test/test_v1_downward_api_volume_source.py +++ b/kubernetes/test/test_v1_downward_api_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource class TestV1DownwardAPIVolumeSource(unittest.TestCase): - """ V1DownwardAPIVolumeSource unit test stubs """ + """V1DownwardAPIVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1DownwardAPIVolumeSource(self): - """ - Test V1DownwardAPIVolumeSource - """ + """Test V1DownwardAPIVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_downward_api_volume_source.V1DownwardAPIVolumeSource() + # model = kubernetes.client.models.v1_downward_api_volume_source.V1DownwardAPIVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_empty_dir_volume_source.py b/kubernetes/test/test_v1_empty_dir_volume_source.py index bc4c03ba9d..d445b02f6e 100644 --- a/kubernetes/test/test_v1_empty_dir_volume_source.py +++ b/kubernetes/test/test_v1_empty_dir_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource class TestV1EmptyDirVolumeSource(unittest.TestCase): - """ V1EmptyDirVolumeSource unit test stubs """ + """V1EmptyDirVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EmptyDirVolumeSource(self): - """ - Test V1EmptyDirVolumeSource - """ + """Test V1EmptyDirVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_empty_dir_volume_source.V1EmptyDirVolumeSource() + # model = kubernetes.client.models.v1_empty_dir_volume_source.V1EmptyDirVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_endpoint_address.py b/kubernetes/test/test_v1_endpoint_address.py index 143f6285e4..432e79f2cf 100644 --- a/kubernetes/test/test_v1_endpoint_address.py +++ b/kubernetes/test/test_v1_endpoint_address.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress class TestV1EndpointAddress(unittest.TestCase): - """ V1EndpointAddress unit test stubs """ + """V1EndpointAddress unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EndpointAddress(self): - """ - Test V1EndpointAddress - """ + """Test V1EndpointAddress""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_endpoint_address.V1EndpointAddress() + # model = kubernetes.client.models.v1_endpoint_address.V1EndpointAddress() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_endpoint_port.py b/kubernetes/test/test_v1_endpoint_port.py index 20b01eb8ed..9eddb254d5 100644 --- a/kubernetes/test/test_v1_endpoint_port.py +++ b/kubernetes/test/test_v1_endpoint_port.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_endpoint_port import V1EndpointPort # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_endpoint_port import V1EndpointPort class TestV1EndpointPort(unittest.TestCase): - """ V1EndpointPort unit test stubs """ + """V1EndpointPort unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EndpointPort(self): - """ - Test V1EndpointPort - """ + """Test V1EndpointPort""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_endpoint_port.V1EndpointPort() + # model = kubernetes.client.models.v1_endpoint_port.V1EndpointPort() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_endpoint_subset.py b/kubernetes/test/test_v1_endpoint_subset.py index 774e923c96..08fd413bbb 100644 --- a/kubernetes/test/test_v1_endpoint_subset.py +++ b/kubernetes/test/test_v1_endpoint_subset.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset class TestV1EndpointSubset(unittest.TestCase): - """ V1EndpointSubset unit test stubs """ + """V1EndpointSubset unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EndpointSubset(self): - """ - Test V1EndpointSubset - """ + """Test V1EndpointSubset""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_endpoint_subset.V1EndpointSubset() + # model = kubernetes.client.models.v1_endpoint_subset.V1EndpointSubset() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_endpoints.py b/kubernetes/test/test_v1_endpoints.py index 35453b8ee2..956111f136 100644 --- a/kubernetes/test/test_v1_endpoints.py +++ b/kubernetes/test/test_v1_endpoints.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_endpoints import V1Endpoints # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_endpoints import V1Endpoints class TestV1Endpoints(unittest.TestCase): - """ V1Endpoints unit test stubs """ + """V1Endpoints unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Endpoints(self): - """ - Test V1Endpoints - """ + """Test V1Endpoints""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_endpoints.V1Endpoints() + # model = kubernetes.client.models.v1_endpoints.V1Endpoints() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_endpoints_list.py b/kubernetes/test/test_v1_endpoints_list.py index 242a699482..56e704a069 100644 --- a/kubernetes/test/test_v1_endpoints_list.py +++ b/kubernetes/test/test_v1_endpoints_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_endpoints_list import V1EndpointsList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_endpoints_list import V1EndpointsList class TestV1EndpointsList(unittest.TestCase): - """ V1EndpointsList unit test stubs """ + """V1EndpointsList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EndpointsList(self): - """ - Test V1EndpointsList - """ + """Test V1EndpointsList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_endpoints_list.V1EndpointsList() + # model = kubernetes.client.models.v1_endpoints_list.V1EndpointsList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_env_from_source.py b/kubernetes/test/test_v1_env_from_source.py index 153b0fcdc6..07baebe361 100644 --- a/kubernetes/test/test_v1_env_from_source.py +++ b/kubernetes/test/test_v1_env_from_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_env_from_source import V1EnvFromSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_env_from_source import V1EnvFromSource class TestV1EnvFromSource(unittest.TestCase): - """ V1EnvFromSource unit test stubs """ + """V1EnvFromSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EnvFromSource(self): - """ - Test V1EnvFromSource - """ + """Test V1EnvFromSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_env_from_source.V1EnvFromSource() + # model = kubernetes.client.models.v1_env_from_source.V1EnvFromSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_env_var.py b/kubernetes/test/test_v1_env_var.py index 339bbc1791..3f5048f3d2 100644 --- a/kubernetes/test/test_v1_env_var.py +++ b/kubernetes/test/test_v1_env_var.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_env_var import V1EnvVar # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_env_var import V1EnvVar class TestV1EnvVar(unittest.TestCase): - """ V1EnvVar unit test stubs """ + """V1EnvVar unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EnvVar(self): - """ - Test V1EnvVar - """ + """Test V1EnvVar""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_env_var.V1EnvVar() + # model = kubernetes.client.models.v1_env_var.V1EnvVar() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_env_var_source.py b/kubernetes/test/test_v1_env_var_source.py index 150ff6d67d..46e1b15cf6 100644 --- a/kubernetes/test/test_v1_env_var_source.py +++ b/kubernetes/test/test_v1_env_var_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_env_var_source import V1EnvVarSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_env_var_source import V1EnvVarSource class TestV1EnvVarSource(unittest.TestCase): - """ V1EnvVarSource unit test stubs """ + """V1EnvVarSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EnvVarSource(self): - """ - Test V1EnvVarSource - """ + """Test V1EnvVarSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_env_var_source.V1EnvVarSource() + # model = kubernetes.client.models.v1_env_var_source.V1EnvVarSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_event.py b/kubernetes/test/test_v1_event.py index acb0117c5e..784ed38a51 100644 --- a/kubernetes/test/test_v1_event.py +++ b/kubernetes/test/test_v1_event.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_event import V1Event # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_event import V1Event class TestV1Event(unittest.TestCase): - """ V1Event unit test stubs """ + """V1Event unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Event(self): - """ - Test V1Event - """ + """Test V1Event""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_event.V1Event() + # model = kubernetes.client.models.v1_event.V1Event() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_event_list.py b/kubernetes/test/test_v1_event_list.py index 9b4aaeca09..48887b06c1 100644 --- a/kubernetes/test/test_v1_event_list.py +++ b/kubernetes/test/test_v1_event_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_event_list import V1EventList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_event_list import V1EventList class TestV1EventList(unittest.TestCase): - """ V1EventList unit test stubs """ + """V1EventList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EventList(self): - """ - Test V1EventList - """ + """Test V1EventList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_event_list.V1EventList() + # model = kubernetes.client.models.v1_event_list.V1EventList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_event_series.py b/kubernetes/test/test_v1_event_series.py index 5adf7c95b8..dac29c60a6 100644 --- a/kubernetes/test/test_v1_event_series.py +++ b/kubernetes/test/test_v1_event_series.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_event_series import V1EventSeries # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_event_series import V1EventSeries class TestV1EventSeries(unittest.TestCase): - """ V1EventSeries unit test stubs """ + """V1EventSeries unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EventSeries(self): - """ - Test V1EventSeries - """ + """Test V1EventSeries""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_event_series.V1EventSeries() + # model = kubernetes.client.models.v1_event_series.V1EventSeries() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_event_source.py b/kubernetes/test/test_v1_event_source.py index 4f572c9f17..e94bbd7e1b 100644 --- a/kubernetes/test/test_v1_event_source.py +++ b/kubernetes/test/test_v1_event_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_event_source import V1EventSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_event_source import V1EventSource class TestV1EventSource(unittest.TestCase): - """ V1EventSource unit test stubs """ + """V1EventSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1EventSource(self): - """ - Test V1EventSource - """ + """Test V1EventSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_event_source.V1EventSource() + # model = kubernetes.client.models.v1_event_source.V1EventSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_exec_action.py b/kubernetes/test/test_v1_exec_action.py index 3f4fabae40..c902c8146d 100644 --- a/kubernetes/test/test_v1_exec_action.py +++ b/kubernetes/test/test_v1_exec_action.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_exec_action import V1ExecAction # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_exec_action import V1ExecAction class TestV1ExecAction(unittest.TestCase): - """ V1ExecAction unit test stubs """ + """V1ExecAction unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ExecAction(self): - """ - Test V1ExecAction - """ + """Test V1ExecAction""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_exec_action.V1ExecAction() + # model = kubernetes.client.models.v1_exec_action.V1ExecAction() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_fc_volume_source.py b/kubernetes/test/test_v1_fc_volume_source.py index ea02f5c78a..80abff089a 100644 --- a/kubernetes/test/test_v1_fc_volume_source.py +++ b/kubernetes/test/test_v1_fc_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource class TestV1FCVolumeSource(unittest.TestCase): - """ V1FCVolumeSource unit test stubs """ + """V1FCVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1FCVolumeSource(self): - """ - Test V1FCVolumeSource - """ + """Test V1FCVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_fc_volume_source.V1FCVolumeSource() + # model = kubernetes.client.models.v1_fc_volume_source.V1FCVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_flex_persistent_volume_source.py b/kubernetes/test/test_v1_flex_persistent_volume_source.py index 2451499b05..e5eda325cc 100644 --- a/kubernetes/test/test_v1_flex_persistent_volume_source.py +++ b/kubernetes/test/test_v1_flex_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource class TestV1FlexPersistentVolumeSource(unittest.TestCase): - """ V1FlexPersistentVolumeSource unit test stubs """ + """V1FlexPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1FlexPersistentVolumeSource(self): - """ - Test V1FlexPersistentVolumeSource - """ + """Test V1FlexPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_flex_persistent_volume_source.V1FlexPersistentVolumeSource() + # model = kubernetes.client.models.v1_flex_persistent_volume_source.V1FlexPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_flex_volume_source.py b/kubernetes/test/test_v1_flex_volume_source.py index e8bac8df01..0a36c1f9eb 100644 --- a/kubernetes/test/test_v1_flex_volume_source.py +++ b/kubernetes/test/test_v1_flex_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource class TestV1FlexVolumeSource(unittest.TestCase): - """ V1FlexVolumeSource unit test stubs """ + """V1FlexVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1FlexVolumeSource(self): - """ - Test V1FlexVolumeSource - """ + """Test V1FlexVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_flex_volume_source.V1FlexVolumeSource() + # model = kubernetes.client.models.v1_flex_volume_source.V1FlexVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_flocker_volume_source.py b/kubernetes/test/test_v1_flocker_volume_source.py index dfb1a1f18c..56eb49e1da 100644 --- a/kubernetes/test/test_v1_flocker_volume_source.py +++ b/kubernetes/test/test_v1_flocker_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource class TestV1FlockerVolumeSource(unittest.TestCase): - """ V1FlockerVolumeSource unit test stubs """ + """V1FlockerVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1FlockerVolumeSource(self): - """ - Test V1FlockerVolumeSource - """ + """Test V1FlockerVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_flocker_volume_source.V1FlockerVolumeSource() + # model = kubernetes.client.models.v1_flocker_volume_source.V1FlockerVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py index 129e32b805..5b3fa5a8db 100644 --- a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource class TestV1GCEPersistentDiskVolumeSource(unittest.TestCase): - """ V1GCEPersistentDiskVolumeSource unit test stubs """ + """V1GCEPersistentDiskVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1GCEPersistentDiskVolumeSource(self): - """ - Test V1GCEPersistentDiskVolumeSource - """ + """Test V1GCEPersistentDiskVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_gce_persistent_disk_volume_source.V1GCEPersistentDiskVolumeSource() + # model = kubernetes.client.models.v1_gce_persistent_disk_volume_source.V1GCEPersistentDiskVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_git_repo_volume_source.py b/kubernetes/test/test_v1_git_repo_volume_source.py index 206dd14fa5..0441ae9bf3 100644 --- a/kubernetes/test/test_v1_git_repo_volume_source.py +++ b/kubernetes/test/test_v1_git_repo_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource class TestV1GitRepoVolumeSource(unittest.TestCase): - """ V1GitRepoVolumeSource unit test stubs """ + """V1GitRepoVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1GitRepoVolumeSource(self): - """ - Test V1GitRepoVolumeSource - """ + """Test V1GitRepoVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_git_repo_volume_source.V1GitRepoVolumeSource() + # model = kubernetes.client.models.v1_git_repo_volume_source.V1GitRepoVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py b/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py index 7c4ea083f0..7a34a5a3c1 100644 --- a/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py +++ b/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource class TestV1GlusterfsPersistentVolumeSource(unittest.TestCase): - """ V1GlusterfsPersistentVolumeSource unit test stubs """ + """V1GlusterfsPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1GlusterfsPersistentVolumeSource(self): - """ - Test V1GlusterfsPersistentVolumeSource - """ + """Test V1GlusterfsPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_glusterfs_persistent_volume_source.V1GlusterfsPersistentVolumeSource() + # model = kubernetes.client.models.v1_glusterfs_persistent_volume_source.V1GlusterfsPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_glusterfs_volume_source.py b/kubernetes/test/test_v1_glusterfs_volume_source.py index ba8a6db44a..89c75b1e28 100644 --- a/kubernetes/test/test_v1_glusterfs_volume_source.py +++ b/kubernetes/test/test_v1_glusterfs_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource class TestV1GlusterfsVolumeSource(unittest.TestCase): - """ V1GlusterfsVolumeSource unit test stubs """ + """V1GlusterfsVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1GlusterfsVolumeSource(self): - """ - Test V1GlusterfsVolumeSource - """ + """Test V1GlusterfsVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_glusterfs_volume_source.V1GlusterfsVolumeSource() + # model = kubernetes.client.models.v1_glusterfs_volume_source.V1GlusterfsVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_group_version_for_discovery.py b/kubernetes/test/test_v1_group_version_for_discovery.py index 15bdf1ca44..a0a2c37d63 100644 --- a/kubernetes/test/test_v1_group_version_for_discovery.py +++ b/kubernetes/test/test_v1_group_version_for_discovery.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery class TestV1GroupVersionForDiscovery(unittest.TestCase): - """ V1GroupVersionForDiscovery unit test stubs """ + """V1GroupVersionForDiscovery unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1GroupVersionForDiscovery(self): - """ - Test V1GroupVersionForDiscovery - """ + """Test V1GroupVersionForDiscovery""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() + # model = kubernetes.client.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_handler.py b/kubernetes/test/test_v1_handler.py index fea0eecfb8..c378ec6f50 100644 --- a/kubernetes/test/test_v1_handler.py +++ b/kubernetes/test/test_v1_handler.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_handler import V1Handler # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_handler import V1Handler class TestV1Handler(unittest.TestCase): - """ V1Handler unit test stubs """ + """V1Handler unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Handler(self): - """ - Test V1Handler - """ + """Test V1Handler""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_handler.V1Handler() + # model = kubernetes.client.models.v1_handler.V1Handler() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py index 363dc6ee85..41ba7277d0 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler class TestV1HorizontalPodAutoscaler(unittest.TestCase): - """ V1HorizontalPodAutoscaler unit test stubs """ + """V1HorizontalPodAutoscaler unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HorizontalPodAutoscaler(self): - """ - Test V1HorizontalPodAutoscaler - """ + """Test V1HorizontalPodAutoscaler""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_horizontal_pod_autoscaler.V1HorizontalPodAutoscaler() + # model = kubernetes.client.models.v1_horizontal_pod_autoscaler.V1HorizontalPodAutoscaler() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py index a8206f706b..1d1a82c613 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList class TestV1HorizontalPodAutoscalerList(unittest.TestCase): - """ V1HorizontalPodAutoscalerList unit test stubs """ + """V1HorizontalPodAutoscalerList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HorizontalPodAutoscalerList(self): - """ - Test V1HorizontalPodAutoscalerList - """ + """Test V1HorizontalPodAutoscalerList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_horizontal_pod_autoscaler_list.V1HorizontalPodAutoscalerList() + # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_list.V1HorizontalPodAutoscalerList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py index 5926ff4221..dc1a94afd9 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec class TestV1HorizontalPodAutoscalerSpec(unittest.TestCase): - """ V1HorizontalPodAutoscalerSpec unit test stubs """ + """V1HorizontalPodAutoscalerSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HorizontalPodAutoscalerSpec(self): - """ - Test V1HorizontalPodAutoscalerSpec - """ + """Test V1HorizontalPodAutoscalerSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec() + # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py index 8f978e0fd6..8018c88514 100644 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus class TestV1HorizontalPodAutoscalerStatus(unittest.TestCase): - """ V1HorizontalPodAutoscalerStatus unit test stubs """ + """V1HorizontalPodAutoscalerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HorizontalPodAutoscalerStatus(self): - """ - Test V1HorizontalPodAutoscalerStatus - """ + """Test V1HorizontalPodAutoscalerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus() + # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_host_alias.py b/kubernetes/test/test_v1_host_alias.py index 1b82fd8eaa..cc37862366 100644 --- a/kubernetes/test/test_v1_host_alias.py +++ b/kubernetes/test/test_v1_host_alias.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_host_alias import V1HostAlias # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_host_alias import V1HostAlias class TestV1HostAlias(unittest.TestCase): - """ V1HostAlias unit test stubs """ + """V1HostAlias unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HostAlias(self): - """ - Test V1HostAlias - """ + """Test V1HostAlias""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_host_alias.V1HostAlias() + # model = kubernetes.client.models.v1_host_alias.V1HostAlias() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_host_path_volume_source.py b/kubernetes/test/test_v1_host_path_volume_source.py index c4a4e99d53..e2f3ba031e 100644 --- a/kubernetes/test/test_v1_host_path_volume_source.py +++ b/kubernetes/test/test_v1_host_path_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource class TestV1HostPathVolumeSource(unittest.TestCase): - """ V1HostPathVolumeSource unit test stubs """ + """V1HostPathVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HostPathVolumeSource(self): - """ - Test V1HostPathVolumeSource - """ + """Test V1HostPathVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_host_path_volume_source.V1HostPathVolumeSource() + # model = kubernetes.client.models.v1_host_path_volume_source.V1HostPathVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_http_get_action.py b/kubernetes/test/test_v1_http_get_action.py index d646a57764..b86847c54c 100644 --- a/kubernetes/test/test_v1_http_get_action.py +++ b/kubernetes/test/test_v1_http_get_action.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction class TestV1HTTPGetAction(unittest.TestCase): - """ V1HTTPGetAction unit test stubs """ + """V1HTTPGetAction unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HTTPGetAction(self): - """ - Test V1HTTPGetAction - """ + """Test V1HTTPGetAction""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_http_get_action.V1HTTPGetAction() + # model = kubernetes.client.models.v1_http_get_action.V1HTTPGetAction() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_http_header.py b/kubernetes/test/test_v1_http_header.py index da321637f4..f1e6a8ffe4 100644 --- a/kubernetes/test/test_v1_http_header.py +++ b/kubernetes/test/test_v1_http_header.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_http_header import V1HTTPHeader # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_http_header import V1HTTPHeader class TestV1HTTPHeader(unittest.TestCase): - """ V1HTTPHeader unit test stubs """ + """V1HTTPHeader unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1HTTPHeader(self): - """ - Test V1HTTPHeader - """ + """Test V1HTTPHeader""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_http_header.V1HTTPHeader() + # model = kubernetes.client.models.v1_http_header.V1HTTPHeader() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_initializer.py b/kubernetes/test/test_v1_initializer.py index 5ff48a888e..7bed5beb65 100644 --- a/kubernetes/test/test_v1_initializer.py +++ b/kubernetes/test/test_v1_initializer.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_initializer import V1Initializer # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_initializer import V1Initializer class TestV1Initializer(unittest.TestCase): - """ V1Initializer unit test stubs """ + """V1Initializer unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Initializer(self): - """ - Test V1Initializer - """ + """Test V1Initializer""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_initializer.V1Initializer() + # model = kubernetes.client.models.v1_initializer.V1Initializer() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_initializers.py b/kubernetes/test/test_v1_initializers.py index 45fcd7c924..7ac127e27f 100644 --- a/kubernetes/test/test_v1_initializers.py +++ b/kubernetes/test/test_v1_initializers.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_initializers import V1Initializers # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_initializers import V1Initializers class TestV1Initializers(unittest.TestCase): - """ V1Initializers unit test stubs """ + """V1Initializers unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Initializers(self): - """ - Test V1Initializers - """ + """Test V1Initializers""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_initializers.V1Initializers() + # model = kubernetes.client.models.v1_initializers.V1Initializers() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_ip_block.py b/kubernetes/test/test_v1_ip_block.py index 341a4acc8e..1363bafd04 100644 --- a/kubernetes/test/test_v1_ip_block.py +++ b/kubernetes/test/test_v1_ip_block.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_ip_block import V1IPBlock # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_ip_block import V1IPBlock class TestV1IPBlock(unittest.TestCase): - """ V1IPBlock unit test stubs """ + """V1IPBlock unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1IPBlock(self): - """ - Test V1IPBlock - """ + """Test V1IPBlock""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_ip_block.V1IPBlock() + # model = kubernetes.client.models.v1_ip_block.V1IPBlock() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_iscsi_persistent_volume_source.py b/kubernetes/test/test_v1_iscsi_persistent_volume_source.py index 94e3ef3433..cc2f02ae2b 100644 --- a/kubernetes/test/test_v1_iscsi_persistent_volume_source.py +++ b/kubernetes/test/test_v1_iscsi_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource class TestV1ISCSIPersistentVolumeSource(unittest.TestCase): - """ V1ISCSIPersistentVolumeSource unit test stubs """ + """V1ISCSIPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ISCSIPersistentVolumeSource(self): - """ - Test V1ISCSIPersistentVolumeSource - """ + """Test V1ISCSIPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_iscsi_persistent_volume_source.V1ISCSIPersistentVolumeSource() + # model = kubernetes.client.models.v1_iscsi_persistent_volume_source.V1ISCSIPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_iscsi_volume_source.py b/kubernetes/test/test_v1_iscsi_volume_source.py index f6ff458004..bd876ac9b6 100644 --- a/kubernetes/test/test_v1_iscsi_volume_source.py +++ b/kubernetes/test/test_v1_iscsi_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource class TestV1ISCSIVolumeSource(unittest.TestCase): - """ V1ISCSIVolumeSource unit test stubs """ + """V1ISCSIVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ISCSIVolumeSource(self): - """ - Test V1ISCSIVolumeSource - """ + """Test V1ISCSIVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_iscsi_volume_source.V1ISCSIVolumeSource() + # model = kubernetes.client.models.v1_iscsi_volume_source.V1ISCSIVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_job.py b/kubernetes/test/test_v1_job.py index 3d8b6001df..5e6cdb659e 100644 --- a/kubernetes/test/test_v1_job.py +++ b/kubernetes/test/test_v1_job.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_job import V1Job # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_job import V1Job class TestV1Job(unittest.TestCase): - """ V1Job unit test stubs """ + """V1Job unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Job(self): - """ - Test V1Job - """ + """Test V1Job""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_job.V1Job() + # model = kubernetes.client.models.v1_job.V1Job() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_job_condition.py b/kubernetes/test/test_v1_job_condition.py index bbc7554c06..3665590624 100644 --- a/kubernetes/test/test_v1_job_condition.py +++ b/kubernetes/test/test_v1_job_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_job_condition import V1JobCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_job_condition import V1JobCondition class TestV1JobCondition(unittest.TestCase): - """ V1JobCondition unit test stubs """ + """V1JobCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1JobCondition(self): - """ - Test V1JobCondition - """ + """Test V1JobCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_job_condition.V1JobCondition() + # model = kubernetes.client.models.v1_job_condition.V1JobCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_job_list.py b/kubernetes/test/test_v1_job_list.py index 741fa6fad6..a9637bd01a 100644 --- a/kubernetes/test/test_v1_job_list.py +++ b/kubernetes/test/test_v1_job_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_job_list import V1JobList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_job_list import V1JobList class TestV1JobList(unittest.TestCase): - """ V1JobList unit test stubs """ + """V1JobList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1JobList(self): - """ - Test V1JobList - """ + """Test V1JobList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_job_list.V1JobList() + # model = kubernetes.client.models.v1_job_list.V1JobList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_job_spec.py b/kubernetes/test/test_v1_job_spec.py index 5c9c7635a3..0db2a32f5f 100644 --- a/kubernetes/test/test_v1_job_spec.py +++ b/kubernetes/test/test_v1_job_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_job_spec import V1JobSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_job_spec import V1JobSpec class TestV1JobSpec(unittest.TestCase): - """ V1JobSpec unit test stubs """ + """V1JobSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1JobSpec(self): - """ - Test V1JobSpec - """ + """Test V1JobSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_job_spec.V1JobSpec() + # model = kubernetes.client.models.v1_job_spec.V1JobSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_job_status.py b/kubernetes/test/test_v1_job_status.py index 34f68530a4..5a02c674b5 100644 --- a/kubernetes/test/test_v1_job_status.py +++ b/kubernetes/test/test_v1_job_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_job_status import V1JobStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_job_status import V1JobStatus class TestV1JobStatus(unittest.TestCase): - """ V1JobStatus unit test stubs """ + """V1JobStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1JobStatus(self): - """ - Test V1JobStatus - """ + """Test V1JobStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_job_status.V1JobStatus() + # model = kubernetes.client.models.v1_job_status.V1JobStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_key_to_path.py b/kubernetes/test/test_v1_key_to_path.py index 48b523348d..9c4f78696a 100644 --- a/kubernetes/test/test_v1_key_to_path.py +++ b/kubernetes/test/test_v1_key_to_path.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_key_to_path import V1KeyToPath # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_key_to_path import V1KeyToPath class TestV1KeyToPath(unittest.TestCase): - """ V1KeyToPath unit test stubs """ + """V1KeyToPath unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1KeyToPath(self): - """ - Test V1KeyToPath - """ + """Test V1KeyToPath""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_key_to_path.V1KeyToPath() + # model = kubernetes.client.models.v1_key_to_path.V1KeyToPath() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_label_selector.py b/kubernetes/test/test_v1_label_selector.py index 0c262a144a..edaf185525 100644 --- a/kubernetes/test/test_v1_label_selector.py +++ b/kubernetes/test/test_v1_label_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_label_selector import V1LabelSelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_label_selector import V1LabelSelector class TestV1LabelSelector(unittest.TestCase): - """ V1LabelSelector unit test stubs """ + """V1LabelSelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LabelSelector(self): - """ - Test V1LabelSelector - """ + """Test V1LabelSelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_label_selector.V1LabelSelector() + # model = kubernetes.client.models.v1_label_selector.V1LabelSelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_label_selector_requirement.py b/kubernetes/test/test_v1_label_selector_requirement.py index 9827474026..60438b2422 100644 --- a/kubernetes/test/test_v1_label_selector_requirement.py +++ b/kubernetes/test/test_v1_label_selector_requirement.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement class TestV1LabelSelectorRequirement(unittest.TestCase): - """ V1LabelSelectorRequirement unit test stubs """ + """V1LabelSelectorRequirement unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LabelSelectorRequirement(self): - """ - Test V1LabelSelectorRequirement - """ + """Test V1LabelSelectorRequirement""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement() + # model = kubernetes.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_lease.py b/kubernetes/test/test_v1_lease.py index 5bc4c4d7f1..2ddc2eecb4 100644 --- a/kubernetes/test/test_v1_lease.py +++ b/kubernetes/test/test_v1_lease.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_lease import V1Lease # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_lease import V1Lease class TestV1Lease(unittest.TestCase): - """ V1Lease unit test stubs """ + """V1Lease unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Lease(self): - """ - Test V1Lease - """ + """Test V1Lease""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_lease.V1Lease() + # model = kubernetes.client.models.v1_lease.V1Lease() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_lease_list.py b/kubernetes/test/test_v1_lease_list.py index e1a4144f75..658944a05b 100644 --- a/kubernetes/test/test_v1_lease_list.py +++ b/kubernetes/test/test_v1_lease_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_lease_list import V1LeaseList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_lease_list import V1LeaseList class TestV1LeaseList(unittest.TestCase): - """ V1LeaseList unit test stubs """ + """V1LeaseList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LeaseList(self): - """ - Test V1LeaseList - """ + """Test V1LeaseList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_lease_list.V1LeaseList() + # model = kubernetes.client.models.v1_lease_list.V1LeaseList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_lease_spec.py b/kubernetes/test/test_v1_lease_spec.py index bf221f272f..0e5afabe55 100644 --- a/kubernetes/test/test_v1_lease_spec.py +++ b/kubernetes/test/test_v1_lease_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_lease_spec import V1LeaseSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_lease_spec import V1LeaseSpec class TestV1LeaseSpec(unittest.TestCase): - """ V1LeaseSpec unit test stubs """ + """V1LeaseSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LeaseSpec(self): - """ - Test V1LeaseSpec - """ + """Test V1LeaseSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_lease_spec.V1LeaseSpec() + # model = kubernetes.client.models.v1_lease_spec.V1LeaseSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_lifecycle.py b/kubernetes/test/test_v1_lifecycle.py index 0b784e3b64..0a08514e36 100644 --- a/kubernetes/test/test_v1_lifecycle.py +++ b/kubernetes/test/test_v1_lifecycle.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_lifecycle import V1Lifecycle # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_lifecycle import V1Lifecycle class TestV1Lifecycle(unittest.TestCase): - """ V1Lifecycle unit test stubs """ + """V1Lifecycle unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Lifecycle(self): - """ - Test V1Lifecycle - """ + """Test V1Lifecycle""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_lifecycle.V1Lifecycle() + # model = kubernetes.client.models.v1_lifecycle.V1Lifecycle() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_limit_range.py b/kubernetes/test/test_v1_limit_range.py index aba3569e40..31c787ccaa 100644 --- a/kubernetes/test/test_v1_limit_range.py +++ b/kubernetes/test/test_v1_limit_range.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_limit_range import V1LimitRange # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_limit_range import V1LimitRange class TestV1LimitRange(unittest.TestCase): - """ V1LimitRange unit test stubs """ + """V1LimitRange unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LimitRange(self): - """ - Test V1LimitRange - """ + """Test V1LimitRange""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_limit_range.V1LimitRange() + # model = kubernetes.client.models.v1_limit_range.V1LimitRange() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_limit_range_item.py b/kubernetes/test/test_v1_limit_range_item.py index dd79f47c26..7ac3619202 100644 --- a/kubernetes/test/test_v1_limit_range_item.py +++ b/kubernetes/test/test_v1_limit_range_item.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem class TestV1LimitRangeItem(unittest.TestCase): - """ V1LimitRangeItem unit test stubs """ + """V1LimitRangeItem unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LimitRangeItem(self): - """ - Test V1LimitRangeItem - """ + """Test V1LimitRangeItem""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_limit_range_item.V1LimitRangeItem() + # model = kubernetes.client.models.v1_limit_range_item.V1LimitRangeItem() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_limit_range_list.py b/kubernetes/test/test_v1_limit_range_list.py index ffccd34378..301e48ae69 100644 --- a/kubernetes/test/test_v1_limit_range_list.py +++ b/kubernetes/test/test_v1_limit_range_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList class TestV1LimitRangeList(unittest.TestCase): - """ V1LimitRangeList unit test stubs """ + """V1LimitRangeList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LimitRangeList(self): - """ - Test V1LimitRangeList - """ + """Test V1LimitRangeList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_limit_range_list.V1LimitRangeList() + # model = kubernetes.client.models.v1_limit_range_list.V1LimitRangeList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_limit_range_spec.py b/kubernetes/test/test_v1_limit_range_spec.py index df811c47e6..7e61794ecf 100644 --- a/kubernetes/test/test_v1_limit_range_spec.py +++ b/kubernetes/test/test_v1_limit_range_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec class TestV1LimitRangeSpec(unittest.TestCase): - """ V1LimitRangeSpec unit test stubs """ + """V1LimitRangeSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LimitRangeSpec(self): - """ - Test V1LimitRangeSpec - """ + """Test V1LimitRangeSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_limit_range_spec.V1LimitRangeSpec() + # model = kubernetes.client.models.v1_limit_range_spec.V1LimitRangeSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_list_meta.py b/kubernetes/test/test_v1_list_meta.py index 0a29c476d2..1e86eea7c8 100644 --- a/kubernetes/test/test_v1_list_meta.py +++ b/kubernetes/test/test_v1_list_meta.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_list_meta import V1ListMeta # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_list_meta import V1ListMeta class TestV1ListMeta(unittest.TestCase): - """ V1ListMeta unit test stubs """ + """V1ListMeta unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ListMeta(self): - """ - Test V1ListMeta - """ + """Test V1ListMeta""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_list_meta.V1ListMeta() + # model = kubernetes.client.models.v1_list_meta.V1ListMeta() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_load_balancer_ingress.py b/kubernetes/test/test_v1_load_balancer_ingress.py index 7721ce9180..28cac9d7a9 100644 --- a/kubernetes/test/test_v1_load_balancer_ingress.py +++ b/kubernetes/test/test_v1_load_balancer_ingress.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress class TestV1LoadBalancerIngress(unittest.TestCase): - """ V1LoadBalancerIngress unit test stubs """ + """V1LoadBalancerIngress unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LoadBalancerIngress(self): - """ - Test V1LoadBalancerIngress - """ + """Test V1LoadBalancerIngress""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_load_balancer_ingress.V1LoadBalancerIngress() + # model = kubernetes.client.models.v1_load_balancer_ingress.V1LoadBalancerIngress() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_load_balancer_status.py b/kubernetes/test/test_v1_load_balancer_status.py index 7d6d42427e..a416bc8d8f 100644 --- a/kubernetes/test/test_v1_load_balancer_status.py +++ b/kubernetes/test/test_v1_load_balancer_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus class TestV1LoadBalancerStatus(unittest.TestCase): - """ V1LoadBalancerStatus unit test stubs """ + """V1LoadBalancerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LoadBalancerStatus(self): - """ - Test V1LoadBalancerStatus - """ + """Test V1LoadBalancerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_load_balancer_status.V1LoadBalancerStatus() + # model = kubernetes.client.models.v1_load_balancer_status.V1LoadBalancerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_local_object_reference.py b/kubernetes/test/test_v1_local_object_reference.py index 9f11503753..db02de623a 100644 --- a/kubernetes/test/test_v1_local_object_reference.py +++ b/kubernetes/test/test_v1_local_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference class TestV1LocalObjectReference(unittest.TestCase): - """ V1LocalObjectReference unit test stubs """ + """V1LocalObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LocalObjectReference(self): - """ - Test V1LocalObjectReference - """ + """Test V1LocalObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_local_object_reference.V1LocalObjectReference() + # model = kubernetes.client.models.v1_local_object_reference.V1LocalObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_local_subject_access_review.py b/kubernetes/test/test_v1_local_subject_access_review.py index 3be25e12eb..f638861c68 100644 --- a/kubernetes/test/test_v1_local_subject_access_review.py +++ b/kubernetes/test/test_v1_local_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview class TestV1LocalSubjectAccessReview(unittest.TestCase): - """ V1LocalSubjectAccessReview unit test stubs """ + """V1LocalSubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LocalSubjectAccessReview(self): - """ - Test V1LocalSubjectAccessReview - """ + """Test V1LocalSubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_local_subject_access_review.V1LocalSubjectAccessReview() + # model = kubernetes.client.models.v1_local_subject_access_review.V1LocalSubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_local_volume_source.py b/kubernetes/test/test_v1_local_volume_source.py index a89abcc2cc..6573b3b2f5 100644 --- a/kubernetes/test/test_v1_local_volume_source.py +++ b/kubernetes/test/test_v1_local_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource class TestV1LocalVolumeSource(unittest.TestCase): - """ V1LocalVolumeSource unit test stubs """ + """V1LocalVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1LocalVolumeSource(self): - """ - Test V1LocalVolumeSource - """ + """Test V1LocalVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_local_volume_source.V1LocalVolumeSource() + # model = kubernetes.client.models.v1_local_volume_source.V1LocalVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_managed_fields_entry.py b/kubernetes/test/test_v1_managed_fields_entry.py index 1bfc3be798..04b992c284 100644 --- a/kubernetes/test/test_v1_managed_fields_entry.py +++ b/kubernetes/test/test_v1_managed_fields_entry.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry class TestV1ManagedFieldsEntry(unittest.TestCase): - """ V1ManagedFieldsEntry unit test stubs """ + """V1ManagedFieldsEntry unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ManagedFieldsEntry(self): - """ - Test V1ManagedFieldsEntry - """ + """Test V1ManagedFieldsEntry""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_managed_fields_entry.V1ManagedFieldsEntry() + # model = kubernetes.client.models.v1_managed_fields_entry.V1ManagedFieldsEntry() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_namespace.py b/kubernetes/test/test_v1_namespace.py index 4576138d2c..46e7b2bb5c 100644 --- a/kubernetes/test/test_v1_namespace.py +++ b/kubernetes/test/test_v1_namespace.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_namespace import V1Namespace # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_namespace import V1Namespace class TestV1Namespace(unittest.TestCase): - """ V1Namespace unit test stubs """ + """V1Namespace unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Namespace(self): - """ - Test V1Namespace - """ + """Test V1Namespace""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_namespace.V1Namespace() + # model = kubernetes.client.models.v1_namespace.V1Namespace() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_namespace_list.py b/kubernetes/test/test_v1_namespace_list.py index e593263da4..891bef048d 100644 --- a/kubernetes/test/test_v1_namespace_list.py +++ b/kubernetes/test/test_v1_namespace_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_namespace_list import V1NamespaceList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_namespace_list import V1NamespaceList class TestV1NamespaceList(unittest.TestCase): - """ V1NamespaceList unit test stubs """ + """V1NamespaceList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NamespaceList(self): - """ - Test V1NamespaceList - """ + """Test V1NamespaceList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_namespace_list.V1NamespaceList() + # model = kubernetes.client.models.v1_namespace_list.V1NamespaceList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_namespace_spec.py b/kubernetes/test/test_v1_namespace_spec.py index 2dcea21a0b..d4d80b34c3 100644 --- a/kubernetes/test/test_v1_namespace_spec.py +++ b/kubernetes/test/test_v1_namespace_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec class TestV1NamespaceSpec(unittest.TestCase): - """ V1NamespaceSpec unit test stubs """ + """V1NamespaceSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NamespaceSpec(self): - """ - Test V1NamespaceSpec - """ + """Test V1NamespaceSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_namespace_spec.V1NamespaceSpec() + # model = kubernetes.client.models.v1_namespace_spec.V1NamespaceSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_namespace_status.py b/kubernetes/test/test_v1_namespace_status.py index f11a7a35c9..60f223c776 100644 --- a/kubernetes/test/test_v1_namespace_status.py +++ b/kubernetes/test/test_v1_namespace_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus class TestV1NamespaceStatus(unittest.TestCase): - """ V1NamespaceStatus unit test stubs """ + """V1NamespaceStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NamespaceStatus(self): - """ - Test V1NamespaceStatus - """ + """Test V1NamespaceStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_namespace_status.V1NamespaceStatus() + # model = kubernetes.client.models.v1_namespace_status.V1NamespaceStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy.py b/kubernetes/test/test_v1_network_policy.py index 331c8cea1f..98ff6e4061 100644 --- a/kubernetes/test/test_v1_network_policy.py +++ b/kubernetes/test/test_v1_network_policy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy import V1NetworkPolicy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy import V1NetworkPolicy class TestV1NetworkPolicy(unittest.TestCase): - """ V1NetworkPolicy unit test stubs """ + """V1NetworkPolicy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicy(self): - """ - Test V1NetworkPolicy - """ + """Test V1NetworkPolicy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy.V1NetworkPolicy() + # model = kubernetes.client.models.v1_network_policy.V1NetworkPolicy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_egress_rule.py b/kubernetes/test/test_v1_network_policy_egress_rule.py index 339998ab3f..181e9a1b45 100644 --- a/kubernetes/test/test_v1_network_policy_egress_rule.py +++ b/kubernetes/test/test_v1_network_policy_egress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule class TestV1NetworkPolicyEgressRule(unittest.TestCase): - """ V1NetworkPolicyEgressRule unit test stubs """ + """V1NetworkPolicyEgressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicyEgressRule(self): - """ - Test V1NetworkPolicyEgressRule - """ + """Test V1NetworkPolicyEgressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_egress_rule.V1NetworkPolicyEgressRule() + # model = kubernetes.client.models.v1_network_policy_egress_rule.V1NetworkPolicyEgressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_ingress_rule.py b/kubernetes/test/test_v1_network_policy_ingress_rule.py index fb448b49fa..f17fe1deba 100644 --- a/kubernetes/test/test_v1_network_policy_ingress_rule.py +++ b/kubernetes/test/test_v1_network_policy_ingress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule class TestV1NetworkPolicyIngressRule(unittest.TestCase): - """ V1NetworkPolicyIngressRule unit test stubs """ + """V1NetworkPolicyIngressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicyIngressRule(self): - """ - Test V1NetworkPolicyIngressRule - """ + """Test V1NetworkPolicyIngressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_ingress_rule.V1NetworkPolicyIngressRule() + # model = kubernetes.client.models.v1_network_policy_ingress_rule.V1NetworkPolicyIngressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_list.py b/kubernetes/test/test_v1_network_policy_list.py index 54243ee2af..d7c82ad808 100644 --- a/kubernetes/test/test_v1_network_policy_list.py +++ b/kubernetes/test/test_v1_network_policy_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList class TestV1NetworkPolicyList(unittest.TestCase): - """ V1NetworkPolicyList unit test stubs """ + """V1NetworkPolicyList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicyList(self): - """ - Test V1NetworkPolicyList - """ + """Test V1NetworkPolicyList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_list.V1NetworkPolicyList() + # model = kubernetes.client.models.v1_network_policy_list.V1NetworkPolicyList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_peer.py b/kubernetes/test/test_v1_network_policy_peer.py index 7e1a6fb6ca..b3e7717668 100644 --- a/kubernetes/test/test_v1_network_policy_peer.py +++ b/kubernetes/test/test_v1_network_policy_peer.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer class TestV1NetworkPolicyPeer(unittest.TestCase): - """ V1NetworkPolicyPeer unit test stubs """ + """V1NetworkPolicyPeer unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicyPeer(self): - """ - Test V1NetworkPolicyPeer - """ + """Test V1NetworkPolicyPeer""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_peer.V1NetworkPolicyPeer() + # model = kubernetes.client.models.v1_network_policy_peer.V1NetworkPolicyPeer() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_port.py b/kubernetes/test/test_v1_network_policy_port.py index ea75176368..4a4aa54282 100644 --- a/kubernetes/test/test_v1_network_policy_port.py +++ b/kubernetes/test/test_v1_network_policy_port.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort class TestV1NetworkPolicyPort(unittest.TestCase): - """ V1NetworkPolicyPort unit test stubs """ + """V1NetworkPolicyPort unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicyPort(self): - """ - Test V1NetworkPolicyPort - """ + """Test V1NetworkPolicyPort""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_port.V1NetworkPolicyPort() + # model = kubernetes.client.models.v1_network_policy_port.V1NetworkPolicyPort() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_network_policy_spec.py b/kubernetes/test/test_v1_network_policy_spec.py index 29f70774ae..16220c231a 100644 --- a/kubernetes/test/test_v1_network_policy_spec.py +++ b/kubernetes/test/test_v1_network_policy_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec class TestV1NetworkPolicySpec(unittest.TestCase): - """ V1NetworkPolicySpec unit test stubs """ + """V1NetworkPolicySpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NetworkPolicySpec(self): - """ - Test V1NetworkPolicySpec - """ + """Test V1NetworkPolicySpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_network_policy_spec.V1NetworkPolicySpec() + # model = kubernetes.client.models.v1_network_policy_spec.V1NetworkPolicySpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_nfs_volume_source.py b/kubernetes/test/test_v1_nfs_volume_source.py index 6b9fac3b97..ec3286590c 100644 --- a/kubernetes/test/test_v1_nfs_volume_source.py +++ b/kubernetes/test/test_v1_nfs_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource class TestV1NFSVolumeSource(unittest.TestCase): - """ V1NFSVolumeSource unit test stubs """ + """V1NFSVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NFSVolumeSource(self): - """ - Test V1NFSVolumeSource - """ + """Test V1NFSVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_nfs_volume_source.V1NFSVolumeSource() + # model = kubernetes.client.models.v1_nfs_volume_source.V1NFSVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node.py b/kubernetes/test/test_v1_node.py index 1e497c0e55..9b322a5e28 100644 --- a/kubernetes/test/test_v1_node.py +++ b/kubernetes/test/test_v1_node.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node import V1Node # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node import V1Node class TestV1Node(unittest.TestCase): - """ V1Node unit test stubs """ + """V1Node unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Node(self): - """ - Test V1Node - """ + """Test V1Node""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node.V1Node() + # model = kubernetes.client.models.v1_node.V1Node() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_address.py b/kubernetes/test/test_v1_node_address.py index ac369090e8..14c213487b 100644 --- a/kubernetes/test/test_v1_node_address.py +++ b/kubernetes/test/test_v1_node_address.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_address import V1NodeAddress # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_address import V1NodeAddress class TestV1NodeAddress(unittest.TestCase): - """ V1NodeAddress unit test stubs """ + """V1NodeAddress unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeAddress(self): - """ - Test V1NodeAddress - """ + """Test V1NodeAddress""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_address.V1NodeAddress() + # model = kubernetes.client.models.v1_node_address.V1NodeAddress() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_affinity.py b/kubernetes/test/test_v1_node_affinity.py index 750f2d5fda..9598976a97 100644 --- a/kubernetes/test/test_v1_node_affinity.py +++ b/kubernetes/test/test_v1_node_affinity.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_affinity import V1NodeAffinity # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_affinity import V1NodeAffinity class TestV1NodeAffinity(unittest.TestCase): - """ V1NodeAffinity unit test stubs """ + """V1NodeAffinity unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeAffinity(self): - """ - Test V1NodeAffinity - """ + """Test V1NodeAffinity""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_affinity.V1NodeAffinity() + # model = kubernetes.client.models.v1_node_affinity.V1NodeAffinity() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_condition.py b/kubernetes/test/test_v1_node_condition.py index 30dd162caf..9a946eee6d 100644 --- a/kubernetes/test/test_v1_node_condition.py +++ b/kubernetes/test/test_v1_node_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_condition import V1NodeCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_condition import V1NodeCondition class TestV1NodeCondition(unittest.TestCase): - """ V1NodeCondition unit test stubs """ + """V1NodeCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeCondition(self): - """ - Test V1NodeCondition - """ + """Test V1NodeCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_condition.V1NodeCondition() + # model = kubernetes.client.models.v1_node_condition.V1NodeCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_config_source.py b/kubernetes/test/test_v1_node_config_source.py index e5422ae35c..4c7557f465 100644 --- a/kubernetes/test/test_v1_node_config_source.py +++ b/kubernetes/test/test_v1_node_config_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource class TestV1NodeConfigSource(unittest.TestCase): - """ V1NodeConfigSource unit test stubs """ + """V1NodeConfigSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeConfigSource(self): - """ - Test V1NodeConfigSource - """ + """Test V1NodeConfigSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_config_source.V1NodeConfigSource() + # model = kubernetes.client.models.v1_node_config_source.V1NodeConfigSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_config_status.py b/kubernetes/test/test_v1_node_config_status.py index d16d521f79..4c2590137c 100644 --- a/kubernetes/test/test_v1_node_config_status.py +++ b/kubernetes/test/test_v1_node_config_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus class TestV1NodeConfigStatus(unittest.TestCase): - """ V1NodeConfigStatus unit test stubs """ + """V1NodeConfigStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeConfigStatus(self): - """ - Test V1NodeConfigStatus - """ + """Test V1NodeConfigStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_config_status.V1NodeConfigStatus() + # model = kubernetes.client.models.v1_node_config_status.V1NodeConfigStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_daemon_endpoints.py b/kubernetes/test/test_v1_node_daemon_endpoints.py index 969b5a6a98..f37c5588d6 100644 --- a/kubernetes/test/test_v1_node_daemon_endpoints.py +++ b/kubernetes/test/test_v1_node_daemon_endpoints.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints class TestV1NodeDaemonEndpoints(unittest.TestCase): - """ V1NodeDaemonEndpoints unit test stubs """ + """V1NodeDaemonEndpoints unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeDaemonEndpoints(self): - """ - Test V1NodeDaemonEndpoints - """ + """Test V1NodeDaemonEndpoints""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_daemon_endpoints.V1NodeDaemonEndpoints() + # model = kubernetes.client.models.v1_node_daemon_endpoints.V1NodeDaemonEndpoints() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_list.py b/kubernetes/test/test_v1_node_list.py index ebb2edcc2a..8f6e63b1cf 100644 --- a/kubernetes/test/test_v1_node_list.py +++ b/kubernetes/test/test_v1_node_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_list import V1NodeList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_list import V1NodeList class TestV1NodeList(unittest.TestCase): - """ V1NodeList unit test stubs """ + """V1NodeList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeList(self): - """ - Test V1NodeList - """ + """Test V1NodeList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_list.V1NodeList() + # model = kubernetes.client.models.v1_node_list.V1NodeList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_selector.py b/kubernetes/test/test_v1_node_selector.py index a6148d0871..7c0583267e 100644 --- a/kubernetes/test/test_v1_node_selector.py +++ b/kubernetes/test/test_v1_node_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_selector import V1NodeSelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector import V1NodeSelector class TestV1NodeSelector(unittest.TestCase): - """ V1NodeSelector unit test stubs """ + """V1NodeSelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeSelector(self): - """ - Test V1NodeSelector - """ + """Test V1NodeSelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_selector.V1NodeSelector() + # model = kubernetes.client.models.v1_node_selector.V1NodeSelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_selector_requirement.py b/kubernetes/test/test_v1_node_selector_requirement.py index 13eef2a8c7..f606b154bb 100644 --- a/kubernetes/test/test_v1_node_selector_requirement.py +++ b/kubernetes/test/test_v1_node_selector_requirement.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement class TestV1NodeSelectorRequirement(unittest.TestCase): - """ V1NodeSelectorRequirement unit test stubs """ + """V1NodeSelectorRequirement unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeSelectorRequirement(self): - """ - Test V1NodeSelectorRequirement - """ + """Test V1NodeSelectorRequirement""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_selector_requirement.V1NodeSelectorRequirement() + # model = kubernetes.client.models.v1_node_selector_requirement.V1NodeSelectorRequirement() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_selector_term.py b/kubernetes/test/test_v1_node_selector_term.py index ca7bcdaea9..6622c935ab 100644 --- a/kubernetes/test/test_v1_node_selector_term.py +++ b/kubernetes/test/test_v1_node_selector_term.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm class TestV1NodeSelectorTerm(unittest.TestCase): - """ V1NodeSelectorTerm unit test stubs """ + """V1NodeSelectorTerm unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeSelectorTerm(self): - """ - Test V1NodeSelectorTerm - """ + """Test V1NodeSelectorTerm""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_selector_term.V1NodeSelectorTerm() + # model = kubernetes.client.models.v1_node_selector_term.V1NodeSelectorTerm() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_spec.py b/kubernetes/test/test_v1_node_spec.py index 11cb49d644..9bafc0b132 100644 --- a/kubernetes/test/test_v1_node_spec.py +++ b/kubernetes/test/test_v1_node_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_spec import V1NodeSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_spec import V1NodeSpec class TestV1NodeSpec(unittest.TestCase): - """ V1NodeSpec unit test stubs """ + """V1NodeSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeSpec(self): - """ - Test V1NodeSpec - """ + """Test V1NodeSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_spec.V1NodeSpec() + # model = kubernetes.client.models.v1_node_spec.V1NodeSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_status.py b/kubernetes/test/test_v1_node_status.py index 9fefce91ec..2d581fc409 100644 --- a/kubernetes/test/test_v1_node_status.py +++ b/kubernetes/test/test_v1_node_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_status import V1NodeStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_status import V1NodeStatus class TestV1NodeStatus(unittest.TestCase): - """ V1NodeStatus unit test stubs """ + """V1NodeStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeStatus(self): - """ - Test V1NodeStatus - """ + """Test V1NodeStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_status.V1NodeStatus() + # model = kubernetes.client.models.v1_node_status.V1NodeStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_node_system_info.py b/kubernetes/test/test_v1_node_system_info.py index 3b5a19bf12..187365e12d 100644 --- a/kubernetes/test/test_v1_node_system_info.py +++ b/kubernetes/test/test_v1_node_system_info.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo class TestV1NodeSystemInfo(unittest.TestCase): - """ V1NodeSystemInfo unit test stubs """ + """V1NodeSystemInfo unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NodeSystemInfo(self): - """ - Test V1NodeSystemInfo - """ + """Test V1NodeSystemInfo""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_node_system_info.V1NodeSystemInfo() + # model = kubernetes.client.models.v1_node_system_info.V1NodeSystemInfo() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_non_resource_attributes.py b/kubernetes/test/test_v1_non_resource_attributes.py index b01676b893..bf975fe1fb 100644 --- a/kubernetes/test/test_v1_non_resource_attributes.py +++ b/kubernetes/test/test_v1_non_resource_attributes.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes class TestV1NonResourceAttributes(unittest.TestCase): - """ V1NonResourceAttributes unit test stubs """ + """V1NonResourceAttributes unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NonResourceAttributes(self): - """ - Test V1NonResourceAttributes - """ + """Test V1NonResourceAttributes""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_non_resource_attributes.V1NonResourceAttributes() + # model = kubernetes.client.models.v1_non_resource_attributes.V1NonResourceAttributes() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_non_resource_rule.py b/kubernetes/test/test_v1_non_resource_rule.py index 79f2624e79..81cd8f48b8 100644 --- a/kubernetes/test/test_v1_non_resource_rule.py +++ b/kubernetes/test/test_v1_non_resource_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule class TestV1NonResourceRule(unittest.TestCase): - """ V1NonResourceRule unit test stubs """ + """V1NonResourceRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1NonResourceRule(self): - """ - Test V1NonResourceRule - """ + """Test V1NonResourceRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_non_resource_rule.V1NonResourceRule() + # model = kubernetes.client.models.v1_non_resource_rule.V1NonResourceRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_object_field_selector.py b/kubernetes/test/test_v1_object_field_selector.py index e9404f2e31..65eef2d242 100644 --- a/kubernetes/test/test_v1_object_field_selector.py +++ b/kubernetes/test/test_v1_object_field_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector class TestV1ObjectFieldSelector(unittest.TestCase): - """ V1ObjectFieldSelector unit test stubs """ + """V1ObjectFieldSelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ObjectFieldSelector(self): - """ - Test V1ObjectFieldSelector - """ + """Test V1ObjectFieldSelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_object_field_selector.V1ObjectFieldSelector() + # model = kubernetes.client.models.v1_object_field_selector.V1ObjectFieldSelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_object_meta.py b/kubernetes/test/test_v1_object_meta.py index 0b4baca2d2..87c104bd30 100644 --- a/kubernetes/test/test_v1_object_meta.py +++ b/kubernetes/test/test_v1_object_meta.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_object_meta import V1ObjectMeta # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_object_meta import V1ObjectMeta class TestV1ObjectMeta(unittest.TestCase): - """ V1ObjectMeta unit test stubs """ + """V1ObjectMeta unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ObjectMeta(self): - """ - Test V1ObjectMeta - """ + """Test V1ObjectMeta""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_object_meta.V1ObjectMeta() + # model = kubernetes.client.models.v1_object_meta.V1ObjectMeta() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_object_reference.py b/kubernetes/test/test_v1_object_reference.py index aa6533f602..c050374118 100644 --- a/kubernetes/test/test_v1_object_reference.py +++ b/kubernetes/test/test_v1_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_object_reference import V1ObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_object_reference import V1ObjectReference class TestV1ObjectReference(unittest.TestCase): - """ V1ObjectReference unit test stubs """ + """V1ObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ObjectReference(self): - """ - Test V1ObjectReference - """ + """Test V1ObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_object_reference.V1ObjectReference() + # model = kubernetes.client.models.v1_object_reference.V1ObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_owner_reference.py b/kubernetes/test/test_v1_owner_reference.py index 75abcbbf63..3c31cbee5e 100644 --- a/kubernetes/test/test_v1_owner_reference.py +++ b/kubernetes/test/test_v1_owner_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_owner_reference import V1OwnerReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_owner_reference import V1OwnerReference class TestV1OwnerReference(unittest.TestCase): - """ V1OwnerReference unit test stubs """ + """V1OwnerReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1OwnerReference(self): - """ - Test V1OwnerReference - """ + """Test V1OwnerReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_owner_reference.V1OwnerReference() + # model = kubernetes.client.models.v1_owner_reference.V1OwnerReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume.py b/kubernetes/test/test_v1_persistent_volume.py index 5c64ae01c9..c0fbb5448c 100644 --- a/kubernetes/test/test_v1_persistent_volume.py +++ b/kubernetes/test/test_v1_persistent_volume.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume class TestV1PersistentVolume(unittest.TestCase): - """ V1PersistentVolume unit test stubs """ + """V1PersistentVolume unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolume(self): - """ - Test V1PersistentVolume - """ + """Test V1PersistentVolume""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume.V1PersistentVolume() + # model = kubernetes.client.models.v1_persistent_volume.V1PersistentVolume() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim.py b/kubernetes/test/test_v1_persistent_volume_claim.py index 8f4d9dcfce..6aa48ad88c 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim.py +++ b/kubernetes/test/test_v1_persistent_volume_claim.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim class TestV1PersistentVolumeClaim(unittest.TestCase): - """ V1PersistentVolumeClaim unit test stubs """ + """V1PersistentVolumeClaim unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaim(self): - """ - Test V1PersistentVolumeClaim - """ + """Test V1PersistentVolumeClaim""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() + # model = kubernetes.client.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim_condition.py b/kubernetes/test/test_v1_persistent_volume_claim_condition.py index dab3930f3e..22088cc2f2 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_condition.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition class TestV1PersistentVolumeClaimCondition(unittest.TestCase): - """ V1PersistentVolumeClaimCondition unit test stubs """ + """V1PersistentVolumeClaimCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaimCondition(self): - """ - Test V1PersistentVolumeClaimCondition - """ + """Test V1PersistentVolumeClaimCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim_condition.V1PersistentVolumeClaimCondition() + # model = kubernetes.client.models.v1_persistent_volume_claim_condition.V1PersistentVolumeClaimCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim_list.py b/kubernetes/test/test_v1_persistent_volume_claim_list.py index 34b58adaec..c4f29e465e 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_list.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList class TestV1PersistentVolumeClaimList(unittest.TestCase): - """ V1PersistentVolumeClaimList unit test stubs """ + """V1PersistentVolumeClaimList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaimList(self): - """ - Test V1PersistentVolumeClaimList - """ + """Test V1PersistentVolumeClaimList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim_list.V1PersistentVolumeClaimList() + # model = kubernetes.client.models.v1_persistent_volume_claim_list.V1PersistentVolumeClaimList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim_spec.py b/kubernetes/test/test_v1_persistent_volume_claim_spec.py index eebfd92d49..7dc08803e0 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec class TestV1PersistentVolumeClaimSpec(unittest.TestCase): - """ V1PersistentVolumeClaimSpec unit test stubs """ + """V1PersistentVolumeClaimSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaimSpec(self): - """ - Test V1PersistentVolumeClaimSpec - """ + """Test V1PersistentVolumeClaimSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() + # model = kubernetes.client.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim_status.py b/kubernetes/test/test_v1_persistent_volume_claim_status.py index 01df3d1d58..64cf43dbaf 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_status.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus class TestV1PersistentVolumeClaimStatus(unittest.TestCase): - """ V1PersistentVolumeClaimStatus unit test stubs """ + """V1PersistentVolumeClaimStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaimStatus(self): - """ - Test V1PersistentVolumeClaimStatus - """ + """Test V1PersistentVolumeClaimStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() + # model = kubernetes.client.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py index 8604d7da01..36d3d203d5 100644 --- a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource class TestV1PersistentVolumeClaimVolumeSource(unittest.TestCase): - """ V1PersistentVolumeClaimVolumeSource unit test stubs """ + """V1PersistentVolumeClaimVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeClaimVolumeSource(self): - """ - Test V1PersistentVolumeClaimVolumeSource - """ + """Test V1PersistentVolumeClaimVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource() + # model = kubernetes.client.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_list.py b/kubernetes/test/test_v1_persistent_volume_list.py index 0fa1fa269d..caa6cbc5d2 100644 --- a/kubernetes/test/test_v1_persistent_volume_list.py +++ b/kubernetes/test/test_v1_persistent_volume_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList class TestV1PersistentVolumeList(unittest.TestCase): - """ V1PersistentVolumeList unit test stubs """ + """V1PersistentVolumeList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeList(self): - """ - Test V1PersistentVolumeList - """ + """Test V1PersistentVolumeList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_list.V1PersistentVolumeList() + # model = kubernetes.client.models.v1_persistent_volume_list.V1PersistentVolumeList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_spec.py b/kubernetes/test/test_v1_persistent_volume_spec.py index bd06950db3..18f107faa1 100644 --- a/kubernetes/test/test_v1_persistent_volume_spec.py +++ b/kubernetes/test/test_v1_persistent_volume_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec class TestV1PersistentVolumeSpec(unittest.TestCase): - """ V1PersistentVolumeSpec unit test stubs """ + """V1PersistentVolumeSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeSpec(self): - """ - Test V1PersistentVolumeSpec - """ + """Test V1PersistentVolumeSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_spec.V1PersistentVolumeSpec() + # model = kubernetes.client.models.v1_persistent_volume_spec.V1PersistentVolumeSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_persistent_volume_status.py b/kubernetes/test/test_v1_persistent_volume_status.py index 2d5cd638fe..d19937b15b 100644 --- a/kubernetes/test/test_v1_persistent_volume_status.py +++ b/kubernetes/test/test_v1_persistent_volume_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus class TestV1PersistentVolumeStatus(unittest.TestCase): - """ V1PersistentVolumeStatus unit test stubs """ + """V1PersistentVolumeStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PersistentVolumeStatus(self): - """ - Test V1PersistentVolumeStatus - """ + """Test V1PersistentVolumeStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_persistent_volume_status.V1PersistentVolumeStatus() + # model = kubernetes.client.models.v1_persistent_volume_status.V1PersistentVolumeStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py index 427a860a67..8cc4a870ba 100644 --- a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource class TestV1PhotonPersistentDiskVolumeSource(unittest.TestCase): - """ V1PhotonPersistentDiskVolumeSource unit test stubs """ + """V1PhotonPersistentDiskVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PhotonPersistentDiskVolumeSource(self): - """ - Test V1PhotonPersistentDiskVolumeSource - """ + """Test V1PhotonPersistentDiskVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_photon_persistent_disk_volume_source.V1PhotonPersistentDiskVolumeSource() + # model = kubernetes.client.models.v1_photon_persistent_disk_volume_source.V1PhotonPersistentDiskVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod.py b/kubernetes/test/test_v1_pod.py index 03dde6a9c8..31a63fba51 100644 --- a/kubernetes/test/test_v1_pod.py +++ b/kubernetes/test/test_v1_pod.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod import V1Pod # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod import V1Pod class TestV1Pod(unittest.TestCase): - """ V1Pod unit test stubs """ + """V1Pod unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Pod(self): - """ - Test V1Pod - """ + """Test V1Pod""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod.V1Pod() + # model = kubernetes.client.models.v1_pod.V1Pod() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_affinity.py b/kubernetes/test/test_v1_pod_affinity.py index b727eb9a23..f03533d146 100644 --- a/kubernetes/test/test_v1_pod_affinity.py +++ b/kubernetes/test/test_v1_pod_affinity.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_affinity import V1PodAffinity # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_affinity import V1PodAffinity class TestV1PodAffinity(unittest.TestCase): - """ V1PodAffinity unit test stubs """ + """V1PodAffinity unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodAffinity(self): - """ - Test V1PodAffinity - """ + """Test V1PodAffinity""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_affinity.V1PodAffinity() + # model = kubernetes.client.models.v1_pod_affinity.V1PodAffinity() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_affinity_term.py b/kubernetes/test/test_v1_pod_affinity_term.py index 51e5fe93cf..ffb1b63a70 100644 --- a/kubernetes/test/test_v1_pod_affinity_term.py +++ b/kubernetes/test/test_v1_pod_affinity_term.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm class TestV1PodAffinityTerm(unittest.TestCase): - """ V1PodAffinityTerm unit test stubs """ + """V1PodAffinityTerm unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodAffinityTerm(self): - """ - Test V1PodAffinityTerm - """ + """Test V1PodAffinityTerm""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_affinity_term.V1PodAffinityTerm() + # model = kubernetes.client.models.v1_pod_affinity_term.V1PodAffinityTerm() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_anti_affinity.py b/kubernetes/test/test_v1_pod_anti_affinity.py index f508cc9fcc..f3c942c8ba 100644 --- a/kubernetes/test/test_v1_pod_anti_affinity.py +++ b/kubernetes/test/test_v1_pod_anti_affinity.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity class TestV1PodAntiAffinity(unittest.TestCase): - """ V1PodAntiAffinity unit test stubs """ + """V1PodAntiAffinity unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodAntiAffinity(self): - """ - Test V1PodAntiAffinity - """ + """Test V1PodAntiAffinity""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_anti_affinity.V1PodAntiAffinity() + # model = kubernetes.client.models.v1_pod_anti_affinity.V1PodAntiAffinity() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_condition.py b/kubernetes/test/test_v1_pod_condition.py index 25bae21a8e..6850c44735 100644 --- a/kubernetes/test/test_v1_pod_condition.py +++ b/kubernetes/test/test_v1_pod_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_condition import V1PodCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_condition import V1PodCondition class TestV1PodCondition(unittest.TestCase): - """ V1PodCondition unit test stubs """ + """V1PodCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodCondition(self): - """ - Test V1PodCondition - """ + """Test V1PodCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_condition.V1PodCondition() + # model = kubernetes.client.models.v1_pod_condition.V1PodCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_dns_config.py b/kubernetes/test/test_v1_pod_dns_config.py index 0264e0e8d9..c2036d8f52 100644 --- a/kubernetes/test/test_v1_pod_dns_config.py +++ b/kubernetes/test/test_v1_pod_dns_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig class TestV1PodDNSConfig(unittest.TestCase): - """ V1PodDNSConfig unit test stubs """ + """V1PodDNSConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodDNSConfig(self): - """ - Test V1PodDNSConfig - """ + """Test V1PodDNSConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_dns_config.V1PodDNSConfig() + # model = kubernetes.client.models.v1_pod_dns_config.V1PodDNSConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_dns_config_option.py b/kubernetes/test/test_v1_pod_dns_config_option.py index 56354d2ac4..d912b88b84 100644 --- a/kubernetes/test/test_v1_pod_dns_config_option.py +++ b/kubernetes/test/test_v1_pod_dns_config_option.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption class TestV1PodDNSConfigOption(unittest.TestCase): - """ V1PodDNSConfigOption unit test stubs """ + """V1PodDNSConfigOption unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodDNSConfigOption(self): - """ - Test V1PodDNSConfigOption - """ + """Test V1PodDNSConfigOption""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_dns_config_option.V1PodDNSConfigOption() + # model = kubernetes.client.models.v1_pod_dns_config_option.V1PodDNSConfigOption() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_list.py b/kubernetes/test/test_v1_pod_list.py index ecf75e5d83..bd47037218 100644 --- a/kubernetes/test/test_v1_pod_list.py +++ b/kubernetes/test/test_v1_pod_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_list import V1PodList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_list import V1PodList class TestV1PodList(unittest.TestCase): - """ V1PodList unit test stubs """ + """V1PodList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodList(self): - """ - Test V1PodList - """ + """Test V1PodList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_list.V1PodList() + # model = kubernetes.client.models.v1_pod_list.V1PodList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_readiness_gate.py b/kubernetes/test/test_v1_pod_readiness_gate.py index a9841c684e..a30583a418 100644 --- a/kubernetes/test/test_v1_pod_readiness_gate.py +++ b/kubernetes/test/test_v1_pod_readiness_gate.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate class TestV1PodReadinessGate(unittest.TestCase): - """ V1PodReadinessGate unit test stubs """ + """V1PodReadinessGate unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodReadinessGate(self): - """ - Test V1PodReadinessGate - """ + """Test V1PodReadinessGate""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_readiness_gate.V1PodReadinessGate() + # model = kubernetes.client.models.v1_pod_readiness_gate.V1PodReadinessGate() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_security_context.py b/kubernetes/test/test_v1_pod_security_context.py index fad7f18784..1d6a1157ef 100644 --- a/kubernetes/test/test_v1_pod_security_context.py +++ b/kubernetes/test/test_v1_pod_security_context.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext class TestV1PodSecurityContext(unittest.TestCase): - """ V1PodSecurityContext unit test stubs """ + """V1PodSecurityContext unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodSecurityContext(self): - """ - Test V1PodSecurityContext - """ + """Test V1PodSecurityContext""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_security_context.V1PodSecurityContext() + # model = kubernetes.client.models.v1_pod_security_context.V1PodSecurityContext() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_spec.py b/kubernetes/test/test_v1_pod_spec.py index ee52a9e47d..d6370db7ab 100644 --- a/kubernetes/test/test_v1_pod_spec.py +++ b/kubernetes/test/test_v1_pod_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_spec import V1PodSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_spec import V1PodSpec class TestV1PodSpec(unittest.TestCase): - """ V1PodSpec unit test stubs """ + """V1PodSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodSpec(self): - """ - Test V1PodSpec - """ + """Test V1PodSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_spec.V1PodSpec() + # model = kubernetes.client.models.v1_pod_spec.V1PodSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_status.py b/kubernetes/test/test_v1_pod_status.py index 1b8291ac16..516b15b979 100644 --- a/kubernetes/test/test_v1_pod_status.py +++ b/kubernetes/test/test_v1_pod_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_status import V1PodStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_status import V1PodStatus class TestV1PodStatus(unittest.TestCase): - """ V1PodStatus unit test stubs """ + """V1PodStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodStatus(self): - """ - Test V1PodStatus - """ + """Test V1PodStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_status.V1PodStatus() + # model = kubernetes.client.models.v1_pod_status.V1PodStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_template.py b/kubernetes/test/test_v1_pod_template.py index 5a539a14d3..7b73e77de6 100644 --- a/kubernetes/test/test_v1_pod_template.py +++ b/kubernetes/test/test_v1_pod_template.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_template import V1PodTemplate # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_template import V1PodTemplate class TestV1PodTemplate(unittest.TestCase): - """ V1PodTemplate unit test stubs """ + """V1PodTemplate unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodTemplate(self): - """ - Test V1PodTemplate - """ + """Test V1PodTemplate""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_template.V1PodTemplate() + # model = kubernetes.client.models.v1_pod_template.V1PodTemplate() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_template_list.py b/kubernetes/test/test_v1_pod_template_list.py index e37f00b383..9e44b090e7 100644 --- a/kubernetes/test/test_v1_pod_template_list.py +++ b/kubernetes/test/test_v1_pod_template_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList class TestV1PodTemplateList(unittest.TestCase): - """ V1PodTemplateList unit test stubs """ + """V1PodTemplateList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodTemplateList(self): - """ - Test V1PodTemplateList - """ + """Test V1PodTemplateList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_template_list.V1PodTemplateList() + # model = kubernetes.client.models.v1_pod_template_list.V1PodTemplateList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_pod_template_spec.py b/kubernetes/test/test_v1_pod_template_spec.py index 958c1d58a5..33cd674546 100644 --- a/kubernetes/test/test_v1_pod_template_spec.py +++ b/kubernetes/test/test_v1_pod_template_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec class TestV1PodTemplateSpec(unittest.TestCase): - """ V1PodTemplateSpec unit test stubs """ + """V1PodTemplateSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PodTemplateSpec(self): - """ - Test V1PodTemplateSpec - """ + """Test V1PodTemplateSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_pod_template_spec.V1PodTemplateSpec() + # model = kubernetes.client.models.v1_pod_template_spec.V1PodTemplateSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_policy_rule.py b/kubernetes/test/test_v1_policy_rule.py index 62a2df5710..328e4567ca 100644 --- a/kubernetes/test/test_v1_policy_rule.py +++ b/kubernetes/test/test_v1_policy_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_policy_rule import V1PolicyRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_policy_rule import V1PolicyRule class TestV1PolicyRule(unittest.TestCase): - """ V1PolicyRule unit test stubs """ + """V1PolicyRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PolicyRule(self): - """ - Test V1PolicyRule - """ + """Test V1PolicyRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_policy_rule.V1PolicyRule() + # model = kubernetes.client.models.v1_policy_rule.V1PolicyRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_portworx_volume_source.py b/kubernetes/test/test_v1_portworx_volume_source.py index 1a0a67484b..774097b973 100644 --- a/kubernetes/test/test_v1_portworx_volume_source.py +++ b/kubernetes/test/test_v1_portworx_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource class TestV1PortworxVolumeSource(unittest.TestCase): - """ V1PortworxVolumeSource unit test stubs """ + """V1PortworxVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PortworxVolumeSource(self): - """ - Test V1PortworxVolumeSource - """ + """Test V1PortworxVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_portworx_volume_source.V1PortworxVolumeSource() + # model = kubernetes.client.models.v1_portworx_volume_source.V1PortworxVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_preconditions.py b/kubernetes/test/test_v1_preconditions.py index cb1b683b72..4e1c4bcf29 100644 --- a/kubernetes/test/test_v1_preconditions.py +++ b/kubernetes/test/test_v1_preconditions.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_preconditions import V1Preconditions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_preconditions import V1Preconditions class TestV1Preconditions(unittest.TestCase): - """ V1Preconditions unit test stubs """ + """V1Preconditions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Preconditions(self): - """ - Test V1Preconditions - """ + """Test V1Preconditions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_preconditions.V1Preconditions() + # model = kubernetes.client.models.v1_preconditions.V1Preconditions() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_preferred_scheduling_term.py b/kubernetes/test/test_v1_preferred_scheduling_term.py index c1094f9fa9..3448858c8a 100644 --- a/kubernetes/test/test_v1_preferred_scheduling_term.py +++ b/kubernetes/test/test_v1_preferred_scheduling_term.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm class TestV1PreferredSchedulingTerm(unittest.TestCase): - """ V1PreferredSchedulingTerm unit test stubs """ + """V1PreferredSchedulingTerm unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PreferredSchedulingTerm(self): - """ - Test V1PreferredSchedulingTerm - """ + """Test V1PreferredSchedulingTerm""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() + # model = kubernetes.client.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_priority_class.py b/kubernetes/test/test_v1_priority_class.py index b8cebf24e1..9b608ad389 100644 --- a/kubernetes/test/test_v1_priority_class.py +++ b/kubernetes/test/test_v1_priority_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_priority_class import V1PriorityClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_priority_class import V1PriorityClass class TestV1PriorityClass(unittest.TestCase): - """ V1PriorityClass unit test stubs """ + """V1PriorityClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PriorityClass(self): - """ - Test V1PriorityClass - """ + """Test V1PriorityClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_priority_class.V1PriorityClass() + # model = kubernetes.client.models.v1_priority_class.V1PriorityClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_priority_class_list.py b/kubernetes/test/test_v1_priority_class_list.py index 7ab84d1582..ff19f184b2 100644 --- a/kubernetes/test/test_v1_priority_class_list.py +++ b/kubernetes/test/test_v1_priority_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList class TestV1PriorityClassList(unittest.TestCase): - """ V1PriorityClassList unit test stubs """ + """V1PriorityClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1PriorityClassList(self): - """ - Test V1PriorityClassList - """ + """Test V1PriorityClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_priority_class_list.V1PriorityClassList() + # model = kubernetes.client.models.v1_priority_class_list.V1PriorityClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_probe.py b/kubernetes/test/test_v1_probe.py index 4d3b65f52a..d2662cc754 100644 --- a/kubernetes/test/test_v1_probe.py +++ b/kubernetes/test/test_v1_probe.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_probe import V1Probe # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_probe import V1Probe class TestV1Probe(unittest.TestCase): - """ V1Probe unit test stubs """ + """V1Probe unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Probe(self): - """ - Test V1Probe - """ + """Test V1Probe""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_probe.V1Probe() + # model = kubernetes.client.models.v1_probe.V1Probe() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_projected_volume_source.py b/kubernetes/test/test_v1_projected_volume_source.py index 2cac9c381e..6bec7dff0c 100644 --- a/kubernetes/test/test_v1_projected_volume_source.py +++ b/kubernetes/test/test_v1_projected_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource class TestV1ProjectedVolumeSource(unittest.TestCase): - """ V1ProjectedVolumeSource unit test stubs """ + """V1ProjectedVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ProjectedVolumeSource(self): - """ - Test V1ProjectedVolumeSource - """ + """Test V1ProjectedVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_projected_volume_source.V1ProjectedVolumeSource() + # model = kubernetes.client.models.v1_projected_volume_source.V1ProjectedVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_quobyte_volume_source.py b/kubernetes/test/test_v1_quobyte_volume_source.py index 322d76373f..0e9f6f6abd 100644 --- a/kubernetes/test/test_v1_quobyte_volume_source.py +++ b/kubernetes/test/test_v1_quobyte_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource class TestV1QuobyteVolumeSource(unittest.TestCase): - """ V1QuobyteVolumeSource unit test stubs """ + """V1QuobyteVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1QuobyteVolumeSource(self): - """ - Test V1QuobyteVolumeSource - """ + """Test V1QuobyteVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_quobyte_volume_source.V1QuobyteVolumeSource() + # model = kubernetes.client.models.v1_quobyte_volume_source.V1QuobyteVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_rbd_persistent_volume_source.py b/kubernetes/test/test_v1_rbd_persistent_volume_source.py index 89cf147ae9..2e069a04db 100644 --- a/kubernetes/test/test_v1_rbd_persistent_volume_source.py +++ b/kubernetes/test/test_v1_rbd_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource class TestV1RBDPersistentVolumeSource(unittest.TestCase): - """ V1RBDPersistentVolumeSource unit test stubs """ + """V1RBDPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RBDPersistentVolumeSource(self): - """ - Test V1RBDPersistentVolumeSource - """ + """Test V1RBDPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_rbd_persistent_volume_source.V1RBDPersistentVolumeSource() + # model = kubernetes.client.models.v1_rbd_persistent_volume_source.V1RBDPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_rbd_volume_source.py b/kubernetes/test/test_v1_rbd_volume_source.py index 5ad7c73171..5147efa484 100644 --- a/kubernetes/test/test_v1_rbd_volume_source.py +++ b/kubernetes/test/test_v1_rbd_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource class TestV1RBDVolumeSource(unittest.TestCase): - """ V1RBDVolumeSource unit test stubs """ + """V1RBDVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RBDVolumeSource(self): - """ - Test V1RBDVolumeSource - """ + """Test V1RBDVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_rbd_volume_source.V1RBDVolumeSource() + # model = kubernetes.client.models.v1_rbd_volume_source.V1RBDVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replica_set.py b/kubernetes/test/test_v1_replica_set.py index d07a211747..02e77b72f8 100644 --- a/kubernetes/test/test_v1_replica_set.py +++ b/kubernetes/test/test_v1_replica_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replica_set import V1ReplicaSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replica_set import V1ReplicaSet class TestV1ReplicaSet(unittest.TestCase): - """ V1ReplicaSet unit test stubs """ + """V1ReplicaSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicaSet(self): - """ - Test V1ReplicaSet - """ + """Test V1ReplicaSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replica_set.V1ReplicaSet() + # model = kubernetes.client.models.v1_replica_set.V1ReplicaSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replica_set_condition.py b/kubernetes/test/test_v1_replica_set_condition.py index 12dd27bd96..8c234a39fb 100644 --- a/kubernetes/test/test_v1_replica_set_condition.py +++ b/kubernetes/test/test_v1_replica_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition class TestV1ReplicaSetCondition(unittest.TestCase): - """ V1ReplicaSetCondition unit test stubs """ + """V1ReplicaSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicaSetCondition(self): - """ - Test V1ReplicaSetCondition - """ + """Test V1ReplicaSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replica_set_condition.V1ReplicaSetCondition() + # model = kubernetes.client.models.v1_replica_set_condition.V1ReplicaSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replica_set_list.py b/kubernetes/test/test_v1_replica_set_list.py index edb7ddd7a6..7de0d3db68 100644 --- a/kubernetes/test/test_v1_replica_set_list.py +++ b/kubernetes/test/test_v1_replica_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList class TestV1ReplicaSetList(unittest.TestCase): - """ V1ReplicaSetList unit test stubs """ + """V1ReplicaSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicaSetList(self): - """ - Test V1ReplicaSetList - """ + """Test V1ReplicaSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replica_set_list.V1ReplicaSetList() + # model = kubernetes.client.models.v1_replica_set_list.V1ReplicaSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replica_set_spec.py b/kubernetes/test/test_v1_replica_set_spec.py index ffbc379814..3a38ded9a9 100644 --- a/kubernetes/test/test_v1_replica_set_spec.py +++ b/kubernetes/test/test_v1_replica_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec class TestV1ReplicaSetSpec(unittest.TestCase): - """ V1ReplicaSetSpec unit test stubs """ + """V1ReplicaSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicaSetSpec(self): - """ - Test V1ReplicaSetSpec - """ + """Test V1ReplicaSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replica_set_spec.V1ReplicaSetSpec() + # model = kubernetes.client.models.v1_replica_set_spec.V1ReplicaSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replica_set_status.py b/kubernetes/test/test_v1_replica_set_status.py index a3251b10be..4a1d157bc7 100644 --- a/kubernetes/test/test_v1_replica_set_status.py +++ b/kubernetes/test/test_v1_replica_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus class TestV1ReplicaSetStatus(unittest.TestCase): - """ V1ReplicaSetStatus unit test stubs """ + """V1ReplicaSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicaSetStatus(self): - """ - Test V1ReplicaSetStatus - """ + """Test V1ReplicaSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replica_set_status.V1ReplicaSetStatus() + # model = kubernetes.client.models.v1_replica_set_status.V1ReplicaSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replication_controller.py b/kubernetes/test/test_v1_replication_controller.py index 028e7e7c9e..69c04d2556 100644 --- a/kubernetes/test/test_v1_replication_controller.py +++ b/kubernetes/test/test_v1_replication_controller.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replication_controller import V1ReplicationController # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replication_controller import V1ReplicationController class TestV1ReplicationController(unittest.TestCase): - """ V1ReplicationController unit test stubs """ + """V1ReplicationController unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicationController(self): - """ - Test V1ReplicationController - """ + """Test V1ReplicationController""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replication_controller.V1ReplicationController() + # model = kubernetes.client.models.v1_replication_controller.V1ReplicationController() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replication_controller_condition.py b/kubernetes/test/test_v1_replication_controller_condition.py index 67010f85a1..d58f866781 100644 --- a/kubernetes/test/test_v1_replication_controller_condition.py +++ b/kubernetes/test/test_v1_replication_controller_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition class TestV1ReplicationControllerCondition(unittest.TestCase): - """ V1ReplicationControllerCondition unit test stubs """ + """V1ReplicationControllerCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicationControllerCondition(self): - """ - Test V1ReplicationControllerCondition - """ + """Test V1ReplicationControllerCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replication_controller_condition.V1ReplicationControllerCondition() + # model = kubernetes.client.models.v1_replication_controller_condition.V1ReplicationControllerCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replication_controller_list.py b/kubernetes/test/test_v1_replication_controller_list.py index 2f7bf67538..7ce0c35995 100644 --- a/kubernetes/test/test_v1_replication_controller_list.py +++ b/kubernetes/test/test_v1_replication_controller_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList class TestV1ReplicationControllerList(unittest.TestCase): - """ V1ReplicationControllerList unit test stubs """ + """V1ReplicationControllerList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicationControllerList(self): - """ - Test V1ReplicationControllerList - """ + """Test V1ReplicationControllerList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replication_controller_list.V1ReplicationControllerList() + # model = kubernetes.client.models.v1_replication_controller_list.V1ReplicationControllerList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replication_controller_spec.py b/kubernetes/test/test_v1_replication_controller_spec.py index 929d86b198..1dd97c3fe1 100644 --- a/kubernetes/test/test_v1_replication_controller_spec.py +++ b/kubernetes/test/test_v1_replication_controller_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec class TestV1ReplicationControllerSpec(unittest.TestCase): - """ V1ReplicationControllerSpec unit test stubs """ + """V1ReplicationControllerSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicationControllerSpec(self): - """ - Test V1ReplicationControllerSpec - """ + """Test V1ReplicationControllerSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replication_controller_spec.V1ReplicationControllerSpec() + # model = kubernetes.client.models.v1_replication_controller_spec.V1ReplicationControllerSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_replication_controller_status.py b/kubernetes/test/test_v1_replication_controller_status.py index 8749d991ff..2b34407e28 100644 --- a/kubernetes/test/test_v1_replication_controller_status.py +++ b/kubernetes/test/test_v1_replication_controller_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus class TestV1ReplicationControllerStatus(unittest.TestCase): - """ V1ReplicationControllerStatus unit test stubs """ + """V1ReplicationControllerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ReplicationControllerStatus(self): - """ - Test V1ReplicationControllerStatus - """ + """Test V1ReplicationControllerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_replication_controller_status.V1ReplicationControllerStatus() + # model = kubernetes.client.models.v1_replication_controller_status.V1ReplicationControllerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_attributes.py b/kubernetes/test/test_v1_resource_attributes.py index 5b195df57b..cdf6dc7bd6 100644 --- a/kubernetes/test/test_v1_resource_attributes.py +++ b/kubernetes/test/test_v1_resource_attributes.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes class TestV1ResourceAttributes(unittest.TestCase): - """ V1ResourceAttributes unit test stubs """ + """V1ResourceAttributes unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceAttributes(self): - """ - Test V1ResourceAttributes - """ + """Test V1ResourceAttributes""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_attributes.V1ResourceAttributes() + # model = kubernetes.client.models.v1_resource_attributes.V1ResourceAttributes() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_field_selector.py b/kubernetes/test/test_v1_resource_field_selector.py index 506615981d..1a8596d30a 100644 --- a/kubernetes/test/test_v1_resource_field_selector.py +++ b/kubernetes/test/test_v1_resource_field_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector class TestV1ResourceFieldSelector(unittest.TestCase): - """ V1ResourceFieldSelector unit test stubs """ + """V1ResourceFieldSelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceFieldSelector(self): - """ - Test V1ResourceFieldSelector - """ + """Test V1ResourceFieldSelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_field_selector.V1ResourceFieldSelector() + # model = kubernetes.client.models.v1_resource_field_selector.V1ResourceFieldSelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_quota.py b/kubernetes/test/test_v1_resource_quota.py index 07aa9f6137..dfadf15207 100644 --- a/kubernetes/test/test_v1_resource_quota.py +++ b/kubernetes/test/test_v1_resource_quota.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_quota import V1ResourceQuota # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_quota import V1ResourceQuota class TestV1ResourceQuota(unittest.TestCase): - """ V1ResourceQuota unit test stubs """ + """V1ResourceQuota unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceQuota(self): - """ - Test V1ResourceQuota - """ + """Test V1ResourceQuota""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_quota.V1ResourceQuota() + # model = kubernetes.client.models.v1_resource_quota.V1ResourceQuota() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_quota_list.py b/kubernetes/test/test_v1_resource_quota_list.py index a49c76ea19..2dac00150e 100644 --- a/kubernetes/test/test_v1_resource_quota_list.py +++ b/kubernetes/test/test_v1_resource_quota_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList class TestV1ResourceQuotaList(unittest.TestCase): - """ V1ResourceQuotaList unit test stubs """ + """V1ResourceQuotaList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceQuotaList(self): - """ - Test V1ResourceQuotaList - """ + """Test V1ResourceQuotaList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_quota_list.V1ResourceQuotaList() + # model = kubernetes.client.models.v1_resource_quota_list.V1ResourceQuotaList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_quota_spec.py b/kubernetes/test/test_v1_resource_quota_spec.py index 1db85cd3aa..07994c1c24 100644 --- a/kubernetes/test/test_v1_resource_quota_spec.py +++ b/kubernetes/test/test_v1_resource_quota_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec class TestV1ResourceQuotaSpec(unittest.TestCase): - """ V1ResourceQuotaSpec unit test stubs """ + """V1ResourceQuotaSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceQuotaSpec(self): - """ - Test V1ResourceQuotaSpec - """ + """Test V1ResourceQuotaSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_quota_spec.V1ResourceQuotaSpec() + # model = kubernetes.client.models.v1_resource_quota_spec.V1ResourceQuotaSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_quota_status.py b/kubernetes/test/test_v1_resource_quota_status.py index 1f6e5f42cc..c37ff4999a 100644 --- a/kubernetes/test/test_v1_resource_quota_status.py +++ b/kubernetes/test/test_v1_resource_quota_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus class TestV1ResourceQuotaStatus(unittest.TestCase): - """ V1ResourceQuotaStatus unit test stubs """ + """V1ResourceQuotaStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceQuotaStatus(self): - """ - Test V1ResourceQuotaStatus - """ + """Test V1ResourceQuotaStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_quota_status.V1ResourceQuotaStatus() + # model = kubernetes.client.models.v1_resource_quota_status.V1ResourceQuotaStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_requirements.py b/kubernetes/test/test_v1_resource_requirements.py index 8dea45e20e..83990a3db7 100644 --- a/kubernetes/test/test_v1_resource_requirements.py +++ b/kubernetes/test/test_v1_resource_requirements.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements class TestV1ResourceRequirements(unittest.TestCase): - """ V1ResourceRequirements unit test stubs """ + """V1ResourceRequirements unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceRequirements(self): - """ - Test V1ResourceRequirements - """ + """Test V1ResourceRequirements""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_requirements.V1ResourceRequirements() + # model = kubernetes.client.models.v1_resource_requirements.V1ResourceRequirements() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_resource_rule.py b/kubernetes/test/test_v1_resource_rule.py index 7a97e6bed3..3403c7d079 100644 --- a/kubernetes/test/test_v1_resource_rule.py +++ b/kubernetes/test/test_v1_resource_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_resource_rule import V1ResourceRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_resource_rule import V1ResourceRule class TestV1ResourceRule(unittest.TestCase): - """ V1ResourceRule unit test stubs """ + """V1ResourceRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ResourceRule(self): - """ - Test V1ResourceRule - """ + """Test V1ResourceRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_resource_rule.V1ResourceRule() + # model = kubernetes.client.models.v1_resource_rule.V1ResourceRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_role.py b/kubernetes/test/test_v1_role.py index c8d3a0b405..4a5b3121db 100644 --- a/kubernetes/test/test_v1_role.py +++ b/kubernetes/test/test_v1_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_role import V1Role # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_role import V1Role class TestV1Role(unittest.TestCase): - """ V1Role unit test stubs """ + """V1Role unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Role(self): - """ - Test V1Role - """ + """Test V1Role""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_role.V1Role() + # model = kubernetes.client.models.v1_role.V1Role() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_role_binding.py b/kubernetes/test/test_v1_role_binding.py index 239764ae7d..8762fbc3d1 100644 --- a/kubernetes/test/test_v1_role_binding.py +++ b/kubernetes/test/test_v1_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_role_binding import V1RoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_role_binding import V1RoleBinding class TestV1RoleBinding(unittest.TestCase): - """ V1RoleBinding unit test stubs """ + """V1RoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RoleBinding(self): - """ - Test V1RoleBinding - """ + """Test V1RoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_role_binding.V1RoleBinding() + # model = kubernetes.client.models.v1_role_binding.V1RoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_role_binding_list.py b/kubernetes/test/test_v1_role_binding_list.py index 64482b8816..3bab1c53d9 100644 --- a/kubernetes/test/test_v1_role_binding_list.py +++ b/kubernetes/test/test_v1_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList class TestV1RoleBindingList(unittest.TestCase): - """ V1RoleBindingList unit test stubs """ + """V1RoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RoleBindingList(self): - """ - Test V1RoleBindingList - """ + """Test V1RoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_role_binding_list.V1RoleBindingList() + # model = kubernetes.client.models.v1_role_binding_list.V1RoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_role_list.py b/kubernetes/test/test_v1_role_list.py index d511d2cd0e..4694a1be97 100644 --- a/kubernetes/test/test_v1_role_list.py +++ b/kubernetes/test/test_v1_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_role_list import V1RoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_role_list import V1RoleList class TestV1RoleList(unittest.TestCase): - """ V1RoleList unit test stubs """ + """V1RoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RoleList(self): - """ - Test V1RoleList - """ + """Test V1RoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_role_list.V1RoleList() + # model = kubernetes.client.models.v1_role_list.V1RoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_role_ref.py b/kubernetes/test/test_v1_role_ref.py index 822c2f91d5..9d7daf2c28 100644 --- a/kubernetes/test/test_v1_role_ref.py +++ b/kubernetes/test/test_v1_role_ref.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_role_ref import V1RoleRef # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_role_ref import V1RoleRef class TestV1RoleRef(unittest.TestCase): - """ V1RoleRef unit test stubs """ + """V1RoleRef unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RoleRef(self): - """ - Test V1RoleRef - """ + """Test V1RoleRef""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_role_ref.V1RoleRef() + # model = kubernetes.client.models.v1_role_ref.V1RoleRef() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_rolling_update_daemon_set.py b/kubernetes/test/test_v1_rolling_update_daemon_set.py index 81cbc5ae12..95d6c22090 100644 --- a/kubernetes/test/test_v1_rolling_update_daemon_set.py +++ b/kubernetes/test/test_v1_rolling_update_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet class TestV1RollingUpdateDaemonSet(unittest.TestCase): - """ V1RollingUpdateDaemonSet unit test stubs """ + """V1RollingUpdateDaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RollingUpdateDaemonSet(self): - """ - Test V1RollingUpdateDaemonSet - """ + """Test V1RollingUpdateDaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_rolling_update_daemon_set.V1RollingUpdateDaemonSet() + # model = kubernetes.client.models.v1_rolling_update_daemon_set.V1RollingUpdateDaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_rolling_update_deployment.py b/kubernetes/test/test_v1_rolling_update_deployment.py index fe307f0f5c..df050971d3 100644 --- a/kubernetes/test/test_v1_rolling_update_deployment.py +++ b/kubernetes/test/test_v1_rolling_update_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment class TestV1RollingUpdateDeployment(unittest.TestCase): - """ V1RollingUpdateDeployment unit test stubs """ + """V1RollingUpdateDeployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RollingUpdateDeployment(self): - """ - Test V1RollingUpdateDeployment - """ + """Test V1RollingUpdateDeployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_rolling_update_deployment.V1RollingUpdateDeployment() + # model = kubernetes.client.models.v1_rolling_update_deployment.V1RollingUpdateDeployment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py index 1ef3a1f2fd..816d85e2ad 100644 --- a/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy class TestV1RollingUpdateStatefulSetStrategy(unittest.TestCase): - """ V1RollingUpdateStatefulSetStrategy unit test stubs """ + """V1RollingUpdateStatefulSetStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1RollingUpdateStatefulSetStrategy(self): - """ - Test V1RollingUpdateStatefulSetStrategy - """ + """Test V1RollingUpdateStatefulSetStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_rolling_update_stateful_set_strategy.V1RollingUpdateStatefulSetStrategy() + # model = kubernetes.client.models.v1_rolling_update_stateful_set_strategy.V1RollingUpdateStatefulSetStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scale.py b/kubernetes/test/test_v1_scale.py index 8ab0d411f4..632325e603 100644 --- a/kubernetes/test/test_v1_scale.py +++ b/kubernetes/test/test_v1_scale.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scale import V1Scale # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale import V1Scale class TestV1Scale(unittest.TestCase): - """ V1Scale unit test stubs """ + """V1Scale unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Scale(self): - """ - Test V1Scale - """ + """Test V1Scale""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scale.V1Scale() + # model = kubernetes.client.models.v1_scale.V1Scale() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scale_io_persistent_volume_source.py b/kubernetes/test/test_v1_scale_io_persistent_volume_source.py index aa0e08d3be..ddda485982 100644 --- a/kubernetes/test/test_v1_scale_io_persistent_volume_source.py +++ b/kubernetes/test/test_v1_scale_io_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource class TestV1ScaleIOPersistentVolumeSource(unittest.TestCase): - """ V1ScaleIOPersistentVolumeSource unit test stubs """ + """V1ScaleIOPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScaleIOPersistentVolumeSource(self): - """ - Test V1ScaleIOPersistentVolumeSource - """ + """Test V1ScaleIOPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scale_io_persistent_volume_source.V1ScaleIOPersistentVolumeSource() + # model = kubernetes.client.models.v1_scale_io_persistent_volume_source.V1ScaleIOPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scale_io_volume_source.py b/kubernetes/test/test_v1_scale_io_volume_source.py index d755e1798c..285d378bd7 100644 --- a/kubernetes/test/test_v1_scale_io_volume_source.py +++ b/kubernetes/test/test_v1_scale_io_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource class TestV1ScaleIOVolumeSource(unittest.TestCase): - """ V1ScaleIOVolumeSource unit test stubs """ + """V1ScaleIOVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScaleIOVolumeSource(self): - """ - Test V1ScaleIOVolumeSource - """ + """Test V1ScaleIOVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scale_io_volume_source.V1ScaleIOVolumeSource() + # model = kubernetes.client.models.v1_scale_io_volume_source.V1ScaleIOVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scale_spec.py b/kubernetes/test/test_v1_scale_spec.py index 22ca79a080..b118005d12 100644 --- a/kubernetes/test/test_v1_scale_spec.py +++ b/kubernetes/test/test_v1_scale_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scale_spec import V1ScaleSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale_spec import V1ScaleSpec class TestV1ScaleSpec(unittest.TestCase): - """ V1ScaleSpec unit test stubs """ + """V1ScaleSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScaleSpec(self): - """ - Test V1ScaleSpec - """ + """Test V1ScaleSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scale_spec.V1ScaleSpec() + # model = kubernetes.client.models.v1_scale_spec.V1ScaleSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scale_status.py b/kubernetes/test/test_v1_scale_status.py index 643445753c..d3730859f3 100644 --- a/kubernetes/test/test_v1_scale_status.py +++ b/kubernetes/test/test_v1_scale_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scale_status import V1ScaleStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scale_status import V1ScaleStatus class TestV1ScaleStatus(unittest.TestCase): - """ V1ScaleStatus unit test stubs """ + """V1ScaleStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScaleStatus(self): - """ - Test V1ScaleStatus - """ + """Test V1ScaleStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scale_status.V1ScaleStatus() + # model = kubernetes.client.models.v1_scale_status.V1ScaleStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scope_selector.py b/kubernetes/test/test_v1_scope_selector.py index 20b45fb384..53db8c2fe9 100644 --- a/kubernetes/test/test_v1_scope_selector.py +++ b/kubernetes/test/test_v1_scope_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scope_selector import V1ScopeSelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scope_selector import V1ScopeSelector class TestV1ScopeSelector(unittest.TestCase): - """ V1ScopeSelector unit test stubs """ + """V1ScopeSelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScopeSelector(self): - """ - Test V1ScopeSelector - """ + """Test V1ScopeSelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scope_selector.V1ScopeSelector() + # model = kubernetes.client.models.v1_scope_selector.V1ScopeSelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_scoped_resource_selector_requirement.py b/kubernetes/test/test_v1_scoped_resource_selector_requirement.py index 55d12b855b..5f7157e243 100644 --- a/kubernetes/test/test_v1_scoped_resource_selector_requirement.py +++ b/kubernetes/test/test_v1_scoped_resource_selector_requirement.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement class TestV1ScopedResourceSelectorRequirement(unittest.TestCase): - """ V1ScopedResourceSelectorRequirement unit test stubs """ + """V1ScopedResourceSelectorRequirement unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ScopedResourceSelectorRequirement(self): - """ - Test V1ScopedResourceSelectorRequirement - """ + """Test V1ScopedResourceSelectorRequirement""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_scoped_resource_selector_requirement.V1ScopedResourceSelectorRequirement() + # model = kubernetes.client.models.v1_scoped_resource_selector_requirement.V1ScopedResourceSelectorRequirement() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_se_linux_options.py b/kubernetes/test/test_v1_se_linux_options.py index b7d278b234..2fbfe571b0 100644 --- a/kubernetes/test/test_v1_se_linux_options.py +++ b/kubernetes/test/test_v1_se_linux_options.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions class TestV1SELinuxOptions(unittest.TestCase): - """ V1SELinuxOptions unit test stubs """ + """V1SELinuxOptions unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SELinuxOptions(self): - """ - Test V1SELinuxOptions - """ + """Test V1SELinuxOptions""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_se_linux_options.V1SELinuxOptions() + # model = kubernetes.client.models.v1_se_linux_options.V1SELinuxOptions() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret.py b/kubernetes/test/test_v1_secret.py index 31b074a02a..b7b7081c21 100644 --- a/kubernetes/test/test_v1_secret.py +++ b/kubernetes/test/test_v1_secret.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret import V1Secret # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret import V1Secret class TestV1Secret(unittest.TestCase): - """ V1Secret unit test stubs """ + """V1Secret unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Secret(self): - """ - Test V1Secret - """ + """Test V1Secret""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret.V1Secret() + # model = kubernetes.client.models.v1_secret.V1Secret() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_env_source.py b/kubernetes/test/test_v1_secret_env_source.py index 69646de6da..f8a0ec32b9 100644 --- a/kubernetes/test/test_v1_secret_env_source.py +++ b/kubernetes/test/test_v1_secret_env_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource class TestV1SecretEnvSource(unittest.TestCase): - """ V1SecretEnvSource unit test stubs """ + """V1SecretEnvSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretEnvSource(self): - """ - Test V1SecretEnvSource - """ + """Test V1SecretEnvSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_env_source.V1SecretEnvSource() + # model = kubernetes.client.models.v1_secret_env_source.V1SecretEnvSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_key_selector.py b/kubernetes/test/test_v1_secret_key_selector.py index 7a5b2a57ac..3a61c30e02 100644 --- a/kubernetes/test/test_v1_secret_key_selector.py +++ b/kubernetes/test/test_v1_secret_key_selector.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector class TestV1SecretKeySelector(unittest.TestCase): - """ V1SecretKeySelector unit test stubs """ + """V1SecretKeySelector unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretKeySelector(self): - """ - Test V1SecretKeySelector - """ + """Test V1SecretKeySelector""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_key_selector.V1SecretKeySelector() + # model = kubernetes.client.models.v1_secret_key_selector.V1SecretKeySelector() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_list.py b/kubernetes/test/test_v1_secret_list.py index e16d819aa5..450271cfef 100644 --- a/kubernetes/test/test_v1_secret_list.py +++ b/kubernetes/test/test_v1_secret_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_list import V1SecretList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_list import V1SecretList class TestV1SecretList(unittest.TestCase): - """ V1SecretList unit test stubs """ + """V1SecretList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretList(self): - """ - Test V1SecretList - """ + """Test V1SecretList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_list.V1SecretList() + # model = kubernetes.client.models.v1_secret_list.V1SecretList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_projection.py b/kubernetes/test/test_v1_secret_projection.py index 64d0e3b01e..15a700c2df 100644 --- a/kubernetes/test/test_v1_secret_projection.py +++ b/kubernetes/test/test_v1_secret_projection.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_projection import V1SecretProjection # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_projection import V1SecretProjection class TestV1SecretProjection(unittest.TestCase): - """ V1SecretProjection unit test stubs """ + """V1SecretProjection unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretProjection(self): - """ - Test V1SecretProjection - """ + """Test V1SecretProjection""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_projection.V1SecretProjection() + # model = kubernetes.client.models.v1_secret_projection.V1SecretProjection() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_reference.py b/kubernetes/test/test_v1_secret_reference.py index 82365e4e11..9ea3395e28 100644 --- a/kubernetes/test/test_v1_secret_reference.py +++ b/kubernetes/test/test_v1_secret_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_reference import V1SecretReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_reference import V1SecretReference class TestV1SecretReference(unittest.TestCase): - """ V1SecretReference unit test stubs """ + """V1SecretReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretReference(self): - """ - Test V1SecretReference - """ + """Test V1SecretReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_reference.V1SecretReference() + # model = kubernetes.client.models.v1_secret_reference.V1SecretReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_secret_volume_source.py b/kubernetes/test/test_v1_secret_volume_source.py index 492b4b677b..f6c761d642 100644 --- a/kubernetes/test/test_v1_secret_volume_source.py +++ b/kubernetes/test/test_v1_secret_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource class TestV1SecretVolumeSource(unittest.TestCase): - """ V1SecretVolumeSource unit test stubs """ + """V1SecretVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecretVolumeSource(self): - """ - Test V1SecretVolumeSource - """ + """Test V1SecretVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_secret_volume_source.V1SecretVolumeSource() + # model = kubernetes.client.models.v1_secret_volume_source.V1SecretVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_security_context.py b/kubernetes/test/test_v1_security_context.py index a9a6d86552..89d52df307 100644 --- a/kubernetes/test/test_v1_security_context.py +++ b/kubernetes/test/test_v1_security_context.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_security_context import V1SecurityContext # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_security_context import V1SecurityContext class TestV1SecurityContext(unittest.TestCase): - """ V1SecurityContext unit test stubs """ + """V1SecurityContext unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SecurityContext(self): - """ - Test V1SecurityContext - """ + """Test V1SecurityContext""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_security_context.V1SecurityContext() + # model = kubernetes.client.models.v1_security_context.V1SecurityContext() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_self_subject_access_review.py b/kubernetes/test/test_v1_self_subject_access_review.py index 3cbdc58192..3dc3922e19 100644 --- a/kubernetes/test/test_v1_self_subject_access_review.py +++ b/kubernetes/test/test_v1_self_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview class TestV1SelfSubjectAccessReview(unittest.TestCase): - """ V1SelfSubjectAccessReview unit test stubs """ + """V1SelfSubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SelfSubjectAccessReview(self): - """ - Test V1SelfSubjectAccessReview - """ + """Test V1SelfSubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_self_subject_access_review.V1SelfSubjectAccessReview() + # model = kubernetes.client.models.v1_self_subject_access_review.V1SelfSubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_self_subject_access_review_spec.py b/kubernetes/test/test_v1_self_subject_access_review_spec.py index f5fc342767..aec48dabac 100644 --- a/kubernetes/test/test_v1_self_subject_access_review_spec.py +++ b/kubernetes/test/test_v1_self_subject_access_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec class TestV1SelfSubjectAccessReviewSpec(unittest.TestCase): - """ V1SelfSubjectAccessReviewSpec unit test stubs """ + """V1SelfSubjectAccessReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SelfSubjectAccessReviewSpec(self): - """ - Test V1SelfSubjectAccessReviewSpec - """ + """Test V1SelfSubjectAccessReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_self_subject_access_review_spec.V1SelfSubjectAccessReviewSpec() + # model = kubernetes.client.models.v1_self_subject_access_review_spec.V1SelfSubjectAccessReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_self_subject_rules_review.py b/kubernetes/test/test_v1_self_subject_rules_review.py index d7e82cd688..0f8068a176 100644 --- a/kubernetes/test/test_v1_self_subject_rules_review.py +++ b/kubernetes/test/test_v1_self_subject_rules_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview class TestV1SelfSubjectRulesReview(unittest.TestCase): - """ V1SelfSubjectRulesReview unit test stubs """ + """V1SelfSubjectRulesReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SelfSubjectRulesReview(self): - """ - Test V1SelfSubjectRulesReview - """ + """Test V1SelfSubjectRulesReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_self_subject_rules_review.V1SelfSubjectRulesReview() + # model = kubernetes.client.models.v1_self_subject_rules_review.V1SelfSubjectRulesReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_self_subject_rules_review_spec.py b/kubernetes/test/test_v1_self_subject_rules_review_spec.py index abcfb1b573..73c07399d5 100644 --- a/kubernetes/test/test_v1_self_subject_rules_review_spec.py +++ b/kubernetes/test/test_v1_self_subject_rules_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec class TestV1SelfSubjectRulesReviewSpec(unittest.TestCase): - """ V1SelfSubjectRulesReviewSpec unit test stubs """ + """V1SelfSubjectRulesReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SelfSubjectRulesReviewSpec(self): - """ - Test V1SelfSubjectRulesReviewSpec - """ + """Test V1SelfSubjectRulesReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_self_subject_rules_review_spec.V1SelfSubjectRulesReviewSpec() + # model = kubernetes.client.models.v1_self_subject_rules_review_spec.V1SelfSubjectRulesReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_server_address_by_client_cidr.py b/kubernetes/test/test_v1_server_address_by_client_cidr.py index c55b5417fc..9de45f3a86 100644 --- a/kubernetes/test/test_v1_server_address_by_client_cidr.py +++ b/kubernetes/test/test_v1_server_address_by_client_cidr.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR class TestV1ServerAddressByClientCIDR(unittest.TestCase): - """ V1ServerAddressByClientCIDR unit test stubs """ + """V1ServerAddressByClientCIDR unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServerAddressByClientCIDR(self): - """ - Test V1ServerAddressByClientCIDR - """ + """Test V1ServerAddressByClientCIDR""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() + # model = kubernetes.client.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service.py b/kubernetes/test/test_v1_service.py index 6b7cb9277a..ce2bc83443 100644 --- a/kubernetes/test/test_v1_service.py +++ b/kubernetes/test/test_v1_service.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service import V1Service # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service import V1Service class TestV1Service(unittest.TestCase): - """ V1Service unit test stubs """ + """V1Service unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Service(self): - """ - Test V1Service - """ + """Test V1Service""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service.V1Service() + # model = kubernetes.client.models.v1_service.V1Service() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_account.py b/kubernetes/test/test_v1_service_account.py index c4efc7087b..fe83f7b65f 100644 --- a/kubernetes/test/test_v1_service_account.py +++ b/kubernetes/test/test_v1_service_account.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_account import V1ServiceAccount # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_account import V1ServiceAccount class TestV1ServiceAccount(unittest.TestCase): - """ V1ServiceAccount unit test stubs """ + """V1ServiceAccount unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceAccount(self): - """ - Test V1ServiceAccount - """ + """Test V1ServiceAccount""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_account.V1ServiceAccount() + # model = kubernetes.client.models.v1_service_account.V1ServiceAccount() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_account_list.py b/kubernetes/test/test_v1_service_account_list.py index ed2bbfbf16..cdf8127b1e 100644 --- a/kubernetes/test/test_v1_service_account_list.py +++ b/kubernetes/test/test_v1_service_account_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList class TestV1ServiceAccountList(unittest.TestCase): - """ V1ServiceAccountList unit test stubs """ + """V1ServiceAccountList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceAccountList(self): - """ - Test V1ServiceAccountList - """ + """Test V1ServiceAccountList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_account_list.V1ServiceAccountList() + # model = kubernetes.client.models.v1_service_account_list.V1ServiceAccountList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_account_token_projection.py b/kubernetes/test/test_v1_service_account_token_projection.py index 5635445b6a..dcae6da6c7 100644 --- a/kubernetes/test/test_v1_service_account_token_projection.py +++ b/kubernetes/test/test_v1_service_account_token_projection.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection class TestV1ServiceAccountTokenProjection(unittest.TestCase): - """ V1ServiceAccountTokenProjection unit test stubs """ + """V1ServiceAccountTokenProjection unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceAccountTokenProjection(self): - """ - Test V1ServiceAccountTokenProjection - """ + """Test V1ServiceAccountTokenProjection""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_account_token_projection.V1ServiceAccountTokenProjection() + # model = kubernetes.client.models.v1_service_account_token_projection.V1ServiceAccountTokenProjection() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_list.py b/kubernetes/test/test_v1_service_list.py index f595626464..2427b53caf 100644 --- a/kubernetes/test/test_v1_service_list.py +++ b/kubernetes/test/test_v1_service_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_list import V1ServiceList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_list import V1ServiceList class TestV1ServiceList(unittest.TestCase): - """ V1ServiceList unit test stubs """ + """V1ServiceList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceList(self): - """ - Test V1ServiceList - """ + """Test V1ServiceList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_list.V1ServiceList() + # model = kubernetes.client.models.v1_service_list.V1ServiceList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_port.py b/kubernetes/test/test_v1_service_port.py index a202c1344c..12c82ab582 100644 --- a/kubernetes/test/test_v1_service_port.py +++ b/kubernetes/test/test_v1_service_port.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_port import V1ServicePort # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_port import V1ServicePort class TestV1ServicePort(unittest.TestCase): - """ V1ServicePort unit test stubs """ + """V1ServicePort unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServicePort(self): - """ - Test V1ServicePort - """ + """Test V1ServicePort""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_port.V1ServicePort() + # model = kubernetes.client.models.v1_service_port.V1ServicePort() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_reference.py b/kubernetes/test/test_v1_service_reference.py index bf4af96fa8..1b956fe5b4 100644 --- a/kubernetes/test/test_v1_service_reference.py +++ b/kubernetes/test/test_v1_service_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_reference import V1ServiceReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_reference import V1ServiceReference class TestV1ServiceReference(unittest.TestCase): - """ V1ServiceReference unit test stubs """ + """V1ServiceReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceReference(self): - """ - Test V1ServiceReference - """ + """Test V1ServiceReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_reference.V1ServiceReference() + # model = kubernetes.client.models.v1_service_reference.V1ServiceReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_spec.py b/kubernetes/test/test_v1_service_spec.py index ba28399945..e381d883c8 100644 --- a/kubernetes/test/test_v1_service_spec.py +++ b/kubernetes/test/test_v1_service_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_spec import V1ServiceSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_spec import V1ServiceSpec class TestV1ServiceSpec(unittest.TestCase): - """ V1ServiceSpec unit test stubs """ + """V1ServiceSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceSpec(self): - """ - Test V1ServiceSpec - """ + """Test V1ServiceSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_spec.V1ServiceSpec() + # model = kubernetes.client.models.v1_service_spec.V1ServiceSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_service_status.py b/kubernetes/test/test_v1_service_status.py index 66136051f8..f4293e9612 100644 --- a/kubernetes/test/test_v1_service_status.py +++ b/kubernetes/test/test_v1_service_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_service_status import V1ServiceStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_service_status import V1ServiceStatus class TestV1ServiceStatus(unittest.TestCase): - """ V1ServiceStatus unit test stubs """ + """V1ServiceStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1ServiceStatus(self): - """ - Test V1ServiceStatus - """ + """Test V1ServiceStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_service_status.V1ServiceStatus() + # model = kubernetes.client.models.v1_service_status.V1ServiceStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_session_affinity_config.py b/kubernetes/test/test_v1_session_affinity_config.py index 64eff000e0..cb07f28a57 100644 --- a/kubernetes/test/test_v1_session_affinity_config.py +++ b/kubernetes/test/test_v1_session_affinity_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig class TestV1SessionAffinityConfig(unittest.TestCase): - """ V1SessionAffinityConfig unit test stubs """ + """V1SessionAffinityConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SessionAffinityConfig(self): - """ - Test V1SessionAffinityConfig - """ + """Test V1SessionAffinityConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_session_affinity_config.V1SessionAffinityConfig() + # model = kubernetes.client.models.v1_session_affinity_config.V1SessionAffinityConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set.py b/kubernetes/test/test_v1_stateful_set.py index b8ba89f479..53b31640bf 100644 --- a/kubernetes/test/test_v1_stateful_set.py +++ b/kubernetes/test/test_v1_stateful_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set import V1StatefulSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set import V1StatefulSet class TestV1StatefulSet(unittest.TestCase): - """ V1StatefulSet unit test stubs """ + """V1StatefulSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSet(self): - """ - Test V1StatefulSet - """ + """Test V1StatefulSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set.V1StatefulSet() + # model = kubernetes.client.models.v1_stateful_set.V1StatefulSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set_condition.py b/kubernetes/test/test_v1_stateful_set_condition.py index 8834f361b3..490d0e8f5b 100644 --- a/kubernetes/test/test_v1_stateful_set_condition.py +++ b/kubernetes/test/test_v1_stateful_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition class TestV1StatefulSetCondition(unittest.TestCase): - """ V1StatefulSetCondition unit test stubs """ + """V1StatefulSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSetCondition(self): - """ - Test V1StatefulSetCondition - """ + """Test V1StatefulSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set_condition.V1StatefulSetCondition() + # model = kubernetes.client.models.v1_stateful_set_condition.V1StatefulSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set_list.py b/kubernetes/test/test_v1_stateful_set_list.py index 16882fc2d3..db122b32ae 100644 --- a/kubernetes/test/test_v1_stateful_set_list.py +++ b/kubernetes/test/test_v1_stateful_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList class TestV1StatefulSetList(unittest.TestCase): - """ V1StatefulSetList unit test stubs """ + """V1StatefulSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSetList(self): - """ - Test V1StatefulSetList - """ + """Test V1StatefulSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set_list.V1StatefulSetList() + # model = kubernetes.client.models.v1_stateful_set_list.V1StatefulSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set_spec.py b/kubernetes/test/test_v1_stateful_set_spec.py index 5afaebaa1b..3510563535 100644 --- a/kubernetes/test/test_v1_stateful_set_spec.py +++ b/kubernetes/test/test_v1_stateful_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec class TestV1StatefulSetSpec(unittest.TestCase): - """ V1StatefulSetSpec unit test stubs """ + """V1StatefulSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSetSpec(self): - """ - Test V1StatefulSetSpec - """ + """Test V1StatefulSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set_spec.V1StatefulSetSpec() + # model = kubernetes.client.models.v1_stateful_set_spec.V1StatefulSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set_status.py b/kubernetes/test/test_v1_stateful_set_status.py index 5c939b1690..8a0414603c 100644 --- a/kubernetes/test/test_v1_stateful_set_status.py +++ b/kubernetes/test/test_v1_stateful_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus class TestV1StatefulSetStatus(unittest.TestCase): - """ V1StatefulSetStatus unit test stubs """ + """V1StatefulSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSetStatus(self): - """ - Test V1StatefulSetStatus - """ + """Test V1StatefulSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set_status.V1StatefulSetStatus() + # model = kubernetes.client.models.v1_stateful_set_status.V1StatefulSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_stateful_set_update_strategy.py b/kubernetes/test/test_v1_stateful_set_update_strategy.py index 2025374630..6d100e3317 100644 --- a/kubernetes/test/test_v1_stateful_set_update_strategy.py +++ b/kubernetes/test/test_v1_stateful_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy class TestV1StatefulSetUpdateStrategy(unittest.TestCase): - """ V1StatefulSetUpdateStrategy unit test stubs """ + """V1StatefulSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatefulSetUpdateStrategy(self): - """ - Test V1StatefulSetUpdateStrategy - """ + """Test V1StatefulSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_stateful_set_update_strategy.V1StatefulSetUpdateStrategy() + # model = kubernetes.client.models.v1_stateful_set_update_strategy.V1StatefulSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_status.py b/kubernetes/test/test_v1_status.py index be22962f12..25ffc73df0 100644 --- a/kubernetes/test/test_v1_status.py +++ b/kubernetes/test/test_v1_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_status import V1Status # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status import V1Status class TestV1Status(unittest.TestCase): - """ V1Status unit test stubs """ + """V1Status unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Status(self): - """ - Test V1Status - """ + """Test V1Status""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_status.V1Status() + # model = kubernetes.client.models.v1_status.V1Status() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_status_cause.py b/kubernetes/test/test_v1_status_cause.py index 65c16f0a41..7f6dbc5eed 100644 --- a/kubernetes/test/test_v1_status_cause.py +++ b/kubernetes/test/test_v1_status_cause.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_status_cause import V1StatusCause # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status_cause import V1StatusCause class TestV1StatusCause(unittest.TestCase): - """ V1StatusCause unit test stubs """ + """V1StatusCause unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatusCause(self): - """ - Test V1StatusCause - """ + """Test V1StatusCause""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_status_cause.V1StatusCause() + # model = kubernetes.client.models.v1_status_cause.V1StatusCause() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_status_details.py b/kubernetes/test/test_v1_status_details.py index 028eee5e0f..12cb349f5a 100644 --- a/kubernetes/test/test_v1_status_details.py +++ b/kubernetes/test/test_v1_status_details.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_status_details import V1StatusDetails # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_status_details import V1StatusDetails class TestV1StatusDetails(unittest.TestCase): - """ V1StatusDetails unit test stubs """ + """V1StatusDetails unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StatusDetails(self): - """ - Test V1StatusDetails - """ + """Test V1StatusDetails""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_status_details.V1StatusDetails() + # model = kubernetes.client.models.v1_status_details.V1StatusDetails() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_storage_class.py b/kubernetes/test/test_v1_storage_class.py index 418226e108..7d5a850be1 100644 --- a/kubernetes/test/test_v1_storage_class.py +++ b/kubernetes/test/test_v1_storage_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_storage_class import V1StorageClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_class import V1StorageClass class TestV1StorageClass(unittest.TestCase): - """ V1StorageClass unit test stubs """ + """V1StorageClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StorageClass(self): - """ - Test V1StorageClass - """ + """Test V1StorageClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_storage_class.V1StorageClass() + # model = kubernetes.client.models.v1_storage_class.V1StorageClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_storage_class_list.py b/kubernetes/test/test_v1_storage_class_list.py index ed973b6a31..d3fc801b13 100644 --- a/kubernetes/test/test_v1_storage_class_list.py +++ b/kubernetes/test/test_v1_storage_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_storage_class_list import V1StorageClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_class_list import V1StorageClassList class TestV1StorageClassList(unittest.TestCase): - """ V1StorageClassList unit test stubs """ + """V1StorageClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StorageClassList(self): - """ - Test V1StorageClassList - """ + """Test V1StorageClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_storage_class_list.V1StorageClassList() + # model = kubernetes.client.models.v1_storage_class_list.V1StorageClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_storage_os_persistent_volume_source.py b/kubernetes/test/test_v1_storage_os_persistent_volume_source.py index a49def539c..87cd28cbb6 100644 --- a/kubernetes/test/test_v1_storage_os_persistent_volume_source.py +++ b/kubernetes/test/test_v1_storage_os_persistent_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource class TestV1StorageOSPersistentVolumeSource(unittest.TestCase): - """ V1StorageOSPersistentVolumeSource unit test stubs """ + """V1StorageOSPersistentVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StorageOSPersistentVolumeSource(self): - """ - Test V1StorageOSPersistentVolumeSource - """ + """Test V1StorageOSPersistentVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_storage_os_persistent_volume_source.V1StorageOSPersistentVolumeSource() + # model = kubernetes.client.models.v1_storage_os_persistent_volume_source.V1StorageOSPersistentVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_storage_os_volume_source.py b/kubernetes/test/test_v1_storage_os_volume_source.py index e36d221a76..a5ac64d1a2 100644 --- a/kubernetes/test/test_v1_storage_os_volume_source.py +++ b/kubernetes/test/test_v1_storage_os_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource class TestV1StorageOSVolumeSource(unittest.TestCase): - """ V1StorageOSVolumeSource unit test stubs """ + """V1StorageOSVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1StorageOSVolumeSource(self): - """ - Test V1StorageOSVolumeSource - """ + """Test V1StorageOSVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_storage_os_volume_source.V1StorageOSVolumeSource() + # model = kubernetes.client.models.v1_storage_os_volume_source.V1StorageOSVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_subject.py b/kubernetes/test/test_v1_subject.py index b3b0beb858..bd2578b4bf 100644 --- a/kubernetes/test/test_v1_subject.py +++ b/kubernetes/test/test_v1_subject.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_subject import V1Subject # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject import V1Subject class TestV1Subject(unittest.TestCase): - """ V1Subject unit test stubs """ + """V1Subject unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Subject(self): - """ - Test V1Subject - """ + """Test V1Subject""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_subject.V1Subject() + # model = kubernetes.client.models.v1_subject.V1Subject() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_subject_access_review.py b/kubernetes/test/test_v1_subject_access_review.py index 434a11c5fd..93c698a426 100644 --- a/kubernetes/test/test_v1_subject_access_review.py +++ b/kubernetes/test/test_v1_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview class TestV1SubjectAccessReview(unittest.TestCase): - """ V1SubjectAccessReview unit test stubs """ + """V1SubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SubjectAccessReview(self): - """ - Test V1SubjectAccessReview - """ + """Test V1SubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_subject_access_review.V1SubjectAccessReview() + # model = kubernetes.client.models.v1_subject_access_review.V1SubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_subject_access_review_spec.py b/kubernetes/test/test_v1_subject_access_review_spec.py index a1a44015f5..44cd36f835 100644 --- a/kubernetes/test/test_v1_subject_access_review_spec.py +++ b/kubernetes/test/test_v1_subject_access_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec class TestV1SubjectAccessReviewSpec(unittest.TestCase): - """ V1SubjectAccessReviewSpec unit test stubs """ + """V1SubjectAccessReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SubjectAccessReviewSpec(self): - """ - Test V1SubjectAccessReviewSpec - """ + """Test V1SubjectAccessReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_subject_access_review_spec.V1SubjectAccessReviewSpec() + # model = kubernetes.client.models.v1_subject_access_review_spec.V1SubjectAccessReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_subject_access_review_status.py b/kubernetes/test/test_v1_subject_access_review_status.py index 96f46a8712..5bb9e34077 100644 --- a/kubernetes/test/test_v1_subject_access_review_status.py +++ b/kubernetes/test/test_v1_subject_access_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus class TestV1SubjectAccessReviewStatus(unittest.TestCase): - """ V1SubjectAccessReviewStatus unit test stubs """ + """V1SubjectAccessReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SubjectAccessReviewStatus(self): - """ - Test V1SubjectAccessReviewStatus - """ + """Test V1SubjectAccessReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_subject_access_review_status.V1SubjectAccessReviewStatus() + # model = kubernetes.client.models.v1_subject_access_review_status.V1SubjectAccessReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_subject_rules_review_status.py b/kubernetes/test/test_v1_subject_rules_review_status.py index 19ba44ba62..bdcaf76cac 100644 --- a/kubernetes/test/test_v1_subject_rules_review_status.py +++ b/kubernetes/test/test_v1_subject_rules_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus class TestV1SubjectRulesReviewStatus(unittest.TestCase): - """ V1SubjectRulesReviewStatus unit test stubs """ + """V1SubjectRulesReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1SubjectRulesReviewStatus(self): - """ - Test V1SubjectRulesReviewStatus - """ + """Test V1SubjectRulesReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_subject_rules_review_status.V1SubjectRulesReviewStatus() + # model = kubernetes.client.models.v1_subject_rules_review_status.V1SubjectRulesReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_sysctl.py b/kubernetes/test/test_v1_sysctl.py index 8636c11fb3..9a2baf8a95 100644 --- a/kubernetes/test/test_v1_sysctl.py +++ b/kubernetes/test/test_v1_sysctl.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_sysctl import V1Sysctl # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_sysctl import V1Sysctl class TestV1Sysctl(unittest.TestCase): - """ V1Sysctl unit test stubs """ + """V1Sysctl unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Sysctl(self): - """ - Test V1Sysctl - """ + """Test V1Sysctl""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_sysctl.V1Sysctl() + # model = kubernetes.client.models.v1_sysctl.V1Sysctl() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_taint.py b/kubernetes/test/test_v1_taint.py index 9a2f3ae969..db580e5b10 100644 --- a/kubernetes/test/test_v1_taint.py +++ b/kubernetes/test/test_v1_taint.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_taint import V1Taint # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_taint import V1Taint class TestV1Taint(unittest.TestCase): - """ V1Taint unit test stubs """ + """V1Taint unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Taint(self): - """ - Test V1Taint - """ + """Test V1Taint""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_taint.V1Taint() + # model = kubernetes.client.models.v1_taint.V1Taint() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_tcp_socket_action.py b/kubernetes/test/test_v1_tcp_socket_action.py index 7433495625..bfd08b1a2e 100644 --- a/kubernetes/test/test_v1_tcp_socket_action.py +++ b/kubernetes/test/test_v1_tcp_socket_action.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction class TestV1TCPSocketAction(unittest.TestCase): - """ V1TCPSocketAction unit test stubs """ + """V1TCPSocketAction unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TCPSocketAction(self): - """ - Test V1TCPSocketAction - """ + """Test V1TCPSocketAction""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_tcp_socket_action.V1TCPSocketAction() + # model = kubernetes.client.models.v1_tcp_socket_action.V1TCPSocketAction() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_token_review.py b/kubernetes/test/test_v1_token_review.py index b6945591ea..4f25afa62c 100644 --- a/kubernetes/test/test_v1_token_review.py +++ b/kubernetes/test/test_v1_token_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_token_review import V1TokenReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review import V1TokenReview class TestV1TokenReview(unittest.TestCase): - """ V1TokenReview unit test stubs """ + """V1TokenReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TokenReview(self): - """ - Test V1TokenReview - """ + """Test V1TokenReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_token_review.V1TokenReview() + # model = kubernetes.client.models.v1_token_review.V1TokenReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_token_review_spec.py b/kubernetes/test/test_v1_token_review_spec.py index 073dd01661..958cdd587e 100644 --- a/kubernetes/test/test_v1_token_review_spec.py +++ b/kubernetes/test/test_v1_token_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec class TestV1TokenReviewSpec(unittest.TestCase): - """ V1TokenReviewSpec unit test stubs """ + """V1TokenReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TokenReviewSpec(self): - """ - Test V1TokenReviewSpec - """ + """Test V1TokenReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_token_review_spec.V1TokenReviewSpec() + # model = kubernetes.client.models.v1_token_review_spec.V1TokenReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_token_review_status.py b/kubernetes/test/test_v1_token_review_status.py index ad72f07f71..570582bc0b 100644 --- a/kubernetes/test/test_v1_token_review_status.py +++ b/kubernetes/test/test_v1_token_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus class TestV1TokenReviewStatus(unittest.TestCase): - """ V1TokenReviewStatus unit test stubs """ + """V1TokenReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TokenReviewStatus(self): - """ - Test V1TokenReviewStatus - """ + """Test V1TokenReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_token_review_status.V1TokenReviewStatus() + # model = kubernetes.client.models.v1_token_review_status.V1TokenReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_toleration.py b/kubernetes/test/test_v1_toleration.py index 9814420a3d..48f5f54e95 100644 --- a/kubernetes/test/test_v1_toleration.py +++ b/kubernetes/test/test_v1_toleration.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_toleration import V1Toleration # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_toleration import V1Toleration class TestV1Toleration(unittest.TestCase): - """ V1Toleration unit test stubs """ + """V1Toleration unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Toleration(self): - """ - Test V1Toleration - """ + """Test V1Toleration""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_toleration.V1Toleration() + # model = kubernetes.client.models.v1_toleration.V1Toleration() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_topology_selector_label_requirement.py b/kubernetes/test/test_v1_topology_selector_label_requirement.py index f310190574..293ad779a7 100644 --- a/kubernetes/test/test_v1_topology_selector_label_requirement.py +++ b/kubernetes/test/test_v1_topology_selector_label_requirement.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement class TestV1TopologySelectorLabelRequirement(unittest.TestCase): - """ V1TopologySelectorLabelRequirement unit test stubs """ + """V1TopologySelectorLabelRequirement unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TopologySelectorLabelRequirement(self): - """ - Test V1TopologySelectorLabelRequirement - """ + """Test V1TopologySelectorLabelRequirement""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_topology_selector_label_requirement.V1TopologySelectorLabelRequirement() + # model = kubernetes.client.models.v1_topology_selector_label_requirement.V1TopologySelectorLabelRequirement() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_topology_selector_term.py b/kubernetes/test/test_v1_topology_selector_term.py index 64813be2f4..cd848fb1ad 100644 --- a/kubernetes/test/test_v1_topology_selector_term.py +++ b/kubernetes/test/test_v1_topology_selector_term.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm class TestV1TopologySelectorTerm(unittest.TestCase): - """ V1TopologySelectorTerm unit test stubs """ + """V1TopologySelectorTerm unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TopologySelectorTerm(self): - """ - Test V1TopologySelectorTerm - """ + """Test V1TopologySelectorTerm""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_topology_selector_term.V1TopologySelectorTerm() + # model = kubernetes.client.models.v1_topology_selector_term.V1TopologySelectorTerm() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_typed_local_object_reference.py b/kubernetes/test/test_v1_typed_local_object_reference.py index b0df7335cf..55b073db32 100644 --- a/kubernetes/test/test_v1_typed_local_object_reference.py +++ b/kubernetes/test/test_v1_typed_local_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference class TestV1TypedLocalObjectReference(unittest.TestCase): - """ V1TypedLocalObjectReference unit test stubs """ + """V1TypedLocalObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1TypedLocalObjectReference(self): - """ - Test V1TypedLocalObjectReference - """ + """Test V1TypedLocalObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_typed_local_object_reference.V1TypedLocalObjectReference() + # model = kubernetes.client.models.v1_typed_local_object_reference.V1TypedLocalObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_user_info.py b/kubernetes/test/test_v1_user_info.py index 2d92a487f3..c7426f5c46 100644 --- a/kubernetes/test/test_v1_user_info.py +++ b/kubernetes/test/test_v1_user_info.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_user_info import V1UserInfo # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_user_info import V1UserInfo class TestV1UserInfo(unittest.TestCase): - """ V1UserInfo unit test stubs """ + """V1UserInfo unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1UserInfo(self): - """ - Test V1UserInfo - """ + """Test V1UserInfo""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_user_info.V1UserInfo() + # model = kubernetes.client.models.v1_user_info.V1UserInfo() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume.py b/kubernetes/test/test_v1_volume.py index 9d7dc120f9..f42bfbbbb1 100644 --- a/kubernetes/test/test_v1_volume.py +++ b/kubernetes/test/test_v1_volume.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume import V1Volume # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume import V1Volume class TestV1Volume(unittest.TestCase): - """ V1Volume unit test stubs """ + """V1Volume unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1Volume(self): - """ - Test V1Volume - """ + """Test V1Volume""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume.V1Volume() + # model = kubernetes.client.models.v1_volume.V1Volume() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_attachment.py b/kubernetes/test/test_v1_volume_attachment.py index d9d1e4f49f..e8fd3eaaa2 100644 --- a/kubernetes/test/test_v1_volume_attachment.py +++ b/kubernetes/test/test_v1_volume_attachment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment class TestV1VolumeAttachment(unittest.TestCase): - """ V1VolumeAttachment unit test stubs """ + """V1VolumeAttachment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeAttachment(self): - """ - Test V1VolumeAttachment - """ + """Test V1VolumeAttachment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_attachment.V1VolumeAttachment() + # model = kubernetes.client.models.v1_volume_attachment.V1VolumeAttachment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_attachment_list.py b/kubernetes/test/test_v1_volume_attachment_list.py index b516501967..0fd510dd0b 100644 --- a/kubernetes/test/test_v1_volume_attachment_list.py +++ b/kubernetes/test/test_v1_volume_attachment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList class TestV1VolumeAttachmentList(unittest.TestCase): - """ V1VolumeAttachmentList unit test stubs """ + """V1VolumeAttachmentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeAttachmentList(self): - """ - Test V1VolumeAttachmentList - """ + """Test V1VolumeAttachmentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_attachment_list.V1VolumeAttachmentList() + # model = kubernetes.client.models.v1_volume_attachment_list.V1VolumeAttachmentList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_attachment_source.py b/kubernetes/test/test_v1_volume_attachment_source.py index 014b6ddefc..3f4ecb4716 100644 --- a/kubernetes/test/test_v1_volume_attachment_source.py +++ b/kubernetes/test/test_v1_volume_attachment_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource class TestV1VolumeAttachmentSource(unittest.TestCase): - """ V1VolumeAttachmentSource unit test stubs """ + """V1VolumeAttachmentSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeAttachmentSource(self): - """ - Test V1VolumeAttachmentSource - """ + """Test V1VolumeAttachmentSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_attachment_source.V1VolumeAttachmentSource() + # model = kubernetes.client.models.v1_volume_attachment_source.V1VolumeAttachmentSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_attachment_spec.py b/kubernetes/test/test_v1_volume_attachment_spec.py index b187e24ece..11671e874d 100644 --- a/kubernetes/test/test_v1_volume_attachment_spec.py +++ b/kubernetes/test/test_v1_volume_attachment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec class TestV1VolumeAttachmentSpec(unittest.TestCase): - """ V1VolumeAttachmentSpec unit test stubs """ + """V1VolumeAttachmentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeAttachmentSpec(self): - """ - Test V1VolumeAttachmentSpec - """ + """Test V1VolumeAttachmentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_attachment_spec.V1VolumeAttachmentSpec() + # model = kubernetes.client.models.v1_volume_attachment_spec.V1VolumeAttachmentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_attachment_status.py b/kubernetes/test/test_v1_volume_attachment_status.py index 18102fc818..4d46fd1048 100644 --- a/kubernetes/test/test_v1_volume_attachment_status.py +++ b/kubernetes/test/test_v1_volume_attachment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus class TestV1VolumeAttachmentStatus(unittest.TestCase): - """ V1VolumeAttachmentStatus unit test stubs """ + """V1VolumeAttachmentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeAttachmentStatus(self): - """ - Test V1VolumeAttachmentStatus - """ + """Test V1VolumeAttachmentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_attachment_status.V1VolumeAttachmentStatus() + # model = kubernetes.client.models.v1_volume_attachment_status.V1VolumeAttachmentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_device.py b/kubernetes/test/test_v1_volume_device.py index 85255a260a..aa2b67c00b 100644 --- a/kubernetes/test/test_v1_volume_device.py +++ b/kubernetes/test/test_v1_volume_device.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_device import V1VolumeDevice # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_device import V1VolumeDevice class TestV1VolumeDevice(unittest.TestCase): - """ V1VolumeDevice unit test stubs """ + """V1VolumeDevice unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeDevice(self): - """ - Test V1VolumeDevice - """ + """Test V1VolumeDevice""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_device.V1VolumeDevice() + # model = kubernetes.client.models.v1_volume_device.V1VolumeDevice() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_error.py b/kubernetes/test/test_v1_volume_error.py index 937c75ccdb..7929af4407 100644 --- a/kubernetes/test/test_v1_volume_error.py +++ b/kubernetes/test/test_v1_volume_error.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_error import V1VolumeError # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_error import V1VolumeError class TestV1VolumeError(unittest.TestCase): - """ V1VolumeError unit test stubs """ + """V1VolumeError unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeError(self): - """ - Test V1VolumeError - """ + """Test V1VolumeError""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_error.V1VolumeError() + # model = kubernetes.client.models.v1_volume_error.V1VolumeError() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_mount.py b/kubernetes/test/test_v1_volume_mount.py index 5cebadf1c7..e1f123b481 100644 --- a/kubernetes/test/test_v1_volume_mount.py +++ b/kubernetes/test/test_v1_volume_mount.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_mount import V1VolumeMount # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_mount import V1VolumeMount class TestV1VolumeMount(unittest.TestCase): - """ V1VolumeMount unit test stubs """ + """V1VolumeMount unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeMount(self): - """ - Test V1VolumeMount - """ + """Test V1VolumeMount""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_mount.V1VolumeMount() + # model = kubernetes.client.models.v1_volume_mount.V1VolumeMount() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_node_affinity.py b/kubernetes/test/test_v1_volume_node_affinity.py index ef6e32c610..fbd9746989 100644 --- a/kubernetes/test/test_v1_volume_node_affinity.py +++ b/kubernetes/test/test_v1_volume_node_affinity.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity class TestV1VolumeNodeAffinity(unittest.TestCase): - """ V1VolumeNodeAffinity unit test stubs """ + """V1VolumeNodeAffinity unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeNodeAffinity(self): - """ - Test V1VolumeNodeAffinity - """ + """Test V1VolumeNodeAffinity""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_node_affinity.V1VolumeNodeAffinity() + # model = kubernetes.client.models.v1_volume_node_affinity.V1VolumeNodeAffinity() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_volume_projection.py b/kubernetes/test/test_v1_volume_projection.py index 3cabdc7ca0..b98c91f28a 100644 --- a/kubernetes/test/test_v1_volume_projection.py +++ b/kubernetes/test/test_v1_volume_projection.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_volume_projection import V1VolumeProjection # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_volume_projection import V1VolumeProjection class TestV1VolumeProjection(unittest.TestCase): - """ V1VolumeProjection unit test stubs """ + """V1VolumeProjection unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VolumeProjection(self): - """ - Test V1VolumeProjection - """ + """Test V1VolumeProjection""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_volume_projection.V1VolumeProjection() + # model = kubernetes.client.models.v1_volume_projection.V1VolumeProjection() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py index 782c3f8d36..1a5f828262 100644 --- a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource class TestV1VsphereVirtualDiskVolumeSource(unittest.TestCase): - """ V1VsphereVirtualDiskVolumeSource unit test stubs """ + """V1VsphereVirtualDiskVolumeSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1VsphereVirtualDiskVolumeSource(self): - """ - Test V1VsphereVirtualDiskVolumeSource - """ + """Test V1VsphereVirtualDiskVolumeSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.V1VsphereVirtualDiskVolumeSource() + # model = kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.V1VsphereVirtualDiskVolumeSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_watch_event.py b/kubernetes/test/test_v1_watch_event.py index 51ff2ac745..e6aa84b0c8 100644 --- a/kubernetes/test/test_v1_watch_event.py +++ b/kubernetes/test/test_v1_watch_event.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_watch_event import V1WatchEvent # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_watch_event import V1WatchEvent class TestV1WatchEvent(unittest.TestCase): - """ V1WatchEvent unit test stubs """ + """V1WatchEvent unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1WatchEvent(self): - """ - Test V1WatchEvent - """ + """Test V1WatchEvent""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_watch_event.V1WatchEvent() + # model = kubernetes.client.models.v1_watch_event.V1WatchEvent() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_weighted_pod_affinity_term.py b/kubernetes/test/test_v1_weighted_pod_affinity_term.py index 2cb1c6fded..45753dd3d8 100644 --- a/kubernetes/test/test_v1_weighted_pod_affinity_term.py +++ b/kubernetes/test/test_v1_weighted_pod_affinity_term.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm class TestV1WeightedPodAffinityTerm(unittest.TestCase): - """ V1WeightedPodAffinityTerm unit test stubs """ + """V1WeightedPodAffinityTerm unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1WeightedPodAffinityTerm(self): - """ - Test V1WeightedPodAffinityTerm - """ + """Test V1WeightedPodAffinityTerm""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() + # model = kubernetes.client.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() # noqa: E501 pass diff --git a/kubernetes/test/test_v1_windows_security_context_options.py b/kubernetes/test/test_v1_windows_security_context_options.py new file mode 100644 index 0000000000..b042f77419 --- /dev/null +++ b/kubernetes/test/test_v1_windows_security_context_options.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import kubernetes.client +from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions # noqa: E501 +from kubernetes.client.rest import ApiException + + +class TestV1WindowsSecurityContextOptions(unittest.TestCase): + """V1WindowsSecurityContextOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WindowsSecurityContextOptions(self): + """Test V1WindowsSecurityContextOptions""" + # FIXME: construct object with mandatory attributes with example values + # model = kubernetes.client.models.v1_windows_security_context_options.V1WindowsSecurityContextOptions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1alpha1_aggregation_rule.py b/kubernetes/test/test_v1alpha1_aggregation_rule.py index 3da0c82b87..13ea98dedc 100644 --- a/kubernetes/test/test_v1alpha1_aggregation_rule.py +++ b/kubernetes/test/test_v1alpha1_aggregation_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_aggregation_rule import V1alpha1AggregationRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_aggregation_rule import V1alpha1AggregationRule class TestV1alpha1AggregationRule(unittest.TestCase): - """ V1alpha1AggregationRule unit test stubs """ + """V1alpha1AggregationRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1AggregationRule(self): - """ - Test V1alpha1AggregationRule - """ + """Test V1alpha1AggregationRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_aggregation_rule.V1alpha1AggregationRule() + # model = kubernetes.client.models.v1alpha1_aggregation_rule.V1alpha1AggregationRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_audit_sink.py b/kubernetes/test/test_v1alpha1_audit_sink.py index 10fd5998b5..954fb63548 100644 --- a/kubernetes/test/test_v1alpha1_audit_sink.py +++ b/kubernetes/test/test_v1alpha1_audit_sink.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_audit_sink import V1alpha1AuditSink # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_audit_sink import V1alpha1AuditSink class TestV1alpha1AuditSink(unittest.TestCase): - """ V1alpha1AuditSink unit test stubs """ + """V1alpha1AuditSink unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1AuditSink(self): - """ - Test V1alpha1AuditSink - """ + """Test V1alpha1AuditSink""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_audit_sink.V1alpha1AuditSink() + # model = kubernetes.client.models.v1alpha1_audit_sink.V1alpha1AuditSink() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_audit_sink_list.py b/kubernetes/test/test_v1alpha1_audit_sink_list.py index 462d925b1a..7e1e6ad774 100644 --- a/kubernetes/test/test_v1alpha1_audit_sink_list.py +++ b/kubernetes/test/test_v1alpha1_audit_sink_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList class TestV1alpha1AuditSinkList(unittest.TestCase): - """ V1alpha1AuditSinkList unit test stubs """ + """V1alpha1AuditSinkList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1AuditSinkList(self): - """ - Test V1alpha1AuditSinkList - """ + """Test V1alpha1AuditSinkList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_audit_sink_list.V1alpha1AuditSinkList() + # model = kubernetes.client.models.v1alpha1_audit_sink_list.V1alpha1AuditSinkList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_audit_sink_spec.py b/kubernetes/test/test_v1alpha1_audit_sink_spec.py index bb5b6fa2a4..e051be2d7b 100644 --- a/kubernetes/test/test_v1alpha1_audit_sink_spec.py +++ b/kubernetes/test/test_v1alpha1_audit_sink_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec class TestV1alpha1AuditSinkSpec(unittest.TestCase): - """ V1alpha1AuditSinkSpec unit test stubs """ + """V1alpha1AuditSinkSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1AuditSinkSpec(self): - """ - Test V1alpha1AuditSinkSpec - """ + """Test V1alpha1AuditSinkSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_audit_sink_spec.V1alpha1AuditSinkSpec() + # model = kubernetes.client.models.v1alpha1_audit_sink_spec.V1alpha1AuditSinkSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_cluster_role.py b/kubernetes/test/test_v1alpha1_cluster_role.py index c216caef15..e4d568b47b 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role.py +++ b/kubernetes/test/test_v1alpha1_cluster_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole class TestV1alpha1ClusterRole(unittest.TestCase): - """ V1alpha1ClusterRole unit test stubs """ + """V1alpha1ClusterRole unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1ClusterRole(self): - """ - Test V1alpha1ClusterRole - """ + """Test V1alpha1ClusterRole""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_cluster_role.V1alpha1ClusterRole() + # model = kubernetes.client.models.v1alpha1_cluster_role.V1alpha1ClusterRole() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding.py b/kubernetes/test/test_v1alpha1_cluster_role_binding.py index 01cd7bc66d..0cbeab0279 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding class TestV1alpha1ClusterRoleBinding(unittest.TestCase): - """ V1alpha1ClusterRoleBinding unit test stubs """ + """V1alpha1ClusterRoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1ClusterRoleBinding(self): - """ - Test V1alpha1ClusterRoleBinding - """ + """Test V1alpha1ClusterRoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding() + # model = kubernetes.client.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py index 0e981e0f11..6dbf0dfec9 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList class TestV1alpha1ClusterRoleBindingList(unittest.TestCase): - """ V1alpha1ClusterRoleBindingList unit test stubs """ + """V1alpha1ClusterRoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1ClusterRoleBindingList(self): - """ - Test V1alpha1ClusterRoleBindingList - """ + """Test V1alpha1ClusterRoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList() + # model = kubernetes.client.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_cluster_role_list.py b/kubernetes/test/test_v1alpha1_cluster_role_list.py index 8aa2fd64c3..1a08583187 100644 --- a/kubernetes/test/test_v1alpha1_cluster_role_list.py +++ b/kubernetes/test/test_v1alpha1_cluster_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList class TestV1alpha1ClusterRoleList(unittest.TestCase): - """ V1alpha1ClusterRoleList unit test stubs """ + """V1alpha1ClusterRoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1ClusterRoleList(self): - """ - Test V1alpha1ClusterRoleList - """ + """Test V1alpha1ClusterRoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList() + # model = kubernetes.client.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_pod_preset.py b/kubernetes/test/test_v1alpha1_pod_preset.py index ef5b96690b..b1f80ba6f0 100644 --- a/kubernetes/test/test_v1alpha1_pod_preset.py +++ b/kubernetes/test/test_v1alpha1_pod_preset.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset class TestV1alpha1PodPreset(unittest.TestCase): - """ V1alpha1PodPreset unit test stubs """ + """V1alpha1PodPreset unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PodPreset(self): - """ - Test V1alpha1PodPreset - """ + """Test V1alpha1PodPreset""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_pod_preset.V1alpha1PodPreset() + # model = kubernetes.client.models.v1alpha1_pod_preset.V1alpha1PodPreset() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_pod_preset_list.py b/kubernetes/test/test_v1alpha1_pod_preset_list.py index 45410f72a7..6392188a4b 100644 --- a/kubernetes/test/test_v1alpha1_pod_preset_list.py +++ b/kubernetes/test/test_v1alpha1_pod_preset_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList class TestV1alpha1PodPresetList(unittest.TestCase): - """ V1alpha1PodPresetList unit test stubs """ + """V1alpha1PodPresetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PodPresetList(self): - """ - Test V1alpha1PodPresetList - """ + """Test V1alpha1PodPresetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_pod_preset_list.V1alpha1PodPresetList() + # model = kubernetes.client.models.v1alpha1_pod_preset_list.V1alpha1PodPresetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_pod_preset_spec.py b/kubernetes/test/test_v1alpha1_pod_preset_spec.py index c3b45eca51..5359a026ef 100644 --- a/kubernetes/test/test_v1alpha1_pod_preset_spec.py +++ b/kubernetes/test/test_v1alpha1_pod_preset_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec class TestV1alpha1PodPresetSpec(unittest.TestCase): - """ V1alpha1PodPresetSpec unit test stubs """ + """V1alpha1PodPresetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PodPresetSpec(self): - """ - Test V1alpha1PodPresetSpec - """ + """Test V1alpha1PodPresetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_pod_preset_spec.V1alpha1PodPresetSpec() + # model = kubernetes.client.models.v1alpha1_pod_preset_spec.V1alpha1PodPresetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_policy.py b/kubernetes/test/test_v1alpha1_policy.py index 55c4f38afb..4dcc7103a1 100644 --- a/kubernetes/test/test_v1alpha1_policy.py +++ b/kubernetes/test/test_v1alpha1_policy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_policy import V1alpha1Policy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_policy import V1alpha1Policy class TestV1alpha1Policy(unittest.TestCase): - """ V1alpha1Policy unit test stubs """ + """V1alpha1Policy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1Policy(self): - """ - Test V1alpha1Policy - """ + """Test V1alpha1Policy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_policy.V1alpha1Policy() + # model = kubernetes.client.models.v1alpha1_policy.V1alpha1Policy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_policy_rule.py b/kubernetes/test/test_v1alpha1_policy_rule.py index 689a506d95..1d92b26420 100644 --- a/kubernetes/test/test_v1alpha1_policy_rule.py +++ b/kubernetes/test/test_v1alpha1_policy_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule class TestV1alpha1PolicyRule(unittest.TestCase): - """ V1alpha1PolicyRule unit test stubs """ + """V1alpha1PolicyRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PolicyRule(self): - """ - Test V1alpha1PolicyRule - """ + """Test V1alpha1PolicyRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_policy_rule.V1alpha1PolicyRule() + # model = kubernetes.client.models.v1alpha1_policy_rule.V1alpha1PolicyRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_priority_class.py b/kubernetes/test/test_v1alpha1_priority_class.py index 15c9cbe567..74bdc2c87a 100644 --- a/kubernetes/test/test_v1alpha1_priority_class.py +++ b/kubernetes/test/test_v1alpha1_priority_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_priority_class import V1alpha1PriorityClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_priority_class import V1alpha1PriorityClass class TestV1alpha1PriorityClass(unittest.TestCase): - """ V1alpha1PriorityClass unit test stubs """ + """V1alpha1PriorityClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PriorityClass(self): - """ - Test V1alpha1PriorityClass - """ + """Test V1alpha1PriorityClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_priority_class.V1alpha1PriorityClass() + # model = kubernetes.client.models.v1alpha1_priority_class.V1alpha1PriorityClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_priority_class_list.py b/kubernetes/test/test_v1alpha1_priority_class_list.py index ee7ace9a17..3bd697673a 100644 --- a/kubernetes/test/test_v1alpha1_priority_class_list.py +++ b/kubernetes/test/test_v1alpha1_priority_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_priority_class_list import V1alpha1PriorityClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_priority_class_list import V1alpha1PriorityClassList class TestV1alpha1PriorityClassList(unittest.TestCase): - """ V1alpha1PriorityClassList unit test stubs """ + """V1alpha1PriorityClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1PriorityClassList(self): - """ - Test V1alpha1PriorityClassList - """ + """Test V1alpha1PriorityClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_priority_class_list.V1alpha1PriorityClassList() + # model = kubernetes.client.models.v1alpha1_priority_class_list.V1alpha1PriorityClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_role.py b/kubernetes/test/test_v1alpha1_role.py index 0404aefa99..58abc870ff 100644 --- a/kubernetes/test/test_v1alpha1_role.py +++ b/kubernetes/test/test_v1alpha1_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_role import V1alpha1Role # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role import V1alpha1Role class TestV1alpha1Role(unittest.TestCase): - """ V1alpha1Role unit test stubs """ + """V1alpha1Role unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1Role(self): - """ - Test V1alpha1Role - """ + """Test V1alpha1Role""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_role.V1alpha1Role() + # model = kubernetes.client.models.v1alpha1_role.V1alpha1Role() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_role_binding.py b/kubernetes/test/test_v1alpha1_role_binding.py index 9a59a5607f..934b71c91f 100644 --- a/kubernetes/test/test_v1alpha1_role_binding.py +++ b/kubernetes/test/test_v1alpha1_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding class TestV1alpha1RoleBinding(unittest.TestCase): - """ V1alpha1RoleBinding unit test stubs """ + """V1alpha1RoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RoleBinding(self): - """ - Test V1alpha1RoleBinding - """ + """Test V1alpha1RoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_role_binding.V1alpha1RoleBinding() + # model = kubernetes.client.models.v1alpha1_role_binding.V1alpha1RoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_role_binding_list.py b/kubernetes/test/test_v1alpha1_role_binding_list.py index e9f162044f..dbf031dd1d 100644 --- a/kubernetes/test/test_v1alpha1_role_binding_list.py +++ b/kubernetes/test/test_v1alpha1_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList class TestV1alpha1RoleBindingList(unittest.TestCase): - """ V1alpha1RoleBindingList unit test stubs """ + """V1alpha1RoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RoleBindingList(self): - """ - Test V1alpha1RoleBindingList - """ + """Test V1alpha1RoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList() + # model = kubernetes.client.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_role_list.py b/kubernetes/test/test_v1alpha1_role_list.py index c6bce8a455..d677b60db1 100644 --- a/kubernetes/test/test_v1alpha1_role_list.py +++ b/kubernetes/test/test_v1alpha1_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList class TestV1alpha1RoleList(unittest.TestCase): - """ V1alpha1RoleList unit test stubs """ + """V1alpha1RoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RoleList(self): - """ - Test V1alpha1RoleList - """ + """Test V1alpha1RoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_role_list.V1alpha1RoleList() + # model = kubernetes.client.models.v1alpha1_role_list.V1alpha1RoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_role_ref.py b/kubernetes/test/test_v1alpha1_role_ref.py index 07e96d8392..09b9981811 100644 --- a/kubernetes/test/test_v1alpha1_role_ref.py +++ b/kubernetes/test/test_v1alpha1_role_ref.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef class TestV1alpha1RoleRef(unittest.TestCase): - """ V1alpha1RoleRef unit test stubs """ + """V1alpha1RoleRef unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RoleRef(self): - """ - Test V1alpha1RoleRef - """ + """Test V1alpha1RoleRef""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_role_ref.V1alpha1RoleRef() + # model = kubernetes.client.models.v1alpha1_role_ref.V1alpha1RoleRef() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_runtime_class.py b/kubernetes/test/test_v1alpha1_runtime_class.py index 3aff3986ae..d0efa3ac4d 100644 --- a/kubernetes/test/test_v1alpha1_runtime_class.py +++ b/kubernetes/test/test_v1alpha1_runtime_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_runtime_class import V1alpha1RuntimeClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_runtime_class import V1alpha1RuntimeClass class TestV1alpha1RuntimeClass(unittest.TestCase): - """ V1alpha1RuntimeClass unit test stubs """ + """V1alpha1RuntimeClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RuntimeClass(self): - """ - Test V1alpha1RuntimeClass - """ + """Test V1alpha1RuntimeClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_runtime_class.V1alpha1RuntimeClass() + # model = kubernetes.client.models.v1alpha1_runtime_class.V1alpha1RuntimeClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_runtime_class_list.py b/kubernetes/test/test_v1alpha1_runtime_class_list.py index cb6df906ab..959a9d27f5 100644 --- a/kubernetes/test/test_v1alpha1_runtime_class_list.py +++ b/kubernetes/test/test_v1alpha1_runtime_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList class TestV1alpha1RuntimeClassList(unittest.TestCase): - """ V1alpha1RuntimeClassList unit test stubs """ + """V1alpha1RuntimeClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RuntimeClassList(self): - """ - Test V1alpha1RuntimeClassList - """ + """Test V1alpha1RuntimeClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_runtime_class_list.V1alpha1RuntimeClassList() + # model = kubernetes.client.models.v1alpha1_runtime_class_list.V1alpha1RuntimeClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_runtime_class_spec.py b/kubernetes/test/test_v1alpha1_runtime_class_spec.py index 238925c680..a117712943 100644 --- a/kubernetes/test/test_v1alpha1_runtime_class_spec.py +++ b/kubernetes/test/test_v1alpha1_runtime_class_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec class TestV1alpha1RuntimeClassSpec(unittest.TestCase): - """ V1alpha1RuntimeClassSpec unit test stubs """ + """V1alpha1RuntimeClassSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1RuntimeClassSpec(self): - """ - Test V1alpha1RuntimeClassSpec - """ + """Test V1alpha1RuntimeClassSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_runtime_class_spec.V1alpha1RuntimeClassSpec() + # model = kubernetes.client.models.v1alpha1_runtime_class_spec.V1alpha1RuntimeClassSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_service_reference.py b/kubernetes/test/test_v1alpha1_service_reference.py index 86dd0004c5..d3842a8020 100644 --- a/kubernetes/test/test_v1alpha1_service_reference.py +++ b/kubernetes/test/test_v1alpha1_service_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_service_reference import V1alpha1ServiceReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_service_reference import V1alpha1ServiceReference class TestV1alpha1ServiceReference(unittest.TestCase): - """ V1alpha1ServiceReference unit test stubs """ + """V1alpha1ServiceReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1ServiceReference(self): - """ - Test V1alpha1ServiceReference - """ + """Test V1alpha1ServiceReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_service_reference.V1alpha1ServiceReference() + # model = kubernetes.client.models.v1alpha1_service_reference.V1alpha1ServiceReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_subject.py b/kubernetes/test/test_v1alpha1_subject.py index d7c3bab218..6dfab8b2bf 100644 --- a/kubernetes/test/test_v1alpha1_subject.py +++ b/kubernetes/test/test_v1alpha1_subject.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject class TestV1alpha1Subject(unittest.TestCase): - """ V1alpha1Subject unit test stubs """ + """V1alpha1Subject unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1Subject(self): - """ - Test V1alpha1Subject - """ + """Test V1alpha1Subject""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_subject.V1alpha1Subject() + # model = kubernetes.client.models.v1alpha1_subject.V1alpha1Subject() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_attachment.py b/kubernetes/test/test_v1alpha1_volume_attachment.py index 1969192194..32c7d261bc 100644 --- a/kubernetes/test/test_v1alpha1_volume_attachment.py +++ b/kubernetes/test/test_v1alpha1_volume_attachment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment class TestV1alpha1VolumeAttachment(unittest.TestCase): - """ V1alpha1VolumeAttachment unit test stubs """ + """V1alpha1VolumeAttachment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeAttachment(self): - """ - Test V1alpha1VolumeAttachment - """ + """Test V1alpha1VolumeAttachment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_attachment.V1alpha1VolumeAttachment() + # model = kubernetes.client.models.v1alpha1_volume_attachment.V1alpha1VolumeAttachment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_list.py b/kubernetes/test/test_v1alpha1_volume_attachment_list.py index 33f5ba49b6..7ac72465da 100644 --- a/kubernetes/test/test_v1alpha1_volume_attachment_list.py +++ b/kubernetes/test/test_v1alpha1_volume_attachment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList class TestV1alpha1VolumeAttachmentList(unittest.TestCase): - """ V1alpha1VolumeAttachmentList unit test stubs """ + """V1alpha1VolumeAttachmentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeAttachmentList(self): - """ - Test V1alpha1VolumeAttachmentList - """ + """Test V1alpha1VolumeAttachmentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_attachment_list.V1alpha1VolumeAttachmentList() + # model = kubernetes.client.models.v1alpha1_volume_attachment_list.V1alpha1VolumeAttachmentList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_source.py b/kubernetes/test/test_v1alpha1_volume_attachment_source.py index 5f2d9d17d7..bf314a7a70 100644 --- a/kubernetes/test/test_v1alpha1_volume_attachment_source.py +++ b/kubernetes/test/test_v1alpha1_volume_attachment_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource class TestV1alpha1VolumeAttachmentSource(unittest.TestCase): - """ V1alpha1VolumeAttachmentSource unit test stubs """ + """V1alpha1VolumeAttachmentSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeAttachmentSource(self): - """ - Test V1alpha1VolumeAttachmentSource - """ + """Test V1alpha1VolumeAttachmentSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_attachment_source.V1alpha1VolumeAttachmentSource() + # model = kubernetes.client.models.v1alpha1_volume_attachment_source.V1alpha1VolumeAttachmentSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_spec.py b/kubernetes/test/test_v1alpha1_volume_attachment_spec.py index d7b5e90f06..9b74786d93 100644 --- a/kubernetes/test/test_v1alpha1_volume_attachment_spec.py +++ b/kubernetes/test/test_v1alpha1_volume_attachment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec class TestV1alpha1VolumeAttachmentSpec(unittest.TestCase): - """ V1alpha1VolumeAttachmentSpec unit test stubs """ + """V1alpha1VolumeAttachmentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeAttachmentSpec(self): - """ - Test V1alpha1VolumeAttachmentSpec - """ + """Test V1alpha1VolumeAttachmentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_attachment_spec.V1alpha1VolumeAttachmentSpec() + # model = kubernetes.client.models.v1alpha1_volume_attachment_spec.V1alpha1VolumeAttachmentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_status.py b/kubernetes/test/test_v1alpha1_volume_attachment_status.py index 7cd0de33e5..03969b99b3 100644 --- a/kubernetes/test/test_v1alpha1_volume_attachment_status.py +++ b/kubernetes/test/test_v1alpha1_volume_attachment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus class TestV1alpha1VolumeAttachmentStatus(unittest.TestCase): - """ V1alpha1VolumeAttachmentStatus unit test stubs """ + """V1alpha1VolumeAttachmentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeAttachmentStatus(self): - """ - Test V1alpha1VolumeAttachmentStatus - """ + """Test V1alpha1VolumeAttachmentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_attachment_status.V1alpha1VolumeAttachmentStatus() + # model = kubernetes.client.models.v1alpha1_volume_attachment_status.V1alpha1VolumeAttachmentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_volume_error.py b/kubernetes/test/test_v1alpha1_volume_error.py index 12d35ee0db..c4766ba298 100644 --- a/kubernetes/test/test_v1alpha1_volume_error.py +++ b/kubernetes/test/test_v1alpha1_volume_error.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_volume_error import V1alpha1VolumeError # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_volume_error import V1alpha1VolumeError class TestV1alpha1VolumeError(unittest.TestCase): - """ V1alpha1VolumeError unit test stubs """ + """V1alpha1VolumeError unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1VolumeError(self): - """ - Test V1alpha1VolumeError - """ + """Test V1alpha1VolumeError""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_volume_error.V1alpha1VolumeError() + # model = kubernetes.client.models.v1alpha1_volume_error.V1alpha1VolumeError() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_webhook.py b/kubernetes/test/test_v1alpha1_webhook.py index 7b247a4201..95ab382e75 100644 --- a/kubernetes/test/test_v1alpha1_webhook.py +++ b/kubernetes/test/test_v1alpha1_webhook.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_webhook import V1alpha1Webhook # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_webhook import V1alpha1Webhook class TestV1alpha1Webhook(unittest.TestCase): - """ V1alpha1Webhook unit test stubs """ + """V1alpha1Webhook unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1Webhook(self): - """ - Test V1alpha1Webhook - """ + """Test V1alpha1Webhook""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_webhook.V1alpha1Webhook() + # model = kubernetes.client.models.v1alpha1_webhook.V1alpha1Webhook() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_webhook_client_config.py b/kubernetes/test/test_v1alpha1_webhook_client_config.py index 1cc408022f..63fa4580d6 100644 --- a/kubernetes/test/test_v1alpha1_webhook_client_config.py +++ b/kubernetes/test/test_v1alpha1_webhook_client_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig class TestV1alpha1WebhookClientConfig(unittest.TestCase): - """ V1alpha1WebhookClientConfig unit test stubs """ + """V1alpha1WebhookClientConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1WebhookClientConfig(self): - """ - Test V1alpha1WebhookClientConfig - """ + """Test V1alpha1WebhookClientConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_webhook_client_config.V1alpha1WebhookClientConfig() + # model = kubernetes.client.models.v1alpha1_webhook_client_config.V1alpha1WebhookClientConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_v1alpha1_webhook_throttle_config.py b/kubernetes/test/test_v1alpha1_webhook_throttle_config.py index ceb58bde8a..b662625f2c 100644 --- a/kubernetes/test/test_v1alpha1_webhook_throttle_config.py +++ b/kubernetes/test/test_v1alpha1_webhook_throttle_config.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig class TestV1alpha1WebhookThrottleConfig(unittest.TestCase): - """ V1alpha1WebhookThrottleConfig unit test stubs """ + """V1alpha1WebhookThrottleConfig unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1alpha1WebhookThrottleConfig(self): - """ - Test V1alpha1WebhookThrottleConfig - """ + """Test V1alpha1WebhookThrottleConfig""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1alpha1_webhook_throttle_config.V1alpha1WebhookThrottleConfig() + # model = kubernetes.client.models.v1alpha1_webhook_throttle_config.V1alpha1WebhookThrottleConfig() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_aggregation_rule.py b/kubernetes/test/test_v1beta1_aggregation_rule.py index 3d8880215b..95e1270bfa 100644 --- a/kubernetes/test/test_v1beta1_aggregation_rule.py +++ b/kubernetes/test/test_v1beta1_aggregation_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_aggregation_rule import V1beta1AggregationRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_aggregation_rule import V1beta1AggregationRule class TestV1beta1AggregationRule(unittest.TestCase): - """ V1beta1AggregationRule unit test stubs """ + """V1beta1AggregationRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1AggregationRule(self): - """ - Test V1beta1AggregationRule - """ + """Test V1beta1AggregationRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_aggregation_rule.V1beta1AggregationRule() + # model = kubernetes.client.models.v1beta1_aggregation_rule.V1beta1AggregationRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_api_service.py b/kubernetes/test/test_v1beta1_api_service.py index 754b586dc8..2ab82c3b0d 100644 --- a/kubernetes/test/test_v1beta1_api_service.py +++ b/kubernetes/test/test_v1beta1_api_service.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_api_service import V1beta1APIService # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_api_service import V1beta1APIService class TestV1beta1APIService(unittest.TestCase): - """ V1beta1APIService unit test stubs """ + """V1beta1APIService unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1APIService(self): - """ - Test V1beta1APIService - """ + """Test V1beta1APIService""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_api_service.V1beta1APIService() + # model = kubernetes.client.models.v1beta1_api_service.V1beta1APIService() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_api_service_condition.py b/kubernetes/test/test_v1beta1_api_service_condition.py index 643a4bfd6d..4e690d4e4d 100644 --- a/kubernetes/test/test_v1beta1_api_service_condition.py +++ b/kubernetes/test/test_v1beta1_api_service_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_api_service_condition import V1beta1APIServiceCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_api_service_condition import V1beta1APIServiceCondition class TestV1beta1APIServiceCondition(unittest.TestCase): - """ V1beta1APIServiceCondition unit test stubs """ + """V1beta1APIServiceCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1APIServiceCondition(self): - """ - Test V1beta1APIServiceCondition - """ + """Test V1beta1APIServiceCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_api_service_condition.V1beta1APIServiceCondition() + # model = kubernetes.client.models.v1beta1_api_service_condition.V1beta1APIServiceCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_api_service_list.py b/kubernetes/test/test_v1beta1_api_service_list.py index 10d3e878d4..4dab425a84 100644 --- a/kubernetes/test/test_v1beta1_api_service_list.py +++ b/kubernetes/test/test_v1beta1_api_service_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_api_service_list import V1beta1APIServiceList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_api_service_list import V1beta1APIServiceList class TestV1beta1APIServiceList(unittest.TestCase): - """ V1beta1APIServiceList unit test stubs """ + """V1beta1APIServiceList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1APIServiceList(self): - """ - Test V1beta1APIServiceList - """ + """Test V1beta1APIServiceList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_api_service_list.V1beta1APIServiceList() + # model = kubernetes.client.models.v1beta1_api_service_list.V1beta1APIServiceList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_api_service_spec.py b/kubernetes/test/test_v1beta1_api_service_spec.py index c15fc9f07b..1a821597f6 100644 --- a/kubernetes/test/test_v1beta1_api_service_spec.py +++ b/kubernetes/test/test_v1beta1_api_service_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_api_service_spec import V1beta1APIServiceSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_api_service_spec import V1beta1APIServiceSpec class TestV1beta1APIServiceSpec(unittest.TestCase): - """ V1beta1APIServiceSpec unit test stubs """ + """V1beta1APIServiceSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1APIServiceSpec(self): - """ - Test V1beta1APIServiceSpec - """ + """Test V1beta1APIServiceSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_api_service_spec.V1beta1APIServiceSpec() + # model = kubernetes.client.models.v1beta1_api_service_spec.V1beta1APIServiceSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_api_service_status.py b/kubernetes/test/test_v1beta1_api_service_status.py index 471124f8e4..ffc6ea404d 100644 --- a/kubernetes/test/test_v1beta1_api_service_status.py +++ b/kubernetes/test/test_v1beta1_api_service_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_api_service_status import V1beta1APIServiceStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_api_service_status import V1beta1APIServiceStatus class TestV1beta1APIServiceStatus(unittest.TestCase): - """ V1beta1APIServiceStatus unit test stubs """ + """V1beta1APIServiceStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1APIServiceStatus(self): - """ - Test V1beta1APIServiceStatus - """ + """Test V1beta1APIServiceStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_api_service_status.V1beta1APIServiceStatus() + # model = kubernetes.client.models.v1beta1_api_service_status.V1beta1APIServiceStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request.py b/kubernetes/test/test_v1beta1_certificate_signing_request.py index b26280ce64..0f1faf9c6f 100644 --- a/kubernetes/test/test_v1beta1_certificate_signing_request.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest class TestV1beta1CertificateSigningRequest(unittest.TestCase): - """ V1beta1CertificateSigningRequest unit test stubs """ + """V1beta1CertificateSigningRequest unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CertificateSigningRequest(self): - """ - Test V1beta1CertificateSigningRequest - """ + """Test V1beta1CertificateSigningRequest""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_certificate_signing_request.V1beta1CertificateSigningRequest() + # model = kubernetes.client.models.v1beta1_certificate_signing_request.V1beta1CertificateSigningRequest() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py index 01a99f3b89..38e962c9ba 100644 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition class TestV1beta1CertificateSigningRequestCondition(unittest.TestCase): - """ V1beta1CertificateSigningRequestCondition unit test stubs """ + """V1beta1CertificateSigningRequestCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CertificateSigningRequestCondition(self): - """ - Test V1beta1CertificateSigningRequestCondition - """ + """Test V1beta1CertificateSigningRequestCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_certificate_signing_request_condition.V1beta1CertificateSigningRequestCondition() + # model = kubernetes.client.models.v1beta1_certificate_signing_request_condition.V1beta1CertificateSigningRequestCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py index aa42cdb228..d958385d2b 100644 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList class TestV1beta1CertificateSigningRequestList(unittest.TestCase): - """ V1beta1CertificateSigningRequestList unit test stubs """ + """V1beta1CertificateSigningRequestList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CertificateSigningRequestList(self): - """ - Test V1beta1CertificateSigningRequestList - """ + """Test V1beta1CertificateSigningRequestList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_certificate_signing_request_list.V1beta1CertificateSigningRequestList() + # model = kubernetes.client.models.v1beta1_certificate_signing_request_list.V1beta1CertificateSigningRequestList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py index 0144cec45e..6c42a4328e 100644 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec class TestV1beta1CertificateSigningRequestSpec(unittest.TestCase): - """ V1beta1CertificateSigningRequestSpec unit test stubs """ + """V1beta1CertificateSigningRequestSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CertificateSigningRequestSpec(self): - """ - Test V1beta1CertificateSigningRequestSpec - """ + """Test V1beta1CertificateSigningRequestSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_certificate_signing_request_spec.V1beta1CertificateSigningRequestSpec() + # model = kubernetes.client.models.v1beta1_certificate_signing_request_spec.V1beta1CertificateSigningRequestSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py index d4851cac7e..bdb9ad994b 100644 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py +++ b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus class TestV1beta1CertificateSigningRequestStatus(unittest.TestCase): - """ V1beta1CertificateSigningRequestStatus unit test stubs """ + """V1beta1CertificateSigningRequestStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CertificateSigningRequestStatus(self): - """ - Test V1beta1CertificateSigningRequestStatus - """ + """Test V1beta1CertificateSigningRequestStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_certificate_signing_request_status.V1beta1CertificateSigningRequestStatus() + # model = kubernetes.client.models.v1beta1_certificate_signing_request_status.V1beta1CertificateSigningRequestStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cluster_role.py b/kubernetes/test/test_v1beta1_cluster_role.py index ab0971c84d..cf2a8fac61 100644 --- a/kubernetes/test/test_v1beta1_cluster_role.py +++ b/kubernetes/test/test_v1beta1_cluster_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole class TestV1beta1ClusterRole(unittest.TestCase): - """ V1beta1ClusterRole unit test stubs """ + """V1beta1ClusterRole unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ClusterRole(self): - """ - Test V1beta1ClusterRole - """ + """Test V1beta1ClusterRole""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cluster_role.V1beta1ClusterRole() + # model = kubernetes.client.models.v1beta1_cluster_role.V1beta1ClusterRole() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding.py b/kubernetes/test/test_v1beta1_cluster_role_binding.py index 258825a283..a1be7ffd5b 100644 --- a/kubernetes/test/test_v1beta1_cluster_role_binding.py +++ b/kubernetes/test/test_v1beta1_cluster_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding class TestV1beta1ClusterRoleBinding(unittest.TestCase): - """ V1beta1ClusterRoleBinding unit test stubs """ + """V1beta1ClusterRoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ClusterRoleBinding(self): - """ - Test V1beta1ClusterRoleBinding - """ + """Test V1beta1ClusterRoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cluster_role_binding.V1beta1ClusterRoleBinding() + # model = kubernetes.client.models.v1beta1_cluster_role_binding.V1beta1ClusterRoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py index f21cd159d9..db5cdf5ef3 100644 --- a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py +++ b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList class TestV1beta1ClusterRoleBindingList(unittest.TestCase): - """ V1beta1ClusterRoleBindingList unit test stubs """ + """V1beta1ClusterRoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ClusterRoleBindingList(self): - """ - Test V1beta1ClusterRoleBindingList - """ + """Test V1beta1ClusterRoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cluster_role_binding_list.V1beta1ClusterRoleBindingList() + # model = kubernetes.client.models.v1beta1_cluster_role_binding_list.V1beta1ClusterRoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cluster_role_list.py b/kubernetes/test/test_v1beta1_cluster_role_list.py index e7aabc2364..efd5035a36 100644 --- a/kubernetes/test/test_v1beta1_cluster_role_list.py +++ b/kubernetes/test/test_v1beta1_cluster_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList class TestV1beta1ClusterRoleList(unittest.TestCase): - """ V1beta1ClusterRoleList unit test stubs """ + """V1beta1ClusterRoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ClusterRoleList(self): - """ - Test V1beta1ClusterRoleList - """ + """Test V1beta1ClusterRoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cluster_role_list.V1beta1ClusterRoleList() + # model = kubernetes.client.models.v1beta1_cluster_role_list.V1beta1ClusterRoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_controller_revision.py b/kubernetes/test/test_v1beta1_controller_revision.py index d1f90735af..18029f3877 100644 --- a/kubernetes/test/test_v1beta1_controller_revision.py +++ b/kubernetes/test/test_v1beta1_controller_revision.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_controller_revision import V1beta1ControllerRevision # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_controller_revision import V1beta1ControllerRevision class TestV1beta1ControllerRevision(unittest.TestCase): - """ V1beta1ControllerRevision unit test stubs """ + """V1beta1ControllerRevision unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ControllerRevision(self): - """ - Test V1beta1ControllerRevision - """ + """Test V1beta1ControllerRevision""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_controller_revision.V1beta1ControllerRevision() + # model = kubernetes.client.models.v1beta1_controller_revision.V1beta1ControllerRevision() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_controller_revision_list.py b/kubernetes/test/test_v1beta1_controller_revision_list.py index ae54dea86c..2830d2bf4c 100644 --- a/kubernetes/test/test_v1beta1_controller_revision_list.py +++ b/kubernetes/test/test_v1beta1_controller_revision_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList class TestV1beta1ControllerRevisionList(unittest.TestCase): - """ V1beta1ControllerRevisionList unit test stubs """ + """V1beta1ControllerRevisionList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ControllerRevisionList(self): - """ - Test V1beta1ControllerRevisionList - """ + """Test V1beta1ControllerRevisionList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_controller_revision_list.V1beta1ControllerRevisionList() + # model = kubernetes.client.models.v1beta1_controller_revision_list.V1beta1ControllerRevisionList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cron_job.py b/kubernetes/test/test_v1beta1_cron_job.py index 4970b34ae2..eacd17e036 100644 --- a/kubernetes/test/test_v1beta1_cron_job.py +++ b/kubernetes/test/test_v1beta1_cron_job.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cron_job import V1beta1CronJob # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cron_job import V1beta1CronJob class TestV1beta1CronJob(unittest.TestCase): - """ V1beta1CronJob unit test stubs """ + """V1beta1CronJob unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CronJob(self): - """ - Test V1beta1CronJob - """ + """Test V1beta1CronJob""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cron_job.V1beta1CronJob() + # model = kubernetes.client.models.v1beta1_cron_job.V1beta1CronJob() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cron_job_list.py b/kubernetes/test/test_v1beta1_cron_job_list.py index 30ec94d09d..ac76d102e6 100644 --- a/kubernetes/test/test_v1beta1_cron_job_list.py +++ b/kubernetes/test/test_v1beta1_cron_job_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cron_job_list import V1beta1CronJobList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cron_job_list import V1beta1CronJobList class TestV1beta1CronJobList(unittest.TestCase): - """ V1beta1CronJobList unit test stubs """ + """V1beta1CronJobList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CronJobList(self): - """ - Test V1beta1CronJobList - """ + """Test V1beta1CronJobList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cron_job_list.V1beta1CronJobList() + # model = kubernetes.client.models.v1beta1_cron_job_list.V1beta1CronJobList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cron_job_spec.py b/kubernetes/test/test_v1beta1_cron_job_spec.py index 5290f0f042..f1a44df3d6 100644 --- a/kubernetes/test/test_v1beta1_cron_job_spec.py +++ b/kubernetes/test/test_v1beta1_cron_job_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cron_job_spec import V1beta1CronJobSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cron_job_spec import V1beta1CronJobSpec class TestV1beta1CronJobSpec(unittest.TestCase): - """ V1beta1CronJobSpec unit test stubs """ + """V1beta1CronJobSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CronJobSpec(self): - """ - Test V1beta1CronJobSpec - """ + """Test V1beta1CronJobSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cron_job_spec.V1beta1CronJobSpec() + # model = kubernetes.client.models.v1beta1_cron_job_spec.V1beta1CronJobSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_cron_job_status.py b/kubernetes/test/test_v1beta1_cron_job_status.py index 74acbf54a1..b714fa4590 100644 --- a/kubernetes/test/test_v1beta1_cron_job_status.py +++ b/kubernetes/test/test_v1beta1_cron_job_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_cron_job_status import V1beta1CronJobStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_cron_job_status import V1beta1CronJobStatus class TestV1beta1CronJobStatus(unittest.TestCase): - """ V1beta1CronJobStatus unit test stubs """ + """V1beta1CronJobStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CronJobStatus(self): - """ - Test V1beta1CronJobStatus - """ + """Test V1beta1CronJobStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_cron_job_status.V1beta1CronJobStatus() + # model = kubernetes.client.models.v1beta1_cron_job_status.V1beta1CronJobStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_driver.py b/kubernetes/test/test_v1beta1_csi_driver.py index 5072cbfc59..d13f25f76e 100644 --- a/kubernetes/test/test_v1beta1_csi_driver.py +++ b/kubernetes/test/test_v1beta1_csi_driver.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_driver import V1beta1CSIDriver # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_driver import V1beta1CSIDriver class TestV1beta1CSIDriver(unittest.TestCase): - """ V1beta1CSIDriver unit test stubs """ + """V1beta1CSIDriver unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSIDriver(self): - """ - Test V1beta1CSIDriver - """ + """Test V1beta1CSIDriver""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_driver.V1beta1CSIDriver() + # model = kubernetes.client.models.v1beta1_csi_driver.V1beta1CSIDriver() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_driver_list.py b/kubernetes/test/test_v1beta1_csi_driver_list.py index aa813b9528..894e31b16c 100644 --- a/kubernetes/test/test_v1beta1_csi_driver_list.py +++ b/kubernetes/test/test_v1beta1_csi_driver_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_driver_list import V1beta1CSIDriverList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_driver_list import V1beta1CSIDriverList class TestV1beta1CSIDriverList(unittest.TestCase): - """ V1beta1CSIDriverList unit test stubs """ + """V1beta1CSIDriverList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSIDriverList(self): - """ - Test V1beta1CSIDriverList - """ + """Test V1beta1CSIDriverList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_driver_list.V1beta1CSIDriverList() + # model = kubernetes.client.models.v1beta1_csi_driver_list.V1beta1CSIDriverList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_driver_spec.py b/kubernetes/test/test_v1beta1_csi_driver_spec.py index aff7e9d458..b9454a58e7 100644 --- a/kubernetes/test/test_v1beta1_csi_driver_spec.py +++ b/kubernetes/test/test_v1beta1_csi_driver_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec class TestV1beta1CSIDriverSpec(unittest.TestCase): - """ V1beta1CSIDriverSpec unit test stubs """ + """V1beta1CSIDriverSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSIDriverSpec(self): - """ - Test V1beta1CSIDriverSpec - """ + """Test V1beta1CSIDriverSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_driver_spec.V1beta1CSIDriverSpec() + # model = kubernetes.client.models.v1beta1_csi_driver_spec.V1beta1CSIDriverSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_node.py b/kubernetes/test/test_v1beta1_csi_node.py index 9fd3dcb791..0ef4d9810d 100644 --- a/kubernetes/test/test_v1beta1_csi_node.py +++ b/kubernetes/test/test_v1beta1_csi_node.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_node import V1beta1CSINode # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_node import V1beta1CSINode class TestV1beta1CSINode(unittest.TestCase): - """ V1beta1CSINode unit test stubs """ + """V1beta1CSINode unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSINode(self): - """ - Test V1beta1CSINode - """ + """Test V1beta1CSINode""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_node.V1beta1CSINode() + # model = kubernetes.client.models.v1beta1_csi_node.V1beta1CSINode() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_node_driver.py b/kubernetes/test/test_v1beta1_csi_node_driver.py index 074c9beb52..d29b0e7f24 100644 --- a/kubernetes/test/test_v1beta1_csi_node_driver.py +++ b/kubernetes/test/test_v1beta1_csi_node_driver.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_node_driver import V1beta1CSINodeDriver # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_node_driver import V1beta1CSINodeDriver class TestV1beta1CSINodeDriver(unittest.TestCase): - """ V1beta1CSINodeDriver unit test stubs """ + """V1beta1CSINodeDriver unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSINodeDriver(self): - """ - Test V1beta1CSINodeDriver - """ + """Test V1beta1CSINodeDriver""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_node_driver.V1beta1CSINodeDriver() + # model = kubernetes.client.models.v1beta1_csi_node_driver.V1beta1CSINodeDriver() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_node_list.py b/kubernetes/test/test_v1beta1_csi_node_list.py index 4430ba1e80..6493558dc4 100644 --- a/kubernetes/test/test_v1beta1_csi_node_list.py +++ b/kubernetes/test/test_v1beta1_csi_node_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_node_list import V1beta1CSINodeList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_node_list import V1beta1CSINodeList class TestV1beta1CSINodeList(unittest.TestCase): - """ V1beta1CSINodeList unit test stubs """ + """V1beta1CSINodeList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSINodeList(self): - """ - Test V1beta1CSINodeList - """ + """Test V1beta1CSINodeList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_node_list.V1beta1CSINodeList() + # model = kubernetes.client.models.v1beta1_csi_node_list.V1beta1CSINodeList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_csi_node_spec.py b/kubernetes/test/test_v1beta1_csi_node_spec.py index 36ed7feaed..6b7d1f55ea 100644 --- a/kubernetes/test/test_v1beta1_csi_node_spec.py +++ b/kubernetes/test/test_v1beta1_csi_node_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_csi_node_spec import V1beta1CSINodeSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_csi_node_spec import V1beta1CSINodeSpec class TestV1beta1CSINodeSpec(unittest.TestCase): - """ V1beta1CSINodeSpec unit test stubs """ + """V1beta1CSINodeSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CSINodeSpec(self): - """ - Test V1beta1CSINodeSpec - """ + """Test V1beta1CSINodeSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_csi_node_spec.V1beta1CSINodeSpec() + # model = kubernetes.client.models.v1beta1_csi_node_spec.V1beta1CSINodeSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_column_definition.py b/kubernetes/test/test_v1beta1_custom_resource_column_definition.py index 5963ed4d2a..a34e428dfb 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_column_definition.py +++ b/kubernetes/test/test_v1beta1_custom_resource_column_definition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition class TestV1beta1CustomResourceColumnDefinition(unittest.TestCase): - """ V1beta1CustomResourceColumnDefinition unit test stubs """ + """V1beta1CustomResourceColumnDefinition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceColumnDefinition(self): - """ - Test V1beta1CustomResourceColumnDefinition - """ + """Test V1beta1CustomResourceColumnDefinition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_column_definition.V1beta1CustomResourceColumnDefinition() + # model = kubernetes.client.models.v1beta1_custom_resource_column_definition.V1beta1CustomResourceColumnDefinition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_conversion.py b/kubernetes/test/test_v1beta1_custom_resource_conversion.py index 1d9bbb283a..c4834c06c3 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_conversion.py +++ b/kubernetes/test/test_v1beta1_custom_resource_conversion.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion class TestV1beta1CustomResourceConversion(unittest.TestCase): - """ V1beta1CustomResourceConversion unit test stubs """ + """V1beta1CustomResourceConversion unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceConversion(self): - """ - Test V1beta1CustomResourceConversion - """ + """Test V1beta1CustomResourceConversion""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_conversion.V1beta1CustomResourceConversion() + # model = kubernetes.client.models.v1beta1_custom_resource_conversion.V1beta1CustomResourceConversion() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition.py b/kubernetes/test/test_v1beta1_custom_resource_definition.py index cf3d1485b7..9d663d198a 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition class TestV1beta1CustomResourceDefinition(unittest.TestCase): - """ V1beta1CustomResourceDefinition unit test stubs """ + """V1beta1CustomResourceDefinition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinition(self): - """ - Test V1beta1CustomResourceDefinition - """ + """Test V1beta1CustomResourceDefinition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition.V1beta1CustomResourceDefinition() + # model = kubernetes.client.models.v1beta1_custom_resource_definition.V1beta1CustomResourceDefinition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py b/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py index 9d43fc2c71..d5e90d9b57 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition class TestV1beta1CustomResourceDefinitionCondition(unittest.TestCase): - """ V1beta1CustomResourceDefinitionCondition unit test stubs """ + """V1beta1CustomResourceDefinitionCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionCondition(self): - """ - Test V1beta1CustomResourceDefinitionCondition - """ + """Test V1beta1CustomResourceDefinitionCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_condition.V1beta1CustomResourceDefinitionCondition() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_condition.V1beta1CustomResourceDefinitionCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_list.py b/kubernetes/test/test_v1beta1_custom_resource_definition_list.py index b53567ecd5..25422efece 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_list.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList class TestV1beta1CustomResourceDefinitionList(unittest.TestCase): - """ V1beta1CustomResourceDefinitionList unit test stubs """ + """V1beta1CustomResourceDefinitionList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionList(self): - """ - Test V1beta1CustomResourceDefinitionList - """ + """Test V1beta1CustomResourceDefinitionList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_list.V1beta1CustomResourceDefinitionList() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_list.V1beta1CustomResourceDefinitionList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_names.py b/kubernetes/test/test_v1beta1_custom_resource_definition_names.py index 3e6ce43e4a..cf2906beaf 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_names.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_names.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames class TestV1beta1CustomResourceDefinitionNames(unittest.TestCase): - """ V1beta1CustomResourceDefinitionNames unit test stubs """ + """V1beta1CustomResourceDefinitionNames unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionNames(self): - """ - Test V1beta1CustomResourceDefinitionNames - """ + """Test V1beta1CustomResourceDefinitionNames""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_names.V1beta1CustomResourceDefinitionNames() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_names.V1beta1CustomResourceDefinitionNames() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py b/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py index 164963dd51..1be5b5fbff 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec class TestV1beta1CustomResourceDefinitionSpec(unittest.TestCase): - """ V1beta1CustomResourceDefinitionSpec unit test stubs """ + """V1beta1CustomResourceDefinitionSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionSpec(self): - """ - Test V1beta1CustomResourceDefinitionSpec - """ + """Test V1beta1CustomResourceDefinitionSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_spec.V1beta1CustomResourceDefinitionSpec() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_spec.V1beta1CustomResourceDefinitionSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_status.py b/kubernetes/test/test_v1beta1_custom_resource_definition_status.py index fe6c245693..39f614a305 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_status.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus class TestV1beta1CustomResourceDefinitionStatus(unittest.TestCase): - """ V1beta1CustomResourceDefinitionStatus unit test stubs """ + """V1beta1CustomResourceDefinitionStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionStatus(self): - """ - Test V1beta1CustomResourceDefinitionStatus - """ + """Test V1beta1CustomResourceDefinitionStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_status.V1beta1CustomResourceDefinitionStatus() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_status.V1beta1CustomResourceDefinitionStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_version.py b/kubernetes/test/test_v1beta1_custom_resource_definition_version.py index 601cf1e169..1b96690a71 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_version.py +++ b/kubernetes/test/test_v1beta1_custom_resource_definition_version.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion class TestV1beta1CustomResourceDefinitionVersion(unittest.TestCase): - """ V1beta1CustomResourceDefinitionVersion unit test stubs """ + """V1beta1CustomResourceDefinitionVersion unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceDefinitionVersion(self): - """ - Test V1beta1CustomResourceDefinitionVersion - """ + """Test V1beta1CustomResourceDefinitionVersion""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_definition_version.V1beta1CustomResourceDefinitionVersion() + # model = kubernetes.client.models.v1beta1_custom_resource_definition_version.V1beta1CustomResourceDefinitionVersion() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py b/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py index a0fe8ec642..60da6c3939 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py +++ b/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale class TestV1beta1CustomResourceSubresourceScale(unittest.TestCase): - """ V1beta1CustomResourceSubresourceScale unit test stubs """ + """V1beta1CustomResourceSubresourceScale unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceSubresourceScale(self): - """ - Test V1beta1CustomResourceSubresourceScale - """ + """Test V1beta1CustomResourceSubresourceScale""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_subresource_scale.V1beta1CustomResourceSubresourceScale() + # model = kubernetes.client.models.v1beta1_custom_resource_subresource_scale.V1beta1CustomResourceSubresourceScale() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_subresources.py b/kubernetes/test/test_v1beta1_custom_resource_subresources.py index 5944fb547d..acb7781ca5 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_subresources.py +++ b/kubernetes/test/test_v1beta1_custom_resource_subresources.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources class TestV1beta1CustomResourceSubresources(unittest.TestCase): - """ V1beta1CustomResourceSubresources unit test stubs """ + """V1beta1CustomResourceSubresources unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceSubresources(self): - """ - Test V1beta1CustomResourceSubresources - """ + """Test V1beta1CustomResourceSubresources""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_subresources.V1beta1CustomResourceSubresources() + # model = kubernetes.client.models.v1beta1_custom_resource_subresources.V1beta1CustomResourceSubresources() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_custom_resource_validation.py b/kubernetes/test/test_v1beta1_custom_resource_validation.py index a4214dbf6b..af57780a62 100644 --- a/kubernetes/test/test_v1beta1_custom_resource_validation.py +++ b/kubernetes/test/test_v1beta1_custom_resource_validation.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation class TestV1beta1CustomResourceValidation(unittest.TestCase): - """ V1beta1CustomResourceValidation unit test stubs """ + """V1beta1CustomResourceValidation unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1CustomResourceValidation(self): - """ - Test V1beta1CustomResourceValidation - """ + """Test V1beta1CustomResourceValidation""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_custom_resource_validation.V1beta1CustomResourceValidation() + # model = kubernetes.client.models.v1beta1_custom_resource_validation.V1beta1CustomResourceValidation() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set.py b/kubernetes/test/test_v1beta1_daemon_set.py index b2850d15d7..dc8f51cdd0 100644 --- a/kubernetes/test/test_v1beta1_daemon_set.py +++ b/kubernetes/test/test_v1beta1_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set import V1beta1DaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set import V1beta1DaemonSet class TestV1beta1DaemonSet(unittest.TestCase): - """ V1beta1DaemonSet unit test stubs """ + """V1beta1DaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSet(self): - """ - Test V1beta1DaemonSet - """ + """Test V1beta1DaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set.V1beta1DaemonSet() + # model = kubernetes.client.models.v1beta1_daemon_set.V1beta1DaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set_condition.py b/kubernetes/test/test_v1beta1_daemon_set_condition.py index d16f5f81f7..01ed8b048e 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_condition.py +++ b/kubernetes/test/test_v1beta1_daemon_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition class TestV1beta1DaemonSetCondition(unittest.TestCase): - """ V1beta1DaemonSetCondition unit test stubs """ + """V1beta1DaemonSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSetCondition(self): - """ - Test V1beta1DaemonSetCondition - """ + """Test V1beta1DaemonSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set_condition.V1beta1DaemonSetCondition() + # model = kubernetes.client.models.v1beta1_daemon_set_condition.V1beta1DaemonSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set_list.py b/kubernetes/test/test_v1beta1_daemon_set_list.py index 65b4a0b705..78629f3fd0 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_list.py +++ b/kubernetes/test/test_v1beta1_daemon_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set_list import V1beta1DaemonSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_list import V1beta1DaemonSetList class TestV1beta1DaemonSetList(unittest.TestCase): - """ V1beta1DaemonSetList unit test stubs """ + """V1beta1DaemonSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSetList(self): - """ - Test V1beta1DaemonSetList - """ + """Test V1beta1DaemonSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set_list.V1beta1DaemonSetList() + # model = kubernetes.client.models.v1beta1_daemon_set_list.V1beta1DaemonSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set_spec.py b/kubernetes/test/test_v1beta1_daemon_set_spec.py index b1088eddfe..05a91f902d 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_spec.py +++ b/kubernetes/test/test_v1beta1_daemon_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec class TestV1beta1DaemonSetSpec(unittest.TestCase): - """ V1beta1DaemonSetSpec unit test stubs """ + """V1beta1DaemonSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSetSpec(self): - """ - Test V1beta1DaemonSetSpec - """ + """Test V1beta1DaemonSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set_spec.V1beta1DaemonSetSpec() + # model = kubernetes.client.models.v1beta1_daemon_set_spec.V1beta1DaemonSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set_status.py b/kubernetes/test/test_v1beta1_daemon_set_status.py index dbe9791f30..b2f024a678 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_status.py +++ b/kubernetes/test/test_v1beta1_daemon_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus class TestV1beta1DaemonSetStatus(unittest.TestCase): - """ V1beta1DaemonSetStatus unit test stubs """ + """V1beta1DaemonSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSetStatus(self): - """ - Test V1beta1DaemonSetStatus - """ + """Test V1beta1DaemonSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set_status.V1beta1DaemonSetStatus() + # model = kubernetes.client.models.v1beta1_daemon_set_status.V1beta1DaemonSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py index cca4acd9ca..0df77561a3 100644 --- a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py +++ b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy class TestV1beta1DaemonSetUpdateStrategy(unittest.TestCase): - """ V1beta1DaemonSetUpdateStrategy unit test stubs """ + """V1beta1DaemonSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1DaemonSetUpdateStrategy(self): - """ - Test V1beta1DaemonSetUpdateStrategy - """ + """Test V1beta1DaemonSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_daemon_set_update_strategy.V1beta1DaemonSetUpdateStrategy() + # model = kubernetes.client.models.v1beta1_daemon_set_update_strategy.V1beta1DaemonSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_event.py b/kubernetes/test/test_v1beta1_event.py index 46c23bec4f..fe3c8d3877 100644 --- a/kubernetes/test/test_v1beta1_event.py +++ b/kubernetes/test/test_v1beta1_event.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_event import V1beta1Event # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_event import V1beta1Event class TestV1beta1Event(unittest.TestCase): - """ V1beta1Event unit test stubs """ + """V1beta1Event unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1Event(self): - """ - Test V1beta1Event - """ + """Test V1beta1Event""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_event.V1beta1Event() + # model = kubernetes.client.models.v1beta1_event.V1beta1Event() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_event_list.py b/kubernetes/test/test_v1beta1_event_list.py index 5c45fe87f8..d43c1bd2ca 100644 --- a/kubernetes/test/test_v1beta1_event_list.py +++ b/kubernetes/test/test_v1beta1_event_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_event_list import V1beta1EventList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_event_list import V1beta1EventList class TestV1beta1EventList(unittest.TestCase): - """ V1beta1EventList unit test stubs """ + """V1beta1EventList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1EventList(self): - """ - Test V1beta1EventList - """ + """Test V1beta1EventList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_event_list.V1beta1EventList() + # model = kubernetes.client.models.v1beta1_event_list.V1beta1EventList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_event_series.py b/kubernetes/test/test_v1beta1_event_series.py index f5c01408d2..7eda3423c5 100644 --- a/kubernetes/test/test_v1beta1_event_series.py +++ b/kubernetes/test/test_v1beta1_event_series.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_event_series import V1beta1EventSeries # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_event_series import V1beta1EventSeries class TestV1beta1EventSeries(unittest.TestCase): - """ V1beta1EventSeries unit test stubs """ + """V1beta1EventSeries unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1EventSeries(self): - """ - Test V1beta1EventSeries - """ + """Test V1beta1EventSeries""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_event_series.V1beta1EventSeries() + # model = kubernetes.client.models.v1beta1_event_series.V1beta1EventSeries() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_eviction.py b/kubernetes/test/test_v1beta1_eviction.py index 8644216e00..88ea957f15 100644 --- a/kubernetes/test/test_v1beta1_eviction.py +++ b/kubernetes/test/test_v1beta1_eviction.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_eviction import V1beta1Eviction # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_eviction import V1beta1Eviction class TestV1beta1Eviction(unittest.TestCase): - """ V1beta1Eviction unit test stubs """ + """V1beta1Eviction unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1Eviction(self): - """ - Test V1beta1Eviction - """ + """Test V1beta1Eviction""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_eviction.V1beta1Eviction() + # model = kubernetes.client.models.v1beta1_eviction.V1beta1Eviction() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_external_documentation.py b/kubernetes/test/test_v1beta1_external_documentation.py index a5459709aa..9f3a20fa8c 100644 --- a/kubernetes/test/test_v1beta1_external_documentation.py +++ b/kubernetes/test/test_v1beta1_external_documentation.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_external_documentation import V1beta1ExternalDocumentation # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_external_documentation import V1beta1ExternalDocumentation class TestV1beta1ExternalDocumentation(unittest.TestCase): - """ V1beta1ExternalDocumentation unit test stubs """ + """V1beta1ExternalDocumentation unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ExternalDocumentation(self): - """ - Test V1beta1ExternalDocumentation - """ + """Test V1beta1ExternalDocumentation""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_external_documentation.V1beta1ExternalDocumentation() + # model = kubernetes.client.models.v1beta1_external_documentation.V1beta1ExternalDocumentation() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_ip_block.py b/kubernetes/test/test_v1beta1_ip_block.py index 18caa2c244..e7ad986082 100644 --- a/kubernetes/test/test_v1beta1_ip_block.py +++ b/kubernetes/test/test_v1beta1_ip_block.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_ip_block import V1beta1IPBlock # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_ip_block import V1beta1IPBlock class TestV1beta1IPBlock(unittest.TestCase): - """ V1beta1IPBlock unit test stubs """ + """V1beta1IPBlock unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1IPBlock(self): - """ - Test V1beta1IPBlock - """ + """Test V1beta1IPBlock""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_ip_block.V1beta1IPBlock() + # model = kubernetes.client.models.v1beta1_ip_block.V1beta1IPBlock() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_job_template_spec.py b/kubernetes/test/test_v1beta1_job_template_spec.py index 3b40c79e40..a942a67919 100644 --- a/kubernetes/test/test_v1beta1_job_template_spec.py +++ b/kubernetes/test/test_v1beta1_job_template_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_job_template_spec import V1beta1JobTemplateSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_job_template_spec import V1beta1JobTemplateSpec class TestV1beta1JobTemplateSpec(unittest.TestCase): - """ V1beta1JobTemplateSpec unit test stubs """ + """V1beta1JobTemplateSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1JobTemplateSpec(self): - """ - Test V1beta1JobTemplateSpec - """ + """Test V1beta1JobTemplateSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_job_template_spec.V1beta1JobTemplateSpec() + # model = kubernetes.client.models.v1beta1_job_template_spec.V1beta1JobTemplateSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_json_schema_props.py b/kubernetes/test/test_v1beta1_json_schema_props.py index e3f6fba6ef..bbab2a56b2 100644 --- a/kubernetes/test/test_v1beta1_json_schema_props.py +++ b/kubernetes/test/test_v1beta1_json_schema_props.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_json_schema_props import V1beta1JSONSchemaProps # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_json_schema_props import V1beta1JSONSchemaProps class TestV1beta1JSONSchemaProps(unittest.TestCase): - """ V1beta1JSONSchemaProps unit test stubs """ + """V1beta1JSONSchemaProps unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1JSONSchemaProps(self): - """ - Test V1beta1JSONSchemaProps - """ + """Test V1beta1JSONSchemaProps""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_json_schema_props.V1beta1JSONSchemaProps() + # model = kubernetes.client.models.v1beta1_json_schema_props.V1beta1JSONSchemaProps() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_lease.py b/kubernetes/test/test_v1beta1_lease.py index 07c6e1c66b..480680f7f0 100644 --- a/kubernetes/test/test_v1beta1_lease.py +++ b/kubernetes/test/test_v1beta1_lease.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_lease import V1beta1Lease # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_lease import V1beta1Lease class TestV1beta1Lease(unittest.TestCase): - """ V1beta1Lease unit test stubs """ + """V1beta1Lease unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1Lease(self): - """ - Test V1beta1Lease - """ + """Test V1beta1Lease""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_lease.V1beta1Lease() + # model = kubernetes.client.models.v1beta1_lease.V1beta1Lease() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_lease_list.py b/kubernetes/test/test_v1beta1_lease_list.py index 79a5bdf88d..d41567daab 100644 --- a/kubernetes/test/test_v1beta1_lease_list.py +++ b/kubernetes/test/test_v1beta1_lease_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_lease_list import V1beta1LeaseList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_lease_list import V1beta1LeaseList class TestV1beta1LeaseList(unittest.TestCase): - """ V1beta1LeaseList unit test stubs """ + """V1beta1LeaseList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1LeaseList(self): - """ - Test V1beta1LeaseList - """ + """Test V1beta1LeaseList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_lease_list.V1beta1LeaseList() + # model = kubernetes.client.models.v1beta1_lease_list.V1beta1LeaseList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_lease_spec.py b/kubernetes/test/test_v1beta1_lease_spec.py index 839c1084c5..e782a9aa7b 100644 --- a/kubernetes/test/test_v1beta1_lease_spec.py +++ b/kubernetes/test/test_v1beta1_lease_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_lease_spec import V1beta1LeaseSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_lease_spec import V1beta1LeaseSpec class TestV1beta1LeaseSpec(unittest.TestCase): - """ V1beta1LeaseSpec unit test stubs """ + """V1beta1LeaseSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1LeaseSpec(self): - """ - Test V1beta1LeaseSpec - """ + """Test V1beta1LeaseSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_lease_spec.V1beta1LeaseSpec() + # model = kubernetes.client.models.v1beta1_lease_spec.V1beta1LeaseSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_local_subject_access_review.py b/kubernetes/test/test_v1beta1_local_subject_access_review.py index 143fb25167..55c5dc7866 100644 --- a/kubernetes/test/test_v1beta1_local_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_local_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview class TestV1beta1LocalSubjectAccessReview(unittest.TestCase): - """ V1beta1LocalSubjectAccessReview unit test stubs """ + """V1beta1LocalSubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1LocalSubjectAccessReview(self): - """ - Test V1beta1LocalSubjectAccessReview - """ + """Test V1beta1LocalSubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview() + # model = kubernetes.client.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_mutating_webhook.py b/kubernetes/test/test_v1beta1_mutating_webhook.py new file mode 100644 index 0000000000..83bff1c94c --- /dev/null +++ b/kubernetes/test/test_v1beta1_mutating_webhook.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import kubernetes.client +from kubernetes.client.models.v1beta1_mutating_webhook import V1beta1MutatingWebhook # noqa: E501 +from kubernetes.client.rest import ApiException + + +class TestV1beta1MutatingWebhook(unittest.TestCase): + """V1beta1MutatingWebhook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1MutatingWebhook(self): + """Test V1beta1MutatingWebhook""" + # FIXME: construct object with mandatory attributes with example values + # model = kubernetes.client.models.v1beta1_mutating_webhook.V1beta1MutatingWebhook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py b/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py index a93563815e..13a7dff87a 100644 --- a/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py +++ b/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration class TestV1beta1MutatingWebhookConfiguration(unittest.TestCase): - """ V1beta1MutatingWebhookConfiguration unit test stubs """ + """V1beta1MutatingWebhookConfiguration unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1MutatingWebhookConfiguration(self): - """ - Test V1beta1MutatingWebhookConfiguration - """ + """Test V1beta1MutatingWebhookConfiguration""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_mutating_webhook_configuration.V1beta1MutatingWebhookConfiguration() + # model = kubernetes.client.models.v1beta1_mutating_webhook_configuration.V1beta1MutatingWebhookConfiguration() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py b/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py index 942d503595..d249034e2a 100644 --- a/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py +++ b/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList class TestV1beta1MutatingWebhookConfigurationList(unittest.TestCase): - """ V1beta1MutatingWebhookConfigurationList unit test stubs """ + """V1beta1MutatingWebhookConfigurationList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1MutatingWebhookConfigurationList(self): - """ - Test V1beta1MutatingWebhookConfigurationList - """ + """Test V1beta1MutatingWebhookConfigurationList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_mutating_webhook_configuration_list.V1beta1MutatingWebhookConfigurationList() + # model = kubernetes.client.models.v1beta1_mutating_webhook_configuration_list.V1beta1MutatingWebhookConfigurationList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy.py b/kubernetes/test/test_v1beta1_network_policy.py index 3f84f1323e..e4bb30dcef 100644 --- a/kubernetes/test/test_v1beta1_network_policy.py +++ b/kubernetes/test/test_v1beta1_network_policy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy import V1beta1NetworkPolicy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy import V1beta1NetworkPolicy class TestV1beta1NetworkPolicy(unittest.TestCase): - """ V1beta1NetworkPolicy unit test stubs """ + """V1beta1NetworkPolicy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicy(self): - """ - Test V1beta1NetworkPolicy - """ + """Test V1beta1NetworkPolicy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy.V1beta1NetworkPolicy() + # model = kubernetes.client.models.v1beta1_network_policy.V1beta1NetworkPolicy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_egress_rule.py b/kubernetes/test/test_v1beta1_network_policy_egress_rule.py index 315fef059b..5376021d2e 100644 --- a/kubernetes/test/test_v1beta1_network_policy_egress_rule.py +++ b/kubernetes/test/test_v1beta1_network_policy_egress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule class TestV1beta1NetworkPolicyEgressRule(unittest.TestCase): - """ V1beta1NetworkPolicyEgressRule unit test stubs """ + """V1beta1NetworkPolicyEgressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicyEgressRule(self): - """ - Test V1beta1NetworkPolicyEgressRule - """ + """Test V1beta1NetworkPolicyEgressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_egress_rule.V1beta1NetworkPolicyEgressRule() + # model = kubernetes.client.models.v1beta1_network_policy_egress_rule.V1beta1NetworkPolicyEgressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py index bc74801bc9..aa808aa6d6 100644 --- a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule class TestV1beta1NetworkPolicyIngressRule(unittest.TestCase): - """ V1beta1NetworkPolicyIngressRule unit test stubs """ + """V1beta1NetworkPolicyIngressRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicyIngressRule(self): - """ - Test V1beta1NetworkPolicyIngressRule - """ + """Test V1beta1NetworkPolicyIngressRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_ingress_rule.V1beta1NetworkPolicyIngressRule() + # model = kubernetes.client.models.v1beta1_network_policy_ingress_rule.V1beta1NetworkPolicyIngressRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_list.py b/kubernetes/test/test_v1beta1_network_policy_list.py index 561865def2..c9970caa49 100644 --- a/kubernetes/test/test_v1beta1_network_policy_list.py +++ b/kubernetes/test/test_v1beta1_network_policy_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList class TestV1beta1NetworkPolicyList(unittest.TestCase): - """ V1beta1NetworkPolicyList unit test stubs """ + """V1beta1NetworkPolicyList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicyList(self): - """ - Test V1beta1NetworkPolicyList - """ + """Test V1beta1NetworkPolicyList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_list.V1beta1NetworkPolicyList() + # model = kubernetes.client.models.v1beta1_network_policy_list.V1beta1NetworkPolicyList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_peer.py b/kubernetes/test/test_v1beta1_network_policy_peer.py index 63407f6b75..d2a35a2628 100644 --- a/kubernetes/test/test_v1beta1_network_policy_peer.py +++ b/kubernetes/test/test_v1beta1_network_policy_peer.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer class TestV1beta1NetworkPolicyPeer(unittest.TestCase): - """ V1beta1NetworkPolicyPeer unit test stubs """ + """V1beta1NetworkPolicyPeer unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicyPeer(self): - """ - Test V1beta1NetworkPolicyPeer - """ + """Test V1beta1NetworkPolicyPeer""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_peer.V1beta1NetworkPolicyPeer() + # model = kubernetes.client.models.v1beta1_network_policy_peer.V1beta1NetworkPolicyPeer() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_port.py b/kubernetes/test/test_v1beta1_network_policy_port.py index 5f85f2e66e..e9878a4da3 100644 --- a/kubernetes/test/test_v1beta1_network_policy_port.py +++ b/kubernetes/test/test_v1beta1_network_policy_port.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort class TestV1beta1NetworkPolicyPort(unittest.TestCase): - """ V1beta1NetworkPolicyPort unit test stubs """ + """V1beta1NetworkPolicyPort unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicyPort(self): - """ - Test V1beta1NetworkPolicyPort - """ + """Test V1beta1NetworkPolicyPort""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_port.V1beta1NetworkPolicyPort() + # model = kubernetes.client.models.v1beta1_network_policy_port.V1beta1NetworkPolicyPort() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_network_policy_spec.py b/kubernetes/test/test_v1beta1_network_policy_spec.py index 454047db68..1eefe28140 100644 --- a/kubernetes/test/test_v1beta1_network_policy_spec.py +++ b/kubernetes/test/test_v1beta1_network_policy_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec class TestV1beta1NetworkPolicySpec(unittest.TestCase): - """ V1beta1NetworkPolicySpec unit test stubs """ + """V1beta1NetworkPolicySpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NetworkPolicySpec(self): - """ - Test V1beta1NetworkPolicySpec - """ + """Test V1beta1NetworkPolicySpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_network_policy_spec.V1beta1NetworkPolicySpec() + # model = kubernetes.client.models.v1beta1_network_policy_spec.V1beta1NetworkPolicySpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_non_resource_attributes.py b/kubernetes/test/test_v1beta1_non_resource_attributes.py index 3e9f366281..1ad3f6cba5 100644 --- a/kubernetes/test/test_v1beta1_non_resource_attributes.py +++ b/kubernetes/test/test_v1beta1_non_resource_attributes.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes class TestV1beta1NonResourceAttributes(unittest.TestCase): - """ V1beta1NonResourceAttributes unit test stubs """ + """V1beta1NonResourceAttributes unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NonResourceAttributes(self): - """ - Test V1beta1NonResourceAttributes - """ + """Test V1beta1NonResourceAttributes""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes() + # model = kubernetes.client.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_non_resource_rule.py b/kubernetes/test/test_v1beta1_non_resource_rule.py index 91078646f7..d7b158d86a 100644 --- a/kubernetes/test/test_v1beta1_non_resource_rule.py +++ b/kubernetes/test/test_v1beta1_non_resource_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_non_resource_rule import V1beta1NonResourceRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_non_resource_rule import V1beta1NonResourceRule class TestV1beta1NonResourceRule(unittest.TestCase): - """ V1beta1NonResourceRule unit test stubs """ + """V1beta1NonResourceRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1NonResourceRule(self): - """ - Test V1beta1NonResourceRule - """ + """Test V1beta1NonResourceRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_non_resource_rule.V1beta1NonResourceRule() + # model = kubernetes.client.models.v1beta1_non_resource_rule.V1beta1NonResourceRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget.py b/kubernetes/test/test_v1beta1_pod_disruption_budget.py index b12c1d028c..3ff3e2652a 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget class TestV1beta1PodDisruptionBudget(unittest.TestCase): - """ V1beta1PodDisruptionBudget unit test stubs """ + """V1beta1PodDisruptionBudget unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PodDisruptionBudget(self): - """ - Test V1beta1PodDisruptionBudget - """ + """Test V1beta1PodDisruptionBudget""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_pod_disruption_budget.V1beta1PodDisruptionBudget() + # model = kubernetes.client.models.v1beta1_pod_disruption_budget.V1beta1PodDisruptionBudget() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py index da8d51dbbc..09c3184c22 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList class TestV1beta1PodDisruptionBudgetList(unittest.TestCase): - """ V1beta1PodDisruptionBudgetList unit test stubs """ + """V1beta1PodDisruptionBudgetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PodDisruptionBudgetList(self): - """ - Test V1beta1PodDisruptionBudgetList - """ + """Test V1beta1PodDisruptionBudgetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_pod_disruption_budget_list.V1beta1PodDisruptionBudgetList() + # model = kubernetes.client.models.v1beta1_pod_disruption_budget_list.V1beta1PodDisruptionBudgetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py index 3364bc2e4c..e0c0c83605 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec class TestV1beta1PodDisruptionBudgetSpec(unittest.TestCase): - """ V1beta1PodDisruptionBudgetSpec unit test stubs """ + """V1beta1PodDisruptionBudgetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PodDisruptionBudgetSpec(self): - """ - Test V1beta1PodDisruptionBudgetSpec - """ + """Test V1beta1PodDisruptionBudgetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_pod_disruption_budget_spec.V1beta1PodDisruptionBudgetSpec() + # model = kubernetes.client.models.v1beta1_pod_disruption_budget_spec.V1beta1PodDisruptionBudgetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py index ab7962eb7e..091522ad13 100644 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus class TestV1beta1PodDisruptionBudgetStatus(unittest.TestCase): - """ V1beta1PodDisruptionBudgetStatus unit test stubs """ + """V1beta1PodDisruptionBudgetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PodDisruptionBudgetStatus(self): - """ - Test V1beta1PodDisruptionBudgetStatus - """ + """Test V1beta1PodDisruptionBudgetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_pod_disruption_budget_status.V1beta1PodDisruptionBudgetStatus() + # model = kubernetes.client.models.v1beta1_pod_disruption_budget_status.V1beta1PodDisruptionBudgetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_policy_rule.py b/kubernetes/test/test_v1beta1_policy_rule.py index d15d69101f..3ef2cd64f0 100644 --- a/kubernetes/test/test_v1beta1_policy_rule.py +++ b/kubernetes/test/test_v1beta1_policy_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule class TestV1beta1PolicyRule(unittest.TestCase): - """ V1beta1PolicyRule unit test stubs """ + """V1beta1PolicyRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PolicyRule(self): - """ - Test V1beta1PolicyRule - """ + """Test V1beta1PolicyRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_policy_rule.V1beta1PolicyRule() + # model = kubernetes.client.models.v1beta1_policy_rule.V1beta1PolicyRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_priority_class.py b/kubernetes/test/test_v1beta1_priority_class.py index 2f1a2ca263..42d1e82850 100644 --- a/kubernetes/test/test_v1beta1_priority_class.py +++ b/kubernetes/test/test_v1beta1_priority_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_priority_class import V1beta1PriorityClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_priority_class import V1beta1PriorityClass class TestV1beta1PriorityClass(unittest.TestCase): - """ V1beta1PriorityClass unit test stubs """ + """V1beta1PriorityClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PriorityClass(self): - """ - Test V1beta1PriorityClass - """ + """Test V1beta1PriorityClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_priority_class.V1beta1PriorityClass() + # model = kubernetes.client.models.v1beta1_priority_class.V1beta1PriorityClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_priority_class_list.py b/kubernetes/test/test_v1beta1_priority_class_list.py index 58fe95ab1e..4394dde6a5 100644 --- a/kubernetes/test/test_v1beta1_priority_class_list.py +++ b/kubernetes/test/test_v1beta1_priority_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_priority_class_list import V1beta1PriorityClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_priority_class_list import V1beta1PriorityClassList class TestV1beta1PriorityClassList(unittest.TestCase): - """ V1beta1PriorityClassList unit test stubs """ + """V1beta1PriorityClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1PriorityClassList(self): - """ - Test V1beta1PriorityClassList - """ + """Test V1beta1PriorityClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_priority_class_list.V1beta1PriorityClassList() + # model = kubernetes.client.models.v1beta1_priority_class_list.V1beta1PriorityClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_replica_set.py b/kubernetes/test/test_v1beta1_replica_set.py index 078a864cb0..2d44fa24b7 100644 --- a/kubernetes/test/test_v1beta1_replica_set.py +++ b/kubernetes/test/test_v1beta1_replica_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_replica_set import V1beta1ReplicaSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_replica_set import V1beta1ReplicaSet class TestV1beta1ReplicaSet(unittest.TestCase): - """ V1beta1ReplicaSet unit test stubs """ + """V1beta1ReplicaSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ReplicaSet(self): - """ - Test V1beta1ReplicaSet - """ + """Test V1beta1ReplicaSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_replica_set.V1beta1ReplicaSet() + # model = kubernetes.client.models.v1beta1_replica_set.V1beta1ReplicaSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_replica_set_condition.py b/kubernetes/test/test_v1beta1_replica_set_condition.py index e094a365e6..5905adfe49 100644 --- a/kubernetes/test/test_v1beta1_replica_set_condition.py +++ b/kubernetes/test/test_v1beta1_replica_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition class TestV1beta1ReplicaSetCondition(unittest.TestCase): - """ V1beta1ReplicaSetCondition unit test stubs """ + """V1beta1ReplicaSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ReplicaSetCondition(self): - """ - Test V1beta1ReplicaSetCondition - """ + """Test V1beta1ReplicaSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_replica_set_condition.V1beta1ReplicaSetCondition() + # model = kubernetes.client.models.v1beta1_replica_set_condition.V1beta1ReplicaSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_replica_set_list.py b/kubernetes/test/test_v1beta1_replica_set_list.py index 1f502c8ccc..f305bb2f4f 100644 --- a/kubernetes/test/test_v1beta1_replica_set_list.py +++ b/kubernetes/test/test_v1beta1_replica_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_replica_set_list import V1beta1ReplicaSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_replica_set_list import V1beta1ReplicaSetList class TestV1beta1ReplicaSetList(unittest.TestCase): - """ V1beta1ReplicaSetList unit test stubs """ + """V1beta1ReplicaSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ReplicaSetList(self): - """ - Test V1beta1ReplicaSetList - """ + """Test V1beta1ReplicaSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_replica_set_list.V1beta1ReplicaSetList() + # model = kubernetes.client.models.v1beta1_replica_set_list.V1beta1ReplicaSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_replica_set_spec.py b/kubernetes/test/test_v1beta1_replica_set_spec.py index 3613cc754e..094827dacc 100644 --- a/kubernetes/test/test_v1beta1_replica_set_spec.py +++ b/kubernetes/test/test_v1beta1_replica_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec class TestV1beta1ReplicaSetSpec(unittest.TestCase): - """ V1beta1ReplicaSetSpec unit test stubs """ + """V1beta1ReplicaSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ReplicaSetSpec(self): - """ - Test V1beta1ReplicaSetSpec - """ + """Test V1beta1ReplicaSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_replica_set_spec.V1beta1ReplicaSetSpec() + # model = kubernetes.client.models.v1beta1_replica_set_spec.V1beta1ReplicaSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_replica_set_status.py b/kubernetes/test/test_v1beta1_replica_set_status.py index dcab9e2ee6..5cefcb479d 100644 --- a/kubernetes/test/test_v1beta1_replica_set_status.py +++ b/kubernetes/test/test_v1beta1_replica_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus class TestV1beta1ReplicaSetStatus(unittest.TestCase): - """ V1beta1ReplicaSetStatus unit test stubs """ + """V1beta1ReplicaSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ReplicaSetStatus(self): - """ - Test V1beta1ReplicaSetStatus - """ + """Test V1beta1ReplicaSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_replica_set_status.V1beta1ReplicaSetStatus() + # model = kubernetes.client.models.v1beta1_replica_set_status.V1beta1ReplicaSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_resource_attributes.py b/kubernetes/test/test_v1beta1_resource_attributes.py index dfa4392e1f..f2aa536ba6 100644 --- a/kubernetes/test/test_v1beta1_resource_attributes.py +++ b/kubernetes/test/test_v1beta1_resource_attributes.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes class TestV1beta1ResourceAttributes(unittest.TestCase): - """ V1beta1ResourceAttributes unit test stubs """ + """V1beta1ResourceAttributes unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ResourceAttributes(self): - """ - Test V1beta1ResourceAttributes - """ + """Test V1beta1ResourceAttributes""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_resource_attributes.V1beta1ResourceAttributes() + # model = kubernetes.client.models.v1beta1_resource_attributes.V1beta1ResourceAttributes() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_resource_rule.py b/kubernetes/test/test_v1beta1_resource_rule.py index 6239527574..c15b1cd2d7 100644 --- a/kubernetes/test/test_v1beta1_resource_rule.py +++ b/kubernetes/test/test_v1beta1_resource_rule.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_resource_rule import V1beta1ResourceRule # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_resource_rule import V1beta1ResourceRule class TestV1beta1ResourceRule(unittest.TestCase): - """ V1beta1ResourceRule unit test stubs """ + """V1beta1ResourceRule unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ResourceRule(self): - """ - Test V1beta1ResourceRule - """ + """Test V1beta1ResourceRule""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_resource_rule.V1beta1ResourceRule() + # model = kubernetes.client.models.v1beta1_resource_rule.V1beta1ResourceRule() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_role.py b/kubernetes/test/test_v1beta1_role.py index da5a486871..f043b46abf 100644 --- a/kubernetes/test/test_v1beta1_role.py +++ b/kubernetes/test/test_v1beta1_role.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_role import V1beta1Role # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role import V1beta1Role class TestV1beta1Role(unittest.TestCase): - """ V1beta1Role unit test stubs """ + """V1beta1Role unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1Role(self): - """ - Test V1beta1Role - """ + """Test V1beta1Role""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_role.V1beta1Role() + # model = kubernetes.client.models.v1beta1_role.V1beta1Role() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_role_binding.py b/kubernetes/test/test_v1beta1_role_binding.py index eb920099bd..25a34c181b 100644 --- a/kubernetes/test/test_v1beta1_role_binding.py +++ b/kubernetes/test/test_v1beta1_role_binding.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding class TestV1beta1RoleBinding(unittest.TestCase): - """ V1beta1RoleBinding unit test stubs """ + """V1beta1RoleBinding unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RoleBinding(self): - """ - Test V1beta1RoleBinding - """ + """Test V1beta1RoleBinding""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_role_binding.V1beta1RoleBinding() + # model = kubernetes.client.models.v1beta1_role_binding.V1beta1RoleBinding() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_role_binding_list.py b/kubernetes/test/test_v1beta1_role_binding_list.py index 72e2441e69..0aef673f15 100644 --- a/kubernetes/test/test_v1beta1_role_binding_list.py +++ b/kubernetes/test/test_v1beta1_role_binding_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList class TestV1beta1RoleBindingList(unittest.TestCase): - """ V1beta1RoleBindingList unit test stubs """ + """V1beta1RoleBindingList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RoleBindingList(self): - """ - Test V1beta1RoleBindingList - """ + """Test V1beta1RoleBindingList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_role_binding_list.V1beta1RoleBindingList() + # model = kubernetes.client.models.v1beta1_role_binding_list.V1beta1RoleBindingList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_role_list.py b/kubernetes/test/test_v1beta1_role_list.py index 44c33e9ad9..0be746b63d 100644 --- a/kubernetes/test/test_v1beta1_role_list.py +++ b/kubernetes/test/test_v1beta1_role_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList class TestV1beta1RoleList(unittest.TestCase): - """ V1beta1RoleList unit test stubs """ + """V1beta1RoleList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RoleList(self): - """ - Test V1beta1RoleList - """ + """Test V1beta1RoleList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_role_list.V1beta1RoleList() + # model = kubernetes.client.models.v1beta1_role_list.V1beta1RoleList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_role_ref.py b/kubernetes/test/test_v1beta1_role_ref.py index dc72716601..036a9f3147 100644 --- a/kubernetes/test/test_v1beta1_role_ref.py +++ b/kubernetes/test/test_v1beta1_role_ref.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef class TestV1beta1RoleRef(unittest.TestCase): - """ V1beta1RoleRef unit test stubs """ + """V1beta1RoleRef unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RoleRef(self): - """ - Test V1beta1RoleRef - """ + """Test V1beta1RoleRef""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_role_ref.V1beta1RoleRef() + # model = kubernetes.client.models.v1beta1_role_ref.V1beta1RoleRef() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py index 5c5397dd9a..3a880e464d 100644 --- a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py +++ b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet class TestV1beta1RollingUpdateDaemonSet(unittest.TestCase): - """ V1beta1RollingUpdateDaemonSet unit test stubs """ + """V1beta1RollingUpdateDaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RollingUpdateDaemonSet(self): - """ - Test V1beta1RollingUpdateDaemonSet - """ + """Test V1beta1RollingUpdateDaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_rolling_update_daemon_set.V1beta1RollingUpdateDaemonSet() + # model = kubernetes.client.models.v1beta1_rolling_update_daemon_set.V1beta1RollingUpdateDaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py index a96fd64489..bf9b14faa4 100644 --- a/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy class TestV1beta1RollingUpdateStatefulSetStrategy(unittest.TestCase): - """ V1beta1RollingUpdateStatefulSetStrategy unit test stubs """ + """V1beta1RollingUpdateStatefulSetStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RollingUpdateStatefulSetStrategy(self): - """ - Test V1beta1RollingUpdateStatefulSetStrategy - """ + """Test V1beta1RollingUpdateStatefulSetStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy.V1beta1RollingUpdateStatefulSetStrategy() + # model = kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy.V1beta1RollingUpdateStatefulSetStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_rule_with_operations.py b/kubernetes/test/test_v1beta1_rule_with_operations.py index 89ad2f76f6..b8f488fda0 100644 --- a/kubernetes/test/test_v1beta1_rule_with_operations.py +++ b/kubernetes/test/test_v1beta1_rule_with_operations.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_rule_with_operations import V1beta1RuleWithOperations # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_rule_with_operations import V1beta1RuleWithOperations class TestV1beta1RuleWithOperations(unittest.TestCase): - """ V1beta1RuleWithOperations unit test stubs """ + """V1beta1RuleWithOperations unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RuleWithOperations(self): - """ - Test V1beta1RuleWithOperations - """ + """Test V1beta1RuleWithOperations""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_rule_with_operations.V1beta1RuleWithOperations() + # model = kubernetes.client.models.v1beta1_rule_with_operations.V1beta1RuleWithOperations() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_runtime_class.py b/kubernetes/test/test_v1beta1_runtime_class.py index c7298c3e75..40936481f3 100644 --- a/kubernetes/test/test_v1beta1_runtime_class.py +++ b/kubernetes/test/test_v1beta1_runtime_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_runtime_class import V1beta1RuntimeClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_runtime_class import V1beta1RuntimeClass class TestV1beta1RuntimeClass(unittest.TestCase): - """ V1beta1RuntimeClass unit test stubs """ + """V1beta1RuntimeClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RuntimeClass(self): - """ - Test V1beta1RuntimeClass - """ + """Test V1beta1RuntimeClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_runtime_class.V1beta1RuntimeClass() + # model = kubernetes.client.models.v1beta1_runtime_class.V1beta1RuntimeClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_runtime_class_list.py b/kubernetes/test/test_v1beta1_runtime_class_list.py index 56aaf0d6f2..09e59984d7 100644 --- a/kubernetes/test/test_v1beta1_runtime_class_list.py +++ b/kubernetes/test/test_v1beta1_runtime_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_runtime_class_list import V1beta1RuntimeClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_runtime_class_list import V1beta1RuntimeClassList class TestV1beta1RuntimeClassList(unittest.TestCase): - """ V1beta1RuntimeClassList unit test stubs """ + """V1beta1RuntimeClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1RuntimeClassList(self): - """ - Test V1beta1RuntimeClassList - """ + """Test V1beta1RuntimeClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_runtime_class_list.V1beta1RuntimeClassList() + # model = kubernetes.client.models.v1beta1_runtime_class_list.V1beta1RuntimeClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review.py b/kubernetes/test/test_v1beta1_self_subject_access_review.py index fe1062a4c2..b2fa224cf4 100644 --- a/kubernetes/test/test_v1beta1_self_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_self_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview class TestV1beta1SelfSubjectAccessReview(unittest.TestCase): - """ V1beta1SelfSubjectAccessReview unit test stubs """ + """V1beta1SelfSubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SelfSubjectAccessReview(self): - """ - Test V1beta1SelfSubjectAccessReview - """ + """Test V1beta1SelfSubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview() + # model = kubernetes.client.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py index cc1b8bf8c2..60980342b2 100644 --- a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py +++ b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec class TestV1beta1SelfSubjectAccessReviewSpec(unittest.TestCase): - """ V1beta1SelfSubjectAccessReviewSpec unit test stubs """ + """V1beta1SelfSubjectAccessReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SelfSubjectAccessReviewSpec(self): - """ - Test V1beta1SelfSubjectAccessReviewSpec - """ + """Test V1beta1SelfSubjectAccessReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec() + # model = kubernetes.client.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_self_subject_rules_review.py b/kubernetes/test/test_v1beta1_self_subject_rules_review.py index c2ffb52dc7..96a089f6dc 100644 --- a/kubernetes/test/test_v1beta1_self_subject_rules_review.py +++ b/kubernetes/test/test_v1beta1_self_subject_rules_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview class TestV1beta1SelfSubjectRulesReview(unittest.TestCase): - """ V1beta1SelfSubjectRulesReview unit test stubs """ + """V1beta1SelfSubjectRulesReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SelfSubjectRulesReview(self): - """ - Test V1beta1SelfSubjectRulesReview - """ + """Test V1beta1SelfSubjectRulesReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_self_subject_rules_review.V1beta1SelfSubjectRulesReview() + # model = kubernetes.client.models.v1beta1_self_subject_rules_review.V1beta1SelfSubjectRulesReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py index 8d462a8212..9da9812730 100644 --- a/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py +++ b/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec class TestV1beta1SelfSubjectRulesReviewSpec(unittest.TestCase): - """ V1beta1SelfSubjectRulesReviewSpec unit test stubs """ + """V1beta1SelfSubjectRulesReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SelfSubjectRulesReviewSpec(self): - """ - Test V1beta1SelfSubjectRulesReviewSpec - """ + """Test V1beta1SelfSubjectRulesReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_self_subject_rules_review_spec.V1beta1SelfSubjectRulesReviewSpec() + # model = kubernetes.client.models.v1beta1_self_subject_rules_review_spec.V1beta1SelfSubjectRulesReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set.py b/kubernetes/test/test_v1beta1_stateful_set.py index 7204c85b13..b96d51c852 100644 --- a/kubernetes/test/test_v1beta1_stateful_set.py +++ b/kubernetes/test/test_v1beta1_stateful_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set import V1beta1StatefulSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set import V1beta1StatefulSet class TestV1beta1StatefulSet(unittest.TestCase): - """ V1beta1StatefulSet unit test stubs """ + """V1beta1StatefulSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSet(self): - """ - Test V1beta1StatefulSet - """ + """Test V1beta1StatefulSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set.V1beta1StatefulSet() + # model = kubernetes.client.models.v1beta1_stateful_set.V1beta1StatefulSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set_condition.py b/kubernetes/test/test_v1beta1_stateful_set_condition.py index da58018028..a96e7ac30c 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_condition.py +++ b/kubernetes/test/test_v1beta1_stateful_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition class TestV1beta1StatefulSetCondition(unittest.TestCase): - """ V1beta1StatefulSetCondition unit test stubs """ + """V1beta1StatefulSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSetCondition(self): - """ - Test V1beta1StatefulSetCondition - """ + """Test V1beta1StatefulSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set_condition.V1beta1StatefulSetCondition() + # model = kubernetes.client.models.v1beta1_stateful_set_condition.V1beta1StatefulSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set_list.py b/kubernetes/test/test_v1beta1_stateful_set_list.py index d6c4a4f69a..8282448622 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_list.py +++ b/kubernetes/test/test_v1beta1_stateful_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set_list import V1beta1StatefulSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set_list import V1beta1StatefulSetList class TestV1beta1StatefulSetList(unittest.TestCase): - """ V1beta1StatefulSetList unit test stubs """ + """V1beta1StatefulSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSetList(self): - """ - Test V1beta1StatefulSetList - """ + """Test V1beta1StatefulSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set_list.V1beta1StatefulSetList() + # model = kubernetes.client.models.v1beta1_stateful_set_list.V1beta1StatefulSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set_spec.py b/kubernetes/test/test_v1beta1_stateful_set_spec.py index c6380fe249..18dd9a499a 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_spec.py +++ b/kubernetes/test/test_v1beta1_stateful_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec class TestV1beta1StatefulSetSpec(unittest.TestCase): - """ V1beta1StatefulSetSpec unit test stubs """ + """V1beta1StatefulSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSetSpec(self): - """ - Test V1beta1StatefulSetSpec - """ + """Test V1beta1StatefulSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set_spec.V1beta1StatefulSetSpec() + # model = kubernetes.client.models.v1beta1_stateful_set_spec.V1beta1StatefulSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set_status.py b/kubernetes/test/test_v1beta1_stateful_set_status.py index e23abd108c..7296e74db6 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_status.py +++ b/kubernetes/test/test_v1beta1_stateful_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus class TestV1beta1StatefulSetStatus(unittest.TestCase): - """ V1beta1StatefulSetStatus unit test stubs """ + """V1beta1StatefulSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSetStatus(self): - """ - Test V1beta1StatefulSetStatus - """ + """Test V1beta1StatefulSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set_status.V1beta1StatefulSetStatus() + # model = kubernetes.client.models.v1beta1_stateful_set_status.V1beta1StatefulSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py b/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py index 6dfb037748..c66e62099a 100644 --- a/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py +++ b/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy class TestV1beta1StatefulSetUpdateStrategy(unittest.TestCase): - """ V1beta1StatefulSetUpdateStrategy unit test stubs """ + """V1beta1StatefulSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StatefulSetUpdateStrategy(self): - """ - Test V1beta1StatefulSetUpdateStrategy - """ + """Test V1beta1StatefulSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_stateful_set_update_strategy.V1beta1StatefulSetUpdateStrategy() + # model = kubernetes.client.models.v1beta1_stateful_set_update_strategy.V1beta1StatefulSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_storage_class.py b/kubernetes/test/test_v1beta1_storage_class.py index 12577e6d55..fa9b9fa347 100644 --- a/kubernetes/test/test_v1beta1_storage_class.py +++ b/kubernetes/test/test_v1beta1_storage_class.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_storage_class import V1beta1StorageClass # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_storage_class import V1beta1StorageClass class TestV1beta1StorageClass(unittest.TestCase): - """ V1beta1StorageClass unit test stubs """ + """V1beta1StorageClass unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StorageClass(self): - """ - Test V1beta1StorageClass - """ + """Test V1beta1StorageClass""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_storage_class.V1beta1StorageClass() + # model = kubernetes.client.models.v1beta1_storage_class.V1beta1StorageClass() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_storage_class_list.py b/kubernetes/test/test_v1beta1_storage_class_list.py index 0563880acc..17f492d9a0 100644 --- a/kubernetes/test/test_v1beta1_storage_class_list.py +++ b/kubernetes/test/test_v1beta1_storage_class_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_storage_class_list import V1beta1StorageClassList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_storage_class_list import V1beta1StorageClassList class TestV1beta1StorageClassList(unittest.TestCase): - """ V1beta1StorageClassList unit test stubs """ + """V1beta1StorageClassList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1StorageClassList(self): - """ - Test V1beta1StorageClassList - """ + """Test V1beta1StorageClassList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_storage_class_list.V1beta1StorageClassList() + # model = kubernetes.client.models.v1beta1_storage_class_list.V1beta1StorageClassList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_subject.py b/kubernetes/test/test_v1beta1_subject.py index 810b08f101..dd66d27ae5 100644 --- a/kubernetes/test/test_v1beta1_subject.py +++ b/kubernetes/test/test_v1beta1_subject.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_subject import V1beta1Subject # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject import V1beta1Subject class TestV1beta1Subject(unittest.TestCase): - """ V1beta1Subject unit test stubs """ + """V1beta1Subject unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1Subject(self): - """ - Test V1beta1Subject - """ + """Test V1beta1Subject""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_subject.V1beta1Subject() + # model = kubernetes.client.models.v1beta1_subject.V1beta1Subject() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_subject_access_review.py b/kubernetes/test/test_v1beta1_subject_access_review.py index 836718f4f5..628dca0b10 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review.py +++ b/kubernetes/test/test_v1beta1_subject_access_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview class TestV1beta1SubjectAccessReview(unittest.TestCase): - """ V1beta1SubjectAccessReview unit test stubs """ + """V1beta1SubjectAccessReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SubjectAccessReview(self): - """ - Test V1beta1SubjectAccessReview - """ + """Test V1beta1SubjectAccessReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview() + # model = kubernetes.client.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_subject_access_review_spec.py index ce009de860..68bf507f5c 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review_spec.py +++ b/kubernetes/test/test_v1beta1_subject_access_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec class TestV1beta1SubjectAccessReviewSpec(unittest.TestCase): - """ V1beta1SubjectAccessReviewSpec unit test stubs """ + """V1beta1SubjectAccessReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SubjectAccessReviewSpec(self): - """ - Test V1beta1SubjectAccessReviewSpec - """ + """Test V1beta1SubjectAccessReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec() + # model = kubernetes.client.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_subject_access_review_status.py b/kubernetes/test/test_v1beta1_subject_access_review_status.py index 3624244c05..86ad671f95 100644 --- a/kubernetes/test/test_v1beta1_subject_access_review_status.py +++ b/kubernetes/test/test_v1beta1_subject_access_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus class TestV1beta1SubjectAccessReviewStatus(unittest.TestCase): - """ V1beta1SubjectAccessReviewStatus unit test stubs """ + """V1beta1SubjectAccessReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SubjectAccessReviewStatus(self): - """ - Test V1beta1SubjectAccessReviewStatus - """ + """Test V1beta1SubjectAccessReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus() + # model = kubernetes.client.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_subject_rules_review_status.py b/kubernetes/test/test_v1beta1_subject_rules_review_status.py index 6c5c248491..7d5712a9db 100644 --- a/kubernetes/test/test_v1beta1_subject_rules_review_status.py +++ b/kubernetes/test/test_v1beta1_subject_rules_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus class TestV1beta1SubjectRulesReviewStatus(unittest.TestCase): - """ V1beta1SubjectRulesReviewStatus unit test stubs """ + """V1beta1SubjectRulesReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1SubjectRulesReviewStatus(self): - """ - Test V1beta1SubjectRulesReviewStatus - """ + """Test V1beta1SubjectRulesReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_subject_rules_review_status.V1beta1SubjectRulesReviewStatus() + # model = kubernetes.client.models.v1beta1_subject_rules_review_status.V1beta1SubjectRulesReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_token_review.py b/kubernetes/test/test_v1beta1_token_review.py index 93bb93f827..ed3a61a543 100644 --- a/kubernetes/test/test_v1beta1_token_review.py +++ b/kubernetes/test/test_v1beta1_token_review.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_token_review import V1beta1TokenReview # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_token_review import V1beta1TokenReview class TestV1beta1TokenReview(unittest.TestCase): - """ V1beta1TokenReview unit test stubs """ + """V1beta1TokenReview unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1TokenReview(self): - """ - Test V1beta1TokenReview - """ + """Test V1beta1TokenReview""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_token_review.V1beta1TokenReview() + # model = kubernetes.client.models.v1beta1_token_review.V1beta1TokenReview() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_token_review_spec.py b/kubernetes/test/test_v1beta1_token_review_spec.py index 524f13cd7a..d29fd08782 100644 --- a/kubernetes/test/test_v1beta1_token_review_spec.py +++ b/kubernetes/test/test_v1beta1_token_review_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec class TestV1beta1TokenReviewSpec(unittest.TestCase): - """ V1beta1TokenReviewSpec unit test stubs """ + """V1beta1TokenReviewSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1TokenReviewSpec(self): - """ - Test V1beta1TokenReviewSpec - """ + """Test V1beta1TokenReviewSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_token_review_spec.V1beta1TokenReviewSpec() + # model = kubernetes.client.models.v1beta1_token_review_spec.V1beta1TokenReviewSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_token_review_status.py b/kubernetes/test/test_v1beta1_token_review_status.py index f15a6cc7bf..4e31a08eee 100644 --- a/kubernetes/test/test_v1beta1_token_review_status.py +++ b/kubernetes/test/test_v1beta1_token_review_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_token_review_status import V1beta1TokenReviewStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_token_review_status import V1beta1TokenReviewStatus class TestV1beta1TokenReviewStatus(unittest.TestCase): - """ V1beta1TokenReviewStatus unit test stubs """ + """V1beta1TokenReviewStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1TokenReviewStatus(self): - """ - Test V1beta1TokenReviewStatus - """ + """Test V1beta1TokenReviewStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_token_review_status.V1beta1TokenReviewStatus() + # model = kubernetes.client.models.v1beta1_token_review_status.V1beta1TokenReviewStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_user_info.py b/kubernetes/test/test_v1beta1_user_info.py index 4c4f04fe7c..122fce852d 100644 --- a/kubernetes/test/test_v1beta1_user_info.py +++ b/kubernetes/test/test_v1beta1_user_info.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_user_info import V1beta1UserInfo # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_user_info import V1beta1UserInfo class TestV1beta1UserInfo(unittest.TestCase): - """ V1beta1UserInfo unit test stubs """ + """V1beta1UserInfo unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1UserInfo(self): - """ - Test V1beta1UserInfo - """ + """Test V1beta1UserInfo""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_user_info.V1beta1UserInfo() + # model = kubernetes.client.models.v1beta1_user_info.V1beta1UserInfo() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_validating_webhook.py b/kubernetes/test/test_v1beta1_validating_webhook.py new file mode 100644 index 0000000000..5aad9df68f --- /dev/null +++ b/kubernetes/test/test_v1beta1_validating_webhook.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import kubernetes.client +from kubernetes.client.models.v1beta1_validating_webhook import V1beta1ValidatingWebhook # noqa: E501 +from kubernetes.client.rest import ApiException + + +class TestV1beta1ValidatingWebhook(unittest.TestCase): + """V1beta1ValidatingWebhook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ValidatingWebhook(self): + """Test V1beta1ValidatingWebhook""" + # FIXME: construct object with mandatory attributes with example values + # model = kubernetes.client.models.v1beta1_validating_webhook.V1beta1ValidatingWebhook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/kubernetes/test/test_v1beta1_validating_webhook_configuration.py b/kubernetes/test/test_v1beta1_validating_webhook_configuration.py index d3e8e52b04..b3f9ebeeab 100644 --- a/kubernetes/test/test_v1beta1_validating_webhook_configuration.py +++ b/kubernetes/test/test_v1beta1_validating_webhook_configuration.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration class TestV1beta1ValidatingWebhookConfiguration(unittest.TestCase): - """ V1beta1ValidatingWebhookConfiguration unit test stubs """ + """V1beta1ValidatingWebhookConfiguration unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ValidatingWebhookConfiguration(self): - """ - Test V1beta1ValidatingWebhookConfiguration - """ + """Test V1beta1ValidatingWebhookConfiguration""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_validating_webhook_configuration.V1beta1ValidatingWebhookConfiguration() + # model = kubernetes.client.models.v1beta1_validating_webhook_configuration.V1beta1ValidatingWebhookConfiguration() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py b/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py index 35c31144d2..d02964d3c1 100644 --- a/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py +++ b/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList class TestV1beta1ValidatingWebhookConfigurationList(unittest.TestCase): - """ V1beta1ValidatingWebhookConfigurationList unit test stubs """ + """V1beta1ValidatingWebhookConfigurationList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1ValidatingWebhookConfigurationList(self): - """ - Test V1beta1ValidatingWebhookConfigurationList - """ + """Test V1beta1ValidatingWebhookConfigurationList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_validating_webhook_configuration_list.V1beta1ValidatingWebhookConfigurationList() + # model = kubernetes.client.models.v1beta1_validating_webhook_configuration_list.V1beta1ValidatingWebhookConfigurationList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_attachment.py b/kubernetes/test/test_v1beta1_volume_attachment.py index 74614083b3..141d67d939 100644 --- a/kubernetes/test/test_v1beta1_volume_attachment.py +++ b/kubernetes/test/test_v1beta1_volume_attachment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_attachment import V1beta1VolumeAttachment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_attachment import V1beta1VolumeAttachment class TestV1beta1VolumeAttachment(unittest.TestCase): - """ V1beta1VolumeAttachment unit test stubs """ + """V1beta1VolumeAttachment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeAttachment(self): - """ - Test V1beta1VolumeAttachment - """ + """Test V1beta1VolumeAttachment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_attachment.V1beta1VolumeAttachment() + # model = kubernetes.client.models.v1beta1_volume_attachment.V1beta1VolumeAttachment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_attachment_list.py b/kubernetes/test/test_v1beta1_volume_attachment_list.py index 955f2a064a..9058ee23bb 100644 --- a/kubernetes/test/test_v1beta1_volume_attachment_list.py +++ b/kubernetes/test/test_v1beta1_volume_attachment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList class TestV1beta1VolumeAttachmentList(unittest.TestCase): - """ V1beta1VolumeAttachmentList unit test stubs """ + """V1beta1VolumeAttachmentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeAttachmentList(self): - """ - Test V1beta1VolumeAttachmentList - """ + """Test V1beta1VolumeAttachmentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_attachment_list.V1beta1VolumeAttachmentList() + # model = kubernetes.client.models.v1beta1_volume_attachment_list.V1beta1VolumeAttachmentList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_attachment_source.py b/kubernetes/test/test_v1beta1_volume_attachment_source.py index 27de6530d9..688df61ea1 100644 --- a/kubernetes/test/test_v1beta1_volume_attachment_source.py +++ b/kubernetes/test/test_v1beta1_volume_attachment_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource class TestV1beta1VolumeAttachmentSource(unittest.TestCase): - """ V1beta1VolumeAttachmentSource unit test stubs """ + """V1beta1VolumeAttachmentSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeAttachmentSource(self): - """ - Test V1beta1VolumeAttachmentSource - """ + """Test V1beta1VolumeAttachmentSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_attachment_source.V1beta1VolumeAttachmentSource() + # model = kubernetes.client.models.v1beta1_volume_attachment_source.V1beta1VolumeAttachmentSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_attachment_spec.py b/kubernetes/test/test_v1beta1_volume_attachment_spec.py index a7f0a7b80b..ef4f529f42 100644 --- a/kubernetes/test/test_v1beta1_volume_attachment_spec.py +++ b/kubernetes/test/test_v1beta1_volume_attachment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec class TestV1beta1VolumeAttachmentSpec(unittest.TestCase): - """ V1beta1VolumeAttachmentSpec unit test stubs """ + """V1beta1VolumeAttachmentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeAttachmentSpec(self): - """ - Test V1beta1VolumeAttachmentSpec - """ + """Test V1beta1VolumeAttachmentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_attachment_spec.V1beta1VolumeAttachmentSpec() + # model = kubernetes.client.models.v1beta1_volume_attachment_spec.V1beta1VolumeAttachmentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_attachment_status.py b/kubernetes/test/test_v1beta1_volume_attachment_status.py index 8f3e46d219..48f8786866 100644 --- a/kubernetes/test/test_v1beta1_volume_attachment_status.py +++ b/kubernetes/test/test_v1beta1_volume_attachment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus class TestV1beta1VolumeAttachmentStatus(unittest.TestCase): - """ V1beta1VolumeAttachmentStatus unit test stubs """ + """V1beta1VolumeAttachmentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeAttachmentStatus(self): - """ - Test V1beta1VolumeAttachmentStatus - """ + """Test V1beta1VolumeAttachmentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_attachment_status.V1beta1VolumeAttachmentStatus() + # model = kubernetes.client.models.v1beta1_volume_attachment_status.V1beta1VolumeAttachmentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_volume_error.py b/kubernetes/test/test_v1beta1_volume_error.py index 311b177506..2d3af70971 100644 --- a/kubernetes/test/test_v1beta1_volume_error.py +++ b/kubernetes/test/test_v1beta1_volume_error.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta1_volume_error import V1beta1VolumeError # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_volume_error import V1beta1VolumeError class TestV1beta1VolumeError(unittest.TestCase): - """ V1beta1VolumeError unit test stubs """ + """V1beta1VolumeError unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta1VolumeError(self): - """ - Test V1beta1VolumeError - """ + """Test V1beta1VolumeError""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_volume_error.V1beta1VolumeError() + # model = kubernetes.client.models.v1beta1_volume_error.V1beta1VolumeError() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta1_webhook.py b/kubernetes/test/test_v1beta1_webhook.py deleted file mode 100644 index 99a971541e..0000000000 --- a/kubernetes/test/test_v1beta1_webhook.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta1_webhook import V1beta1Webhook - - -class TestV1beta1Webhook(unittest.TestCase): - """ V1beta1Webhook unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Webhook(self): - """ - Test V1beta1Webhook - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta1_webhook.V1beta1Webhook() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_controller_revision.py b/kubernetes/test/test_v1beta2_controller_revision.py index 455435f167..47fd6a3530 100644 --- a/kubernetes/test/test_v1beta2_controller_revision.py +++ b/kubernetes/test/test_v1beta2_controller_revision.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_controller_revision import V1beta2ControllerRevision # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_controller_revision import V1beta2ControllerRevision class TestV1beta2ControllerRevision(unittest.TestCase): - """ V1beta2ControllerRevision unit test stubs """ + """V1beta2ControllerRevision unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ControllerRevision(self): - """ - Test V1beta2ControllerRevision - """ + """Test V1beta2ControllerRevision""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_controller_revision.V1beta2ControllerRevision() + # model = kubernetes.client.models.v1beta2_controller_revision.V1beta2ControllerRevision() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_controller_revision_list.py b/kubernetes/test/test_v1beta2_controller_revision_list.py index fe7e1efa7a..d759815f10 100644 --- a/kubernetes/test/test_v1beta2_controller_revision_list.py +++ b/kubernetes/test/test_v1beta2_controller_revision_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList class TestV1beta2ControllerRevisionList(unittest.TestCase): - """ V1beta2ControllerRevisionList unit test stubs """ + """V1beta2ControllerRevisionList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ControllerRevisionList(self): - """ - Test V1beta2ControllerRevisionList - """ + """Test V1beta2ControllerRevisionList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_controller_revision_list.V1beta2ControllerRevisionList() + # model = kubernetes.client.models.v1beta2_controller_revision_list.V1beta2ControllerRevisionList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set.py b/kubernetes/test/test_v1beta2_daemon_set.py index fe4f0be4bb..3fd3d07da5 100644 --- a/kubernetes/test/test_v1beta2_daemon_set.py +++ b/kubernetes/test/test_v1beta2_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set import V1beta2DaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set import V1beta2DaemonSet class TestV1beta2DaemonSet(unittest.TestCase): - """ V1beta2DaemonSet unit test stubs """ + """V1beta2DaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSet(self): - """ - Test V1beta2DaemonSet - """ + """Test V1beta2DaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set.V1beta2DaemonSet() + # model = kubernetes.client.models.v1beta2_daemon_set.V1beta2DaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set_condition.py b/kubernetes/test/test_v1beta2_daemon_set_condition.py index 231cb7745c..89f5ee1496 100644 --- a/kubernetes/test/test_v1beta2_daemon_set_condition.py +++ b/kubernetes/test/test_v1beta2_daemon_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition class TestV1beta2DaemonSetCondition(unittest.TestCase): - """ V1beta2DaemonSetCondition unit test stubs """ + """V1beta2DaemonSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSetCondition(self): - """ - Test V1beta2DaemonSetCondition - """ + """Test V1beta2DaemonSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set_condition.V1beta2DaemonSetCondition() + # model = kubernetes.client.models.v1beta2_daemon_set_condition.V1beta2DaemonSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set_list.py b/kubernetes/test/test_v1beta2_daemon_set_list.py index 186ed3b4b8..28a43185dd 100644 --- a/kubernetes/test/test_v1beta2_daemon_set_list.py +++ b/kubernetes/test/test_v1beta2_daemon_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set_list import V1beta2DaemonSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set_list import V1beta2DaemonSetList class TestV1beta2DaemonSetList(unittest.TestCase): - """ V1beta2DaemonSetList unit test stubs """ + """V1beta2DaemonSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSetList(self): - """ - Test V1beta2DaemonSetList - """ + """Test V1beta2DaemonSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set_list.V1beta2DaemonSetList() + # model = kubernetes.client.models.v1beta2_daemon_set_list.V1beta2DaemonSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set_spec.py b/kubernetes/test/test_v1beta2_daemon_set_spec.py index e9561ff381..81a6e613aa 100644 --- a/kubernetes/test/test_v1beta2_daemon_set_spec.py +++ b/kubernetes/test/test_v1beta2_daemon_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec class TestV1beta2DaemonSetSpec(unittest.TestCase): - """ V1beta2DaemonSetSpec unit test stubs """ + """V1beta2DaemonSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSetSpec(self): - """ - Test V1beta2DaemonSetSpec - """ + """Test V1beta2DaemonSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set_spec.V1beta2DaemonSetSpec() + # model = kubernetes.client.models.v1beta2_daemon_set_spec.V1beta2DaemonSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set_status.py b/kubernetes/test/test_v1beta2_daemon_set_status.py index 82c2f49797..566823f093 100644 --- a/kubernetes/test/test_v1beta2_daemon_set_status.py +++ b/kubernetes/test/test_v1beta2_daemon_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus class TestV1beta2DaemonSetStatus(unittest.TestCase): - """ V1beta2DaemonSetStatus unit test stubs """ + """V1beta2DaemonSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSetStatus(self): - """ - Test V1beta2DaemonSetStatus - """ + """Test V1beta2DaemonSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set_status.V1beta2DaemonSetStatus() + # model = kubernetes.client.models.v1beta2_daemon_set_status.V1beta2DaemonSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py index 519f04b050..e35723bbdb 100644 --- a/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py +++ b/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy class TestV1beta2DaemonSetUpdateStrategy(unittest.TestCase): - """ V1beta2DaemonSetUpdateStrategy unit test stubs """ + """V1beta2DaemonSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DaemonSetUpdateStrategy(self): - """ - Test V1beta2DaemonSetUpdateStrategy - """ + """Test V1beta2DaemonSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_daemon_set_update_strategy.V1beta2DaemonSetUpdateStrategy() + # model = kubernetes.client.models.v1beta2_daemon_set_update_strategy.V1beta2DaemonSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment.py b/kubernetes/test/test_v1beta2_deployment.py index 1aaea69e3c..13b7c603cd 100644 --- a/kubernetes/test/test_v1beta2_deployment.py +++ b/kubernetes/test/test_v1beta2_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment import V1beta2Deployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment import V1beta2Deployment class TestV1beta2Deployment(unittest.TestCase): - """ V1beta2Deployment unit test stubs """ + """V1beta2Deployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2Deployment(self): - """ - Test V1beta2Deployment - """ + """Test V1beta2Deployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment.V1beta2Deployment() + # model = kubernetes.client.models.v1beta2_deployment.V1beta2Deployment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment_condition.py b/kubernetes/test/test_v1beta2_deployment_condition.py index 93440ecfd3..3d879c60d5 100644 --- a/kubernetes/test/test_v1beta2_deployment_condition.py +++ b/kubernetes/test/test_v1beta2_deployment_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment_condition import V1beta2DeploymentCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment_condition import V1beta2DeploymentCondition class TestV1beta2DeploymentCondition(unittest.TestCase): - """ V1beta2DeploymentCondition unit test stubs """ + """V1beta2DeploymentCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DeploymentCondition(self): - """ - Test V1beta2DeploymentCondition - """ + """Test V1beta2DeploymentCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment_condition.V1beta2DeploymentCondition() + # model = kubernetes.client.models.v1beta2_deployment_condition.V1beta2DeploymentCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment_list.py b/kubernetes/test/test_v1beta2_deployment_list.py index b97cbf6040..15961954e6 100644 --- a/kubernetes/test/test_v1beta2_deployment_list.py +++ b/kubernetes/test/test_v1beta2_deployment_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment_list import V1beta2DeploymentList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment_list import V1beta2DeploymentList class TestV1beta2DeploymentList(unittest.TestCase): - """ V1beta2DeploymentList unit test stubs """ + """V1beta2DeploymentList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DeploymentList(self): - """ - Test V1beta2DeploymentList - """ + """Test V1beta2DeploymentList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment_list.V1beta2DeploymentList() + # model = kubernetes.client.models.v1beta2_deployment_list.V1beta2DeploymentList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment_spec.py b/kubernetes/test/test_v1beta2_deployment_spec.py index 8829778dfe..12e9baad9e 100644 --- a/kubernetes/test/test_v1beta2_deployment_spec.py +++ b/kubernetes/test/test_v1beta2_deployment_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment_spec import V1beta2DeploymentSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment_spec import V1beta2DeploymentSpec class TestV1beta2DeploymentSpec(unittest.TestCase): - """ V1beta2DeploymentSpec unit test stubs """ + """V1beta2DeploymentSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DeploymentSpec(self): - """ - Test V1beta2DeploymentSpec - """ + """Test V1beta2DeploymentSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment_spec.V1beta2DeploymentSpec() + # model = kubernetes.client.models.v1beta2_deployment_spec.V1beta2DeploymentSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment_status.py b/kubernetes/test/test_v1beta2_deployment_status.py index 9ff2a7022f..eb93e09a0e 100644 --- a/kubernetes/test/test_v1beta2_deployment_status.py +++ b/kubernetes/test/test_v1beta2_deployment_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment_status import V1beta2DeploymentStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment_status import V1beta2DeploymentStatus class TestV1beta2DeploymentStatus(unittest.TestCase): - """ V1beta2DeploymentStatus unit test stubs """ + """V1beta2DeploymentStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DeploymentStatus(self): - """ - Test V1beta2DeploymentStatus - """ + """Test V1beta2DeploymentStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment_status.V1beta2DeploymentStatus() + # model = kubernetes.client.models.v1beta2_deployment_status.V1beta2DeploymentStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_deployment_strategy.py b/kubernetes/test/test_v1beta2_deployment_strategy.py index f848df7ebb..3d76bd0118 100644 --- a/kubernetes/test/test_v1beta2_deployment_strategy.py +++ b/kubernetes/test/test_v1beta2_deployment_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy class TestV1beta2DeploymentStrategy(unittest.TestCase): - """ V1beta2DeploymentStrategy unit test stubs """ + """V1beta2DeploymentStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2DeploymentStrategy(self): - """ - Test V1beta2DeploymentStrategy - """ + """Test V1beta2DeploymentStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_deployment_strategy.V1beta2DeploymentStrategy() + # model = kubernetes.client.models.v1beta2_deployment_strategy.V1beta2DeploymentStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_replica_set.py b/kubernetes/test/test_v1beta2_replica_set.py index 0db6e90fad..25feabf6bb 100644 --- a/kubernetes/test/test_v1beta2_replica_set.py +++ b/kubernetes/test/test_v1beta2_replica_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_replica_set import V1beta2ReplicaSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_replica_set import V1beta2ReplicaSet class TestV1beta2ReplicaSet(unittest.TestCase): - """ V1beta2ReplicaSet unit test stubs """ + """V1beta2ReplicaSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ReplicaSet(self): - """ - Test V1beta2ReplicaSet - """ + """Test V1beta2ReplicaSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_replica_set.V1beta2ReplicaSet() + # model = kubernetes.client.models.v1beta2_replica_set.V1beta2ReplicaSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_replica_set_condition.py b/kubernetes/test/test_v1beta2_replica_set_condition.py index 95ef98bf20..2357eb99a8 100644 --- a/kubernetes/test/test_v1beta2_replica_set_condition.py +++ b/kubernetes/test/test_v1beta2_replica_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition class TestV1beta2ReplicaSetCondition(unittest.TestCase): - """ V1beta2ReplicaSetCondition unit test stubs """ + """V1beta2ReplicaSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ReplicaSetCondition(self): - """ - Test V1beta2ReplicaSetCondition - """ + """Test V1beta2ReplicaSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_replica_set_condition.V1beta2ReplicaSetCondition() + # model = kubernetes.client.models.v1beta2_replica_set_condition.V1beta2ReplicaSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_replica_set_list.py b/kubernetes/test/test_v1beta2_replica_set_list.py index 5e21e2d252..72b511748f 100644 --- a/kubernetes/test/test_v1beta2_replica_set_list.py +++ b/kubernetes/test/test_v1beta2_replica_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_replica_set_list import V1beta2ReplicaSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_replica_set_list import V1beta2ReplicaSetList class TestV1beta2ReplicaSetList(unittest.TestCase): - """ V1beta2ReplicaSetList unit test stubs """ + """V1beta2ReplicaSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ReplicaSetList(self): - """ - Test V1beta2ReplicaSetList - """ + """Test V1beta2ReplicaSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_replica_set_list.V1beta2ReplicaSetList() + # model = kubernetes.client.models.v1beta2_replica_set_list.V1beta2ReplicaSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_replica_set_spec.py b/kubernetes/test/test_v1beta2_replica_set_spec.py index b9027282d2..7384ff85e6 100644 --- a/kubernetes/test/test_v1beta2_replica_set_spec.py +++ b/kubernetes/test/test_v1beta2_replica_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec class TestV1beta2ReplicaSetSpec(unittest.TestCase): - """ V1beta2ReplicaSetSpec unit test stubs """ + """V1beta2ReplicaSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ReplicaSetSpec(self): - """ - Test V1beta2ReplicaSetSpec - """ + """Test V1beta2ReplicaSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_replica_set_spec.V1beta2ReplicaSetSpec() + # model = kubernetes.client.models.v1beta2_replica_set_spec.V1beta2ReplicaSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_replica_set_status.py b/kubernetes/test/test_v1beta2_replica_set_status.py index fb28a11a1b..6b68e2905e 100644 --- a/kubernetes/test/test_v1beta2_replica_set_status.py +++ b/kubernetes/test/test_v1beta2_replica_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus class TestV1beta2ReplicaSetStatus(unittest.TestCase): - """ V1beta2ReplicaSetStatus unit test stubs """ + """V1beta2ReplicaSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ReplicaSetStatus(self): - """ - Test V1beta2ReplicaSetStatus - """ + """Test V1beta2ReplicaSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_replica_set_status.V1beta2ReplicaSetStatus() + # model = kubernetes.client.models.v1beta2_replica_set_status.V1beta2ReplicaSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py b/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py index f7bf778e05..219a7bc556 100644 --- a/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py +++ b/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet class TestV1beta2RollingUpdateDaemonSet(unittest.TestCase): - """ V1beta2RollingUpdateDaemonSet unit test stubs """ + """V1beta2RollingUpdateDaemonSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2RollingUpdateDaemonSet(self): - """ - Test V1beta2RollingUpdateDaemonSet - """ + """Test V1beta2RollingUpdateDaemonSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_rolling_update_daemon_set.V1beta2RollingUpdateDaemonSet() + # model = kubernetes.client.models.v1beta2_rolling_update_daemon_set.V1beta2RollingUpdateDaemonSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_rolling_update_deployment.py b/kubernetes/test/test_v1beta2_rolling_update_deployment.py index ca1df26557..cc75536bde 100644 --- a/kubernetes/test/test_v1beta2_rolling_update_deployment.py +++ b/kubernetes/test/test_v1beta2_rolling_update_deployment.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment class TestV1beta2RollingUpdateDeployment(unittest.TestCase): - """ V1beta2RollingUpdateDeployment unit test stubs """ + """V1beta2RollingUpdateDeployment unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2RollingUpdateDeployment(self): - """ - Test V1beta2RollingUpdateDeployment - """ + """Test V1beta2RollingUpdateDeployment""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_rolling_update_deployment.V1beta2RollingUpdateDeployment() + # model = kubernetes.client.models.v1beta2_rolling_update_deployment.V1beta2RollingUpdateDeployment() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py index 01bdda8afe..123f56735a 100644 --- a/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py +++ b/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy class TestV1beta2RollingUpdateStatefulSetStrategy(unittest.TestCase): - """ V1beta2RollingUpdateStatefulSetStrategy unit test stubs """ + """V1beta2RollingUpdateStatefulSetStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2RollingUpdateStatefulSetStrategy(self): - """ - Test V1beta2RollingUpdateStatefulSetStrategy - """ + """Test V1beta2RollingUpdateStatefulSetStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy.V1beta2RollingUpdateStatefulSetStrategy() + # model = kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy.V1beta2RollingUpdateStatefulSetStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_scale.py b/kubernetes/test/test_v1beta2_scale.py index b4f18c00dd..714860261d 100644 --- a/kubernetes/test/test_v1beta2_scale.py +++ b/kubernetes/test/test_v1beta2_scale.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_scale import V1beta2Scale # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_scale import V1beta2Scale class TestV1beta2Scale(unittest.TestCase): - """ V1beta2Scale unit test stubs """ + """V1beta2Scale unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2Scale(self): - """ - Test V1beta2Scale - """ + """Test V1beta2Scale""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_scale.V1beta2Scale() + # model = kubernetes.client.models.v1beta2_scale.V1beta2Scale() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_scale_spec.py b/kubernetes/test/test_v1beta2_scale_spec.py index 877d4c22eb..6737b5471c 100644 --- a/kubernetes/test/test_v1beta2_scale_spec.py +++ b/kubernetes/test/test_v1beta2_scale_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_scale_spec import V1beta2ScaleSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_scale_spec import V1beta2ScaleSpec class TestV1beta2ScaleSpec(unittest.TestCase): - """ V1beta2ScaleSpec unit test stubs """ + """V1beta2ScaleSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ScaleSpec(self): - """ - Test V1beta2ScaleSpec - """ + """Test V1beta2ScaleSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_scale_spec.V1beta2ScaleSpec() + # model = kubernetes.client.models.v1beta2_scale_spec.V1beta2ScaleSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_scale_status.py b/kubernetes/test/test_v1beta2_scale_status.py index ddb47628b8..aa88f12019 100644 --- a/kubernetes/test/test_v1beta2_scale_status.py +++ b/kubernetes/test/test_v1beta2_scale_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_scale_status import V1beta2ScaleStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_scale_status import V1beta2ScaleStatus class TestV1beta2ScaleStatus(unittest.TestCase): - """ V1beta2ScaleStatus unit test stubs """ + """V1beta2ScaleStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2ScaleStatus(self): - """ - Test V1beta2ScaleStatus - """ + """Test V1beta2ScaleStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_scale_status.V1beta2ScaleStatus() + # model = kubernetes.client.models.v1beta2_scale_status.V1beta2ScaleStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set.py b/kubernetes/test/test_v1beta2_stateful_set.py index ce454166cd..e1ea7dd65d 100644 --- a/kubernetes/test/test_v1beta2_stateful_set.py +++ b/kubernetes/test/test_v1beta2_stateful_set.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set import V1beta2StatefulSet # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set import V1beta2StatefulSet class TestV1beta2StatefulSet(unittest.TestCase): - """ V1beta2StatefulSet unit test stubs """ + """V1beta2StatefulSet unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSet(self): - """ - Test V1beta2StatefulSet - """ + """Test V1beta2StatefulSet""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set.V1beta2StatefulSet() + # model = kubernetes.client.models.v1beta2_stateful_set.V1beta2StatefulSet() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set_condition.py b/kubernetes/test/test_v1beta2_stateful_set_condition.py index a4dea343c0..d3b687b566 100644 --- a/kubernetes/test/test_v1beta2_stateful_set_condition.py +++ b/kubernetes/test/test_v1beta2_stateful_set_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition class TestV1beta2StatefulSetCondition(unittest.TestCase): - """ V1beta2StatefulSetCondition unit test stubs """ + """V1beta2StatefulSetCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSetCondition(self): - """ - Test V1beta2StatefulSetCondition - """ + """Test V1beta2StatefulSetCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set_condition.V1beta2StatefulSetCondition() + # model = kubernetes.client.models.v1beta2_stateful_set_condition.V1beta2StatefulSetCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set_list.py b/kubernetes/test/test_v1beta2_stateful_set_list.py index c645776b4a..42f065bca6 100644 --- a/kubernetes/test/test_v1beta2_stateful_set_list.py +++ b/kubernetes/test/test_v1beta2_stateful_set_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set_list import V1beta2StatefulSetList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set_list import V1beta2StatefulSetList class TestV1beta2StatefulSetList(unittest.TestCase): - """ V1beta2StatefulSetList unit test stubs """ + """V1beta2StatefulSetList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSetList(self): - """ - Test V1beta2StatefulSetList - """ + """Test V1beta2StatefulSetList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set_list.V1beta2StatefulSetList() + # model = kubernetes.client.models.v1beta2_stateful_set_list.V1beta2StatefulSetList() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set_spec.py b/kubernetes/test/test_v1beta2_stateful_set_spec.py index 554031f7b4..d38e186662 100644 --- a/kubernetes/test/test_v1beta2_stateful_set_spec.py +++ b/kubernetes/test/test_v1beta2_stateful_set_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec class TestV1beta2StatefulSetSpec(unittest.TestCase): - """ V1beta2StatefulSetSpec unit test stubs """ + """V1beta2StatefulSetSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSetSpec(self): - """ - Test V1beta2StatefulSetSpec - """ + """Test V1beta2StatefulSetSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set_spec.V1beta2StatefulSetSpec() + # model = kubernetes.client.models.v1beta2_stateful_set_spec.V1beta2StatefulSetSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set_status.py b/kubernetes/test/test_v1beta2_stateful_set_status.py index e8e4285662..b937f27987 100644 --- a/kubernetes/test/test_v1beta2_stateful_set_status.py +++ b/kubernetes/test/test_v1beta2_stateful_set_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus class TestV1beta2StatefulSetStatus(unittest.TestCase): - """ V1beta2StatefulSetStatus unit test stubs """ + """V1beta2StatefulSetStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSetStatus(self): - """ - Test V1beta2StatefulSetStatus - """ + """Test V1beta2StatefulSetStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set_status.V1beta2StatefulSetStatus() + # model = kubernetes.client.models.v1beta2_stateful_set_status.V1beta2StatefulSetStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py b/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py index 69a18837f5..066290e3a1 100644 --- a/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py +++ b/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy class TestV1beta2StatefulSetUpdateStrategy(unittest.TestCase): - """ V1beta2StatefulSetUpdateStrategy unit test stubs """ + """V1beta2StatefulSetUpdateStrategy unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV1beta2StatefulSetUpdateStrategy(self): - """ - Test V1beta2StatefulSetUpdateStrategy - """ + """Test V1beta2StatefulSetUpdateStrategy""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v1beta2_stateful_set_update_strategy.V1beta2StatefulSetUpdateStrategy() + # model = kubernetes.client.models.v1beta2_stateful_set_update_strategy.V1beta2StatefulSetUpdateStrategy() # noqa: E501 pass diff --git a/kubernetes/test/test_v2alpha1_cron_job.py b/kubernetes/test/test_v2alpha1_cron_job.py index e6f08d0e80..b9fabea061 100644 --- a/kubernetes/test/test_v2alpha1_cron_job.py +++ b/kubernetes/test/test_v2alpha1_cron_job.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2alpha1_cron_job import V2alpha1CronJob # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_cron_job import V2alpha1CronJob class TestV2alpha1CronJob(unittest.TestCase): - """ V2alpha1CronJob unit test stubs """ + """V2alpha1CronJob unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2alpha1CronJob(self): - """ - Test V2alpha1CronJob - """ + """Test V2alpha1CronJob""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2alpha1_cron_job.V2alpha1CronJob() + # model = kubernetes.client.models.v2alpha1_cron_job.V2alpha1CronJob() # noqa: E501 pass diff --git a/kubernetes/test/test_v2alpha1_cron_job_list.py b/kubernetes/test/test_v2alpha1_cron_job_list.py index a36894ec88..9697d28af4 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_list.py +++ b/kubernetes/test/test_v2alpha1_cron_job_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2alpha1_cron_job_list import V2alpha1CronJobList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_cron_job_list import V2alpha1CronJobList class TestV2alpha1CronJobList(unittest.TestCase): - """ V2alpha1CronJobList unit test stubs """ + """V2alpha1CronJobList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2alpha1CronJobList(self): - """ - Test V2alpha1CronJobList - """ + """Test V2alpha1CronJobList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2alpha1_cron_job_list.V2alpha1CronJobList() + # model = kubernetes.client.models.v2alpha1_cron_job_list.V2alpha1CronJobList() # noqa: E501 pass diff --git a/kubernetes/test/test_v2alpha1_cron_job_spec.py b/kubernetes/test/test_v2alpha1_cron_job_spec.py index a544c08188..c88160bbd2 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_spec.py +++ b/kubernetes/test/test_v2alpha1_cron_job_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec class TestV2alpha1CronJobSpec(unittest.TestCase): - """ V2alpha1CronJobSpec unit test stubs """ + """V2alpha1CronJobSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2alpha1CronJobSpec(self): - """ - Test V2alpha1CronJobSpec - """ + """Test V2alpha1CronJobSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2alpha1_cron_job_spec.V2alpha1CronJobSpec() + # model = kubernetes.client.models.v2alpha1_cron_job_spec.V2alpha1CronJobSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2alpha1_cron_job_status.py b/kubernetes/test/test_v2alpha1_cron_job_status.py index f084f2c0fc..c2338be2b1 100644 --- a/kubernetes/test/test_v2alpha1_cron_job_status.py +++ b/kubernetes/test/test_v2alpha1_cron_job_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2alpha1_cron_job_status import V2alpha1CronJobStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_cron_job_status import V2alpha1CronJobStatus class TestV2alpha1CronJobStatus(unittest.TestCase): - """ V2alpha1CronJobStatus unit test stubs """ + """V2alpha1CronJobStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2alpha1CronJobStatus(self): - """ - Test V2alpha1CronJobStatus - """ + """Test V2alpha1CronJobStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2alpha1_cron_job_status.V2alpha1CronJobStatus() + # model = kubernetes.client.models.v2alpha1_cron_job_status.V2alpha1CronJobStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2alpha1_job_template_spec.py b/kubernetes/test/test_v2alpha1_job_template_spec.py index 3bdeecb31d..68ac4622a3 100644 --- a/kubernetes/test/test_v2alpha1_job_template_spec.py +++ b/kubernetes/test/test_v2alpha1_job_template_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec class TestV2alpha1JobTemplateSpec(unittest.TestCase): - """ V2alpha1JobTemplateSpec unit test stubs """ + """V2alpha1JobTemplateSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2alpha1JobTemplateSpec(self): - """ - Test V2alpha1JobTemplateSpec - """ + """Test V2alpha1JobTemplateSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2alpha1_job_template_spec.V2alpha1JobTemplateSpec() + # model = kubernetes.client.models.v2alpha1_job_template_spec.V2alpha1JobTemplateSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_cross_version_object_reference.py b/kubernetes/test/test_v2beta1_cross_version_object_reference.py index 5c9437553c..37ae26df6e 100644 --- a/kubernetes/test/test_v2beta1_cross_version_object_reference.py +++ b/kubernetes/test/test_v2beta1_cross_version_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference class TestV2beta1CrossVersionObjectReference(unittest.TestCase): - """ V2beta1CrossVersionObjectReference unit test stubs """ + """V2beta1CrossVersionObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1CrossVersionObjectReference(self): - """ - Test V2beta1CrossVersionObjectReference - """ + """Test V2beta1CrossVersionObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_cross_version_object_reference.V2beta1CrossVersionObjectReference() + # model = kubernetes.client.models.v2beta1_cross_version_object_reference.V2beta1CrossVersionObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_external_metric_source.py b/kubernetes/test/test_v2beta1_external_metric_source.py index b727f73caa..9b7ee5a740 100644 --- a/kubernetes/test/test_v2beta1_external_metric_source.py +++ b/kubernetes/test/test_v2beta1_external_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_external_metric_source import V2beta1ExternalMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_external_metric_source import V2beta1ExternalMetricSource class TestV2beta1ExternalMetricSource(unittest.TestCase): - """ V2beta1ExternalMetricSource unit test stubs """ + """V2beta1ExternalMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ExternalMetricSource(self): - """ - Test V2beta1ExternalMetricSource - """ + """Test V2beta1ExternalMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_external_metric_source.V2beta1ExternalMetricSource() + # model = kubernetes.client.models.v2beta1_external_metric_source.V2beta1ExternalMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_external_metric_status.py b/kubernetes/test/test_v2beta1_external_metric_status.py index f0153610cc..533f984a22 100644 --- a/kubernetes/test/test_v2beta1_external_metric_status.py +++ b/kubernetes/test/test_v2beta1_external_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus class TestV2beta1ExternalMetricStatus(unittest.TestCase): - """ V2beta1ExternalMetricStatus unit test stubs """ + """V2beta1ExternalMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ExternalMetricStatus(self): - """ - Test V2beta1ExternalMetricStatus - """ + """Test V2beta1ExternalMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_external_metric_status.V2beta1ExternalMetricStatus() + # model = kubernetes.client.models.v2beta1_external_metric_status.V2beta1ExternalMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py index f22a9a7f77..1a80d64274 100644 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py +++ b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler class TestV2beta1HorizontalPodAutoscaler(unittest.TestCase): - """ V2beta1HorizontalPodAutoscaler unit test stubs """ + """V2beta1HorizontalPodAutoscaler unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1HorizontalPodAutoscaler(self): - """ - Test V2beta1HorizontalPodAutoscaler - """ + """Test V2beta1HorizontalPodAutoscaler""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler.V2beta1HorizontalPodAutoscaler() + # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler.V2beta1HorizontalPodAutoscaler() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py index f520950366..4447d24f60 100644 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition class TestV2beta1HorizontalPodAutoscalerCondition(unittest.TestCase): - """ V2beta1HorizontalPodAutoscalerCondition unit test stubs """ + """V2beta1HorizontalPodAutoscalerCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1HorizontalPodAutoscalerCondition(self): - """ - Test V2beta1HorizontalPodAutoscalerCondition - """ + """Test V2beta1HorizontalPodAutoscalerCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition.V2beta1HorizontalPodAutoscalerCondition() + # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition.V2beta1HorizontalPodAutoscalerCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py index 7ac449d986..a36f6b922d 100644 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList class TestV2beta1HorizontalPodAutoscalerList(unittest.TestCase): - """ V2beta1HorizontalPodAutoscalerList unit test stubs """ + """V2beta1HorizontalPodAutoscalerList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1HorizontalPodAutoscalerList(self): - """ - Test V2beta1HorizontalPodAutoscalerList - """ + """Test V2beta1HorizontalPodAutoscalerList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list.V2beta1HorizontalPodAutoscalerList() + # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list.V2beta1HorizontalPodAutoscalerList() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py index 1cc9eeed03..cef4432222 100644 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec class TestV2beta1HorizontalPodAutoscalerSpec(unittest.TestCase): - """ V2beta1HorizontalPodAutoscalerSpec unit test stubs """ + """V2beta1HorizontalPodAutoscalerSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1HorizontalPodAutoscalerSpec(self): - """ - Test V2beta1HorizontalPodAutoscalerSpec - """ + """Test V2beta1HorizontalPodAutoscalerSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec.V2beta1HorizontalPodAutoscalerSpec() + # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec.V2beta1HorizontalPodAutoscalerSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py index 7631a42d84..fad974a067 100644 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus class TestV2beta1HorizontalPodAutoscalerStatus(unittest.TestCase): - """ V2beta1HorizontalPodAutoscalerStatus unit test stubs """ + """V2beta1HorizontalPodAutoscalerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1HorizontalPodAutoscalerStatus(self): - """ - Test V2beta1HorizontalPodAutoscalerStatus - """ + """Test V2beta1HorizontalPodAutoscalerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status.V2beta1HorizontalPodAutoscalerStatus() + # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status.V2beta1HorizontalPodAutoscalerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_metric_spec.py b/kubernetes/test/test_v2beta1_metric_spec.py index d3db08e476..b80be4a377 100644 --- a/kubernetes/test/test_v2beta1_metric_spec.py +++ b/kubernetes/test/test_v2beta1_metric_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_metric_spec import V2beta1MetricSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_metric_spec import V2beta1MetricSpec class TestV2beta1MetricSpec(unittest.TestCase): - """ V2beta1MetricSpec unit test stubs """ + """V2beta1MetricSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1MetricSpec(self): - """ - Test V2beta1MetricSpec - """ + """Test V2beta1MetricSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_metric_spec.V2beta1MetricSpec() + # model = kubernetes.client.models.v2beta1_metric_spec.V2beta1MetricSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_metric_status.py b/kubernetes/test/test_v2beta1_metric_status.py index d9262f07a2..00d81bdef5 100644 --- a/kubernetes/test/test_v2beta1_metric_status.py +++ b/kubernetes/test/test_v2beta1_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_metric_status import V2beta1MetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_metric_status import V2beta1MetricStatus class TestV2beta1MetricStatus(unittest.TestCase): - """ V2beta1MetricStatus unit test stubs """ + """V2beta1MetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1MetricStatus(self): - """ - Test V2beta1MetricStatus - """ + """Test V2beta1MetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_metric_status.V2beta1MetricStatus() + # model = kubernetes.client.models.v2beta1_metric_status.V2beta1MetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_object_metric_source.py b/kubernetes/test/test_v2beta1_object_metric_source.py index 5189d503c9..d8ee94666a 100644 --- a/kubernetes/test/test_v2beta1_object_metric_source.py +++ b/kubernetes/test/test_v2beta1_object_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_object_metric_source import V2beta1ObjectMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_object_metric_source import V2beta1ObjectMetricSource class TestV2beta1ObjectMetricSource(unittest.TestCase): - """ V2beta1ObjectMetricSource unit test stubs """ + """V2beta1ObjectMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ObjectMetricSource(self): - """ - Test V2beta1ObjectMetricSource - """ + """Test V2beta1ObjectMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_object_metric_source.V2beta1ObjectMetricSource() + # model = kubernetes.client.models.v2beta1_object_metric_source.V2beta1ObjectMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_object_metric_status.py b/kubernetes/test/test_v2beta1_object_metric_status.py index 3daade3c73..57ccaf6548 100644 --- a/kubernetes/test/test_v2beta1_object_metric_status.py +++ b/kubernetes/test/test_v2beta1_object_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus class TestV2beta1ObjectMetricStatus(unittest.TestCase): - """ V2beta1ObjectMetricStatus unit test stubs """ + """V2beta1ObjectMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ObjectMetricStatus(self): - """ - Test V2beta1ObjectMetricStatus - """ + """Test V2beta1ObjectMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_object_metric_status.V2beta1ObjectMetricStatus() + # model = kubernetes.client.models.v2beta1_object_metric_status.V2beta1ObjectMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_pods_metric_source.py b/kubernetes/test/test_v2beta1_pods_metric_source.py index 38c4cd5221..e24068cae0 100644 --- a/kubernetes/test/test_v2beta1_pods_metric_source.py +++ b/kubernetes/test/test_v2beta1_pods_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_pods_metric_source import V2beta1PodsMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_pods_metric_source import V2beta1PodsMetricSource class TestV2beta1PodsMetricSource(unittest.TestCase): - """ V2beta1PodsMetricSource unit test stubs """ + """V2beta1PodsMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1PodsMetricSource(self): - """ - Test V2beta1PodsMetricSource - """ + """Test V2beta1PodsMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_pods_metric_source.V2beta1PodsMetricSource() + # model = kubernetes.client.models.v2beta1_pods_metric_source.V2beta1PodsMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_pods_metric_status.py b/kubernetes/test/test_v2beta1_pods_metric_status.py index 170dda2c73..1448560268 100644 --- a/kubernetes/test/test_v2beta1_pods_metric_status.py +++ b/kubernetes/test/test_v2beta1_pods_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus class TestV2beta1PodsMetricStatus(unittest.TestCase): - """ V2beta1PodsMetricStatus unit test stubs """ + """V2beta1PodsMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1PodsMetricStatus(self): - """ - Test V2beta1PodsMetricStatus - """ + """Test V2beta1PodsMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_pods_metric_status.V2beta1PodsMetricStatus() + # model = kubernetes.client.models.v2beta1_pods_metric_status.V2beta1PodsMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_resource_metric_source.py b/kubernetes/test/test_v2beta1_resource_metric_source.py index 9625b5302c..5a97a351cb 100644 --- a/kubernetes/test/test_v2beta1_resource_metric_source.py +++ b/kubernetes/test/test_v2beta1_resource_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource class TestV2beta1ResourceMetricSource(unittest.TestCase): - """ V2beta1ResourceMetricSource unit test stubs """ + """V2beta1ResourceMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ResourceMetricSource(self): - """ - Test V2beta1ResourceMetricSource - """ + """Test V2beta1ResourceMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_resource_metric_source.V2beta1ResourceMetricSource() + # model = kubernetes.client.models.v2beta1_resource_metric_source.V2beta1ResourceMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta1_resource_metric_status.py b/kubernetes/test/test_v2beta1_resource_metric_status.py index dc0ff39e01..749e7cd791 100644 --- a/kubernetes/test/test_v2beta1_resource_metric_status.py +++ b/kubernetes/test/test_v2beta1_resource_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus class TestV2beta1ResourceMetricStatus(unittest.TestCase): - """ V2beta1ResourceMetricStatus unit test stubs """ + """V2beta1ResourceMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta1ResourceMetricStatus(self): - """ - Test V2beta1ResourceMetricStatus - """ + """Test V2beta1ResourceMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta1_resource_metric_status.V2beta1ResourceMetricStatus() + # model = kubernetes.client.models.v2beta1_resource_metric_status.V2beta1ResourceMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_cross_version_object_reference.py b/kubernetes/test/test_v2beta2_cross_version_object_reference.py index 45a786a832..bf32da2735 100644 --- a/kubernetes/test/test_v2beta2_cross_version_object_reference.py +++ b/kubernetes/test/test_v2beta2_cross_version_object_reference.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference class TestV2beta2CrossVersionObjectReference(unittest.TestCase): - """ V2beta2CrossVersionObjectReference unit test stubs """ + """V2beta2CrossVersionObjectReference unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2CrossVersionObjectReference(self): - """ - Test V2beta2CrossVersionObjectReference - """ + """Test V2beta2CrossVersionObjectReference""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_cross_version_object_reference.V2beta2CrossVersionObjectReference() + # model = kubernetes.client.models.v2beta2_cross_version_object_reference.V2beta2CrossVersionObjectReference() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_external_metric_source.py b/kubernetes/test/test_v2beta2_external_metric_source.py index d100363206..4169cceab0 100644 --- a/kubernetes/test/test_v2beta2_external_metric_source.py +++ b/kubernetes/test/test_v2beta2_external_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_external_metric_source import V2beta2ExternalMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_external_metric_source import V2beta2ExternalMetricSource class TestV2beta2ExternalMetricSource(unittest.TestCase): - """ V2beta2ExternalMetricSource unit test stubs """ + """V2beta2ExternalMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ExternalMetricSource(self): - """ - Test V2beta2ExternalMetricSource - """ + """Test V2beta2ExternalMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_external_metric_source.V2beta2ExternalMetricSource() + # model = kubernetes.client.models.v2beta2_external_metric_source.V2beta2ExternalMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_external_metric_status.py b/kubernetes/test/test_v2beta2_external_metric_status.py index a483679e3d..90154e39cd 100644 --- a/kubernetes/test/test_v2beta2_external_metric_status.py +++ b/kubernetes/test/test_v2beta2_external_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus class TestV2beta2ExternalMetricStatus(unittest.TestCase): - """ V2beta2ExternalMetricStatus unit test stubs """ + """V2beta2ExternalMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ExternalMetricStatus(self): - """ - Test V2beta2ExternalMetricStatus - """ + """Test V2beta2ExternalMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_external_metric_status.V2beta2ExternalMetricStatus() + # model = kubernetes.client.models.v2beta2_external_metric_status.V2beta2ExternalMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py index 9793965c60..554c3ff02b 100644 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py +++ b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler class TestV2beta2HorizontalPodAutoscaler(unittest.TestCase): - """ V2beta2HorizontalPodAutoscaler unit test stubs """ + """V2beta2HorizontalPodAutoscaler unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2HorizontalPodAutoscaler(self): - """ - Test V2beta2HorizontalPodAutoscaler - """ + """Test V2beta2HorizontalPodAutoscaler""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler.V2beta2HorizontalPodAutoscaler() + # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler.V2beta2HorizontalPodAutoscaler() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py index 4004d5875f..39cadeb86e 100644 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition class TestV2beta2HorizontalPodAutoscalerCondition(unittest.TestCase): - """ V2beta2HorizontalPodAutoscalerCondition unit test stubs """ + """V2beta2HorizontalPodAutoscalerCondition unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2HorizontalPodAutoscalerCondition(self): - """ - Test V2beta2HorizontalPodAutoscalerCondition - """ + """Test V2beta2HorizontalPodAutoscalerCondition""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition.V2beta2HorizontalPodAutoscalerCondition() + # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition.V2beta2HorizontalPodAutoscalerCondition() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py index c6caef51a7..4b50452315 100644 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py +++ b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList class TestV2beta2HorizontalPodAutoscalerList(unittest.TestCase): - """ V2beta2HorizontalPodAutoscalerList unit test stubs """ + """V2beta2HorizontalPodAutoscalerList unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2HorizontalPodAutoscalerList(self): - """ - Test V2beta2HorizontalPodAutoscalerList - """ + """Test V2beta2HorizontalPodAutoscalerList""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list.V2beta2HorizontalPodAutoscalerList() + # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list.V2beta2HorizontalPodAutoscalerList() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py index 0f3fab1d71..a62305079f 100644 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec class TestV2beta2HorizontalPodAutoscalerSpec(unittest.TestCase): - """ V2beta2HorizontalPodAutoscalerSpec unit test stubs """ + """V2beta2HorizontalPodAutoscalerSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2HorizontalPodAutoscalerSpec(self): - """ - Test V2beta2HorizontalPodAutoscalerSpec - """ + """Test V2beta2HorizontalPodAutoscalerSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec.V2beta2HorizontalPodAutoscalerSpec() + # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec.V2beta2HorizontalPodAutoscalerSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py index ef2a817d08..f46cd7cb6f 100644 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py +++ b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus class TestV2beta2HorizontalPodAutoscalerStatus(unittest.TestCase): - """ V2beta2HorizontalPodAutoscalerStatus unit test stubs """ + """V2beta2HorizontalPodAutoscalerStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2HorizontalPodAutoscalerStatus(self): - """ - Test V2beta2HorizontalPodAutoscalerStatus - """ + """Test V2beta2HorizontalPodAutoscalerStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status.V2beta2HorizontalPodAutoscalerStatus() + # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status.V2beta2HorizontalPodAutoscalerStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_metric_identifier.py b/kubernetes/test/test_v2beta2_metric_identifier.py index 7af01e821c..e631958589 100644 --- a/kubernetes/test/test_v2beta2_metric_identifier.py +++ b/kubernetes/test/test_v2beta2_metric_identifier.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_metric_identifier import V2beta2MetricIdentifier # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_metric_identifier import V2beta2MetricIdentifier class TestV2beta2MetricIdentifier(unittest.TestCase): - """ V2beta2MetricIdentifier unit test stubs """ + """V2beta2MetricIdentifier unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2MetricIdentifier(self): - """ - Test V2beta2MetricIdentifier - """ + """Test V2beta2MetricIdentifier""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_metric_identifier.V2beta2MetricIdentifier() + # model = kubernetes.client.models.v2beta2_metric_identifier.V2beta2MetricIdentifier() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_metric_spec.py b/kubernetes/test/test_v2beta2_metric_spec.py index 4572fa67fc..9958dd873b 100644 --- a/kubernetes/test/test_v2beta2_metric_spec.py +++ b/kubernetes/test/test_v2beta2_metric_spec.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_metric_spec import V2beta2MetricSpec # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_metric_spec import V2beta2MetricSpec class TestV2beta2MetricSpec(unittest.TestCase): - """ V2beta2MetricSpec unit test stubs """ + """V2beta2MetricSpec unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2MetricSpec(self): - """ - Test V2beta2MetricSpec - """ + """Test V2beta2MetricSpec""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_metric_spec.V2beta2MetricSpec() + # model = kubernetes.client.models.v2beta2_metric_spec.V2beta2MetricSpec() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_metric_status.py b/kubernetes/test/test_v2beta2_metric_status.py index 9381b87bbe..d07ce3c1c3 100644 --- a/kubernetes/test/test_v2beta2_metric_status.py +++ b/kubernetes/test/test_v2beta2_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_metric_status import V2beta2MetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_metric_status import V2beta2MetricStatus class TestV2beta2MetricStatus(unittest.TestCase): - """ V2beta2MetricStatus unit test stubs """ + """V2beta2MetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2MetricStatus(self): - """ - Test V2beta2MetricStatus - """ + """Test V2beta2MetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_metric_status.V2beta2MetricStatus() + # model = kubernetes.client.models.v2beta2_metric_status.V2beta2MetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_metric_target.py b/kubernetes/test/test_v2beta2_metric_target.py index cbe0701ee6..ee73273a42 100644 --- a/kubernetes/test/test_v2beta2_metric_target.py +++ b/kubernetes/test/test_v2beta2_metric_target.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_metric_target import V2beta2MetricTarget # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_metric_target import V2beta2MetricTarget class TestV2beta2MetricTarget(unittest.TestCase): - """ V2beta2MetricTarget unit test stubs """ + """V2beta2MetricTarget unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2MetricTarget(self): - """ - Test V2beta2MetricTarget - """ + """Test V2beta2MetricTarget""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_metric_target.V2beta2MetricTarget() + # model = kubernetes.client.models.v2beta2_metric_target.V2beta2MetricTarget() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_metric_value_status.py b/kubernetes/test/test_v2beta2_metric_value_status.py index f960a62ed4..49a49ad27d 100644 --- a/kubernetes/test/test_v2beta2_metric_value_status.py +++ b/kubernetes/test/test_v2beta2_metric_value_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_metric_value_status import V2beta2MetricValueStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_metric_value_status import V2beta2MetricValueStatus class TestV2beta2MetricValueStatus(unittest.TestCase): - """ V2beta2MetricValueStatus unit test stubs """ + """V2beta2MetricValueStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2MetricValueStatus(self): - """ - Test V2beta2MetricValueStatus - """ + """Test V2beta2MetricValueStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_metric_value_status.V2beta2MetricValueStatus() + # model = kubernetes.client.models.v2beta2_metric_value_status.V2beta2MetricValueStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_object_metric_source.py b/kubernetes/test/test_v2beta2_object_metric_source.py index 06ab18a764..c304f44a69 100644 --- a/kubernetes/test/test_v2beta2_object_metric_source.py +++ b/kubernetes/test/test_v2beta2_object_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_object_metric_source import V2beta2ObjectMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_object_metric_source import V2beta2ObjectMetricSource class TestV2beta2ObjectMetricSource(unittest.TestCase): - """ V2beta2ObjectMetricSource unit test stubs """ + """V2beta2ObjectMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ObjectMetricSource(self): - """ - Test V2beta2ObjectMetricSource - """ + """Test V2beta2ObjectMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_object_metric_source.V2beta2ObjectMetricSource() + # model = kubernetes.client.models.v2beta2_object_metric_source.V2beta2ObjectMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_object_metric_status.py b/kubernetes/test/test_v2beta2_object_metric_status.py index 78da85ed8d..754252acc6 100644 --- a/kubernetes/test/test_v2beta2_object_metric_status.py +++ b/kubernetes/test/test_v2beta2_object_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus class TestV2beta2ObjectMetricStatus(unittest.TestCase): - """ V2beta2ObjectMetricStatus unit test stubs """ + """V2beta2ObjectMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ObjectMetricStatus(self): - """ - Test V2beta2ObjectMetricStatus - """ + """Test V2beta2ObjectMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_object_metric_status.V2beta2ObjectMetricStatus() + # model = kubernetes.client.models.v2beta2_object_metric_status.V2beta2ObjectMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_pods_metric_source.py b/kubernetes/test/test_v2beta2_pods_metric_source.py index f8a5c0e10e..79388b3d02 100644 --- a/kubernetes/test/test_v2beta2_pods_metric_source.py +++ b/kubernetes/test/test_v2beta2_pods_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_pods_metric_source import V2beta2PodsMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_pods_metric_source import V2beta2PodsMetricSource class TestV2beta2PodsMetricSource(unittest.TestCase): - """ V2beta2PodsMetricSource unit test stubs """ + """V2beta2PodsMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2PodsMetricSource(self): - """ - Test V2beta2PodsMetricSource - """ + """Test V2beta2PodsMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_pods_metric_source.V2beta2PodsMetricSource() + # model = kubernetes.client.models.v2beta2_pods_metric_source.V2beta2PodsMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_pods_metric_status.py b/kubernetes/test/test_v2beta2_pods_metric_status.py index de4265bf23..1c6090a959 100644 --- a/kubernetes/test/test_v2beta2_pods_metric_status.py +++ b/kubernetes/test/test_v2beta2_pods_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus class TestV2beta2PodsMetricStatus(unittest.TestCase): - """ V2beta2PodsMetricStatus unit test stubs """ + """V2beta2PodsMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2PodsMetricStatus(self): - """ - Test V2beta2PodsMetricStatus - """ + """Test V2beta2PodsMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_pods_metric_status.V2beta2PodsMetricStatus() + # model = kubernetes.client.models.v2beta2_pods_metric_status.V2beta2PodsMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_resource_metric_source.py b/kubernetes/test/test_v2beta2_resource_metric_source.py index baf5f60d8f..f3a67233e9 100644 --- a/kubernetes/test/test_v2beta2_resource_metric_source.py +++ b/kubernetes/test/test_v2beta2_resource_metric_source.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource class TestV2beta2ResourceMetricSource(unittest.TestCase): - """ V2beta2ResourceMetricSource unit test stubs """ + """V2beta2ResourceMetricSource unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ResourceMetricSource(self): - """ - Test V2beta2ResourceMetricSource - """ + """Test V2beta2ResourceMetricSource""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_resource_metric_source.V2beta2ResourceMetricSource() + # model = kubernetes.client.models.v2beta2_resource_metric_source.V2beta2ResourceMetricSource() # noqa: E501 pass diff --git a/kubernetes/test/test_v2beta2_resource_metric_status.py b/kubernetes/test/test_v2beta2_resource_metric_status.py index 88f3bad11c..6e39ae8d77 100644 --- a/kubernetes/test/test_v2beta2_resource_metric_status.py +++ b/kubernetes/test/test_v2beta2_resource_metric_status.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus class TestV2beta2ResourceMetricStatus(unittest.TestCase): - """ V2beta2ResourceMetricStatus unit test stubs """ + """V2beta2ResourceMetricStatus unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testV2beta2ResourceMetricStatus(self): - """ - Test V2beta2ResourceMetricStatus - """ + """Test V2beta2ResourceMetricStatus""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.v2beta2_resource_metric_status.V2beta2ResourceMetricStatus() + # model = kubernetes.client.models.v2beta2_resource_metric_status.V2beta2ResourceMetricStatus() # noqa: E501 pass diff --git a/kubernetes/test/test_version_api.py b/kubernetes/test/test_version_api.py index cb61e73aac..bd2662ca74 100644 --- a/kubernetes/test/test_version_api.py +++ b/kubernetes/test/test_version_api.py @@ -3,39 +3,34 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.api.version_api import VersionApi # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.apis.version_api import VersionApi class TestVersionApi(unittest.TestCase): - """ VersionApi unit test stubs """ + """VersionApi unit test stubs""" def setUp(self): - self.api = kubernetes.client.apis.version_api.VersionApi() + self.api = kubernetes.client.api.version_api.VersionApi() # noqa: E501 def tearDown(self): pass def test_get_code(self): - """ - Test case for get_code + """Test case for get_code - """ pass diff --git a/kubernetes/test/test_version_info.py b/kubernetes/test/test_version_info.py index 520866593f..31c26897e4 100644 --- a/kubernetes/test/test_version_info.py +++ b/kubernetes/test/test_version_info.py @@ -3,27 +3,24 @@ """ Kubernetes - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: v1.14.4 - - Generated by: https://github.com/swagger-api/swagger-codegen.git + OpenAPI spec version: v1.15.6 + Generated by: https://openapi-generator.tech """ from __future__ import absolute_import -import os -import sys import unittest import kubernetes.client +from kubernetes.client.models.version_info import VersionInfo # noqa: E501 from kubernetes.client.rest import ApiException -from kubernetes.client.models.version_info import VersionInfo class TestVersionInfo(unittest.TestCase): - """ VersionInfo unit test stubs """ + """VersionInfo unit test stubs""" def setUp(self): pass @@ -32,11 +29,9 @@ def tearDown(self): pass def testVersionInfo(self): - """ - Test VersionInfo - """ + """Test VersionInfo""" # FIXME: construct object with mandatory attributes with example values - #model = kubernetes.client.models.version_info.VersionInfo() + # model = kubernetes.client.models.version_info.VersionInfo() # noqa: E501 pass diff --git a/scripts/swagger.json b/scripts/swagger.json index 0785bf0fb2..598fdb9f32 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -445,6 +445,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -639,6 +644,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -713,6 +722,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -1114,7 +1127,7 @@ }, "service": { "$ref": "#/definitions/apiextensions.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -1382,7 +1395,7 @@ }, "service": { "$ref": "#/definitions/v1alpha1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -1427,15 +1440,61 @@ } ] }, - "v1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "v1beta1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", "format": "int32", "type": "integer" } }, + "required": [ + "name", + "clientConfig" + ], "type": "object" }, "v1beta1.RoleList": { @@ -1659,7 +1718,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the Secret or it's key must be defined", + "description": "Specify whether the Secret or its key must be defined", "type": "boolean" } }, @@ -4037,7 +4096,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's key must be defined", + "description": "Specify whether the ConfigMap or its key must be defined", "type": "boolean" } }, @@ -4230,7 +4289,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -4475,7 +4534,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/extensions.v1beta1.AllowedCSIDriver" }, @@ -4580,6 +4639,10 @@ "$ref": "#/definitions/extensions.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/extensions.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/extensions.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -4629,6 +4692,26 @@ ], "type": "object" }, + "extensions.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", + "properties": { + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", + "type": "string" + } + }, + "required": [ + "allowedRuntimeClassNames" + ], + "type": "object" + }, "v1beta1.DaemonSet": { "description": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.", "properties": { @@ -5021,7 +5104,7 @@ "type": "string" }, "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14.", + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15.", "type": "string" } }, @@ -5617,6 +5700,33 @@ ], "type": "object" }, + "v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/definitions/v1.PodDNSConfigOption" + }, + "type": "array" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "v2beta1.HorizontalPodAutoscalerStatus": { "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", "properties": { @@ -5857,6 +5967,10 @@ "seLinuxOptions": { "$ref": "#/definitions/v1.SELinuxOptions", "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence." + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -5926,22 +6040,24 @@ } ] }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "policy.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", "properties": { - "configMapRef": { - "$ref": "#/definitions/v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretEnvSource", - "description": "The Secret to select from" } }, + "required": [ + "allowedRuntimeClassNames" + ], "type": "object" }, "v1.Service": { @@ -5991,7 +6107,7 @@ "type": "string" }, "state": { - "description": "State of this Series: Ongoing or Finished", + "description": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -6248,6 +6364,10 @@ "v1alpha1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -6377,7 +6497,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -6862,6 +6982,10 @@ "$ref": "#/definitions/v1beta1.CustomResourceDefinitionNames", "description": "Names are the names used to describe this custom resource" }, + "preserveUnknownFields": { + "description": "preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1.", + "type": "boolean" + }, "scope": { "description": "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced", "type": "string" @@ -7050,7 +7174,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/v1beta1.Webhook" + "$ref": "#/definitions/v1beta1.ValidatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -7741,6 +7865,17 @@ ], "type": "object" }, + "v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "v1alpha1.AuditSinkList": { "description": "AuditSinkList is a list of AuditSink items.", "properties": { @@ -7785,6 +7920,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -7908,6 +8048,10 @@ "v1beta1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -8663,7 +8807,7 @@ "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", "properties": { "labelSelectorPath": { - "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", + "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", "type": "string" }, "specReplicasPath": { @@ -9450,7 +9594,7 @@ }, "service": { "$ref": "#/definitions/admissionregistration.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -9658,7 +9802,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/policy.v1beta1.AllowedCSIDriver" }, @@ -9763,6 +9907,10 @@ "$ref": "#/definitions/policy.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/policy.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/policy.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -10414,6 +10562,24 @@ }, "type": "object" }, + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "#/definitions/v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object" + }, "v1alpha1.RoleRef": { "description": "RoleRef contains information that points to the role being used", "properties": { @@ -10739,6 +10905,28 @@ } ] }, + "v2beta1.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "currentAverageValue": { + "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", + "type": "string" + }, + "metricName": { + "description": "metricName is the name of the metric in question", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "metricName", + "currentAverageValue" + ], + "type": "object" + }, "extensions.v1beta1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -10835,55 +11023,6 @@ } ] }, - "v1beta1.Webhook": { - "description": "Webhook describes an admission webhook and the resources and operations it applies to.", - "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "type": "string" - }, - "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "type": "string" - }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "rules": { - "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "items": { - "$ref": "#/definitions/v1beta1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "name", - "clientConfig" - ], - "type": "object" - }, "v1.ListMeta": { "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "properties": { @@ -10891,6 +11030,11 @@ "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", "type": "string" }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.\n\nThis field is alpha and can be changed or removed without notice.", + "format": "int64", + "type": "integer" + }, "resourceVersion": { "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency", "type": "string" @@ -11209,7 +11353,7 @@ "type": "string" }, "type": { - "description": "Type is the type of the condition.", + "description": "Type is the type of the condition. Types include Established, NamesAccepted and Terminating.", "type": "string" } }, @@ -11219,26 +11363,18 @@ ], "type": "object" }, - "v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", "type": "string" }, - "metricName": { - "description": "metricName is the name of the metric in question", + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." } }, - "required": [ - "metricName", - "currentAverageValue" - ], "type": "object" }, "v1.DaemonEndpoint": { @@ -11447,7 +11583,7 @@ "type": "string" }, "state": { - "description": "Information whether this series is ongoing or finished.", + "description": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -12666,6 +12802,10 @@ "v1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -12959,6 +13099,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -14118,7 +14262,7 @@ "type": "array" }, "strategy": { - "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.", + "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false.", "type": "string" }, "webhookClientConfig": { @@ -14961,6 +15105,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -15342,33 +15491,6 @@ }, "type": "object" }, - "v1.PodDNSConfig": { - "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", - "properties": { - "nameservers": { - "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", - "items": { - "type": "string" - }, - "type": "array" - }, - "options": { - "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", - "items": { - "$ref": "#/definitions/v1.PodDNSConfigOption" - }, - "type": "array" - }, - "searches": { - "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "v1.PodCondition": { "description": "PodCondition contains details for the current condition of this pod.", "properties": { @@ -15596,6 +15718,10 @@ "v1.CSIPersistentVolumeSource": { "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "properties": { + "controllerExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, "controllerPublishSecretRef": { "$ref": "#/definitions/v1.SecretReference", "description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." @@ -15915,7 +16041,7 @@ "type": "array" }, "optional": { - "description": "Specify whether the Secret or it's keys must be defined", + "description": "Specify whether the Secret or its keys must be defined", "type": "boolean" }, "secretName": { @@ -16249,6 +16375,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -16321,6 +16452,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -16455,6 +16591,10 @@ "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", "type": "object" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "priority": { "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", "format": "int32", @@ -16476,7 +16616,7 @@ "type": "string" }, "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.", + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.", "type": "string" }, "schedulerName": { @@ -17350,7 +17490,7 @@ "type": "array" }, "default": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "description": "default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.", "type": "object" }, "definitions": { @@ -17476,6 +17616,18 @@ }, "uniqueItems": { "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": "boolean" } }, "type": "object" @@ -17872,7 +18024,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/v1beta1.Webhook" + "$ref": "#/definitions/v1beta1.MutatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -18267,6 +18419,10 @@ "$ref": "#/definitions/v1.Sysctl" }, "type": "array" + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -18358,11 +18514,72 @@ "status" ], "type": "object" + }, + "v1beta1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": "string" + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig" + ], + "type": "object" } }, "info": { "title": "Kubernetes", - "version": "v1.14.4" + "version": "v1.15.6" }, "paths": { "/api/": { @@ -18470,6 +18687,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18621,6 +18845,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18718,6 +18949,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18815,6 +19053,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18912,6 +19157,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18978,6 +19230,13 @@ "description": "list or watch objects of kind Namespace", "operationId": "listNamespace", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19240,6 +19499,20 @@ "description": "delete collection of ConfigMap", "operationId": "deleteCollectionNamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19247,6 +19520,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19254,6 +19534,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19268,6 +19555,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19326,6 +19627,13 @@ "description": "list or watch objects of kind ConfigMap", "operationId": "listNamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19798,6 +20106,20 @@ "description": "delete collection of Endpoints", "operationId": "deleteCollectionNamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19805,6 +20127,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19812,6 +20141,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19826,6 +20162,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19884,6 +20234,13 @@ "description": "list or watch objects of kind Endpoints", "operationId": "listNamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20356,6 +20713,20 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20363,6 +20734,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20370,6 +20748,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20384,6 +20769,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -20442,6 +20841,13 @@ "description": "list or watch objects of kind Event", "operationId": "listNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20914,6 +21320,20 @@ "description": "delete collection of LimitRange", "operationId": "deleteCollectionNamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20921,6 +21341,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20928,6 +21355,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20942,6 +21376,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -21000,6 +21448,13 @@ "description": "list or watch objects of kind LimitRange", "operationId": "listNamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21472,6 +21927,20 @@ "description": "delete collection of PersistentVolumeClaim", "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21479,6 +21948,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -21486,6 +21962,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -21500,6 +21983,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -21558,6 +22055,13 @@ "description": "list or watch objects of kind PersistentVolumeClaim", "operationId": "listNamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22228,6 +22732,20 @@ "description": "delete collection of Pod", "operationId": "deleteCollectionNamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22235,6 +22753,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -22242,6 +22767,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -22256,6 +22788,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -22314,6 +22860,13 @@ "description": "list or watch objects of kind Pod", "operationId": "listNamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24160,6 +24713,20 @@ "description": "delete collection of PodTemplate", "operationId": "deleteCollectionNamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24167,6 +24734,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24174,6 +24748,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24188,6 +24769,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24246,6 +24841,13 @@ "description": "list or watch objects of kind PodTemplate", "operationId": "listNamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24718,6 +25320,20 @@ "description": "delete collection of ReplicationController", "operationId": "deleteCollectionNamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24725,6 +25341,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24732,6 +25355,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24746,6 +25376,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24804,6 +25448,13 @@ "description": "list or watch objects of kind ReplicationController", "operationId": "listNamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25672,6 +26323,20 @@ "description": "delete collection of ResourceQuota", "operationId": "deleteCollectionNamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25679,6 +26344,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -25686,6 +26358,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -25700,6 +26379,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -25758,6 +26451,13 @@ "description": "list or watch objects of kind ResourceQuota", "operationId": "listNamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26428,6 +27128,20 @@ "description": "delete collection of Secret", "operationId": "deleteCollectionNamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26435,6 +27149,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -26442,6 +27163,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26456,6 +27184,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -26514,6 +27256,13 @@ "description": "list or watch objects of kind Secret", "operationId": "listNamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26986,6 +27735,20 @@ "description": "delete collection of ServiceAccount", "operationId": "deleteCollectionNamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26993,6 +27756,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -27000,6 +27770,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -27014,6 +27791,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -27072,6 +27863,13 @@ "description": "list or watch objects of kind ServiceAccount", "operationId": "listNamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -27544,6 +28342,13 @@ "description": "list or watch objects of kind Service", "operationId": "listNamespacedService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29298,6 +30103,20 @@ "description": "delete collection of Node", "operationId": "deleteCollectionNode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29305,6 +30124,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -29312,6 +30138,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -29326,6 +30159,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -29384,6 +30231,13 @@ "description": "list or watch objects of kind Node", "operationId": "listNode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30569,6 +31423,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30635,6 +31496,20 @@ "description": "delete collection of PersistentVolume", "operationId": "deleteCollectionPersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30642,6 +31517,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -30649,6 +31531,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -30663,6 +31552,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -30721,6 +31624,13 @@ "description": "list or watch objects of kind PersistentVolume", "operationId": "listPersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31398,6 +32308,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31495,6 +32412,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31592,6 +32516,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31689,6 +32620,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31786,6 +32724,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31883,6 +32828,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31980,6 +32932,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32040,6 +32999,13 @@ }, "/api/v1/watch/configmaps": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32100,6 +33066,13 @@ }, "/api/v1/watch/endpoints": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32160,6 +33133,13 @@ }, "/api/v1/watch/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32221,65 +33201,79 @@ "/api/v1/watch/limitranges": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/api/v1/watch/namespaces": { - "parameters": [ + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/namespaces": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32340,6 +33334,13 @@ }, "/api/v1/watch/namespaces/{namespace}/configmaps": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32408,6 +33409,13 @@ }, "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32484,6 +33492,13 @@ }, "/api/v1/watch/namespaces/{namespace}/endpoints": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32552,6 +33567,13 @@ }, "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32628,6 +33650,13 @@ }, "/api/v1/watch/namespaces/{namespace}/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32696,6 +33725,13 @@ }, "/api/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32772,6 +33808,13 @@ }, "/api/v1/watch/namespaces/{namespace}/limitranges": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32840,6 +33883,13 @@ }, "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32916,6 +33966,13 @@ }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32984,6 +34041,13 @@ }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33060,6 +34124,13 @@ }, "/api/v1/watch/namespaces/{namespace}/pods": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33128,6 +34199,13 @@ }, "/api/v1/watch/namespaces/{namespace}/pods/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33204,6 +34282,13 @@ }, "/api/v1/watch/namespaces/{namespace}/podtemplates": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33272,6 +34357,13 @@ }, "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33348,6 +34440,13 @@ }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33416,6 +34515,13 @@ }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33492,6 +34598,13 @@ }, "/api/v1/watch/namespaces/{namespace}/resourcequotas": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33560,6 +34673,13 @@ }, "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33636,6 +34756,13 @@ }, "/api/v1/watch/namespaces/{namespace}/secrets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33704,6 +34831,13 @@ }, "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33780,6 +34914,13 @@ }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33848,6 +34989,13 @@ }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33924,6 +35072,13 @@ }, "/api/v1/watch/namespaces/{namespace}/services": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33992,6 +35147,13 @@ }, "/api/v1/watch/namespaces/{namespace}/services/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34068,6 +35230,13 @@ }, "/api/v1/watch/namespaces/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34136,6 +35305,13 @@ }, "/api/v1/watch/nodes": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34196,6 +35372,13 @@ }, "/api/v1/watch/nodes/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34265,65 +35448,79 @@ "/api/v1/watch/persistentvolumeclaims": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "parameters": [ + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/persistentvolumes": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34384,6 +35581,13 @@ }, "/api/v1/watch/persistentvolumes/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34452,6 +35656,13 @@ }, "/api/v1/watch/pods": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34512,6 +35723,13 @@ }, "/api/v1/watch/podtemplates": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34572,6 +35790,13 @@ }, "/api/v1/watch/replicationcontrollers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34632,6 +35857,13 @@ }, "/api/v1/watch/resourcequotas": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34692,6 +35924,13 @@ }, "/api/v1/watch/secrets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34752,6 +35991,13 @@ }, "/api/v1/watch/serviceaccounts": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34812,6 +36058,13 @@ }, "/api/v1/watch/services": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34977,6 +36230,20 @@ "description": "delete collection of MutatingWebhookConfiguration", "operationId": "deleteCollectionMutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34984,6 +36251,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -34991,6 +36265,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -35005,6 +36286,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -35063,6 +36358,13 @@ "description": "list or watch objects of kind MutatingWebhookConfiguration", "operationId": "listMutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35519,6 +36821,20 @@ "description": "delete collection of ValidatingWebhookConfiguration", "operationId": "deleteCollectionValidatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35526,6 +36842,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -35533,6 +36856,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -35547,6 +36877,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -35605,6 +36949,13 @@ "description": "list or watch objects of kind ValidatingWebhookConfiguration", "operationId": "listValidatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36055,6 +37406,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingwebhookconfigurations": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36115,6 +37473,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingwebhookconfigurations/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36183,6 +37548,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingwebhookconfigurations": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36243,6 +37615,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingwebhookconfigurations/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36383,6 +37762,20 @@ "description": "delete collection of CustomResourceDefinition", "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36390,6 +37783,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -36397,6 +37797,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -36411,6 +37818,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -36469,6 +37890,13 @@ "description": "list or watch objects of kind CustomResourceDefinition", "operationId": "listCustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37109,6 +38537,13 @@ }, "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37169,6 +38604,13 @@ }, "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37309,6 +38751,20 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37316,6 +38772,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -37323,6 +38786,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -37337,6 +38807,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -37395,6 +38879,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38035,6 +39526,13 @@ }, "/apis/apiregistration.k8s.io/v1/watch/apiservices": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38095,6 +39593,13 @@ }, "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38202,6 +39707,20 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38209,6 +39728,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -38216,6 +39742,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -38230,6 +39763,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -38288,6 +39835,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38928,6 +40482,13 @@ }, "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38988,6 +40549,13 @@ }, "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39159,6 +40727,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39256,6 +40831,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39353,6 +40935,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39419,6 +41008,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39426,6 +41029,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -39433,6 +41043,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -39447,6 +41064,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -39505,6 +41136,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39977,6 +41615,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39984,6 +41636,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -39991,6 +41650,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -40005,6 +41671,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -40063,6 +41743,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40733,6 +42420,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40740,6 +42441,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -40747,6 +42455,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -40761,6 +42476,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -40819,6 +42548,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41687,6 +43423,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41694,6 +43444,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -41701,6 +43458,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -41715,6 +43479,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -41773,6 +43551,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42641,6 +44426,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42648,6 +44447,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -42655,6 +44461,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -42669,6 +44482,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -42727,6 +44554,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43626,6 +45460,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43723,6 +45564,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43783,6 +45631,13 @@ }, "/apis/apps/v1/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43843,6 +45698,13 @@ }, "/apis/apps/v1/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43903,6 +45765,13 @@ }, "/apis/apps/v1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43964,73 +45833,12 @@ "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44059,14 +45867,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44105,76 +45905,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44204,7 +45943,7 @@ "uniqueItems": true }, { - "description": "name of the DaemonSet", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -44249,8 +45988,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44317,8 +46063,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44348,7 +46101,7 @@ "uniqueItems": true }, { - "description": "name of the Deployment", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -44393,8 +46146,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44461,8 +46221,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44492,7 +46259,7 @@ "uniqueItems": true }, { - "description": "name of the ReplicaSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -44537,8 +46304,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44605,8 +46379,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44636,7 +46417,7 @@ "uniqueItems": true }, { - "description": "name of the StatefulSet", + "description": "name of the ReplicaSet", "in": "path", "name": "name", "required": true, @@ -44681,8 +46462,15 @@ } ] }, - "/apis/apps/v1/watch/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44711,6 +46499,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44741,8 +46537,15 @@ } ] }, - "/apis/apps/v1/watch/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44771,6 +46574,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44801,78 +46620,82 @@ } ] }, - "/apis/apps/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1/watch/replicasets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ] - } - }, - "/apis/apps/v1beta1/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listControllerRevisionForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/apps/v1/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44931,13 +46754,46 @@ } ] }, - "/apis/apps/v1beta1/deployments": { + "/apis/apps/v1beta1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ] + } + }, + "/apis/apps/v1beta1/controllerrevisions": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listDeploymentForAllNamespaces", + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listControllerRevisionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -44949,7 +46805,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" + "$ref": "#/definitions/v1beta1.ControllerRevisionList" } }, "401": { @@ -44965,11 +46821,122 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1beta1" } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta1/deployments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Deployment", + "operationId": "listDeploymentForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/apps.v1beta1.DeploymentList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45036,6 +47003,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45043,6 +47024,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -45050,6 +47038,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -45064,6 +47059,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -45122,6 +47131,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45594,6 +47610,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45601,6 +47631,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -45608,6 +47645,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -45622,6 +47666,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -45680,6 +47738,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46647,6 +48712,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46654,6 +48733,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -46661,6 +48747,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -46675,6 +48768,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -46733,6 +48840,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47632,6 +49746,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47692,6 +49813,13 @@ }, "/apis/apps/v1beta1/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47752,6 +49880,13 @@ }, "/apis/apps/v1beta1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47812,6 +49947,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47880,6 +50022,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47956,6 +50105,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48024,6 +50180,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48100,6 +50263,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48168,6 +50338,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48244,6 +50421,13 @@ }, "/apis/apps/v1beta1/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48374,6 +50558,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48471,6 +50662,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48568,6 +50766,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48634,6 +50839,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48641,6 +50860,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -48648,6 +50874,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -48662,6 +50895,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -48720,6 +50967,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49192,6 +51446,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49199,6 +51467,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -49206,6 +51481,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -49220,6 +51502,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -49278,6 +51574,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49948,6 +52251,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49955,6 +52272,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -49962,6 +52286,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -49976,6 +52307,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -50034,6 +52379,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50902,6 +53254,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50909,6 +53275,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -50916,6 +53289,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -50930,6 +53310,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -50988,6 +53382,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51856,6 +54257,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51863,6 +54278,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -51870,6 +54292,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -51884,6 +54313,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -51942,6 +54385,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52841,6 +55291,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52938,6 +55395,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52998,6 +55462,13 @@ }, "/apis/apps/v1beta2/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53058,6 +55529,13 @@ }, "/apis/apps/v1beta2/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53118,6 +55596,13 @@ }, "/apis/apps/v1beta2/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53178,6 +55663,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53246,6 +55738,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53323,73 +55822,12 @@ "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53418,14 +55856,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the DaemonSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -53464,76 +55894,15 @@ } ] }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments": { + "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53563,7 +55932,7 @@ "uniqueItems": true }, { - "description": "name of the Deployment", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -53608,76 +55977,15 @@ } ] }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets": { + "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53706,14 +56014,247 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -53754,6 +56295,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53822,6 +56370,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53898,6 +56453,13 @@ }, "/apis/apps/v1beta2/watch/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53958,6 +56520,13 @@ }, "/apis/apps/v1beta2/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54090,6 +56659,20 @@ "description": "delete collection of AuditSink", "operationId": "deleteCollectionAuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54097,6 +56680,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -54104,6 +56694,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -54118,6 +56715,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -54176,6 +56787,13 @@ "description": "list or watch objects of kind AuditSink", "operationId": "listAuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54626,6 +57244,13 @@ }, "/apis/auditregistration.k8s.io/v1alpha1/watch/auditsinks": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54686,6 +57311,13 @@ }, "/apis/auditregistration.k8s.io/v1alpha1/watch/auditsinks/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55901,6 +58533,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55967,6 +58606,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55974,6 +58627,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -55981,6 +58641,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -55995,6 +58662,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -56053,6 +58734,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56717,6 +59405,13 @@ }, "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56777,6 +59472,13 @@ }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56845,6 +59547,13 @@ }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56991,6 +59700,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57057,6 +59773,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57064,6 +59794,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -57071,6 +59808,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -57085,6 +59829,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -57143,6 +59901,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57807,6 +60572,13 @@ }, "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57867,6 +60639,13 @@ }, "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57935,6 +60714,13 @@ }, "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58081,6 +60867,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58147,6 +60940,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58154,6 +60961,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -58161,6 +60975,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -58175,6 +60996,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -58233,6 +61068,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58897,6 +61739,13 @@ }, "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58957,6 +61806,13 @@ }, "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59025,6 +61881,13 @@ }, "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59204,6 +62067,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59270,6 +62140,20 @@ "description": "delete collection of Job", "operationId": "deleteCollectionNamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59277,6 +62161,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -59284,6 +62175,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -59298,6 +62196,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -59356,6 +62268,13 @@ "description": "list or watch objects of kind Job", "operationId": "listNamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60020,6 +62939,13 @@ }, "/apis/batch/v1/watch/jobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60080,6 +63006,13 @@ }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60148,6 +63081,13 @@ }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60294,6 +63234,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60360,6 +63307,20 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60367,6 +63328,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -60374,6 +63342,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -60388,6 +63363,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -60446,6 +63435,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61110,6 +64106,13 @@ }, "/apis/batch/v1beta1/watch/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61170,6 +64173,13 @@ }, "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61238,6 +64248,13 @@ }, "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61384,6 +64401,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61450,6 +64474,20 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61457,6 +64495,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -61464,6 +64509,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -61478,6 +64530,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -61536,6 +64602,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62200,6 +65273,13 @@ }, "/apis/batch/v2alpha1/watch/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62260,6 +65340,13 @@ }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62328,6 +65415,13 @@ }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62476,6 +65570,20 @@ "description": "delete collection of CertificateSigningRequest", "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62483,6 +65591,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -62490,6 +65605,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -62504,6 +65626,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -62562,6 +65698,13 @@ "description": "list or watch objects of kind CertificateSigningRequest", "operationId": "listCertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63287,6 +66430,13 @@ }, "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63347,6 +66497,13 @@ }, "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63518,6 +66675,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63584,6 +66748,20 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63591,6 +66769,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -63598,6 +66783,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -63612,6 +66804,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -63670,6 +66876,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64136,6 +67349,13 @@ }, "/apis/coordination.k8s.io/v1/watch/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64196,6 +67416,13 @@ }, "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64264,6 +67491,13 @@ }, "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64410,6 +67644,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64476,6 +67717,20 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64483,6 +67738,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -64490,6 +67752,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -64504,6 +67773,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -64562,6 +67845,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65028,6 +68318,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65088,6 +68385,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65156,6 +68460,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leases/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65335,6 +68646,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65401,6 +68719,20 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65408,6 +68740,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -65415,6 +68754,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -65429,6 +68775,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -65487,6 +68847,13 @@ "description": "list or watch objects of kind Event", "operationId": "listNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65953,6 +69320,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66013,6 +69387,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66081,6 +69462,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66260,6 +69648,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66357,6 +69752,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66454,6 +69856,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66520,6 +69929,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66527,6 +69950,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -66534,6 +69964,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -66548,6 +69985,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -66606,6 +70057,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67276,6 +70734,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67283,6 +70755,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -67290,6 +70769,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -67304,6 +70790,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -67362,6 +70862,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68329,6 +71836,20 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68336,6 +71857,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -68343,6 +71871,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -68357,6 +71892,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -68415,6 +71964,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69085,6 +72641,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69092,6 +72662,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -69099,6 +72676,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -69113,6 +72697,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -69171,6 +72769,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69643,6 +73248,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69650,6 +73269,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -69657,6 +73283,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -69671,6 +73304,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -69729,6 +73376,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70826,6 +74480,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70892,6 +74553,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70899,6 +74574,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -70906,6 +74588,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -70920,6 +74609,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -70978,6 +74681,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71465,6 +75175,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71525,6 +75242,13 @@ }, "/apis/extensions/v1beta1/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71585,6 +75309,13 @@ }, "/apis/extensions/v1beta1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71645,6 +75376,13 @@ }, "/apis/extensions/v1beta1/watch/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71705,6 +75443,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71773,6 +75518,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71849,6 +75601,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71917,6 +75676,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71993,6 +75759,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72061,6 +75834,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72137,6 +75917,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72205,6 +75992,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72281,6 +76075,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72349,6 +76150,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72425,6 +76233,13 @@ }, "/apis/extensions/v1beta1/watch/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72485,6 +76300,13 @@ }, "/apis/extensions/v1beta1/watch/podsecuritypolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72545,6 +76367,13 @@ }, "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72613,6 +76442,13 @@ }, "/apis/extensions/v1beta1/watch/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72745,6 +76581,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72752,6 +76602,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -72759,6 +76616,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -72773,6 +76637,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -72831,6 +76709,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73334,6 +77219,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73394,6 +77286,13 @@ }, "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73462,6 +77361,13 @@ }, "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73538,6 +77444,13 @@ }, "/apis/networking.k8s.io/v1/watch/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73668,6 +77581,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73734,6 +77654,20 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73741,6 +77675,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -73748,6 +77689,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -73762,6 +77710,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -73820,6 +77782,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74484,6 +78453,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74544,6 +78520,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74612,6 +78595,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74760,6 +78750,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74767,6 +78771,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -74774,6 +78785,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -74788,6 +78806,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -74846,6 +78878,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75296,6 +79335,13 @@ }, "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75356,6 +79402,13 @@ }, "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75463,6 +79516,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75470,6 +79537,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -75477,6 +79551,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -75491,6 +79572,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -75549,6 +79644,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75999,6 +80101,13 @@ }, "/apis/node.k8s.io/v1beta1/watch/runtimeclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76059,6 +80168,13 @@ }, "/apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76199,6 +80315,20 @@ "description": "delete collection of PodDisruptionBudget", "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76206,6 +80336,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -76213,6 +80350,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -76227,6 +80371,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -76285,6 +80443,13 @@ "description": "list or watch objects of kind PodDisruptionBudget", "operationId": "listNamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76986,6 +81151,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77052,6 +81224,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77059,6 +81245,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -77066,6 +81259,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -77080,6 +81280,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -77138,6 +81352,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77588,6 +81809,13 @@ }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77656,6 +81884,13 @@ }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77732,6 +81967,13 @@ }, "/apis/policy/v1beta1/watch/poddisruptionbudgets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77792,6 +82034,13 @@ }, "/apis/policy/v1beta1/watch/podsecuritypolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77852,6 +82101,13 @@ }, "/apis/policy/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77992,6 +82248,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77999,6 +82269,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -78006,6 +82283,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -78020,6 +82304,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -78078,6 +82376,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78518,6 +82823,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78525,6 +82844,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -78532,6 +82858,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -78546,6 +82879,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -78604,6 +82951,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79044,6 +83398,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79051,6 +83419,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -79058,6 +83433,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -79072,6 +83454,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -79130,6 +83526,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79586,6 +83989,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79593,6 +84010,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -79600,6 +84024,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -79614,6 +84045,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -79672,6 +84117,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80159,6 +84611,184 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRoleForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80217,165 +84847,15 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "parameters": [ - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { - "parameters": [ { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80444,6 +84924,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80504,6 +84991,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80572,6 +85066,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80640,6 +85141,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80716,6 +85224,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80784,6 +85299,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80860,6 +85382,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80920,6 +85449,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81019,6 +85555,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81026,6 +85576,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -81033,6 +85590,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -81047,6 +85611,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -81105,6 +85683,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81545,6 +86130,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81552,6 +86151,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -81559,6 +86165,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -81573,6 +86186,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -81631,6 +86258,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82071,6 +86705,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82078,6 +86726,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -82085,6 +86740,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -82099,6 +86761,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -82157,6 +86833,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82613,6 +87296,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82620,6 +87317,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -82627,6 +87331,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -82641,6 +87352,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -82699,6 +87424,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83186,6 +87918,184 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Role", + "operationId": "listRoleForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.RoleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "rbacAuthorization_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83244,165 +88154,15 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Role", - "operationId": "listRoleForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, + "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "parameters": [ - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "parameters": [ { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83471,6 +88231,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83531,6 +88298,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83599,6 +88373,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83667,6 +88448,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83743,6 +88531,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83811,6 +88606,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83887,6 +88689,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83947,6 +88756,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84046,6 +88862,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84053,6 +88883,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84060,6 +88897,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84074,6 +88918,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84132,6 +88990,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84572,6 +89437,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84579,6 +89458,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84586,6 +89472,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84600,6 +89493,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84658,6 +89565,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85098,6 +90012,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85105,6 +90033,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -85112,6 +90047,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -85126,6 +90068,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -85184,6 +90140,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85640,6 +90603,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85647,6 +90624,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -85654,6 +90638,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -85668,6 +90659,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -85726,6 +90731,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86213,6 +91225,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86310,6 +91329,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86370,6 +91396,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86430,6 +91463,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86498,6 +91538,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86558,6 +91605,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86626,6 +91680,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86694,6 +91755,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86770,6 +91838,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86838,6 +91913,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86914,6 +91996,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86974,6 +92063,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87106,6 +92202,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87113,6 +92223,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -87120,6 +92237,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -87134,6 +92258,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87192,6 +92330,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87642,6 +92787,13 @@ }, "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87702,6 +92854,13 @@ }, "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87809,6 +92968,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87816,6 +92989,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -87823,6 +93003,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -87837,6 +93024,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87895,6 +93096,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88345,6 +93553,13 @@ }, "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88405,6 +93620,13 @@ }, "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88512,6 +93734,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88519,6 +93755,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -88526,6 +93769,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -88540,6 +93790,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -88598,6 +93862,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89048,6 +94319,13 @@ }, "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89108,6 +94386,13 @@ }, "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89248,6 +94533,20 @@ "description": "delete collection of PodPreset", "operationId": "deleteCollectionNamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89255,6 +94554,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -89262,6 +94568,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -89276,6 +94589,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -89334,6 +94661,13 @@ "description": "list or watch objects of kind PodPreset", "operationId": "listNamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89837,6 +95171,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89897,6 +95238,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89965,6 +95313,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90041,6 +95396,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90173,6 +95535,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90180,6 +95556,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -90187,6 +95570,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -90201,6 +95591,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90259,6 +95663,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90715,6 +96126,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90722,6 +96147,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -90729,6 +96161,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -90743,6 +96182,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90801,6 +96254,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91441,6 +96901,13 @@ }, "/apis/storage.k8s.io/v1/watch/storageclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91501,6 +96968,13 @@ }, "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91569,6 +97043,13 @@ }, "/apis/storage.k8s.io/v1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91629,6 +97110,13 @@ }, "/apis/storage.k8s.io/v1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91736,6 +97224,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91743,6 +97245,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -91750,6 +97259,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -91764,6 +97280,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -91822,6 +97352,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92272,6 +97809,13 @@ }, "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92332,6 +97876,13 @@ }, "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92439,6 +97990,20 @@ "description": "delete collection of CSIDriver", "operationId": "deleteCollectionCSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92446,6 +98011,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -92453,6 +98025,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -92467,6 +98046,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -92525,6 +98118,13 @@ "description": "list or watch objects of kind CSIDriver", "operationId": "listCSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92981,6 +98581,20 @@ "description": "delete collection of CSINode", "operationId": "deleteCollectionCSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92988,6 +98602,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -92995,6 +98616,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -93009,6 +98637,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -93067,6 +98709,13 @@ "description": "list or watch objects of kind CSINode", "operationId": "listCSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93523,6 +99172,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93530,6 +99193,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -93537,6 +99207,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -93551,6 +99228,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -93609,6 +99300,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94065,6 +99763,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94072,6 +99784,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -94079,6 +99798,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -94093,6 +99819,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -94151,6 +99891,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94601,6 +100348,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csidrivers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94661,6 +100415,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csidrivers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94729,6 +100490,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csinodes": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94789,6 +100557,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csinodes/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94857,6 +100632,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94917,6 +100699,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94985,6 +100774,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -95045,6 +100841,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -95273,6 +101076,13 @@ ], "description": "list or watch namespace scoped custom objects", "parameters": [ + { + "uniqueItems": true, + "in": "query", + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue" + }, { "uniqueItems": true, "in": "query", @@ -95287,6 +101097,13 @@ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "name": "labelSelector" }, + { + "uniqueItems": true, + "in": "query", + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit" + }, { "uniqueItems": true, "in": "query", @@ -95406,6 +101223,13 @@ ], "description": "list or watch cluster scoped custom objects", "parameters": [ + { + "uniqueItems": true, + "in": "query", + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue" + }, { "uniqueItems": true, "in": "query", @@ -95420,6 +101244,13 @@ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "name": "labelSelector" }, + { + "uniqueItems": true, + "in": "query", + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit" + }, { "uniqueItems": true, "in": "query", @@ -95539,6 +101370,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObjectStatus" @@ -95678,6 +101510,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObject" @@ -95890,6 +101723,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObjectScale" @@ -96045,6 +101879,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObjectScale" @@ -96184,6 +102019,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchClusterCustomObject" @@ -96389,6 +102225,7 @@ "custom_objects" ], "consumes": [ + "application/json-patch+json", "application/merge-patch+json" ], "operationId": "patchNamespacedCustomObjectStatus" diff --git a/setup.py b/setup.py index 9cdfcb6115..4525b7ff5e 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "10.0.0-snapshot" +CLIENT_VERSION = "11.0.0-snapshot" PACKAGE_NAME = "kubernetes" DEVELOPMENT_STATUS = "4 - Beta" From dee078639b5e848db73232397087a81f1a336510 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 09:33:46 -0700 Subject: [PATCH 4/8] Add alias package kubernetes.client.apis with deprecation warning --- kubernetes/client/apis/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kubernetes/client/apis/__init__.py diff --git a/kubernetes/client/apis/__init__.py b/kubernetes/client/apis/__init__.py new file mode 100644 index 0000000000..507ed72e0b --- /dev/null +++ b/kubernetes/client/apis/__init__.py @@ -0,0 +1,11 @@ +from __future__ import absolute_import +import warnings + +# flake8: noqa + +# alias kubernetes.client.api package and print deprecation warning +from kubernetes.client.api import * +warnings.warn( + "The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).", + DeprecationWarning +) From 9959273625b999ae9a8f0679c4def2ee7d699ede Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 10:59:33 -0700 Subject: [PATCH 5/8] hotfix for patching custom objects issue#866 --- kubernetes/client/api/custom_objects_api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kubernetes/client/api/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py index 948f89c540..e800186593 100644 --- a/kubernetes/client/api/custom_objects_api.py +++ b/kubernetes/client/api/custom_objects_api.py @@ -1727,7 +1727,7 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 @@ -1859,7 +1859,7 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 @@ -1991,7 +1991,7 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 @@ -2131,7 +2131,7 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 @@ -2271,7 +2271,7 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 @@ -2411,7 +2411,7 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json-patch+json', 'application/merge-patch+json']) # noqa: E501 + ['application/merge-patch+json']) # noqa: E501 # Authentication setting auth_settings = ['BearerToken'] # noqa: E501 From 64beb034801b98e5c0e49980cf101a01b611754e Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Tue, 29 Oct 2019 12:29:49 -0700 Subject: [PATCH 6/8] update CHANGELOG for master branch changes --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5753f49008..2a02812cbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,12 @@ - Fix a bug in kubeconfig loader that False value gets treated as absence [kubernetes-client/python-base#161](https://github.com/kubernetes-client/python-base/pull/161) - Fix a bug in kubeconfig loader where merging valid configs fails if fields are missing [kubernetes-client/python-base#163](https://github.com/kubernetes-client/python-base/pull/163) - Fix azure refresh token apiserver id [kubernetes-client/python-base#170](https://github.com/kubernetes-client/python-base/pull/170) +- Support chunked listing to custom object API [kubernetes-client/gen#130](https://github.com/kubernetes-client/gen/pull/130) **New Feature:** - Add returncode method to WSClient [kubernetes-client/python-base#160](https://github.com/kubernetes-client/python-base/pull/160) - Add proxy support to WSClient [kubernetes-client/python-base#157](https://github.com/kubernetes-client/python-base/pull/157) +- Add util function to parse canonical quantities [kubernetes-client/python#855](https://github.com/kubernetes-client/python/pull/855) # v11.0.0a1 **New Feature:** From 9d29ac1ded2e80b80a408d21d460565af2ed403c Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Mon, 11 Nov 2019 12:05:27 -0800 Subject: [PATCH 7/8] use new module name in example --- examples/pod_exec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pod_exec.py b/examples/pod_exec.py index 98b717f4a6..6a4bf6bdb5 100644 --- a/examples/pod_exec.py +++ b/examples/pod_exec.py @@ -20,7 +20,7 @@ from kubernetes import config from kubernetes.client import Configuration -from kubernetes.client.apis import core_v1_api +from kubernetes.client.api import core_v1_api from kubernetes.client.rest import ApiException from kubernetes.stream import stream From b3164930dd1789dd66915acd6772f92f512cec47 Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Mon, 11 Nov 2019 14:07:57 -0800 Subject: [PATCH 8/8] turn on warning filter to print deprecation warning by default --- kubernetes/client/apis/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/client/apis/__init__.py b/kubernetes/client/apis/__init__.py index 507ed72e0b..ca4b321de2 100644 --- a/kubernetes/client/apis/__init__.py +++ b/kubernetes/client/apis/__init__.py @@ -5,6 +5,8 @@ # alias kubernetes.client.api package and print deprecation warning from kubernetes.client.api import * + +warnings.filterwarnings('default', module='kubernetes.client.apis') warnings.warn( "The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).", DeprecationWarning